Class: Aws::HealthLake::Waiters::FHIRDatastoreActive

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) ⇒ FHIRDatastoreActive

Returns a new instance of FHIRDatastoreActive.

Parameters:

  • options (Hash)

Options Hash (options):

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


143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'gems/aws-sdk-healthlake/lib/aws-sdk-healthlake/waiters.rb', line 143

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 5,
    delay: 60,
    poller: Aws::Waiters::Poller.new(
      operation_name: :describe_fhir_datastore,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "datastore_properties.datastore_status",
          "state" => "success",
          "expected" => "ACTIVE"
        },
        {
          "matcher" => "path",
          "argument" => "datastore_properties.datastore_status",
          "state" => "failure",
          "expected" => "CREATE_FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "datastore_properties.datastore_status",
          "state" => "failure",
          "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:



176
177
178
# File 'gems/aws-sdk-healthlake/lib/aws-sdk-healthlake/waiters.rb', line 176

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