Show / Hide Table of Contents

Class AccessLevel

An AccessLevel is a label that can be applied to requests to GCP services, along with a list of requirements necessary for the label to be applied.

To get more information about AccessLevel, see:

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

Example Usage - Access Context Manager Access Level 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",
    });
    var access_level = new Gcp.AccessContextManager.AccessLevel("access-level", new Gcp.AccessContextManager.AccessLevelArgs
    {
        Basic = new Gcp.AccessContextManager.Inputs.AccessLevelBasicArgs
        {
            Conditions = 
            {
                new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionArgs
                {
                    DevicePolicy = new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyArgs
                    {
                        OsConstraints = 
                        {
                            new Gcp.AccessContextManager.Inputs.AccessLevelBasicConditionDevicePolicyOsConstraintArgs
                            {
                                OsType = "DESKTOP_CHROME_OS",
                            },
                        },
                        RequireScreenLock = true,
                    },
                    Regions = 
                    {
                        "CH",
                        "IT",
                        "US",
                    },
                },
            },
        },
        Parent = access_policy.Name.Apply(name => $"accessPolicies/{name}"),
        Title = "chromeos_no_lock",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AccessLevel
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 AccessLevel : CustomResource

Constructors

View Source

AccessLevel(String, AccessLevelArgs, CustomResourceOptions)

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

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

The unique name of the resource

AccessLevelArgs 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

Basic

A set of predefined conditions for the access level and a combining function. Structure is documented below.

Declaration
public Output<AccessLevelBasic> Basic { get; }
Property Value
Type Description
Output<AccessLevelBasic>
View Source

Description

Description of the AccessLevel and its use. Does not affect behavior.

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

Name

Resource name for the Access Level. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{policy_id}/accessLevels/{short_name}

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

Parent

The AccessPolicy this AccessLevel lives in. Format: accessPolicies/{policy_id}

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

Title

Human readable title. Must be unique within the Policy.

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

Methods

View Source

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

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

Declaration
public static AccessLevel Get(string name, Input<string> id, AccessLevelState 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.

AccessLevelState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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