Class: Aws::SES::Waiters::IdentityExists

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ IdentityExists

Returns a new instance of IdentityExists.

Parameters:

  • options (Hash)

Options Hash (options):

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


84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/waiters.rb', line 84

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 20,
    delay: 3,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_identity_verification_attributes,
      acceptors: [{
        "expected" => "Success",
        "matcher" => "pathAll",
        "state" => "success",
        "argument" => "verification_attributes.*.verification_status"
      }]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :identities (required, Array<String>)

    A list of identities.

Returns:



103
104
105
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/waiters.rb', line 103

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