Class: Aws::EC2::Waiters::NatGatewayDeleted
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::NatGatewayDeleted
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ NatGatewayDeleted
constructor
A new instance of NatGatewayDeleted.
-
#wait(params = {}) ⇒ Types::DescribeNatGatewaysResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ NatGatewayDeleted
Returns a new instance of NatGatewayDeleted.
935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 935 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_nat_gateways, acceptors: [ { "state" => "success", "matcher" => "pathAll", "argument" => "nat_gateways[].state", "expected" => "deleted" }, { "state" => "success", "matcher" => "error", "expected" => "NatGatewayNotFound" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeNatGatewaysResult
Returns a response object which responds to the following methods:
- #nat_gateways => Array<Types::NatGateway>
- #next_token => String
961 962 963 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 961 def wait(params = {}) @waiter.wait(client: @client, params: params) end |