Class: Aws::HealthLake::Waiters::FHIRDatastoreDeleted

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ FHIRDatastoreDeleted

Returns a new instance of FHIRDatastoreDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'gems/aws-sdk-healthlake/lib/aws-sdk-healthlake/waiters.rb', line 137

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 360,
    delay: 120,
    poller: Aws::Waiters::Poller.new(
      operation_name: :describe_fhir_datastore,
      acceptors: [{
        "state" => "success",
        "matcher" => "path",
        "argument" => "datastore_properties.datastore_status",
        "expected" => "DELETED"
      }]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :datastore_id (required, String)

    The data store identifier.

Returns:



156
157
158
# File 'gems/aws-sdk-healthlake/lib/aws-sdk-healthlake/waiters.rb', line 156

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