- 3.29.1 (latest)
- 3.29.0
- 3.28.0
- 3.27.1
- 3.26.4
- 3.25.1
- 3.24.3
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.1
- 3.19.1
- 3.18.1
- 3.17.1
- 3.16.0
- 3.15.0
- 3.14.2
- 3.13.1
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.1
- 3.8.1
- 3.7.1
- 3.6.1
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.1
- 3.1.0
- 2.2.2
- 2.1.0
- 2.0.0
- 1.3.2
- 1.2.0
- 1.1.0
- 1.0.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.1
- 0.3.0
CustomConstraint(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The definition of a custom constraint.
Attributes |
|
---|---|
Name | Description |
name |
str
Name of the constraint. This is unique within the organization. Format of the name should be - organizations/{organization_id}/customConstraints/{custom_constraint_id}
Example :
"organizations/123/customConstraints/custom.createOnlyE2TypeVms".
|
resource_types |
MutableSequence[str]
The Resource Instance type on which this policy applies to. Format will be of the form : "/" Example: - compute.googleapis.com/Instance .
|
method_types |
MutableSequence[google.cloud.asset_v1.types.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType]
All the operations being applied for this constraint. |
condition |
str
Organization Policy condition/expression. For example: resource.instanceName.matches("[production|test]_.*_(\d)+")'
or, resource.management.auto_upgrade == true
|
action_type |
google.cloud.asset_v1.types.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType
Allow or deny type. |
display_name |
str
One line display name for the UI. |
description |
str
Detailed information about this custom policy constraint. |
Classes
ActionType
ActionType(value)
Allow or deny type.
MethodType
MethodType(value)
The operation in which this constraint will be applied. For example: If the constraint applies only when create VMs, the method_types will be "CREATE" only. If the constraint applied when create or delete VMs, the method_types will be "CREATE" and "DELETE".