Interface SecurityposturePosturePolicySetsPoliciesConstraintOrgPolicyConstraintCustomCustomConstraint

    • Method Detail

      • getActionType

        @Stability(Stable)
        @NotNull
        String getActionType()
        The action to take if the condition is met. Possible values: ["ALLOW", "DENY"].

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#action_type SecurityposturePosture#action_type}

      • getCondition

        @Stability(Stable)
        @NotNull
        String getCondition()
        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.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#condition SecurityposturePosture#condition}

      • getMethodTypes

        @Stability(Stable)
        @NotNull
        List<String> getMethodTypes()
        A list of RESTful methods for which to enforce the constraint.

        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}

      • getName

        @Stability(Stable)
        @NotNull
        String getName()
        Immutable. The name of the custom constraint. This is unique within the organization.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture#name SecurityposturePosture#name}

      • getResourceTypes

        @Stability(Stable)
        @NotNull
        List<String> getResourceTypes()
        Immutable.

        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}

      • getDescription

        @Stability(Stable)
        @Nullable
        default String getDescription()
        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}

      • getDisplayName

        @Stability(Stable)
        @Nullable
        default String getDisplayName()
        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}