OrganizationPolicy

Allows management of Organization policies for a Google Folder. For more information see the official documentation and API.

Create a OrganizationPolicy Resource

def OrganizationPolicy(resource_name, opts=None, boolean_policy=None, constraint=None, folder=None, list_policy=None, restore_policy=None, version=None, __props__=None);
name string
The unique name of the resource.
args OrganizationPolicyArgs
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 OrganizationPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args OrganizationPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

OrganizationPolicy Resource Properties

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

Inputs

The OrganizationPolicy resource accepts the following input properties:

Constraint string

The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

Folder string

The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

BooleanPolicy OrganizationPolicyBooleanPolicyArgs

A boolean policy is a constraint that is either enforced or not. Structure is documented below.

ListPolicy OrganizationPolicyListPolicyArgs

A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.

RestorePolicy OrganizationPolicyRestorePolicyArgs

A restore policy is a constraint to restore the default policy. Structure is documented below.

Version int

Version of the Policy. Default version is 0.

Constraint string

The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

Folder string

The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

BooleanPolicy OrganizationPolicyBooleanPolicy

A boolean policy is a constraint that is either enforced or not. Structure is documented below.

ListPolicy OrganizationPolicyListPolicy

A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.

RestorePolicy OrganizationPolicyRestorePolicy

A restore policy is a constraint to restore the default policy. Structure is documented below.

Version int

Version of the Policy. Default version is 0.

constraint string

The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

folder string

The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

booleanPolicy OrganizationPolicyBooleanPolicy

A boolean policy is a constraint that is either enforced or not. Structure is documented below.

listPolicy OrganizationPolicyListPolicy

A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.

restorePolicy OrganizationPolicyRestorePolicy

A restore policy is a constraint to restore the default policy. Structure is documented below.

version number

Version of the Policy. Default version is 0.

constraint str

The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

folder str

The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

boolean_policy Dict[OrganizationPolicyBooleanPolicy]

A boolean policy is a constraint that is either enforced or not. Structure is documented below.

list_policy Dict[OrganizationPolicyListPolicy]

A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.

restore_policy Dict[OrganizationPolicyRestorePolicy]

A restore policy is a constraint to restore the default policy. Structure is documented below.

version float

Version of the Policy. Default version is 0.

Outputs

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

Etag string

(Computed) The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.

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

(Computed) The timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds, representing when the variable was last updated. Example: “2016-10-09T12:33:37.578138407Z”.

Etag string

(Computed) The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.

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

(Computed) The timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds, representing when the variable was last updated. Example: “2016-10-09T12:33:37.578138407Z”.

etag string

(Computed) The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.

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

(Computed) The timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds, representing when the variable was last updated. Example: “2016-10-09T12:33:37.578138407Z”.

etag str

(Computed) The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.

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

(Computed) The timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds, representing when the variable was last updated. Example: “2016-10-09T12:33:37.578138407Z”.

Look up an Existing OrganizationPolicy Resource

