import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing Key Vault Secret. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.keyvault.getSecret({ * name: "secret-sauce", * keyVaultId: existing.id, * }); * export const secretValue = example.then(example => example.value); * ``` */ export declare function getSecret(args: GetSecretArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSecret. */ export interface GetSecretArgs { /** * Specifies the ID of the Key Vault instance to fetch secret names from, available on the `azure.keyvault.KeyVault` Data Source / Resource. */ keyVaultId: string; /** * Specifies the name of the Key Vault Secret. */ name: string; /** * Specifies the version of the Key Vault Secret. Defaults to the current version of the Key Vault Secret. * * > **Note:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. */ version?: string; } /** * A collection of values returned by getSecret. */ export interface GetSecretResult { /** * The content type for the Key Vault Secret. */ readonly contentType: string; /** * The date and time at which the Key Vault Secret expires and is no longer valid. */ readonly expirationDate: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly keyVaultId: string; readonly name: string; /** * The earliest date at which the Key Vault Secret can be used. */ readonly notBeforeDate: string; /** * The (Versioned) ID for this Key Vault Secret. This property points to a specific version of a Key Vault Secret, as such using this won't auto-rotate values if used in other Azure Services. */ readonly resourceId: string; /** * The Versionless ID of the Key Vault Secret. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Secret is updated. */ readonly resourceVersionlessId: string; /** * Any tags assigned to this resource. */ readonly tags: { [key: string]: string; }; /** * The value of the Key Vault Secret. */ readonly value: string; readonly version?: string; /** * The Versionless ID of the Key Vault Secret. This can be used to always get latest secret value, and enable fetching automatically rotating secrets. */ readonly versionlessId: string; } /** * Use this data source to access information about an existing Key Vault Secret. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.keyvault.getSecret({ * name: "secret-sauce", * keyVaultId: existing.id, * }); * export const secretValue = example.then(example => example.value); * ``` */ export declare function getSecretOutput(args: GetSecretOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSecret. */ export interface GetSecretOutputArgs { /** * Specifies the ID of the Key Vault instance to fetch secret names from, available on the `azure.keyvault.KeyVault` Data Source / Resource. */ keyVaultId: pulumi.Input; /** * Specifies the name of the Key Vault Secret. */ name: pulumi.Input; /** * Specifies the version of the Key Vault Secret. Defaults to the current version of the Key Vault Secret. * * > **Note:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. */ version?: pulumi.Input; }