@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
85 lines • 2.69 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get information about an Access Context Manager AccessPolicy.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy_org = gcp.accesscontextmanager.getAccessPolicy({
* parent: "organizations/1234567",
* });
* const policy_scoped = gcp.accesscontextmanager.getAccessPolicy({
* parent: "organizations/1234567",
* scopes: ["projects/1234567"],
* });
* ```
*/
export declare function getAccessPolicy(args: GetAccessPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetAccessPolicyResult>;
/**
* A collection of arguments for invoking getAccessPolicy.
*/
export interface GetAccessPolicyArgs {
/**
* The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: `organizations/{{organization_id}}`
*/
parent: string;
/**
* Folder or project on which this policy is applicable. Format: `folders/{{folder_id}}` or `projects/{{project_number}}`
*/
scopes?: string[];
}
/**
* A collection of values returned by getAccessPolicy.
*/
export interface GetAccessPolicyResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Resource name of the AccessPolicy.
*/
readonly name: string;
readonly parent: string;
readonly scopes?: string[];
/**
* Human readable title. Does not affect behavior.
*/
readonly title: string;
}
/**
* Get information about an Access Context Manager AccessPolicy.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy_org = gcp.accesscontextmanager.getAccessPolicy({
* parent: "organizations/1234567",
* });
* const policy_scoped = gcp.accesscontextmanager.getAccessPolicy({
* parent: "organizations/1234567",
* scopes: ["projects/1234567"],
* });
* ```
*/
export declare function getAccessPolicyOutput(args: GetAccessPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccessPolicyResult>;
/**
* A collection of arguments for invoking getAccessPolicy.
*/
export interface GetAccessPolicyOutputArgs {
/**
* The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: `organizations/{{organization_id}}`
*/
parent: pulumi.Input<string>;
/**
* Folder or project on which this policy is applicable. Format: `folders/{{folder_id}}` or `projects/{{project_number}}`
*/
scopes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
//# sourceMappingURL=getAccessPolicy.d.ts.map