Get an existing OrganizationPolicy 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?: OrganizationPolicyState, opts?: CustomResourceOptions): OrganizationPolicy
static get(resource_name, id, opts=None, boolean_policy=None, constraint=None, etag=None, folder=None, list_policy=None, restore_policy=None, update_time=None, version=None, __props__=None);
func GetOrganizationPolicy(ctx *Context, name string, id IDInput, state *OrganizationPolicyState, opts ...ResourceOption) (*OrganizationPolicy, error)
public static OrganizationPolicy Get(string name, Input<string> id, OrganizationPolicyState? 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:

BooleanPolicy OrganizationPolicyBooleanPolicyArgs

A boolean policy is a constraint that is either enforced or not. Structure is documented below.

Constraint string

The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

Etag string

(Computed) The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.

Folder string

The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

ListPolicy OrganizationPolicyListPolicyArgs

A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.

RestorePolicy OrganizationPolicyRestorePolicyArgs

A restore policy is a constraint to restore the default policy. Structure is documented below.

UpdateTime string

(Computed) The timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds, representing when the variable was last updated. Example: “2016-10-09T12:33:37.578138407Z”.

Version int

Version of the Policy. Default version is 0.

BooleanPolicy OrganizationPolicyBooleanPolicy

A boolean policy is a constraint that is either enforced or not. Structure is documented below.

Constraint string

The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

Etag string

(Computed) The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.

Folder string

The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

ListPolicy OrganizationPolicyListPolicy

A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.

RestorePolicy OrganizationPolicyRestorePolicy

A restore policy is a constraint to restore the default policy. Structure is documented below.

UpdateTime string

(Computed) The timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds, representing when the variable was last updated. Example: “2016-10-09T12:33:37.578138407Z”.

Version int

Version of the Policy. Default version is 0.

booleanPolicy OrganizationPolicyBooleanPolicy

A boolean policy is a constraint that is either enforced or not. Structure is documented below.

constraint string

The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

etag string

(Computed) The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.

folder string

The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

listPolicy OrganizationPolicyListPolicy

A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.

restorePolicy OrganizationPolicyRestorePolicy

A restore policy is a constraint to restore the default policy. Structure is documented below.

updateTime string

(Computed) The timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds, representing when the variable was last updated. Example: “2016-10-09T12:33:37.578138407Z”.

version number

Version of the Policy. Default version is 0.

boolean_policy Dict[OrganizationPolicyBooleanPolicy]

A boolean policy is a constraint that is either enforced or not. Structure is documented below.

constraint str

The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

etag str

(Computed) The etag of the organization policy. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.

folder str

The resource name of the folder to set the policy for. Its format is folders/{folder_id}.

list_policy Dict[OrganizationPolicyListPolicy]

A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.

restore_policy Dict[OrganizationPolicyRestorePolicy]

A restore policy is a constraint to restore the default policy. Structure is documented below.

update_time str

(Computed) The timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds, representing when the variable was last updated. Example: “2016-10-09T12:33:37.578138407Z”.

version float

Version of the Policy. Default version is 0.

Supporting Types

OrganizationPolicyBooleanPolicy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Enforced bool

If true, then the Policy is enforced. If false, then any configuration is acceptable.

Enforced bool

If true, then the Policy is enforced. If false, then any configuration is acceptable.

enforced boolean

If true, then the Policy is enforced. If false, then any configuration is acceptable.

enforced bool

If true, then the Policy is enforced. If false, then any configuration is acceptable.

OrganizationPolicyListPolicy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Allow OrganizationPolicyListPolicyAllowArgs

or deny - (Optional) One or the other must be set.

Deny OrganizationPolicyListPolicyDenyArgs
InheritFromParent bool

If set to true, the values from the effective Policy of the parent resource are inherited, meaning the values set in this Policy are added to the values inherited up the hierarchy.

SuggestedValue string

The Google Cloud Console will try to default to a configuration that matches the value specified in this field.

Allow OrganizationPolicyListPolicyAllow

or deny - (Optional) One or the other must be set.

Deny OrganizationPolicyListPolicyDeny
InheritFromParent bool

If set to true, the values from the effective Policy of the parent resource are inherited, meaning the values set in this Policy are added to the values inherited up the hierarchy.

SuggestedValue string

The Google Cloud Console will try to default to a configuration that matches the value specified in this field.

allow OrganizationPolicyListPolicyAllow

or deny - (Optional) One or the other must be set.

deny OrganizationPolicyListPolicyDeny
inheritFromParent boolean

If set to true, the values from the effective Policy of the parent resource are inherited, meaning the values set in this Policy are added to the values inherited up the hierarchy.

suggestedValue string

The Google Cloud Console will try to default to a configuration that matches the value specified in this field.

allow Dict[OrganizationPolicyListPolicyAllow]

or deny - (Optional) One or the other must be set.

deny Dict[OrganizationPolicyListPolicyDeny]
inheritFromParent bool

If set to true, the values from the effective Policy of the parent resource are inherited, meaning the values set in this Policy are added to the values inherited up the hierarchy.

suggestedValue str

The Google Cloud Console will try to default to a configuration that matches the value specified in this field.

OrganizationPolicyListPolicyAllow

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

All bool

The policy allows or denies all values.

Values List<string>

The policy can define specific values that are allowed or denied.

All bool

The policy allows or denies all values.

Values []string

The policy can define specific values that are allowed or denied.

all boolean

The policy allows or denies all values.

values string[]

The policy can define specific values that are allowed or denied.

all bool

The policy allows or denies all values.

values List[str]

The policy can define specific values that are allowed or denied.

OrganizationPolicyListPolicyDeny

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

All bool

The policy allows or denies all values.

Values List<string>

The policy can define specific values that are allowed or denied.

All bool

The policy allows or denies all values.

Values []string

The policy can define specific values that are allowed or denied.

all boolean

The policy allows or denies all values.

values string[]

The policy can define specific values that are allowed or denied.

all bool

The policy allows or denies all values.

values List[str]

The policy can define specific values that are allowed or denied.

OrganizationPolicyRestorePolicy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Default bool

May only be set to true. If set, then the default Policy is restored.

Default bool

May only be set to true. If set, then the default Policy is restored.

default boolean

May only be set to true. If set, then the default Policy is restored.

default bool

May only be set to true. If set, then the default Policy is restored.

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.