Google Native

Pulumi Official
Package maintained by Pulumi
v0.23.0 published on Thursday, Aug 11, 2022 by Pulumi

FolderPolicy

Creates a Policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the policy already exists on the given Cloud resource. Auto-naming is currently not supported for this resource.

Create a FolderPolicy Resource

new FolderPolicy(name: string, args: FolderPolicyArgs, opts?: CustomResourceOptions);
@overload
def FolderPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 alternate: Optional[GoogleCloudOrgpolicyV2AlternatePolicySpecArgs] = None,
                 folder_id: Optional[str] = None,
                 name: Optional[str] = None,
                 spec: Optional[GoogleCloudOrgpolicyV2PolicySpecArgs] = None)
@overload
def FolderPolicy(resource_name: str,
                 args: FolderPolicyArgs,
                 opts: Optional[ResourceOptions] = None)
func NewFolderPolicy(ctx *Context, name string, args FolderPolicyArgs, opts ...ResourceOption) (*FolderPolicy, error)
public FolderPolicy(string name, FolderPolicyArgs args, CustomResourceOptions? opts = null)
public FolderPolicy(String name, FolderPolicyArgs args)
public FolderPolicy(String name, FolderPolicyArgs args, CustomResourceOptions options)
type: google-native:orgpolicy/v2:FolderPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FolderPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args FolderPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args FolderPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FolderPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FolderPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FolderPolicy Resource Properties

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

Inputs

The FolderPolicy resource accepts the following input properties:

FolderId string
Alternate Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2AlternatePolicySpecArgs

Deprecated.

Deprecated:

Deprecated.

Name string

Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * projects/{project_number}/policies/{constraint_name} * folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, "projects/123/policies/compute.disableSerialPortAccess". Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.

Spec Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecArgs

Basic information about the Organization Policy.

FolderId string
Alternate GoogleCloudOrgpolicyV2AlternatePolicySpecArgs

Deprecated.

Deprecated:

Deprecated.

Name string

Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * projects/{project_number}/policies/{constraint_name} * folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, "projects/123/policies/compute.disableSerialPortAccess". Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.

Spec GoogleCloudOrgpolicyV2PolicySpecArgs

Basic information about the Organization Policy.

folderId String
alternate GoogleCloudOrgpolicyV2AlternatePolicySpecArgs

Deprecated.

Deprecated:

Deprecated.

name String

Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * projects/{project_number}/policies/{constraint_name} * folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, "projects/123/policies/compute.disableSerialPortAccess". Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.

spec GoogleCloudOrgpolicyV2PolicySpecArgs

Basic information about the Organization Policy.

folderId string
alternate GoogleCloudOrgpolicyV2AlternatePolicySpecArgs

Deprecated.

Deprecated:

Deprecated.

name string

Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * projects/{project_number}/policies/{constraint_name} * folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, "projects/123/policies/compute.disableSerialPortAccess". Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.

spec GoogleCloudOrgpolicyV2PolicySpecArgs

Basic information about the Organization Policy.

folder_id str
alternate GoogleCloudOrgpolicyV2AlternatePolicySpecArgs

Deprecated.

Deprecated:

Deprecated.

name str

Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * projects/{project_number}/policies/{constraint_name} * folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, "projects/123/policies/compute.disableSerialPortAccess". Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.

spec GoogleCloudOrgpolicyV2PolicySpecArgs

Basic information about the Organization Policy.

folderId String
alternate Property Map

Deprecated.

Deprecated:

Deprecated.

name String

Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * projects/{project_number}/policies/{constraint_name} * folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, "projects/123/policies/compute.disableSerialPortAccess". Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.

spec Property Map

Basic information about the Organization Policy.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GoogleCloudOrgpolicyV2AlternatePolicySpec

Launch string

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

Spec Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpec

Specify Constraint for configurations of Cloud Platform resources.

Launch string

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

Spec GoogleCloudOrgpolicyV2PolicySpec

Specify Constraint for configurations of Cloud Platform resources.

launch String

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

spec GoogleCloudOrgpolicyV2PolicySpec

Specify Constraint for configurations of Cloud Platform resources.

launch string

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

spec GoogleCloudOrgpolicyV2PolicySpec

Specify Constraint for configurations of Cloud Platform resources.

