Show / Hide Table of Contents

Class 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:

  • API documentation
  • How-to Guides
  • Access Policy Quickstart

Example Usage - Access Context Manager Access Policy Basic

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var access_policy = new Gcp.AccessContextManager.AccessPolicy("access-policy", new Gcp.AccessContextManager.AccessPolicyArgs
    {
        Parent = "organizations/123456789",
        Title = "my policy",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AccessPolicy
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.AccessContextManager
Assembly: Pulumi.Gcp.dll
Syntax
public class AccessPolicy : CustomResource

Constructors

View Source

AccessPolicy(String, AccessPolicyArgs, CustomResourceOptions)

Create a AccessPolicy resource with the given unique name, arguments, and options.

Declaration
public AccessPolicy(string name, AccessPolicyArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

AccessPolicyArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CreateTime

Time the AccessPolicy was created in UTC.

Declaration
public Output<string> CreateTime { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Resource name of the AccessPolicy. Format: {policy_id}

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Parent

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

Declaration
public Output<string> Parent { get; }
Property Value
Type Description
Output<System.String>
View Source

Title

Human readable title. Does not affect behavior.

Declaration
public Output<string> Title { get; }
Property Value
Type Description
Output<System.String>
View Source

UpdateTime

Time the AccessPolicy was updated in UTC.

Declaration
public Output<string> UpdateTime { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, AccessPolicyState, CustomResourceOptions)

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

Declaration
public static AccessPolicy Get(string name, Input<string> id, AccessPolicyState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

AccessPolicyState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
AccessPolicy
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.