AccessPolicy

AccessPolicy is a container for AccessLevels (which define the necessary attributes to use GCP services) and ServicePerimeters (which define regions of services able to freely pass data within a perimeter). An access policy is globally visible within an organization, and the restrictions it specifies apply to all projects within an organization.

To get more information about AccessPolicy, see:

Create a AccessPolicy Resource

def AccessPolicy(resource_name, opts=None, parent=None, title=None, __props__=None);
func NewAccessPolicy(ctx *Context, name string, args AccessPolicyArgs, opts ...ResourceOption) (*AccessPolicy, error)
name string
The unique name of the resource.
args AccessPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AccessPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccessPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AccessPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The AccessPolicy resource accepts the following input properties:

Parent string

The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id}

Title string

Human readable title. Does not affect behavior.

Parent string

The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id}

Title string

Human readable title. Does not affect behavior.

parent string

The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id}

title string

Human readable title. Does not affect behavior.

parent str

The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id}

title str

Human readable title. Does not affect behavior.

Outputs

All input properties are implicitly available as output properties. Additionally, the AccessPolicy resource produces the following output properties:

CreateTime string

Time the AccessPolicy was created in UTC.

Id string
The provider-assigned unique ID for this managed resource.
Name string

Resource name of the AccessPolicy. Format: {policy_id}

UpdateTime string

Time the AccessPolicy was updated in UTC.

CreateTime string

Time the AccessPolicy was created in UTC.

Id string
The provider-assigned unique ID for this managed resource.
Name string

Resource name of the AccessPolicy. Format: {policy_id}

UpdateTime string

Time the AccessPolicy was updated in UTC.

createTime string

Time the AccessPolicy was created in UTC.

id string
The provider-assigned unique ID for this managed resource.
name string

Resource name of the AccessPolicy. Format: {policy_id}

updateTime string

Time the AccessPolicy was updated in UTC.

create_time str

Time the AccessPolicy was created in UTC.

id str
The provider-assigned unique ID for this managed resource.
name str

Resource name of the AccessPolicy. Format: {policy_id}

update_time str

Time the AccessPolicy was updated in UTC.

Look up an Existing AccessPolicy Resource

Get an existing AccessPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccessPolicyState, opts?: CustomResourceOptions): AccessPolicy
static get(resource_name, id, opts=None, create_time=None, name=None, parent=None, title=None, update_time=None, __props__=None);
func GetAccessPolicy(ctx *Context, name string, id IDInput, state *AccessPolicyState, opts ...ResourceOption) (*AccessPolicy, error)
public static AccessPolicy Get(string name, Input<string> id, AccessPolicyState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CreateTime string

Time the AccessPolicy was created in UTC.

Name string

Resource name of the AccessPolicy. Format: {policy_id}

Parent string

The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id}

Title string

Human readable title. Does not affect behavior.

UpdateTime string

Time the AccessPolicy was updated in UTC.

CreateTime string

Time the AccessPolicy was created in UTC.

Name string

Resource name of the AccessPolicy. Format: {policy_id}

Parent string

The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id}

Title string

Human readable title. Does not affect behavior.

UpdateTime string

Time the AccessPolicy was updated in UTC.

createTime string

Time the AccessPolicy was created in UTC.

name string

Resource name of the AccessPolicy. Format: {policy_id}

parent string

The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id}

title string

Human readable title. Does not affect behavior.

updateTime string

Time the AccessPolicy was updated in UTC.

create_time str

Time the AccessPolicy was created in UTC.

name str

Resource name of the AccessPolicy. Format: {policy_id}

parent str

The parent of this AccessPolicy in the Cloud Resource Hierarchy. Format: organizations/{organization_id}

title str

Human readable title. Does not affect behavior.

update_time str

Time the AccessPolicy was updated in UTC.

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.