import * as pulumi from "@pulumi/pulumi"; /** * Registers a consumer on a Barbican Key Manager secret for a public cloud project. Consumers track which OpenStack resources (instances, load balancers, images) are using a given secret. * * > All fields on this resource force replacement. Consumers cannot be updated in place. * * ## Example Usage * * Register a load balancer as a consumer of a secret: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const consumer = new ovh.CloudKeyManagerSecretConsumer("consumer", { * serviceName: "Public cloud project ID", * secretId: "00000000-0000-0000-0000-000000000000", * service: "LOADBALANCER", * resourceType: "LOADBALANCER", * resourceId: "11111111-1111-1111-1111-111111111111", * }); * ``` * * ## Import * * A Key Manager secret consumer can be imported using a composite ID (note that this import format differs from the `id` attribute): * * bash * * ```sh * $ pulumi import ovh:index/cloudKeyManagerSecretConsumer:CloudKeyManagerSecretConsumer my_consumer service_name/secret_id/service/resource_type/resource_id * ``` */ export declare class CloudKeyManagerSecretConsumer extends pulumi.CustomResource { /** * Get an existing CloudKeyManagerSecretConsumer 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?: CloudKeyManagerSecretConsumerState, opts?: pulumi.CustomResourceOptions): CloudKeyManagerSecretConsumer; /** * Returns true if the given object is an instance of CloudKeyManagerSecretConsumer. 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 CloudKeyManagerSecretConsumer; /** * UUID of the resource consuming the secret. */ readonly resourceId: pulumi.Output; /** * Type of the resource consuming the secret. Possible values: `IMAGE`, `INSTANCE`, `LOADBALANCER`. */ readonly resourceType: pulumi.Output; /** * UUID of the secret to register the consumer on. */ readonly secretId: pulumi.Output; /** * OpenStack service type of the consumer. Possible values: `COMPUTE`, `IMAGE`, `LOADBALANCER`, `NETWORK`. */ readonly service: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Create a CloudKeyManagerSecretConsumer 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: CloudKeyManagerSecretConsumerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudKeyManagerSecretConsumer resources. */ export interface CloudKeyManagerSecretConsumerState { /** * UUID of the resource consuming the secret. */ resourceId?: pulumi.Input; /** * Type of the resource consuming the secret. Possible values: `IMAGE`, `INSTANCE`, `LOADBALANCER`. */ resourceType?: pulumi.Input; /** * UUID of the secret to register the consumer on. */ secretId?: pulumi.Input; /** * OpenStack service type of the consumer. Possible values: `COMPUTE`, `IMAGE`, `LOADBALANCER`, `NETWORK`. */ service?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; } /** * The set of arguments for constructing a CloudKeyManagerSecretConsumer resource. */ export interface CloudKeyManagerSecretConsumerArgs { /** * UUID of the resource consuming the secret. */ resourceId: pulumi.Input; /** * Type of the resource consuming the secret. Possible values: `IMAGE`, `INSTANCE`, `LOADBALANCER`. */ resourceType: pulumi.Input; /** * UUID of the secret to register the consumer on. */ secretId: pulumi.Input; /** * OpenStack service type of the consumer. Possible values: `COMPUTE`, `IMAGE`, `LOADBALANCER`, `NETWORK`. */ service: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }