Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.orgpolicy/v2.OrganizationPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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 Google Cloud resource.
Auto-naming is currently not supported for this resource.
Create OrganizationPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationPolicy(name: string, args: OrganizationPolicyArgs, opts?: CustomResourceOptions);
@overload
def OrganizationPolicy(resource_name: str,
args: OrganizationPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
alternate: Optional[GoogleCloudOrgpolicyV2AlternatePolicySpecArgs] = None,
dry_run_spec: Optional[GoogleCloudOrgpolicyV2PolicySpecArgs] = None,
name: Optional[str] = None,
spec: Optional[GoogleCloudOrgpolicyV2PolicySpecArgs] = None)
func NewOrganizationPolicy(ctx *Context, name string, args OrganizationPolicyArgs, opts ...ResourceOption) (*OrganizationPolicy, error)
public OrganizationPolicy(string name, OrganizationPolicyArgs args, CustomResourceOptions? opts = null)
public OrganizationPolicy(String name, OrganizationPolicyArgs args)
public OrganizationPolicy(String name, OrganizationPolicyArgs args, CustomResourceOptions options)
type: google-native:orgpolicy/v2:OrganizationPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args OrganizationPolicyArgs
- 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 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.
- name String
- The unique name of the resource.
- args OrganizationPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var organizationPolicyResource = new GoogleNative.Orgpolicy.V2.OrganizationPolicy("organizationPolicyResource", new()
{
OrganizationId = "string",
DryRunSpec = new GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecArgs
{
Etag = "string",
InheritFromParent = false,
Reset = false,
Rules = new[]
{
new GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs
{
AllowAll = false,
Condition = new GoogleNative.Orgpolicy.V2.Inputs.GoogleTypeExprArgs
{
Description = "string",
Expression = "string",
Location = "string",
Title = "string",
},
DenyAll = false,
Enforce = false,
Values = new GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs
{
AllowedValues = new[]
{
"string",
},
DeniedValues = new[]
{
"string",
},
},
},
},
},
Name = "string",
Spec = new GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecArgs
{
Etag = "string",
InheritFromParent = false,
Reset = false,
Rules = new[]
{
new GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs
{
AllowAll = false,
Condition = new GoogleNative.Orgpolicy.V2.Inputs.GoogleTypeExprArgs
{
Description = "string",
Expression = "string",
Location = "string",
Title = "string",
},
DenyAll = false,
Enforce = false,
Values = new GoogleNative.Orgpolicy.V2.Inputs.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs
{
AllowedValues = new[]
{
"string",
},
DeniedValues = new[]
{
"string",
},
},
},
},
},
});
example, err := orgpolicy.NewOrganizationPolicy(ctx, "organizationPolicyResource", &orgpolicy.OrganizationPolicyArgs{
OrganizationId: pulumi.String("string"),
DryRunSpec: &orgpolicy.GoogleCloudOrgpolicyV2PolicySpecArgs{
Etag: pulumi.String("string"),
InheritFromParent: pulumi.Bool(false),
Reset: pulumi.Bool(false),
Rules: orgpolicy.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArray{
&orgpolicy.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs{
AllowAll: pulumi.Bool(false),
Condition: &orgpolicy.GoogleTypeExprArgs{
Description: pulumi.String("string"),
Expression: pulumi.String("string"),
Location: pulumi.String("string"),
Title: pulumi.String("string"),
},
DenyAll: pulumi.Bool(false),
Enforce: pulumi.Bool(false),
Values: &orgpolicy.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs{
AllowedValues: pulumi.StringArray{
pulumi.String("string"),
},
DeniedValues: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
Name: pulumi.String("string"),
Spec: &orgpolicy.GoogleCloudOrgpolicyV2PolicySpecArgs{
Etag: pulumi.String("string"),
InheritFromParent: pulumi.Bool(false),
Reset: pulumi.Bool(false),
Rules: orgpolicy.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArray{
&orgpolicy.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs{
AllowAll: pulumi.Bool(false),
Condition: &orgpolicy.GoogleTypeExprArgs{
Description: pulumi.String("string"),
Expression: pulumi.String("string"),
Location: pulumi.String("string"),
Title: pulumi.String("string"),
},
DenyAll: pulumi.Bool(false),
Enforce: pulumi.Bool(false),
Values: &orgpolicy.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs{
AllowedValues: pulumi.StringArray{
pulumi.String("string"),
},
DeniedValues: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
})
var organizationPolicyResource = new OrganizationPolicy("organizationPolicyResource", OrganizationPolicyArgs.builder()
.organizationId("string")
.dryRunSpec(GoogleCloudOrgpolicyV2PolicySpecArgs.builder()
.etag("string")
.inheritFromParent(false)
.reset(false)
.rules(GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs.builder()
.allowAll(false)
.condition(GoogleTypeExprArgs.builder()
.description("string")
.expression("string")
.location("string")
.title("string")
.build())
.denyAll(false)
.enforce(false)
.values(GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs.builder()
.allowedValues("string")
.deniedValues("string")
.build())
.build())
.build())
.name("string")
.spec(GoogleCloudOrgpolicyV2PolicySpecArgs.builder()
.etag("string")
.inheritFromParent(false)
.reset(false)
.rules(GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs.builder()
.allowAll(false)
.condition(GoogleTypeExprArgs.builder()
.description("string")
.expression("string")
.location("string")
.title("string")
.build())
.denyAll(false)
.enforce(false)
.values(GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs.builder()
.allowedValues("string")
.deniedValues("string")
.build())
.build())
.build())
.build());
organization_policy_resource = google_native.orgpolicy.v2.OrganizationPolicy("organizationPolicyResource",
organization_id="string",
dry_run_spec={
"etag": "string",
"inherit_from_parent": False,
"reset": False,
"rules": [{
"allow_all": False,
"condition": {
"description": "string",
"expression": "string",
"location": "string",
"title": "string",
},
"deny_all": False,
"enforce": False,
"values": {
"allowed_values": ["string"],
"denied_values": ["string"],
},
}],
},
name="string",
spec={
"etag": "string",
"inherit_from_parent": False,
"reset": False,
"rules": [{
"allow_all": False,
"condition": {
"description": "string",
"expression": "string",
"location": "string",
"title": "string",
},
"deny_all": False,
"enforce": False,
"values": {
"allowed_values": ["string"],
"denied_values": ["string"],
},
}],
})
const organizationPolicyResource = new google_native.orgpolicy.v2.OrganizationPolicy("organizationPolicyResource", {
organizationId: "string",
dryRunSpec: {
etag: "string",
inheritFromParent: false,
reset: false,
rules: [{
allowAll: false,
condition: {
description: "string",
expression: "string",
location: "string",
title: "string",
},
denyAll: false,
enforce: false,
values: {
allowedValues: ["string"],
deniedValues: ["string"],
},
}],
},
name: "string",
spec: {
etag: "string",
inheritFromParent: false,
reset: false,
rules: [{
allowAll: false,
condition: {
description: "string",
expression: "string",
location: "string",
title: "string",
},
denyAll: false,
enforce: false,
values: {
allowedValues: ["string"],
deniedValues: ["string"],
},
}],
},
});
type: google-native:orgpolicy/v2:OrganizationPolicy
properties:
dryRunSpec:
etag: string
inheritFromParent: false
reset: false
rules:
- allowAll: false
condition:
description: string
expression: string
location: string
title: string
denyAll: false
enforce: false
values:
allowedValues:
- string
deniedValues:
- string
name: string
organizationId: string
spec:
etag: string
inheritFromParent: false
reset: false
rules:
- allowAll: false
condition:
description: string
expression: string
location: string
title: string
denyAll: false
enforce: false
values:
allowedValues:
- string
deniedValues:
- string
OrganizationPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OrganizationPolicy resource accepts the following input properties:
- Organization
Id string - Alternate
Pulumi.
Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Alternate Policy Spec - Deprecated.
- Dry
Run Pulumi.Spec Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Policy Spec - Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.
- 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.
Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Policy Spec - Basic information about the Organization Policy.
- Organization
Id string - Alternate
Google
Cloud Orgpolicy V2Alternate Policy Spec Args - Deprecated.
- Dry
Run GoogleSpec Cloud Orgpolicy V2Policy Spec Args - Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.
- 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
Google
Cloud Orgpolicy V2Policy Spec Args - Basic information about the Organization Policy.
- organization
Id String - alternate
Google
Cloud Orgpolicy V2Alternate Policy Spec - Deprecated.
- dry
Run GoogleSpec Cloud Orgpolicy V2Policy Spec - Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.
- 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
Google
Cloud Orgpolicy V2Policy Spec - Basic information about the Organization Policy.
- organization
Id string - alternate
Google
Cloud Orgpolicy V2Alternate Policy Spec - Deprecated.
- dry
Run GoogleSpec Cloud Orgpolicy V2Policy Spec - Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.
- 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
Google
Cloud Orgpolicy V2Policy Spec - Basic information about the Organization Policy.
- organization_
id str - alternate
Google
Cloud Orgpolicy V2Alternate Policy Spec Args - Deprecated.
- dry_
run_ Googlespec Cloud Orgpolicy V2Policy Spec Args - Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.
- 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
Google
Cloud Orgpolicy V2Policy Spec Args - Basic information about the Organization Policy.
- organization
Id String - alternate Property Map
- Deprecated.
- dry
Run Property MapSpec - Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.
- 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 OrganizationPolicy 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, GoogleCloudOrgpolicyV2AlternatePolicySpecArgs
- 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.
Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Policy Spec - Specify constraint for configurations of Google Cloud 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
Google
Cloud Orgpolicy V2Policy Spec - Specify constraint for configurations of Google Cloud 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
Google
Cloud Orgpolicy V2Policy Spec - Specify constraint for configurations of Google Cloud 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
Google
Cloud Orgpolicy V2Policy Spec - Specify constraint for configurations of Google Cloud 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
Google
Cloud Orgpolicy V2Policy Spec - Specify constraint for configurations of Google Cloud 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 Google Cloud resources.
GoogleCloudOrgpolicyV2AlternatePolicySpecResponse, GoogleCloudOrgpolicyV2AlternatePolicySpecResponseArgs
- 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.
Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Policy Spec Response - Specify constraint for configurations of Google Cloud 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
Google
Cloud Orgpolicy V2Policy Spec Response - Specify constraint for configurations of Google Cloud 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
Google
Cloud Orgpolicy V2Policy Spec Response - Specify constraint for configurations of Google Cloud 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
Google
Cloud Orgpolicy V2Policy Spec Response - Specify constraint for configurations of Google Cloud 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
Google
Cloud Orgpolicy V2Policy Spec Response - Specify constraint for configurations of Google Cloud 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 Google Cloud resources.
GoogleCloudOrgpolicyV2PolicySpec, GoogleCloudOrgpolicyV2PolicySpecArgs
- 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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - Inherit
From boolParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - Rules
List<Pulumi.
Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Policy Spec Policy Rule> - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules 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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - Inherit
From boolParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - Rules
[]Google
Cloud Orgpolicy V2Policy Spec Policy Rule - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules 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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - inherit
From BooleanParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - rules
List<Google
Cloud Orgpolicy V2Policy Spec Policy Rule> - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules 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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - inherit
From booleanParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - rules
Google
Cloud Orgpolicy V2Policy Spec Policy Rule[] - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules 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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - inherit_
from_ boolparent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - rules
Sequence[Google
Cloud Orgpolicy V2Policy Spec Policy Rule] - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules 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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - inherit
From BooleanParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - rules List<Property Map>
- In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence.
GoogleCloudOrgpolicyV2PolicySpecPolicyRule, GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs
- 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
Pulumi.
Google Native. Orgpolicy. V2. Inputs. Google Type Expr - 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - Values
Pulumi.
Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Policy Spec Policy Rule String Values - List of values to be used for this policy rule. 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
Google
Type Expr - 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - Values
Google
Cloud Orgpolicy V2Policy Spec Policy Rule String Values - List of values to be used for this policy rule. This field can be set only in policies for list constraints.
- allow
All Boolean - Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.
- condition
Google
Type Expr - 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 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - values
Google
Cloud Orgpolicy V2Policy Spec Policy Rule String Values - List of values to be used for this policy rule. This field can be set only in policies for list constraints.
- allow
All boolean - Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.
- condition
Google
Type Expr - 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 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - values
Google
Cloud Orgpolicy V2Policy Spec Policy Rule String Values - List of values to be used for this policy rule. 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
Google
Type Expr - 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - values
Google
Cloud Orgpolicy V2Policy Spec Policy Rule String Values - List of values to be used for this policy rule. This field can be set only in policies for list constraints.
- allow
All 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')". - deny
All 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. Iffalse
, 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 policy rule. This field can be set only in policies for list constraints.
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse, GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponseArgs
- 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
Pulumi.
Google Native. Orgpolicy. V2. Inputs. Google Type Expr Response - 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - Values
Pulumi.
Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Policy Spec Policy Rule String Values Response - List of values to be used for this policy rule. 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
Google
Type Expr Response - 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - Values
Google
Cloud Orgpolicy V2Policy Spec Policy Rule String Values Response - List of values to be used for this policy rule. This field can be set only in policies for list constraints.
- allow
All Boolean - Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.
- condition
Google
Type Expr Response - 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 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - values
Google
Cloud Orgpolicy V2Policy Spec Policy Rule String Values Response - List of values to be used for this policy rule. This field can be set only in policies for list constraints.
- allow
All boolean - Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.
- condition
Google
Type Expr Response - 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 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - values
Google
Cloud Orgpolicy V2Policy Spec Policy Rule String Values Response - List of values to be used for this policy rule. 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
Google
Type Expr Response - 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. Iffalse
, then any configuration is acceptable. This field can be set only in policies for boolean constraints. - values
Google
Cloud Orgpolicy V2Policy Spec Policy Rule String Values Response - List of values to be used for this policy rule. This field can be set only in policies for list constraints.
- allow
All 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')". - deny
All 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. Iffalse
, 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 policy rule. This field can be set only in policies for list constraints.
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues, GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs
- Allowed
Values List<string> - List of values allowed at this resource.
- Denied
Values List<string> - List of values denied at this resource.
- Allowed
Values []string - List of values allowed at this resource.
- Denied
Values []string - List of values denied at this resource.
- allowed
Values List<String> - List of values allowed at this resource.
- denied
Values List<String> - List of values denied at this resource.
- allowed
Values string[] - List of values allowed at this resource.
- denied
Values 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.
- allowed
Values List<String> - List of values allowed at this resource.
- denied
Values List<String> - List of values denied at this resource.
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse, GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponseArgs
- Allowed
Values List<string> - List of values allowed at this resource.
- Denied
Values List<string> - List of values denied at this resource.
- Allowed
Values []string - List of values allowed at this resource.
- Denied
Values []string - List of values denied at this resource.
- allowed
Values List<String> - List of values allowed at this resource.
- denied
Values List<String> - List of values denied at this resource.
- allowed
Values string[] - List of values allowed at this resource.
- denied
Values 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.
- allowed
Values List<String> - List of values allowed at this resource.
- denied
Values List<String> - List of values denied at this resource.
GoogleCloudOrgpolicyV2PolicySpecResponse, GoogleCloudOrgpolicyV2PolicySpecResponseArgs
- 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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - Inherit
From boolParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - Rules
List<Pulumi.
Google Native. Orgpolicy. V2. Inputs. Google Cloud Orgpolicy V2Policy Spec Policy Rule Response> - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence. - Update
Time string - The time stamp this was previously updated. This represents the last time a call to
CreatePolicy
orUpdatePolicy
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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - Inherit
From boolParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - Rules
[]Google
Cloud Orgpolicy V2Policy Spec Policy Rule Response - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence. - Update
Time string - The time stamp this was previously updated. This represents the last time a call to
CreatePolicy
orUpdatePolicy
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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - inherit
From BooleanParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - rules
List<Google
Cloud Orgpolicy V2Policy Spec Policy Rule Response> - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence. - update
Time String - The time stamp this was previously updated. This represents the last time a call to
CreatePolicy
orUpdatePolicy
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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - inherit
From booleanParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - rules
Google
Cloud Orgpolicy V2Policy Spec Policy Rule Response[] - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence. - update
Time string - The time stamp this was previously updated. This represents the last time a call to
CreatePolicy
orUpdatePolicy
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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - inherit_
from_ boolparent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - rules
Sequence[Google
Cloud Orgpolicy V2Policy Spec Policy Rule Response] - In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules 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
orUpdatePolicy
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 policyis returned from either a
GetPolicyor a
ListPoliciesrequest, this
etagindicates the version of the current policy to use when executing a read-modify-write loop. When the policy is returned from a
GetEffectivePolicyrequest, the
etag` will be unset. - inherit
From BooleanParent - Determines the inheritance behavior for this policy. If
inherit_from_parent
is true, policy rules 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 andinherit_from_parent
must be set to false. - rules List<Property Map>
- In policies for boolean constraints, the following requirements apply: - There must be one and only one policy rule where condition is unset. - Boolean policy rules with conditions must set
enforced
to the opposite of the policy rule without a condition. - During policy evaluation, policy rules with conditions that are true for a target resource take precedence. - update
Time String - The time stamp this was previously updated. This represents the last time a call to
CreatePolicy
orUpdatePolicy
was made for that policy.
GoogleTypeExpr, GoogleTypeExprArgs
- 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, GoogleTypeExprResponseArgs
- 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
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.