import * as pulumi from "@pulumi/pulumi"; /** * Manage Scaleway Messaging and queuing SNS topics. * For further information, see * our [main documentation](https://www.scaleway.com/en/docs/serverless/messaging/how-to/create-manage-topics/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const mainMnqSns = new scaleway.MnqSns("mainMnqSns", {}); * const mainMnqSnsCredentials = new scaleway.MnqSnsCredentials("mainMnqSnsCredentials", { * projectId: mainMnqSns.projectId, * permissions: { * canManage: true, * }, * }); * const topic = new scaleway.MnqSnsTopic("topic", { * projectId: mainMnqSns.projectId, * accessKey: mainMnqSnsCredentials.accessKey, * secretKey: mainMnqSnsCredentials.secretKey, * }); * ``` * * ## Import * * SNS topics can be imported using `{region}/{project-id}/{topic-name}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/mnqSnsTopic:MnqSnsTopic main fr-par/11111111111111111111111111111111/my-topic * ``` */ export declare class MnqSnsTopic extends pulumi.CustomResource { /** * Get an existing MnqSnsTopic 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?: MnqSnsTopicState, opts?: pulumi.CustomResourceOptions): MnqSnsTopic; /** * Returns true if the given object is an instance of MnqSnsTopic. 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 MnqSnsTopic; /** * The access key of the SNS credentials. */ readonly accessKey: pulumi.Output; /** * The ARN of the topic */ readonly arn: pulumi.Output; /** * Specifies whether to enable content-based deduplication. */ readonly contentBasedDeduplication: pulumi.Output; /** * Whether the topic is a FIFO topic. If true, the topic name must end with .fifo. */ readonly fifoTopic: pulumi.Output; /** * The unique name of the SNS topic. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. */ readonly name: pulumi.Output; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ readonly namePrefix: pulumi.Output; /** * Owner of the SNS topic, should have format 'project-${project_id}' */ readonly owner: pulumi.Output; /** * `projectId`) The ID of the Project in which SNS is enabled. */ readonly projectId: 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; /** * Create a MnqSnsTopic 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: MnqSnsTopicArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MnqSnsTopic resources. */ export interface MnqSnsTopicState { /** * The access key of the SNS credentials. */ accessKey?: pulumi.Input; /** * The ARN of the topic */ arn?: pulumi.Input; /** * Specifies whether to enable content-based deduplication. */ contentBasedDeduplication?: pulumi.Input; /** * Whether the topic is a FIFO topic. If true, the topic name must end with .fifo. */ fifoTopic?: pulumi.Input; /** * The unique name of the SNS topic. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. */ name?: pulumi.Input; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ namePrefix?: pulumi.Input; /** * Owner of the SNS topic, should have format 'project-${project_id}' */ owner?: pulumi.Input; /** * `projectId`) The ID of the Project in which SNS is enabled. */ projectId?: 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 set of arguments for constructing a MnqSnsTopic resource. */ export interface MnqSnsTopicArgs { /** * The access key of the SNS credentials. */ accessKey: pulumi.Input; /** * Specifies whether to enable content-based deduplication. */ contentBasedDeduplication?: pulumi.Input; /** * Whether the topic is a FIFO topic. If true, the topic name must end with .fifo. */ fifoTopic?: pulumi.Input; /** * The unique name of the SNS topic. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. */ name?: pulumi.Input; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ namePrefix?: pulumi.Input; /** * `projectId`) The ID of the Project in which SNS is enabled. */ projectId?: 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; }