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",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.AccessContextManager
Assembly: Pulumi.Gcp.dll
Syntax
public class AccessPolicy : CustomResource
Constructors
View SourceAccessPolicy(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 SourceCreateTime
Time the AccessPolicy was created in UTC.
Declaration
public Output<string> CreateTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Resource name of the AccessPolicy. Format: {policy_id}
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
Title
Human readable title. Does not affect behavior.
Declaration
public Output<string> Title { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UpdateTime
Time the AccessPolicy was updated in UTC.
Declaration
public Output<string> UpdateTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |