GoogleCloudSecuritypostureV1CustomConstraint class

A custom, user-defined constraint.

You can apply the constraint only to the resource types specified in the constraint, and only within the organization where the constraint is defined. When you create a custom constraint, it is not enforced automatically. You must use an organization policy to enforce the constraint.

Constructors

GoogleCloudSecuritypostureV1CustomConstraint.new({String? actionType, String? condition, String? description, String? displayName, List<String>? methodTypes, String? name, List<String>? resourceTypes, String? updateTime})
GoogleCloudSecuritypostureV1CustomConstraint.fromJson(Map json_)

Properties

actionType String?
Whether to allow or deny the action. Possible string values are:
getter/setter pair
condition String?
A Common Expression Language (CEL) condition expression that must evaluate to true for the constraint to be enforced.
getter/setter pair
description String?
A description of the constraint.
getter/setter pair
displayName String?
A display name for the constraint.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
methodTypes List<String>?
The types of operations that the constraint applies to.
getter/setter pair
name String?
The name of the constraint, in the format organizations/{organization_id}/customConstraints/custom.{custom_constraint_id}.
getter/setter pair
resourceTypes List<String>?
The resource type that the constraint applies to, in the format {canonical_service_name}/{resource_type_name}.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateTime String?
The last time at which the constraint was updated or created.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited