Class ComputeSecurityPolicyRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • action

        @Stability(Stable)
        public ComputeSecurityPolicyRule.Builder action​(String action)
        Parameters:
        action - Action to take when match matches the request. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#action ComputeSecurityPolicy#action}
        Returns:
        this
      • priority

        @Stability(Stable)
        public ComputeSecurityPolicyRule.Builder priority​(Number priority)
        Parameters:
        priority - An unique positive integer indicating the priority of evaluation for a rule. This parameter is required. Rules are evaluated from highest priority (lowest numerically) to lowest priority (highest numerically) in order. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#priority ComputeSecurityPolicy#priority}
        Returns:
        this
      • description

        @Stability(Stable)
        public ComputeSecurityPolicyRule.Builder description​(String description)
        Parameters:
        description - An optional description of this rule. Max size is 64. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#description ComputeSecurityPolicy#description}
        Returns:
        this
      • preview

        @Stability(Stable)
        public ComputeSecurityPolicyRule.Builder preview​(Boolean preview)
        Parameters:
        preview - When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#preview ComputeSecurityPolicy#preview}
        Returns:
        this
      • preview

        @Stability(Stable)
        public ComputeSecurityPolicyRule.Builder preview​(com.hashicorp.cdktf.IResolvable preview)
        Parameters:
        preview - When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#preview ComputeSecurityPolicy#preview}
        Returns:
        this