import * as pulumi from "@pulumi/pulumi"; /** * Manages Scaleway Messaging and Queuing SNS topic subscriptions. * For further information, see * our [main documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/sns-overview/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * // For default project in default region * const mainMnqSns = new scaleway.MnqSns("mainMnqSns", {}); * const mainMnqSnsCredentials = new scaleway.MnqSnsCredentials("mainMnqSnsCredentials", { * projectId: mainMnqSns.projectId, * permissions: { * canManage: true, * canPublish: true, * canReceive: true, * }, * }); * const topic = new scaleway.MnqSnsTopic("topic", { * projectId: mainMnqSns.projectId, * accessKey: mainMnqSnsCredentials.accessKey, * secretKey: mainMnqSnsCredentials.secretKey, * }); * const mainMnqSnsTopicSubscription = new scaleway.MnqSnsTopicSubscription("mainMnqSnsTopicSubscription", { * projectId: mainMnqSns.projectId, * accessKey: mainMnqSnsCredentials.accessKey, * secretKey: mainMnqSnsCredentials.secretKey, * topicId: topic.id, * protocol: "http", * endpoint: "http://example.com", * }); * ``` * * ## Import * * SNS topic subscriptions can be imported using `{region}/{project-id}/{topic-name}/{subscription-id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/mnqSnsTopicSubscription:MnqSnsTopicSubscription main fr-par/11111111111111111111111111111111/my-topic/11111111111111111111111111111111 * ``` */ export declare class MnqSnsTopicSubscription extends pulumi.CustomResource { /** * Get an existing MnqSnsTopicSubscription resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: MnqSnsTopicSubscriptionState, opts?: pulumi.CustomResourceOptions): MnqSnsTopicSubscription; /** * Returns true if the given object is an instance of MnqSnsTopicSubscription. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MnqSnsTopicSubscription; /** * The access key of the SNS credentials. */ readonly accessKey: pulumi.Output; /** * The ARN of the topic subscription */ readonly arn: pulumi.Output; /** * Endpoint of the subscription */ readonly endpoint: pulumi.Output; /** * `projectId`) The ID of the Project in which SNS is enabled. */ readonly projectId: pulumi.Output; /** * Protocol of the SNS topic subscription. */ readonly protocol: pulumi.Output; /** * Activate JSON redrive policy. */ readonly redrivePolicy: pulumi.Output; /** * `region`). The region * in which SNS is enabled. */ readonly region: pulumi.Output; /** * The secret key of the SNS credentials. */ readonly secretKey: pulumi.Output; /** * The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. */ readonly snsEndpoint: pulumi.Output; /** * The ARN of the topic. Either `topicId` or `topicArn` is required. */ readonly topicArn: pulumi.Output; /** * The ID of the topic. Either `topicId` or `topicArn` is required. Conflicts with `topicArn`. */ readonly topicId: pulumi.Output; /** * Create a MnqSnsTopicSubscription resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MnqSnsTopicSubscriptionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MnqSnsTopicSubscription resources. */ export interface MnqSnsTopicSubscriptionState { /** * The access key of the SNS credentials. */ accessKey?: pulumi.Input; /** * The ARN of the topic subscription */ arn?: pulumi.Input; /** * Endpoint of the subscription */ endpoint?: pulumi.Input; /** * `projectId`) The ID of the Project in which SNS is enabled. */ projectId?: pulumi.Input; /** * Protocol of the SNS topic subscription. */ protocol?: pulumi.Input; /** * Activate JSON redrive policy. */ redrivePolicy?: pulumi.Input; /** * `region`). The region * in which SNS is enabled. */ region?: pulumi.Input; /** * The secret key of the SNS credentials. */ secretKey?: pulumi.Input; /** * The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. */ snsEndpoint?: pulumi.Input; /** * The ARN of the topic. Either `topicId` or `topicArn` is required. */ topicArn?: pulumi.Input; /** * The ID of the topic. Either `topicId` or `topicArn` is required. Conflicts with `topicArn`. */ topicId?: pulumi.Input; } /** * The set of arguments for constructing a MnqSnsTopicSubscription resource. */ export interface MnqSnsTopicSubscriptionArgs { /** * The access key of the SNS credentials. */ accessKey: pulumi.Input; /** * Endpoint of the subscription */ endpoint?: pulumi.Input; /** * `projectId`) The ID of the Project in which SNS is enabled. */ projectId?: pulumi.Input; /** * Protocol of the SNS topic subscription. */ protocol: pulumi.Input; /** * Activate JSON redrive policy. */ redrivePolicy?: pulumi.Input; /** * `region`). The region * in which SNS is enabled. */ region?: pulumi.Input; /** * The secret key of the SNS credentials. */ secretKey: pulumi.Input; /** * The endpoint of the SNS service. Can contain a {region} placeholder. Defaults to `https://sns.mnq.{region}.scaleway.com`. */ snsEndpoint?: pulumi.Input; /** * The ARN of the topic. Either `topicId` or `topicArn` is required. */ topicArn?: pulumi.Input; /** * The ID of the topic. Either `topicId` or `topicArn` is required. Conflicts with `topicArn`. */ topicId?: pulumi.Input; }