import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a secret in the Barbican Key Manager service for a public cloud project. * * ## Import * * A Key Manager secret can be imported using the `service_name` and `id`, separated by `/`: * * bash * * ```sh * $ pulumi import ovh:index/cloudKeyManagerSecret:CloudKeyManagerSecret my_secret service_name/secret_id * ``` */ export declare class CloudKeyManagerSecret extends pulumi.CustomResource { /** * Get an existing CloudKeyManagerSecret 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?: CloudKeyManagerSecretState, opts?: pulumi.CustomResourceOptions): CloudKeyManagerSecret; /** * Returns true if the given object is an instance of CloudKeyManagerSecret. 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 CloudKeyManagerSecret; /** * Algorithm associated with the secret (e.g., `AES`, `RSA`). */ readonly algorithm: pulumi.Output; /** * Availability zone where the secret will be created. */ readonly availabilityZone: pulumi.Output; /** * Bit length of the secret (e.g., `256`). */ readonly bitLength: pulumi.Output; /** * Computed hash representing the current resource state. */ readonly checksum: pulumi.Output; /** * Creation date of the secret. */ readonly createdAt: pulumi.Output; /** * Current state of the secret as reported by OpenStack Barbican: */ readonly currentState: pulumi.Output; /** * Expiration date of the secret in RFC3339 format. */ readonly expiration: pulumi.Output; /** * Key-value metadata for the secret. This is the only mutable field on a secret. */ readonly metadata: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Mode of the secret algorithm (e.g., `CBC`). */ readonly mode: pulumi.Output; /** * Name of the secret. */ readonly name: pulumi.Output; /** * Secret payload data (base64-encoded). Write-only, never returned in responses. Requires `payloadContentType`. */ readonly payload: pulumi.Output; /** * Content type of the secret payload. Possible values: `TEXT_PLAIN`, `APPLICATION_OCTET_STREAM`, `APPLICATION_PKIX_CERT`, `APPLICATION_PKCS8`. */ readonly payloadContentType: pulumi.Output; /** * Region where the secret will be created. */ readonly region: pulumi.Output; /** * Secret readiness status (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: pulumi.Output; /** * Type of the secret. Possible values: `SYMMETRIC`, `PUBLIC`, `PRIVATE`, `PASSPHRASE`, `CERTIFICATE`, `OPAQUE`. */ readonly secretType: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Last update date of the secret. */ readonly updatedAt: pulumi.Output; /** * Create a CloudKeyManagerSecret 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: CloudKeyManagerSecretArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudKeyManagerSecret resources. */ export interface CloudKeyManagerSecretState { /** * Algorithm associated with the secret (e.g., `AES`, `RSA`). */ algorithm?: pulumi.Input; /** * Availability zone where the secret will be created. */ availabilityZone?: pulumi.Input; /** * Bit length of the secret (e.g., `256`). */ bitLength?: pulumi.Input; /** * Computed hash representing the current resource state. */ checksum?: pulumi.Input; /** * Creation date of the secret. */ createdAt?: pulumi.Input; /** * Current state of the secret as reported by OpenStack Barbican: */ currentState?: pulumi.Input; /** * Expiration date of the secret in RFC3339 format. */ expiration?: pulumi.Input; /** * Key-value metadata for the secret. This is the only mutable field on a secret. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Mode of the secret algorithm (e.g., `CBC`). */ mode?: pulumi.Input; /** * Name of the secret. */ name?: pulumi.Input; /** * Secret payload data (base64-encoded). Write-only, never returned in responses. Requires `payloadContentType`. */ payload?: pulumi.Input; /** * Content type of the secret payload. Possible values: `TEXT_PLAIN`, `APPLICATION_OCTET_STREAM`, `APPLICATION_PKIX_CERT`, `APPLICATION_PKCS8`. */ payloadContentType?: pulumi.Input; /** * Region where the secret will be created. */ region?: pulumi.Input; /** * Secret readiness status (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ resourceStatus?: pulumi.Input; /** * Type of the secret. Possible values: `SYMMETRIC`, `PUBLIC`, `PRIVATE`, `PASSPHRASE`, `CERTIFICATE`, `OPAQUE`. */ secretType?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Last update date of the secret. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CloudKeyManagerSecret resource. */ export interface CloudKeyManagerSecretArgs { /** * Algorithm associated with the secret (e.g., `AES`, `RSA`). */ algorithm?: pulumi.Input; /** * Availability zone where the secret will be created. */ availabilityZone?: pulumi.Input; /** * Bit length of the secret (e.g., `256`). */ bitLength?: pulumi.Input; /** * Expiration date of the secret in RFC3339 format. */ expiration?: pulumi.Input; /** * Key-value metadata for the secret. This is the only mutable field on a secret. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Mode of the secret algorithm (e.g., `CBC`). */ mode?: pulumi.Input; /** * Name of the secret. */ name?: pulumi.Input; /** * Secret payload data (base64-encoded). Write-only, never returned in responses. Requires `payloadContentType`. */ payload?: pulumi.Input; /** * Content type of the secret payload. Possible values: `TEXT_PLAIN`, `APPLICATION_OCTET_STREAM`, `APPLICATION_PKIX_CERT`, `APPLICATION_PKCS8`. */ payloadContentType?: pulumi.Input; /** * Region where the secret will be created. */ region: pulumi.Input; /** * Type of the secret. Possible values: `SYMMETRIC`, `PUBLIC`, `PRIVATE`, `PASSPHRASE`, `CERTIFICATE`, `OPAQUE`. */ secretType: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }