Class NetworkFirewallPolicyRuleArgs.Builder

    • Method Detail

      • action

        public NetworkFirewallPolicyRuleArgs.Builder action​(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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.Builder description​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - An optional description for this resource.
        Returns:
        builder
      • description

        public NetworkFirewallPolicyRuleArgs.Builder description​(java.lang.String description)
        Parameters:
        description - An optional description for this resource.
        Returns:
        builder
      • direction

        public NetworkFirewallPolicyRuleArgs.Builder direction​(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 NetworkFirewallPolicyRuleArgs.Builder direction​(java.lang.String direction)
        Parameters:
        direction - The direction in which this rule applies. Possible values: INGRESS, EGRESS
        Returns:
        builder
      • disabled

        public NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.Builder firewallPolicy​(com.pulumi.core.Output<java.lang.String> firewallPolicy)
        Parameters:
        firewallPolicy - The firewall policy of the resource.
        Returns:
        builder
      • firewallPolicy

        public NetworkFirewallPolicyRuleArgs.Builder firewallPolicy​(java.lang.String firewallPolicy)
        Parameters:
        firewallPolicy - The firewall policy of the resource.
        Returns:
        builder
      • priority

        public NetworkFirewallPolicyRuleArgs.Builder priority​(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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.Builder project​(@Nullable
                                                             com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The project for the resource
        Returns:
        builder
      • ruleName

        public NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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
      • targetSecureTags

        public NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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 NetworkFirewallPolicyRuleArgs.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