Class ComputeRegionNetworkFirewallPolicyRuleConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_network_firewall_policy_rule.ComputeRegionNetworkFirewallPolicyRuleConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionNetworkFirewallPolicyRuleConfig>
- Enclosing interface:
- ComputeRegionNetworkFirewallPolicyRuleConfig
@Stability(Stable) public static final class ComputeRegionNetworkFirewallPolicyRuleConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionNetworkFirewallPolicyRuleConfig>
A builder forComputeRegionNetworkFirewallPolicyRuleConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
action
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder action(String action)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#action ComputeRegionNetworkFirewallPolicyRule#action}- Returns:
this
-
direction
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder direction(String direction)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#direction ComputeRegionNetworkFirewallPolicyRule#direction}- Returns:
this
-
firewallPolicy
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder firewallPolicy(String firewallPolicy)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#firewall_policy ComputeRegionNetworkFirewallPolicyRule#firewall_policy}- Returns:
this
-
match
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder match(ComputeRegionNetworkFirewallPolicyRuleMatch match)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#match ComputeRegionNetworkFirewallPolicyRule#match}- Returns:
this
-
priority
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder priority(Number priority)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#priority ComputeRegionNetworkFirewallPolicyRule#priority}- Returns:
this
-
description
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder description(String description)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#description ComputeRegionNetworkFirewallPolicyRule#description}- Returns:
this
-
disabled
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder disabled(Boolean disabled)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#disabled ComputeRegionNetworkFirewallPolicyRule#disabled}- Returns:
this
-
disabled
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#disabled ComputeRegionNetworkFirewallPolicyRule#disabled}- Returns:
this
-
enableLogging
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder enableLogging(Boolean enableLogging)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#enable_logging ComputeRegionNetworkFirewallPolicyRule#enable_logging}- Returns:
this
-
enableLogging
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder enableLogging(com.hashicorp.cdktf.IResolvable enableLogging)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#enable_logging ComputeRegionNetworkFirewallPolicyRule#enable_logging}- Returns:
this
-
id
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder id(String id)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_firewall_policy_rule#id ComputeRegionNetworkFirewallPolicyRule#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 ComputeRegionNetworkFirewallPolicyRuleConfig.Builder project(String project)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#project ComputeRegionNetworkFirewallPolicyRule#project}- Returns:
this
-
region
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder region(String region)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.getRegion()- Parameters:
region- The location of this resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_firewall_policy_rule#region ComputeRegionNetworkFirewallPolicyRule#region}- Returns:
this
-
ruleName
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder ruleName(String ruleName)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#rule_name ComputeRegionNetworkFirewallPolicyRule#rule_name}- Returns:
this
-
securityProfileGroup
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder securityProfileGroup(String securityProfileGroup)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#security_profile_group ComputeRegionNetworkFirewallPolicyRule#security_profile_group}- Returns:
this
-
targetSecureTags
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder targetSecureTags(com.hashicorp.cdktf.IResolvable targetSecureTags)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#target_secure_tags ComputeRegionNetworkFirewallPolicyRule#target_secure_tags}- Returns:
this
-
targetSecureTags
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder targetSecureTags(List<? extends ComputeRegionNetworkFirewallPolicyRuleTargetSecureTags> targetSecureTags)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#target_secure_tags ComputeRegionNetworkFirewallPolicyRule#target_secure_tags}- Returns:
this
-
targetServiceAccounts
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder targetServiceAccounts(List<String> targetServiceAccounts)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#target_service_accounts ComputeRegionNetworkFirewallPolicyRule#target_service_accounts}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder timeouts(ComputeRegionNetworkFirewallPolicyRuleTimeouts timeouts)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_firewall_policy_rule#timeouts ComputeRegionNetworkFirewallPolicyRule#timeouts}- Returns:
this
-
tlsInspect
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder tlsInspect(Boolean tlsInspect)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#tls_inspect ComputeRegionNetworkFirewallPolicyRule#tls_inspect}- Returns:
this
-
tlsInspect
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig.Builder tlsInspect(com.hashicorp.cdktf.IResolvable tlsInspect)
Sets the value ofComputeRegionNetworkFirewallPolicyRuleConfig.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_region_network_firewall_policy_rule#tls_inspect ComputeRegionNetworkFirewallPolicyRule#tls_inspect}- Returns:
this
-
connection
@Stability(Experimental) public ComputeRegionNetworkFirewallPolicyRuleConfig.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 ComputeRegionNetworkFirewallPolicyRuleConfig.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 ComputeRegionNetworkFirewallPolicyRuleConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeRegionNetworkFirewallPolicyRuleConfig.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 ComputeRegionNetworkFirewallPolicyRuleConfig.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 ComputeRegionNetworkFirewallPolicyRuleConfig.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 ComputeRegionNetworkFirewallPolicyRuleConfig.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 ComputeRegionNetworkFirewallPolicyRuleConfig.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 ComputeRegionNetworkFirewallPolicyRuleConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeRegionNetworkFirewallPolicyRuleConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionNetworkFirewallPolicyRuleConfig>- Returns:
- a new instance of
ComputeRegionNetworkFirewallPolicyRuleConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-