import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Import * * This section explains how to import a secret using the `{region}/{id}` format. * * 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, 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 the secret's creation (in RFC 3339 format). */ readonly createdAt: pulumi.Output; /** * Description of the secret (e.g. `my-new-description`). */ readonly description: pulumi.Output; /** * Ephemeral policy of the secret. Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions. */ readonly ephemeralPolicies: pulumi.Output; /** * Name of the secret (e.g. `my-secret`). */ readonly name: pulumi.Output; /** * Path of the secret, defaults to `/`. */ readonly path: pulumi.Output; /** * The project ID containing is the secret. */ readonly projectId: pulumi.Output; /** * True if secret protection is enabled on a given secret. A protected secret cannot be deleted. */ readonly protected: pulumi.Output; /** * `region`) The region * in which the resource exists. */ readonly region: pulumi.Output; /** * The status of the secret. */ readonly status: pulumi.Output; /** * Tags of the secret (e.g. `["tag", "secret"]`). */ readonly tags: pulumi.Output; /** * Type of the secret. If not specified, the type is Opaque. Available values can be found in [SDK Constants](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/secret/v1beta1#pkg-constants). */ readonly type: pulumi.Output; /** * Date and time of the secret's last update (in RFC 3339 format). */ readonly updatedAt: pulumi.Output; /** * The amount of secret versions. */ readonly versionCount: pulumi.Output; /** * 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 the secret's creation (in RFC 3339 format). */ createdAt?: pulumi.Input; /** * Description of the secret (e.g. `my-new-description`). */ description?: pulumi.Input; /** * Ephemeral policy of the secret. Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions. */ ephemeralPolicies?: pulumi.Input[]>; /** * Name of the secret (e.g. `my-secret`). */ name?: pulumi.Input; /** * Path of the secret, defaults to `/`. */ path?: pulumi.Input; /** * The project ID containing is the secret. */ projectId?: pulumi.Input; /** * True if secret protection is enabled on a given secret. A protected secret cannot be deleted. */ protected?: pulumi.Input; /** * `region`) The region * in which the resource exists. */ region?: pulumi.Input; /** * The status of the secret. */ status?: pulumi.Input; /** * Tags of the secret (e.g. `["tag", "secret"]`). */ tags?: pulumi.Input[]>; /** * Type of the secret. If not specified, the type is Opaque. Available values can be found in [SDK Constants](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/secret/v1beta1#pkg-constants). */ type?: pulumi.Input; /** * Date and time of the secret's last update (in RFC 3339 format). */ updatedAt?: pulumi.Input; /** * The amount of secret versions. */ versionCount?: pulumi.Input; } /** * The set of arguments for constructing a Secret resource. */ export interface SecretArgs { /** * Description of the secret (e.g. `my-new-description`). */ description?: pulumi.Input; /** * Ephemeral policy of the secret. Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions. */ ephemeralPolicies?: pulumi.Input[]>; /** * Name of the secret (e.g. `my-secret`). */ name?: pulumi.Input; /** * Path of the secret, defaults to `/`. */ path?: pulumi.Input; /** * The project ID containing is the secret. */ projectId?: pulumi.Input; /** * True if secret protection is enabled on a given secret. A protected secret cannot be deleted. */ protected?: pulumi.Input; /** * `region`) The region * in which the resource exists. */ region?: pulumi.Input; /** * Tags of the secret (e.g. `["tag", "secret"]`). */ tags?: pulumi.Input[]>; /** * Type of the secret. If not specified, the type is Opaque. Available values can be found in [SDK Constants](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/secret/v1beta1#pkg-constants). */ type?: pulumi.Input; }