GetResourcePolicy

Provide access to a Resource Policy’s attributes. For more information see the official documentation or the API.

Using GetResourcePolicy

function getResourcePolicy(args: GetResourcePolicyArgs, opts?: InvokeOptions): Promise<GetResourcePolicyResult>
function  get_resource_policy(name=None, project=None, region=None, opts=None)
func LookupResourcePolicy(ctx *Context, args *LookupResourcePolicyArgs, opts ...InvokeOption) (*LookupResourcePolicyResult, error)

Note: This function is named LookupResourcePolicy in the Go SDK.

public static class GetResourcePolicy {
    public static Task<GetResourcePolicyResult> InvokeAsync(GetResourcePolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Resource Policy.

Region string

Region where the Resource Policy resides.

Project string

Project from which to list the Resource Policy. Defaults to project declared in the provider.

Name string

The name of the Resource Policy.

Region string

Region where the Resource Policy resides.

Project string

Project from which to list the Resource Policy. Defaults to project declared in the provider.

name string

The name of the Resource Policy.

region string

Region where the Resource Policy resides.

project string

Project from which to list the Resource Policy. Defaults to project declared in the provider.

name str

The name of the Resource Policy.

region str

Region where the Resource Policy resides.

project str

Project from which to list the Resource Policy. Defaults to project declared in the provider.

GetResourcePolicy Result

The following output properties are available:

Description string

Description of this Resource Policy.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Region string
SelfLink string

The URI of the resource.

Project string
Description string

Description of this Resource Policy.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Region string
SelfLink string

The URI of the resource.

Project string
description string

Description of this Resource Policy.

id string

The provider-assigned unique ID for this managed resource.

name string
region string
selfLink string

The URI of the resource.

project string
description str

Description of this Resource Policy.

id str

The provider-assigned unique ID for this managed resource.

name str
region str
self_link str

The URI of the resource.

project str

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.