Class: Aws::NetworkFirewall::Waiters::FirewallPolicyActive

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-networkfirewall/lib/aws-sdk-networkfirewall/waiters.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ FirewallPolicyActive

Returns a new instance of FirewallPolicyActive.

Parameters:

  • options (Hash)

Options Hash (options):

  • :client (required, Client)
  • :max_attempts (Integer) — default: 40
  • :delay (Integer) — default: 15
  • :before_attempt (Proc)
  • :before_wait (Proc)


84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'gems/aws-sdk-networkfirewall/lib/aws-sdk-networkfirewall/waiters.rb', line 84

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 40,
    delay: 15,
    poller: Aws::Waiters::Poller.new(
      operation_name: :describe_firewall_policy,
      acceptors: [
        {
          "expected" => "ACTIVE",
          "matcher" => "path",
          "state" => "success",
          "argument" => "firewall_policy_response.firewall_policy_status"
        },
        {
          "expected" => "ERROR",
          "matcher" => "path",
          "state" => "failure",
          "argument" => "firewall_policy_response.firewall_policy_status"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

#wait(params = {}) ⇒ Types::DescribeFirewallPolicyResponse

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {}) —

    a customizable set of options

Options Hash (params):

  • :firewall_policy_name (String) —

    The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_policy_arn (String) —

    The Amazon Resource Name (ARN) of the firewall policy.

    You must specify the ARN or the name, and you can specify both.

Returns:



111
112
113
# File 'gems/aws-sdk-networkfirewall/lib/aws-sdk-networkfirewall/waiters.rb', line 111

def wait(params = {})
  @waiter.wait(client: @client, params: params)
end