Class ComputeFirewallPolicyRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_firewall_policy_rule.ComputeFirewallPolicyRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeFirewallPolicyRule>
- Enclosing class:
- ComputeFirewallPolicyRule
@Stability(Stable) public static final class ComputeFirewallPolicyRule.Builder extends Object implements software.amazon.jsii.Builder<ComputeFirewallPolicyRule>
A fluent builder forComputeFirewallPolicyRule.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeFirewallPolicyRule.Builderaction(String action)The Action to perform when the client connection triggers the rule.ComputeFirewallPolicyRulebuild()ComputeFirewallPolicyRule.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComputeFirewallPolicyRule.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComputeFirewallPolicyRule.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComputeFirewallPolicyRule.Buildercount(Number count)static ComputeFirewallPolicyRule.Buildercreate(software.constructs.Construct scope, String id)ComputeFirewallPolicyRule.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComputeFirewallPolicyRule.Builderdescription(String description)An optional description for this resource.ComputeFirewallPolicyRule.Builderdirection(String direction)The direction in which this rule applies.ComputeFirewallPolicyRule.Builderdisabled(com.hashicorp.cdktf.IResolvable disabled)Denotes whether the firewall policy rule is disabled.ComputeFirewallPolicyRule.Builderdisabled(Boolean disabled)Denotes whether the firewall policy rule is disabled.ComputeFirewallPolicyRule.BuilderenableLogging(com.hashicorp.cdktf.IResolvable enableLogging)Denotes whether to enable logging for a particular rule.ComputeFirewallPolicyRule.BuilderenableLogging(Boolean enableLogging)Denotes whether to enable logging for a particular rule.ComputeFirewallPolicyRule.BuilderfirewallPolicy(String firewallPolicy)The firewall policy of the resource.ComputeFirewallPolicyRule.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComputeFirewallPolicyRule.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#id ComputeFirewallPolicyRule#id}.ComputeFirewallPolicyRule.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComputeFirewallPolicyRule.Buildermatch(ComputeFirewallPolicyRuleMatch match)match block.ComputeFirewallPolicyRule.Builderpriority(Number priority)An integer indicating the priority of a rule in the list.ComputeFirewallPolicyRule.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComputeFirewallPolicyRule.Builderprovisioners(List<? extends Object> provisioners)ComputeFirewallPolicyRule.BuildersecurityProfileGroup(String securityProfileGroup)A fully-qualified URL of a SecurityProfileGroup resource.ComputeFirewallPolicyRule.BuildertargetResources(List<String> targetResources)A list of network resource URLs to which this rule applies.ComputeFirewallPolicyRule.BuildertargetServiceAccounts(List<String> targetServiceAccounts)A list of service accounts indicating the sets of instances that are applied with this rule.ComputeFirewallPolicyRule.Buildertimeouts(ComputeFirewallPolicyRuleTimeouts timeouts)timeouts block.ComputeFirewallPolicyRule.BuildertlsInspect(com.hashicorp.cdktf.IResolvable tlsInspect)Boolean flag indicating if the traffic should be TLS decrypted.ComputeFirewallPolicyRule.BuildertlsInspect(Boolean tlsInspect)Boolean flag indicating if the traffic should be TLS decrypted.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComputeFirewallPolicyRule.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
ComputeFirewallPolicyRule.Builder.
-
connection
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeFirewallPolicyRule.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
action
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#action ComputeFirewallPolicyRule#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 ComputeFirewallPolicyRule.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_firewall_policy_rule#direction ComputeFirewallPolicyRule#direction}
- Parameters:
direction- The direction in which this rule applies. Possible values: INGRESS, EGRESS. This parameter is required.- Returns:
this
-
firewallPolicy
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#firewall_policy ComputeFirewallPolicyRule#firewall_policy}
- Parameters:
firewallPolicy- The firewall policy of the resource. This parameter is required.- Returns:
this
-
match
@Stability(Stable) public ComputeFirewallPolicyRule.Builder match(ComputeFirewallPolicyRuleMatch match)
match block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#match ComputeFirewallPolicyRule#match}
- Parameters:
match- match block. This parameter is required.- Returns:
this
-
priority
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#priority ComputeFirewallPolicyRule#priority}
- Parameters:
priority- An integer indicating the priority of a rule in the list. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#description ComputeFirewallPolicyRule#description}
- Parameters:
description- An optional description for this resource. This parameter is required.- Returns:
this
-
disabled
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#disabled ComputeFirewallPolicyRule#disabled}
- Parameters:
disabled- Denotes whether the firewall policy rule is disabled. This parameter is required.- Returns:
this
-
disabled
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#disabled ComputeFirewallPolicyRule#disabled}
- Parameters:
disabled- Denotes whether the firewall policy rule is disabled. This parameter is required.- Returns:
this
-
enableLogging
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#enable_logging ComputeFirewallPolicyRule#enable_logging}
- Parameters:
enableLogging- Denotes whether to enable logging for a particular rule. This parameter is required.- Returns:
this
-
enableLogging
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#enable_logging ComputeFirewallPolicyRule#enable_logging}
- Parameters:
enableLogging- Denotes whether to enable logging for a particular rule. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComputeFirewallPolicyRule.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#id ComputeFirewallPolicyRule#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_firewall_policy_rule#id ComputeFirewallPolicyRule#id}. This parameter is required.- Returns:
this
-
securityProfileGroup
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#security_profile_group ComputeFirewallPolicyRule#security_profile_group}
- Parameters:
securityProfileGroup- A fully-qualified URL of a SecurityProfileGroup resource. This parameter is required.- Returns:
this
-
targetResources
@Stability(Stable) public ComputeFirewallPolicyRule.Builder targetResources(List<String> targetResources)
A list of network resource URLs to which this rule applies.This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#target_resources ComputeFirewallPolicyRule#target_resources}
- Parameters:
targetResources- A list of network resource URLs to which this rule applies. This parameter is required.- Returns:
this
-
targetServiceAccounts
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#target_service_accounts ComputeFirewallPolicyRule#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 ComputeFirewallPolicyRule.Builder timeouts(ComputeFirewallPolicyRuleTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_firewall_policy_rule#timeouts ComputeFirewallPolicyRule#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
tlsInspect
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#tls_inspect ComputeFirewallPolicyRule#tls_inspect}
- Parameters:
tlsInspect- Boolean flag indicating if the traffic should be TLS decrypted. This parameter is required.- Returns:
this
-
tlsInspect
@Stability(Stable) public ComputeFirewallPolicyRule.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_firewall_policy_rule#tls_inspect ComputeFirewallPolicyRule#tls_inspect}
- Parameters:
tlsInspect- Boolean flag indicating if the traffic should be TLS decrypted. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeFirewallPolicyRule build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeFirewallPolicyRule>- Returns:
- a newly built instance of
ComputeFirewallPolicyRule.
-
-