@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
102 lines (101 loc) • 3.77 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get the value from a Secret Manager secret version. This is similar to the gcp.secretmanager.SecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions/access).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const basic = gcp.secretmanager.getSecretVersionAccess({
* secret: "my-secret",
* });
* ```
*/
export declare function getSecretVersionAccess(args: GetSecretVersionAccessArgs, opts?: pulumi.InvokeOptions): Promise<GetSecretVersionAccessResult>;
/**
* A collection of arguments for invoking getSecretVersionAccess.
*/
export interface GetSecretVersionAccessArgs {
/**
* If set to 'true', the secret data is
* expected to be base64-encoded string.
*/
isSecretDataBase64?: boolean;
/**
* The project to get the secret version for. If it
* is not provided, the provider project is used.
*/
project?: string;
/**
* The secret to get the secret version for.
*/
secret: string;
/**
* The version of the secret to get. If it
* is not provided, the latest version is retrieved.
*/
version?: string;
}
/**
* A collection of values returned by getSecretVersionAccess.
*/
export interface GetSecretVersionAccessResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly isSecretDataBase64?: boolean;
/**
* The resource name of the SecretVersion. Format:
* `projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}`
*/
readonly name: string;
readonly project: string;
readonly secret: string;
/**
* The secret data. No larger than 64KiB.
*/
readonly secretData: string;
readonly version: string;
}
/**
* Get the value from a Secret Manager secret version. This is similar to the gcp.secretmanager.SecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions/access).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const basic = gcp.secretmanager.getSecretVersionAccess({
* secret: "my-secret",
* });
* ```
*/
export declare function getSecretVersionAccessOutput(args: GetSecretVersionAccessOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSecretVersionAccessResult>;
/**
* A collection of arguments for invoking getSecretVersionAccess.
*/
export interface GetSecretVersionAccessOutputArgs {
/**
* If set to 'true', the secret data is
* expected to be base64-encoded string.
*/
isSecretDataBase64?: pulumi.Input<boolean>;
/**
* The project to get the secret version for. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* The secret to get the secret version for.
*/
secret: pulumi.Input<string>;
/**
* The version of the secret to get. If it
* is not provided, the latest version is retrieved.
*/
version?: pulumi.Input<string>;
}