Class ComputeNetworkFirewallPolicyRuleConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_network_firewall_policy_rule.ComputeNetworkFirewallPolicyRuleConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNetworkFirewallPolicyRuleConfig>
- Enclosing interface:
- ComputeNetworkFirewallPolicyRuleConfig
@Stability(Stable) public static final class ComputeNetworkFirewallPolicyRuleConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeNetworkFirewallPolicyRuleConfig>
A builder forComputeNetworkFirewallPolicyRuleConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
action
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder action(String action)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getAction()- 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)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getDirection()- 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
-
firewallPolicy
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder firewallPolicy(String firewallPolicy)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getFirewallPolicy()- Parameters:
firewallPolicy- The firewall policy of the resource. 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#firewall_policy ComputeNetworkFirewallPolicyRule#firewall_policy}- Returns:
this
-
match
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder match(ComputeNetworkFirewallPolicyRuleMatch match)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getMatch()- Parameters:
match- match block. 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#match ComputeNetworkFirewallPolicyRule#match}- Returns:
this
-
priority
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder priority(Number priority)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getPriority()- 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
-
description
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder description(String description)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getDescription()- Parameters:
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}- Returns:
this
-
disabled
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder disabled(Boolean disabled)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getDisabled()- 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)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getDisabled()- 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)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getEnableLogging()- 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)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getEnableLogging()- 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)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getId()- 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
-
project
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder project(String project)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getProject()- Parameters:
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}- Returns:
this
-
ruleName
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder ruleName(String ruleName)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getRuleName()- Parameters:
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}- Returns:
this
-
securityProfileGroup
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder securityProfileGroup(String securityProfileGroup)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getSecurityProfileGroup()- 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)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getTargetSecureTags()- 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
-
targetSecureTags
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder targetSecureTags(List<? extends ComputeNetworkFirewallPolicyRuleTargetSecureTags> targetSecureTags)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getTargetSecureTags()- 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)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getTargetServiceAccounts()- 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
-
timeouts
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder timeouts(ComputeNetworkFirewallPolicyRuleTimeouts timeouts)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getTimeouts()- Parameters:
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}- Returns:
this
-
tlsInspect
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig.Builder tlsInspect(Boolean tlsInspect)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getTlsInspect()- 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)
Sets the value ofComputeNetworkFirewallPolicyRuleConfig.getTlsInspect()- 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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetworkFirewallPolicyRuleConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetworkFirewallPolicyRuleConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeNetworkFirewallPolicyRuleConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeNetworkFirewallPolicyRuleConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNetworkFirewallPolicyRuleConfig>- Returns:
- a new instance of
ComputeNetworkFirewallPolicyRuleConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-