Class SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.securityposture_posture.SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint>
- Enclosing interface:
- SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint
@Stability(Stable) public static final class SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder extends Object implements software.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
actionType
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder actionType(String actionType)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.getActionType()- Parameters:
actionType- The action to take if the condition is met. Possible values: ["ALLOW", "DENY"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#action_type SecurityposturePosture#action_type}- Returns:
this
-
condition
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder condition(String condition)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.getCondition()- Parameters:
condition- A CEL condition that refers to a supported service resource, for example 'resource.management.autoUpgrade == false'. For details about CEL usage, see Common Expression Language. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#condition SecurityposturePosture#condition}- Returns:
this
-
methodTypes
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder methodTypes(List<String> methodTypes)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.getMethodTypes()- Parameters:
methodTypes- A list of RESTful methods for which to enforce the constraint. This parameter is required. Can be 'CREATE', 'UPDATE', or both. Not all Google Cloud services support both methods. To see supported methods for each service, find the service in [Supported services](https://cloud.google.com/resource-manager/docs/organization-policy/custom-constraint-supported-services). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#method_types SecurityposturePosture#method_types}- Returns:
this
-
name
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder name(String name)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.getName()- Parameters:
name- Immutable. The name of the custom constraint. This is unique within the organization. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#name SecurityposturePosture#name}- Returns:
this
-
resourceTypes
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder resourceTypes(List<String> resourceTypes)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.getResourceTypes()- Parameters:
resourceTypes- Immutable. This parameter is required. The fully qualified name of the Google Cloud REST resource containing the object and field you want to restrict. For example, 'container.googleapis.com/NodePool'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#resource_types SecurityposturePosture#resource_types}- Returns:
this
-
description
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder description(String description)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.getDescription()- Parameters:
description- A human-friendly description of the constraint to display as an error message when the policy is violated. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#description SecurityposturePosture#description}- Returns:
this
-
displayName
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.Builder displayName(String displayName)
Sets the value ofSecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint.getDisplayName()- Parameters:
displayName- A human-friendly name for the constraint. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#display_name SecurityposturePosture#display_name}- Returns:
this
-
build
@Stability(Stable) public SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint>- Returns:
- a new instance of
SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint - Throws:
NullPointerException- if any required attribute was not provided
-
-