@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
68 lines • 1.87 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves the current IAM policy data for a Google Cloud KMS crypto key.
*
* ## example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.kms.getCryptoKeyIamPolicy({
* cryptoKeyId: cryptoKey.id,
* });
* ```
*/
export declare function getCryptoKeyIamPolicy(args: GetCryptoKeyIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetCryptoKeyIamPolicyResult>;
/**
* A collection of arguments for invoking getCryptoKeyIamPolicy.
*/
export interface GetCryptoKeyIamPolicyArgs {
/**
* The crypto key ID, in the form
*/
cryptoKeyId: string;
}
/**
* A collection of values returned by getCryptoKeyIamPolicy.
*/
export interface GetCryptoKeyIamPolicyResult {
readonly cryptoKeyId: string;
/**
* (Computed) The etag of the IAM policy.
*/
readonly etag: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* (Computed) The policy data
*/
readonly policyData: string;
}
/**
* Retrieves the current IAM policy data for a Google Cloud KMS crypto key.
*
* ## example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.kms.getCryptoKeyIamPolicy({
* cryptoKeyId: cryptoKey.id,
* });
* ```
*/
export declare function getCryptoKeyIamPolicyOutput(args: GetCryptoKeyIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCryptoKeyIamPolicyResult>;
/**
* A collection of arguments for invoking getCryptoKeyIamPolicy.
*/
export interface GetCryptoKeyIamPolicyOutputArgs {
/**
* The crypto key ID, in the form
*/
cryptoKeyId: pulumi.Input<string>;
}
//# sourceMappingURL=getCryptoKeyIamPolicy.d.ts.map