Class ComputeNetworkFirewallPolicyRuleConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • action

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder action​(String action)
        Parameters:
        action - The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny", "goto_next" and "apply_security_profile_group". This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#action ComputeNetworkFirewallPolicyRule#action}
        Returns:
        this
      • direction

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder direction​(String direction)
        Parameters:
        direction - The direction in which this rule applies. Possible values: INGRESS, EGRESS. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#direction ComputeNetworkFirewallPolicyRule#direction}
        Returns:
        this
      • priority

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder priority​(Number priority)
        Parameters:
        priority - An integer indicating the priority of a rule in the list. This parameter is required. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#priority ComputeNetworkFirewallPolicyRule#priority}
        Returns:
        this
      • disabled

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder disabled​(Boolean disabled)
        Parameters:
        disabled - Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#disabled ComputeNetworkFirewallPolicyRule#disabled}
        Returns:
        this
      • disabled

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder disabled​(com.hashicorp.cdktf.IResolvable disabled)
        Parameters:
        disabled - Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#disabled ComputeNetworkFirewallPolicyRule#disabled}
        Returns:
        this
      • enableLogging

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder enableLogging​(Boolean enableLogging)
        Parameters:
        enableLogging - Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#enable_logging ComputeNetworkFirewallPolicyRule#enable_logging}
        Returns:
        this
      • enableLogging

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder enableLogging​(com.hashicorp.cdktf.IResolvable enableLogging)
        Parameters:
        enableLogging - Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#enable_logging ComputeNetworkFirewallPolicyRule#enable_logging}
        Returns:
        this
      • id

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#id ComputeNetworkFirewallPolicyRule#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.
        Returns:
        this
      • securityProfileGroup

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder securityProfileGroup​(String securityProfileGroup)
        Parameters:
        securityProfileGroup - A fully-qualified URL of a SecurityProfileGroup resource. Example: https://networksecurity.googleapis.com/v1/organizations/{organizationId}/locations/global/securityProfileGroups/my-security-profile-group. It must be specified if action = 'apply_security_profile_group' and cannot be specified for other actions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#security_profile_group ComputeNetworkFirewallPolicyRule#security_profile_group}
        Returns:
        this
      • targetSecureTags

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder targetSecureTags​(com.hashicorp.cdktf.IResolvable targetSecureTags)
        Parameters:
        targetSecureTags - target_secure_tags block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#target_secure_tags ComputeNetworkFirewallPolicyRule#target_secure_tags}
        Returns:
        this
      • targetServiceAccounts

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder targetServiceAccounts​(List<String> targetServiceAccounts)
        Parameters:
        targetServiceAccounts - A list of service accounts indicating the sets of instances that are applied with this rule. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#target_service_accounts ComputeNetworkFirewallPolicyRule#target_service_accounts}
        Returns:
        this
      • tlsInspect

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder tlsInspect​(Boolean tlsInspect)
        Parameters:
        tlsInspect - Boolean flag indicating if the traffic should be TLS decrypted. It can be set only if action = 'apply_security_profile_group' and cannot be set for other actions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#tls_inspect ComputeNetworkFirewallPolicyRule#tls_inspect}
        Returns:
        this
      • tlsInspect

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder tlsInspect​(com.hashicorp.cdktf.IResolvable tlsInspect)
        Parameters:
        tlsInspect - Boolean flag indicating if the traffic should be TLS decrypted. It can be set only if action = 'apply_security_profile_group' and cannot be set for other actions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#tls_inspect ComputeNetworkFirewallPolicyRule#tls_inspect}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRuleConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this