Interface OrgPolicyCustomConstraintConfig

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments
    All Known Implementing Classes:
    OrgPolicyCustomConstraintConfig.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.102.0 (build e354887)",
               date="2024-08-31T03:59:22.218Z")
    @Stability(Stable)
    public interface OrgPolicyCustomConstraintConfig
    extends software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments
    • 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/org_policy_custom_constraint#action_type OrgPolicyCustomConstraint#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/org_policy_custom_constraint#condition OrgPolicyCustomConstraint#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/org_policy_custom_constraint#method_types OrgPolicyCustomConstraint#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/org_policy_custom_constraint#name OrgPolicyCustomConstraint#name}

      • getParent

        @Stability(Stable)
        @NotNull
        String getParent()
        The parent of the resource, an organization. Format should be 'organizations/{organization_id}'.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_custom_constraint#parent OrgPolicyCustomConstraint#parent}

      • 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/org_policy_custom_constraint#resource_types OrgPolicyCustomConstraint#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/org_policy_custom_constraint#description OrgPolicyCustomConstraint#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/org_policy_custom_constraint#display_name OrgPolicyCustomConstraint#display_name}

      • getId

        @Stability(Stable)
        @Nullable
        default String getId()
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_custom_constraint#id OrgPolicyCustomConstraint#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

      • getTimeouts

        @Stability(Stable)
        @Nullable
        default OrgPolicyCustomConstraintTimeouts getTimeouts()
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/org_policy_custom_constraint#timeouts OrgPolicyCustomConstraint#timeouts}