launch str

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

spec GoogleCloudOrgpolicyV2PolicySpec

Specify Constraint for configurations of Cloud Platform resources.

launch String

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

spec Property Map

Specify Constraint for configurations of Cloud Platform resources.

GoogleCloudOrgpolicyV2AlternatePolicySpecResponse

Launch string

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

Spec Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecResponse

Specify Constraint for configurations of Cloud Platform resources.

Launch string

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

Spec GoogleCloudOrgpolicyV2PolicySpecResponse

Specify Constraint for configurations of Cloud Platform resources.

launch String

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

spec GoogleCloudOrgpolicyV2PolicySpecResponse

Specify Constraint for configurations of Cloud Platform resources.

launch string

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

spec GoogleCloudOrgpolicyV2PolicySpecResponse

Specify Constraint for configurations of Cloud Platform resources.

launch str

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

spec GoogleCloudOrgpolicyV2PolicySpecResponse

Specify Constraint for configurations of Cloud Platform resources.

launch String

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

spec Property Map

Specify Constraint for configurations of Cloud Platform resources.

GoogleCloudOrgpolicyV2PolicySpec

Etag string

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

InheritFromParent bool

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

Reset bool

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

Rules List<Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecPolicyRule>

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

Etag string

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

InheritFromParent bool

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

Reset bool

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

Rules []GoogleCloudOrgpolicyV2PolicySpecPolicyRule

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

etag String

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

inheritFromParent Boolean

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

reset Boolean

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

rules List<GoogleCloudOrgpolicyV2PolicySpecPolicyRule>

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

etag string

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

inheritFromParent boolean

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

reset boolean

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

rules GoogleCloudOrgpolicyV2PolicySpecPolicyRule[]

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

etag str

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

inherit_from_parent bool

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

reset bool

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

rules Sequence[GoogleCloudOrgpolicyV2PolicySpecPolicyRule]

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

etag String

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

inheritFromParent Boolean

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

reset Boolean

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

rules List<Property Map>

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

GoogleCloudOrgpolicyV2PolicySpecPolicyRule

AllowAll bool

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

Condition Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleTypeExpr

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

DenyAll bool

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

Enforce bool

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

Values Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

AllowAll bool

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

Condition GoogleTypeExpr

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

DenyAll bool

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

Enforce bool

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

Values GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

allowAll Boolean

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition GoogleTypeExpr

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

denyAll Boolean

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce Boolean

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

allowAll boolean

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition GoogleTypeExpr

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

denyAll boolean

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce boolean

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

allow_all bool

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition GoogleTypeExpr

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

deny_all bool

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce bool

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

allowAll Boolean

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition Property Map

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

denyAll Boolean

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce Boolean

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values Property Map

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse

AllowAll bool

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

Condition Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleTypeExprResponse

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

DenyAll bool

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

Enforce bool

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

Values Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

AllowAll bool

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

Condition GoogleTypeExprResponse

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

DenyAll bool

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

Enforce bool

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

Values GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

allowAll Boolean

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition GoogleTypeExprResponse

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

denyAll Boolean

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce Boolean

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

allowAll boolean

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition GoogleTypeExprResponse

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

denyAll boolean

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce boolean

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

allow_all bool

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition GoogleTypeExprResponse

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

deny_all bool

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce bool

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

allowAll Boolean

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition Property Map

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

denyAll Boolean

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce Boolean

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values Property Map

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

AllowedValues List<string>

List of values allowed at this resource.

DeniedValues List<string>

List of values denied at this resource.

AllowedValues []string

List of values allowed at this resource.

DeniedValues []string

List of values denied at this resource.

allowedValues List<String>

List of values allowed at this resource.

deniedValues List<String>

List of values denied at this resource.

allowedValues string[]

List of values allowed at this resource.

deniedValues string[]

List of values denied at this resource.

allowed_values Sequence[str]

List of values allowed at this resource.

denied_values Sequence[str]

List of values denied at this resource.

allowedValues List<String>

List of values allowed at this resource.

deniedValues List<String>

List of values denied at this resource.

GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse

AllowedValues List<string>

List of values allowed at this resource.

DeniedValues List<string>

List of values denied at this resource.

AllowedValues []string

