@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
69 lines (68 loc) • 1.97 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves the current IAM policy data for service
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.endpoints.getServiceIamPolicy({
* serviceName: endpointsService.serviceName,
* });
* ```
*/
export declare function getServiceIamPolicy(args: GetServiceIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceIamPolicyResult>;
/**
* A collection of arguments for invoking getServiceIamPolicy.
*/
export interface GetServiceIamPolicyArgs {
/**
* Used to find the parent resource to bind the IAM policy to
*/
serviceName: string;
}
/**
* A collection of values returned by getServiceIamPolicy.
*/
export interface GetServiceIamPolicyResult {
/**
* (Computed) The etag of the IAM policy.
*/
readonly etag: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* (Required only by `gcp.endpoints.ServiceIamPolicy`) The policy data generated by
* a `gcp.organizations.getIAMPolicy` data source.
*/
readonly policyData: string;
readonly serviceName: string;
}
/**
* Retrieves the current IAM policy data for service
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.endpoints.getServiceIamPolicy({
* serviceName: endpointsService.serviceName,
* });
* ```
*/
export declare function getServiceIamPolicyOutput(args: GetServiceIamPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceIamPolicyResult>;
/**
* A collection of arguments for invoking getServiceIamPolicy.
*/
export interface GetServiceIamPolicyOutputArgs {
/**
* Used to find the parent resource to bind the IAM policy to
*/
serviceName: pulumi.Input<string>;
}