@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
114 lines (113 loc) • 3.59 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Activates Scaleway Messaging and Queuing SNS in a Project.
* For further information, see
* our [main documentation](https://www.scaleway.com/en/docs/messaging/reference-content/sns-overview/).
*
* ## Example Usage
*
* ### Basic
*
* Activate SNS in the default Project
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.mnq.Sns("main", {});
* ```
*
* Activate SNS in a specific Project
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const project = scaleway.account.getProject({
* name: "default",
* });
* // For specific Project in default region
* const forProject = new scaleway.mnq.Sns("for_project", {projectId: project.then(project => project.id)});
* ```
*
* ## Import
*
* SNS status can be imported using `{region}/{project_id}`, e.g.
*
* bash
*
* ```sh
* $ pulumi import scaleway:mnq/sns:Sns main fr-par/11111111111111111111111111111111
* ```
*/
export declare class Sns extends pulumi.CustomResource {
/**
* Get an existing Sns 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<pulumi.ID>, state?: SnsState, opts?: pulumi.CustomResourceOptions): Sns;
/**
* Returns true if the given object is an instance of Sns. 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 Sns;
/**
* The endpoint of the SNS service for this Project.
*/
readonly endpoint: pulumi.Output<string>;
/**
* `projectId`) The ID of the project in which SNS will be enabled.
*/
readonly projectId: pulumi.Output<string>;
/**
* `region`). The region
* in which SNS will be enabled.
*/
readonly region: pulumi.Output<string>;
/**
* Create a Sns 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?: SnsArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Sns resources.
*/
export interface SnsState {
/**
* The endpoint of the SNS service for this Project.
*/
endpoint?: pulumi.Input<string>;
/**
* `projectId`) The ID of the project in which SNS will be enabled.
*/
projectId?: pulumi.Input<string>;
/**
* `region`). The region
* in which SNS will be enabled.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Sns resource.
*/
export interface SnsArgs {
/**
* `projectId`) The ID of the project in which SNS will be enabled.
*/
projectId?: pulumi.Input<string>;
/**
* `region`). The region
* in which SNS will be enabled.
*/
region?: pulumi.Input<string>;
}