List of values allowed at this resource.

DeniedValues []string

List of values denied at this resource.

allowedValues List<String>

List of values allowed at this resource.

deniedValues List<String>

List of values denied at this resource.

allowedValues string[]

List of values allowed at this resource.

deniedValues string[]

List of values denied at this resource.

allowed_values Sequence[str]

List of values allowed at this resource.

denied_values Sequence[str]

List of values denied at this resource.

allowedValues List<String>

List of values allowed at this resource.

deniedValues List<String>

List of values denied at this resource.

GoogleCloudOrgpolicyV2PolicySpecResponse

Etag string

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

InheritFromParent bool

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

Reset bool

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

Rules List<Pulumi.GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse>

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

UpdateTime string

The time stamp this was previously updated. This represents the last time a call to CreatePolicy or UpdatePolicy was made for that Policy.

Etag string

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

InheritFromParent bool

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

Reset bool

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

Rules []GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

UpdateTime string

The time stamp this was previously updated. This represents the last time a call to CreatePolicy or UpdatePolicy was made for that Policy.

etag String

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

inheritFromParent Boolean

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

reset Boolean

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

rules List<GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse>

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

updateTime String

The time stamp this was previously updated. This represents the last time a call to CreatePolicy or UpdatePolicy was made for that Policy.

etag string

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

inheritFromParent boolean

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

reset boolean

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

rules GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse[]

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

updateTime string

The time stamp this was previously updated. This represents the last time a call to CreatePolicy or UpdatePolicy was made for that Policy.

etag str

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

inherit_from_parent bool

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

reset bool

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

rules Sequence[GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse]

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

update_time str

The time stamp this was previously updated. This represents the last time a call to CreatePolicy or UpdatePolicy was made for that Policy.

etag String

An opaque tag indicating the current version of the Policy, used for concurrency control. This field is ignored if used in a CreatePolicy request. When the Policy is returned from either a GetPolicy or a ListPolicies request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset.

inheritFromParent Boolean

Determines the inheritance behavior for this Policy. If inherit_from_parent is true, PolicyRules set higher up in the hierarchy (up to the closest root) are inherited and present in the effective policy. If it is false, then no rules are inherited, and this Policy becomes the new root for evaluation. This field can be set only for Policies which configure list constraints.

reset Boolean

Ignores policies set above this resource and restores the constraint_default enforcement behavior of the specific Constraint at this resource. This field can be set in policies for either list or boolean constraints. If set, rules must be empty and inherit_from_parent must be set to false.

rules List<Property Map>

Up to 10 PolicyRules are allowed. In Policies for boolean constraints, the following requirements apply: - There must be one and only one PolicyRule where condition is unset. - BooleanPolicyRules with conditions must set enforced to the opposite of the PolicyRule without a condition. - During policy evaluation, PolicyRules with conditions that are true for a target resource take precedence.

updateTime String

The time stamp this was previously updated. This represents the last time a call to CreatePolicy or UpdatePolicy was made for that Policy.

GoogleTypeExpr

Description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Expression string

Textual representation of an expression in Common Expression Language syntax.

Location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

Description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Expression string

Textual representation of an expression in Common Expression Language syntax.

Location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description String

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression String

Textual representation of an expression in Common Expression Language syntax.

location String

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title String

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression string

Textual representation of an expression in Common Expression Language syntax.

location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description str

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression str

Textual representation of an expression in Common Expression Language syntax.

location str

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title str

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description String

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression String

Textual representation of an expression in Common Expression Language syntax.

location String

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title String

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

GoogleTypeExprResponse

Description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Expression string

Textual representation of an expression in Common Expression Language syntax.

Location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

Description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Expression string

Textual representation of an expression in Common Expression Language syntax.

Location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description String

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression String

Textual representation of an expression in Common Expression Language syntax.

location String

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title String

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description string

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression string

Textual representation of an expression in Common Expression Language syntax.

location string

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title string

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description str

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression str

Textual representation of an expression in Common Expression Language syntax.

location str

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title str

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

description String

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

expression String

Textual representation of an expression in Common Expression Language syntax.

location String

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

title String

Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

Package Details

Repository
https://github.com/pulumi/pulumi-google-native
License
Apache-2.0