Package com.pulumi.gcp.compute.inputs
Class NetworkFirewallPolicyRuleState.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.inputs.NetworkFirewallPolicyRuleState.Builder
-
- Enclosing class:
- NetworkFirewallPolicyRuleState
public static final class NetworkFirewallPolicyRuleState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(NetworkFirewallPolicyRuleState defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(NetworkFirewallPolicyRuleState defaults)
-
-
Method Detail
-
action
public NetworkFirewallPolicyRuleState.Builder action(@Nullable com.pulumi.core.Output<java.lang.String> action)
- Parameters:
action
- The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".- Returns:
- builder
-
action
public NetworkFirewallPolicyRuleState.Builder action(java.lang.String action)
- Parameters:
action
- The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next".- Returns:
- builder
-
description
public NetworkFirewallPolicyRuleState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- An optional description for this resource.- Returns:
- builder
-
description
public NetworkFirewallPolicyRuleState.Builder description(java.lang.String description)
- Parameters:
description
- An optional description for this resource.- Returns:
- builder
-
direction
public NetworkFirewallPolicyRuleState.Builder direction(@Nullable com.pulumi.core.Output<java.lang.String> direction)
- Parameters:
direction
- The direction in which this rule applies. Possible values: INGRESS, EGRESS- Returns:
- builder
-
direction
public NetworkFirewallPolicyRuleState.Builder direction(java.lang.String direction)
- Parameters:
direction
- The direction in which this rule applies. Possible values: INGRESS, EGRESS- Returns:
- builder
-
disabled
public NetworkFirewallPolicyRuleState.Builder disabled(@Nullable com.pulumi.core.Output<java.lang.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.- Returns:
- builder
-
disabled
public NetworkFirewallPolicyRuleState.Builder disabled(java.lang.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.- Returns:
- builder
-
enableLogging
public NetworkFirewallPolicyRuleState.Builder enableLogging(@Nullable com.pulumi.core.Output<java.lang.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.- Returns:
- builder
-
enableLogging
public NetworkFirewallPolicyRuleState.Builder enableLogging(java.lang.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.- Returns:
- builder
-
firewallPolicy
public NetworkFirewallPolicyRuleState.Builder firewallPolicy(@Nullable com.pulumi.core.Output<java.lang.String> firewallPolicy)
- Parameters:
firewallPolicy
- The firewall policy of the resource.- Returns:
- builder
-
firewallPolicy
public NetworkFirewallPolicyRuleState.Builder firewallPolicy(java.lang.String firewallPolicy)
- Parameters:
firewallPolicy
- The firewall policy of the resource.- Returns:
- builder
-
kind
public NetworkFirewallPolicyRuleState.Builder kind(@Nullable com.pulumi.core.Output<java.lang.String> kind)
- Parameters:
kind
- Type of the resource. Always `compute#firewallPolicyRule` for firewall policy rules- Returns:
- builder
-
kind
public NetworkFirewallPolicyRuleState.Builder kind(java.lang.String kind)
- Parameters:
kind
- Type of the resource. Always `compute#firewallPolicyRule` for firewall policy rules- Returns:
- builder
-
match
public NetworkFirewallPolicyRuleState.Builder match(@Nullable com.pulumi.core.Output<NetworkFirewallPolicyRuleMatchArgs> match)
- Parameters:
match
- A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.- Returns:
- builder
-
match
public NetworkFirewallPolicyRuleState.Builder match(NetworkFirewallPolicyRuleMatchArgs match)
- Parameters:
match
- A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.- Returns:
- builder
-
priority
public NetworkFirewallPolicyRuleState.Builder priority(@Nullable com.pulumi.core.Output<java.lang.Integer> priority)
- Parameters:
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.- Returns:
- builder
-
priority
public NetworkFirewallPolicyRuleState.Builder priority(java.lang.Integer priority)
- Parameters:
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.- Returns:
- builder
-
project
public NetworkFirewallPolicyRuleState.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The project for the resource- Returns:
- builder
-
project
public NetworkFirewallPolicyRuleState.Builder project(java.lang.String project)
- Parameters:
project
- The project for the resource- Returns:
- builder
-
ruleName
public NetworkFirewallPolicyRuleState.Builder ruleName(@Nullable com.pulumi.core.Output<java.lang.String> ruleName)
- Parameters:
ruleName
- An optional name for the rule. This field is not a unique identifier and can be updated.- Returns:
- builder
-
ruleName
public NetworkFirewallPolicyRuleState.Builder ruleName(java.lang.String ruleName)
- Parameters:
ruleName
- An optional name for the rule. This field is not a unique identifier and can be updated.- Returns:
- builder
-
ruleTupleCount
public NetworkFirewallPolicyRuleState.Builder ruleTupleCount(@Nullable com.pulumi.core.Output<java.lang.Integer> ruleTupleCount)
- Parameters:
ruleTupleCount
- Calculation of the complexity of a single firewall policy rule.- Returns:
- builder
-
ruleTupleCount
public NetworkFirewallPolicyRuleState.Builder ruleTupleCount(java.lang.Integer ruleTupleCount)
- Parameters:
ruleTupleCount
- Calculation of the complexity of a single firewall policy rule.- Returns:
- builder
-
targetSecureTags
public NetworkFirewallPolicyRuleState.Builder targetSecureTags(@Nullable com.pulumi.core.Output<java.util.List<NetworkFirewallPolicyRuleTargetSecureTagArgs>> targetSecureTags)
- Parameters:
targetSecureTags
- A list of secure tags that controls which instances the firewall rule applies to. If <code>targetSecureTag</code> are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. <code>targetSecureTag</code> may not be set at the same time as <code>targetServiceAccounts</code>. If neither <code>targetServiceAccounts</code> nor <code>targetSecureTag</code> are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.- Returns:
- builder
-
targetSecureTags
public NetworkFirewallPolicyRuleState.Builder targetSecureTags(java.util.List<NetworkFirewallPolicyRuleTargetSecureTagArgs> targetSecureTags)
- Parameters:
targetSecureTags
- A list of secure tags that controls which instances the firewall rule applies to. If <code>targetSecureTag</code> are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. <code>targetSecureTag</code> may not be set at the same time as <code>targetServiceAccounts</code>. If neither <code>targetServiceAccounts</code> nor <code>targetSecureTag</code> are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.- Returns:
- builder
-
targetSecureTags
public NetworkFirewallPolicyRuleState.Builder targetSecureTags(NetworkFirewallPolicyRuleTargetSecureTagArgs... targetSecureTags)
- Parameters:
targetSecureTags
- A list of secure tags that controls which instances the firewall rule applies to. If <code>targetSecureTag</code> are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. <code>targetSecureTag</code> may not be set at the same time as <code>targetServiceAccounts</code>. If neither <code>targetServiceAccounts</code> nor <code>targetSecureTag</code> are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.- Returns:
- builder
-
targetServiceAccounts
public NetworkFirewallPolicyRuleState.Builder targetServiceAccounts(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> targetServiceAccounts)
- Parameters:
targetServiceAccounts
- A list of service accounts indicating the sets of instances that are applied with this rule.- Returns:
- builder
-
targetServiceAccounts
public NetworkFirewallPolicyRuleState.Builder targetServiceAccounts(java.util.List<java.lang.String> targetServiceAccounts)
- Parameters:
targetServiceAccounts
- A list of service accounts indicating the sets of instances that are applied with this rule.- Returns:
- builder
-
targetServiceAccounts
public NetworkFirewallPolicyRuleState.Builder targetServiceAccounts(java.lang.String... targetServiceAccounts)
- Parameters:
targetServiceAccounts
- A list of service accounts indicating the sets of instances that are applied with this rule.- Returns:
- builder
-
build
public NetworkFirewallPolicyRuleState build()
-
-