Class ComputeNetworkFirewallPolicyRule.Builder

    • Method Detail

      • connection

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRule.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRule.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRule.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRule.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRule.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public ComputeNetworkFirewallPolicyRule.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • action

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder action​(String action)
        The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny", "goto_next" and "apply_security_profile_group".

        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}

        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.
        Returns:
        this
      • direction

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder direction​(String direction)
        The direction in which this rule applies. Possible values: INGRESS, EGRESS.

        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}

        Parameters:
        direction - The direction in which this rule applies. Possible values: INGRESS, EGRESS. This parameter is required.
        Returns:
        this
      • firewallPolicy

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder firewallPolicy​(String firewallPolicy)
        The firewall policy of the resource.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#firewall_policy ComputeNetworkFirewallPolicyRule#firewall_policy}

        Parameters:
        firewallPolicy - The firewall policy of the resource. This parameter is required.
        Returns:
        this
      • match

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder match​(ComputeNetworkFirewallPolicyRuleMatch match)
        match block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#match ComputeNetworkFirewallPolicyRule#match}

        Parameters:
        match - match block. This parameter is required.
        Returns:
        this
      • priority

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder priority​(Number priority)
        An integer indicating the priority of a rule in the list.

        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}

        Parameters:
        priority - An integer indicating the priority of a rule in the list. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder description​(String description)
        An optional description for this resource.

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

        Parameters:
        description - An optional description for this resource. This parameter is required.
        Returns:
        this
      • disabled

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder disabled​(Boolean 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}

        Parameters:
        disabled - Denotes whether the firewall policy rule is disabled. This parameter is required.
        Returns:
        this
      • disabled

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder disabled​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        disabled - Denotes whether the firewall policy rule is disabled. This parameter is required.
        Returns:
        this
      • enableLogging

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder enableLogging​(Boolean 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}

        Parameters:
        enableLogging - Denotes whether to enable logging for a particular rule. This parameter is required.
        Returns:
        this
      • enableLogging

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder enableLogging​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        enableLogging - Denotes whether to enable logging for a particular rule. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder id​(String 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.

        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}. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder project​(String project)
        The project for the resource.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#project ComputeNetworkFirewallPolicyRule#project}

        Parameters:
        project - The project for the resource. This parameter is required.
        Returns:
        this
      • ruleName

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder ruleName​(String ruleName)
        An optional name for the rule. This field is not a unique identifier and can be updated.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_firewall_policy_rule#rule_name ComputeNetworkFirewallPolicyRule#rule_name}

        Parameters:
        ruleName - An optional name for the rule. This field is not a unique identifier and can be updated. This parameter is required.
        Returns:
        this
      • securityProfileGroup

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder securityProfileGroup​(String 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}

        Parameters:
        securityProfileGroup - A fully-qualified URL of a SecurityProfileGroup resource. This parameter is required.
        Returns:
        this
      • targetSecureTags

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder targetSecureTags​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        targetSecureTags - target_secure_tags block. This parameter is required.
        Returns:
        this
      • targetSecureTags

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder targetSecureTags​(List<? extends ComputeNetworkFirewallPolicyRuleTargetSecureTags> 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}

        Parameters:
        targetSecureTags - target_secure_tags block. This parameter is required.
        Returns:
        this
      • targetServiceAccounts

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder targetServiceAccounts​(List<String> 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}

        Parameters:
        targetServiceAccounts - A list of service accounts indicating the sets of instances that are applied with this rule. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder timeouts​(ComputeNetworkFirewallPolicyRuleTimeouts timeouts)
        timeouts block.

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

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this
      • tlsInspect

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder tlsInspect​(Boolean 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}

        Parameters:
        tlsInspect - Boolean flag indicating if the traffic should be TLS decrypted. This parameter is required.
        Returns:
        this
      • tlsInspect

        @Stability(Stable)
        public ComputeNetworkFirewallPolicyRule.Builder tlsInspect​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        tlsInspect - Boolean flag indicating if the traffic should be TLS decrypted. This parameter is required.
        Returns:
        this