Class NetworkSecurityGatewaySecurityPolicyRule.Builder

    • Method Detail

      • basicProfile

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder basicProfile​(String basicProfile)
        Profile which tells what the primitive action should be.

        Possible values are: * ALLOW * DENY. Possible values: ["BASIC_PROFILE_UNSPECIFIED", "ALLOW", "DENY"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#basic_profile NetworkSecurityGatewaySecurityPolicyRule#basic_profile}

        Parameters:
        basicProfile - Profile which tells what the primitive action should be. This parameter is required.
        Returns:
        this
      • enabled

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder enabled​(Boolean enabled)
        Whether the rule is enforced.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#enabled NetworkSecurityGatewaySecurityPolicyRule#enabled}

        Parameters:
        enabled - Whether the rule is enforced. This parameter is required.
        Returns:
        this
      • enabled

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder enabled​(com.hashicorp.cdktf.IResolvable enabled)
        Whether the rule is enforced.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#enabled NetworkSecurityGatewaySecurityPolicyRule#enabled}

        Parameters:
        enabled - Whether the rule is enforced. This parameter is required.
        Returns:
        this
      • gatewaySecurityPolicy

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder gatewaySecurityPolicy​(String gatewaySecurityPolicy)
        The name of the gatewat security policy this rule belongs to.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#gateway_security_policy NetworkSecurityGatewaySecurityPolicyRule#gateway_security_policy}

        Parameters:
        gatewaySecurityPolicy - The name of the gatewat security policy this rule belongs to. This parameter is required.
        Returns:
        this
      • location

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder location​(String location)
        The location of the gateway security policy.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#location NetworkSecurityGatewaySecurityPolicyRule#location}

        Parameters:
        location - The location of the gateway security policy. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder name​(String name)
        Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).

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

        Parameters:
        name - Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$). This parameter is required.
        Returns:
        this
      • priority

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder priority​(Number priority)
        Priority of the rule. Lower number corresponds to higher precedence.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#priority NetworkSecurityGatewaySecurityPolicyRule#priority}

        Parameters:
        priority - Priority of the rule. Lower number corresponds to higher precedence. This parameter is required.
        Returns:
        this
      • sessionMatcher

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder sessionMatcher​(String sessionMatcher)
        CEL expression for matching on session criteria.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#session_matcher NetworkSecurityGatewaySecurityPolicyRule#session_matcher}

        Parameters:
        sessionMatcher - CEL expression for matching on session criteria. This parameter is required.
        Returns:
        this
      • applicationMatcher

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder applicationMatcher​(String applicationMatcher)
        CEL expression for matching on L7/application level criteria.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#application_matcher NetworkSecurityGatewaySecurityPolicyRule#application_matcher}

        Parameters:
        applicationMatcher - CEL expression for matching on L7/application level criteria. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder description​(String description)
        Free-text description of the resource.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#description NetworkSecurityGatewaySecurityPolicyRule#description}

        Parameters:
        description - Free-text description of the resource. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#id NetworkSecurityGatewaySecurityPolicyRule#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.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#id NetworkSecurityGatewaySecurityPolicyRule#id}. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#project NetworkSecurityGatewaySecurityPolicyRule#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#project NetworkSecurityGatewaySecurityPolicyRule#project}. This parameter is required.
        Returns:
        this
      • tlsInspectionEnabled

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder tlsInspectionEnabled​(Boolean tlsInspectionEnabled)
        Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#tls_inspection_enabled NetworkSecurityGatewaySecurityPolicyRule#tls_inspection_enabled}

        Parameters:
        tlsInspectionEnabled - Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. This parameter is required.
        Returns:
        this
      • tlsInspectionEnabled

        @Stability(Stable)
        public NetworkSecurityGatewaySecurityPolicyRule.Builder tlsInspectionEnabled​(com.hashicorp.cdktf.IResolvable tlsInspectionEnabled)
        Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#tls_inspection_enabled NetworkSecurityGatewaySecurityPolicyRule#tls_inspection_enabled}

        Parameters:
        tlsInspectionEnabled - Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. This parameter is required.
        Returns:
        this