import * as pulumi from "@pulumi/pulumi"; /** * Creates a credential for an OVHcloud KMS. * * ## Import * * An OVHcloud KMS credential can be imported using the `okms_id` and `id`, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:Okms/credential:Credential cred okms_id/credential_id * ``` */ export declare class Credential extends pulumi.CustomResource { /** * Get an existing Credential 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?: CredentialState, opts?: pulumi.CustomResourceOptions): Credential; /** * Returns true if the given object is an instance of Credential. 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 Credential; /** * (String) Certificate PEM of the credential. */ readonly certificatePem: pulumi.Output; /** * (String) Type of certificate key (`ECDSA` or `RSA`). */ readonly certificateType: pulumi.Output; /** * (String) Creation time of the credential */ readonly createdAt: pulumi.Output; /** * Valid Certificate Signing Request */ readonly csr: pulumi.Output; /** * Description of the credential (max 200) */ readonly description: pulumi.Output; /** * (String) Expiration time of the credential */ readonly expiredAt: pulumi.Output; /** * (Boolean) Whether the credential was generated from a CSR */ readonly fromCsr: pulumi.Output; /** * List of identity URNs associated with the credential (max 25) */ readonly identityUrns: pulumi.Output; /** * Name of the credential (max 50) */ readonly name: pulumi.Output; /** * Okms ID */ readonly okmsId: pulumi.Output; /** * (String, Sensitive) Private Key PEM of the credential if no CSR is provided */ readonly privateKeyPem: pulumi.Output; /** * (String) Status of the credential */ readonly status: pulumi.Output; /** * Validity in days (default 365, max 365) */ readonly validity: pulumi.Output; /** * Create a Credential 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: CredentialArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Credential resources. */ export interface CredentialState { /** * (String) Certificate PEM of the credential. */ certificatePem?: pulumi.Input; /** * (String) Type of certificate key (`ECDSA` or `RSA`). */ certificateType?: pulumi.Input; /** * (String) Creation time of the credential */ createdAt?: pulumi.Input; /** * Valid Certificate Signing Request */ csr?: pulumi.Input; /** * Description of the credential (max 200) */ description?: pulumi.Input; /** * (String) Expiration time of the credential */ expiredAt?: pulumi.Input; /** * (Boolean) Whether the credential was generated from a CSR */ fromCsr?: pulumi.Input; /** * List of identity URNs associated with the credential (max 25) */ identityUrns?: pulumi.Input[]>; /** * Name of the credential (max 50) */ name?: pulumi.Input; /** * Okms ID */ okmsId?: pulumi.Input; /** * (String, Sensitive) Private Key PEM of the credential if no CSR is provided */ privateKeyPem?: pulumi.Input; /** * (String) Status of the credential */ status?: pulumi.Input; /** * Validity in days (default 365, max 365) */ validity?: pulumi.Input; } /** * The set of arguments for constructing a Credential resource. */ export interface CredentialArgs { /** * (String) Type of certificate key (`ECDSA` or `RSA`). */ certificateType?: pulumi.Input; /** * Valid Certificate Signing Request */ csr?: pulumi.Input; /** * Description of the credential (max 200) */ description?: pulumi.Input; /** * List of identity URNs associated with the credential (max 25) */ identityUrns: pulumi.Input[]>; /** * Name of the credential (max 50) */ name?: pulumi.Input; /** * Okms ID */ okmsId: pulumi.Input; /** * Validity in days (default 365, max 365) */ validity?: pulumi.Input; }