@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
92 lines (91 loc) • 2.53 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves the current IAM policy data for a Spanner database.
*
* ## example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.spanner.getDatabaseIamPolicy({
* project: database.project,
* database: database.name,
* instance: database.instance,
* });
* ```
*/
export declare function getDatabaseIamPolicy(args: GetDatabaseIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseIamPolicyResult>;
/**
* A collection of arguments for invoking getDatabaseIamPolicy.
*/
export interface GetDatabaseIamPolicyArgs {
/**
* The name of the Spanner database.
*/
database: string;
/**
* The name of the Spanner instance the database belongs to.
*/
instance: string;
/**
* The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getDatabaseIamPolicy.
*/
export interface GetDatabaseIamPolicyResult {
readonly database: string;
/**
* (Computed) The etag of the IAM policy.
*/
readonly etag: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instance: string;
/**
* (Computed) The policy data
*/
readonly policyData: string;
readonly project: string;
}
/**
* Retrieves the current IAM policy data for a Spanner database.
*
* ## example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.spanner.getDatabaseIamPolicy({
* project: database.project,
* database: database.name,
* instance: database.instance,
* });
* ```
*/
export declare function getDatabaseIamPolicyOutput(args: GetDatabaseIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseIamPolicyResult>;
/**
* A collection of arguments for invoking getDatabaseIamPolicy.
*/
export interface GetDatabaseIamPolicyOutputArgs {
/**
* The name of the Spanner database.
*/
database: pulumi.Input<string>;
/**
* The name of the Spanner instance the database belongs to.
*/
instance: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}