@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
141 lines (140 loc) • 4.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Creates and manages Scaleway Messaging and Queuing SNS credentials.
* For further information, see
* our [main documentation](https://www.scaleway.com/en/docs/messaging/reference-content/sns-overview/)
*
* ## Example Usage
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.mnq.Sns("main", {});
* const mainSnsCredentials = new scaleway.mnq.SnsCredentials("main", {
* projectId: main.projectId,
* name: "sns-credentials",
* permissions: {
* canManage: false,
* canReceive: true,
* canPublish: false,
* },
* });
* ```
*
* ## Import
*
* SNS credentials can be imported using `{region}/{id}`, e.g.
*
* bash
*
* ```sh
* $ pulumi import scaleway:index/mnqSnsCredentials:MnqSnsCredentials main fr-par/11111111111111111111111111111111
* ```
*
* @deprecated scaleway.index/mnqsnscredentials.MnqSnsCredentials has been deprecated in favor of scaleway.mnq/snscredentials.SnsCredentials
*/
export declare class MnqSnsCredentials extends pulumi.CustomResource {
/**
* Get an existing MnqSnsCredentials 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?: MnqSnsCredentialsState, opts?: pulumi.CustomResourceOptions): MnqSnsCredentials;
/**
* Returns true if the given object is an instance of MnqSnsCredentials. 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 MnqSnsCredentials;
/**
* The ID of the key.
*/
readonly accessKey: pulumi.Output<string>;
/**
* The unique name of the SNS credentials.
*/
readonly name: pulumi.Output<string>;
/**
* . List of permissions associated with these credentials.
*/
readonly permissions: pulumi.Output<outputs.MnqSnsCredentialsPermissions>;
/**
* `projectId`) The ID of the Project in which SNS is enabled.
*/
readonly projectId: pulumi.Output<string>;
/**
* `region`). The region in which SNS is enabled.
*/
readonly region: pulumi.Output<string>;
/**
* The secret value of the key.
*/
readonly secretKey: pulumi.Output<string>;
/**
* Create a MnqSnsCredentials 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.
*/
/** @deprecated scaleway.index/mnqsnscredentials.MnqSnsCredentials has been deprecated in favor of scaleway.mnq/snscredentials.SnsCredentials */
constructor(name: string, args?: MnqSnsCredentialsArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering MnqSnsCredentials resources.
*/
export interface MnqSnsCredentialsState {
/**
* The ID of the key.
*/
accessKey?: pulumi.Input<string>;
/**
* The unique name of the SNS credentials.
*/
name?: pulumi.Input<string>;
/**
* . List of permissions associated with these credentials.
*/
permissions?: pulumi.Input<inputs.MnqSnsCredentialsPermissions>;
/**
* `projectId`) The ID of the Project in which SNS is enabled.
*/
projectId?: pulumi.Input<string>;
/**
* `region`). The region in which SNS is enabled.
*/
region?: pulumi.Input<string>;
/**
* The secret value of the key.
*/
secretKey?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a MnqSnsCredentials resource.
*/
export interface MnqSnsCredentialsArgs {
/**
* The unique name of the SNS credentials.
*/
name?: pulumi.Input<string>;
/**
* . List of permissions associated with these credentials.
*/
permissions?: pulumi.Input<inputs.MnqSnsCredentialsPermissions>;
/**
* `projectId`) The ID of the Project in which SNS is enabled.
*/
projectId?: pulumi.Input<string>;
/**
* `region`). The region in which SNS is enabled.
*/
region?: pulumi.Input<string>;
}