UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

161 lines (160 loc) 4.81 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Secrets. * For more information, see [the documentation](https://developers.scaleway.com/en/products/secret_manager/api/v1alpha1/). * * ## Examples * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * * const main = new scaleway.Secret("main", { * description: "barr", * tags: [ * "foo", * "terraform", * ], * }); * ``` * * ## Import * * The Secret can be imported using the `{region}/{id}`, e.g. bash * * ```sh * $ pulumi import scaleway:index/secret:Secret main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class Secret extends pulumi.CustomResource { /** * Get an existing Secret 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?: SecretState, opts?: pulumi.CustomResourceOptions): Secret; /** * Returns true if the given object is an instance of Secret. 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 Secret; /** * Date and time of secret's creation (RFC 3339 format). */ readonly createdAt: pulumi.Output<string>; /** * Description of the secret (e.g. `my-new-description`). */ readonly description: pulumi.Output<string | undefined>; /** * Name of the secret (e.g. `my-secret`). */ readonly name: pulumi.Output<string>; /** * The project ID containing is the secret. */ readonly projectId: pulumi.Output<string>; /** * `region`) The region * in which the resource exists. */ readonly region: pulumi.Output<string>; /** * The status of the Secret. */ readonly status: pulumi.Output<string>; /** * Tags of the secret (e.g. `["tag", "secret"]`). */ readonly tags: pulumi.Output<string[] | undefined>; /** * Date and time of secret's last update (RFC 3339 format). */ readonly updatedAt: pulumi.Output<string>; /** * The number of versions for this Secret. */ readonly versionCount: pulumi.Output<number>; /** * Create a Secret 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?: SecretArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Secret resources. */ export interface SecretState { /** * Date and time of secret's creation (RFC 3339 format). */ createdAt?: pulumi.Input<string>; /** * Description of the secret (e.g. `my-new-description`). */ description?: pulumi.Input<string>; /** * Name of the secret (e.g. `my-secret`). */ name?: pulumi.Input<string>; /** * The project ID containing is the secret. */ projectId?: pulumi.Input<string>; /** * `region`) The region * in which the resource exists. */ region?: pulumi.Input<string>; /** * The status of the Secret. */ status?: pulumi.Input<string>; /** * Tags of the secret (e.g. `["tag", "secret"]`). */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * Date and time of secret's last update (RFC 3339 format). */ updatedAt?: pulumi.Input<string>; /** * The number of versions for this Secret. */ versionCount?: pulumi.Input<number>; } /** * The set of arguments for constructing a Secret resource. */ export interface SecretArgs { /** * Description of the secret (e.g. `my-new-description`). */ description?: pulumi.Input<string>; /** * Name of the secret (e.g. `my-secret`). */ name?: pulumi.Input<string>; /** * The project ID containing is the secret. */ projectId?: pulumi.Input<string>; /** * `region`) The region * in which the resource exists. */ region?: pulumi.Input<string>; /** * Tags of the secret (e.g. `["tag", "secret"]`). */ tags?: pulumi.Input<pulumi.Input<string>[]>; }