aws-sdk-healthlake 1.53.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-healthlake/client.rb +222 -90
- data/lib/aws-sdk-healthlake/client_api.rb +3 -0
- data/lib/aws-sdk-healthlake/types.rb +214 -220
- data/lib/aws-sdk-healthlake/waiters.rb +277 -0
- data/lib/aws-sdk-healthlake.rb +2 -1
- data/sig/client.rbs +22 -1
- data/sig/types.rbs +2 -0
- data/sig/waiters.rbs +42 -0
- metadata +2 -1
@@ -0,0 +1,277 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
require 'aws-sdk-core/waiters'
|
11
|
+
|
12
|
+
module Aws::HealthLake
|
13
|
+
# Waiters are utility methods that poll for a particular state to occur
|
14
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
15
|
+
# interval defined for the service client.
|
16
|
+
#
|
17
|
+
# For a list of operations that can be waited for and the
|
18
|
+
# client methods called for each operation, see the table below or the
|
19
|
+
# {Client#wait_until} field documentation for the {Client}.
|
20
|
+
#
|
21
|
+
# # Invoking a Waiter
|
22
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
23
|
+
# is the waiter name, which is specific to the service client and indicates
|
24
|
+
# which operation is being waited for. The second parameter is a hash of
|
25
|
+
# parameters that are passed to the client method called by the waiter,
|
26
|
+
# which varies according to the waiter name.
|
27
|
+
#
|
28
|
+
# # Wait Failures
|
29
|
+
# To catch errors in a waiter, use WaiterFailed,
|
30
|
+
# as shown in the following example.
|
31
|
+
#
|
32
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
33
|
+
# puts "failed waiting for instance running: #{error.message}
|
34
|
+
# end
|
35
|
+
#
|
36
|
+
# # Configuring a Waiter
|
37
|
+
# Each waiter has a default polling interval and a maximum number of
|
38
|
+
# attempts it will make before returning control to your program.
|
39
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
40
|
+
# in your `#wait_until` call.
|
41
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
42
|
+
#
|
43
|
+
# client.wait_until(...) do |w|
|
44
|
+
# w.max_attempts = 5
|
45
|
+
# w.delay = 5
|
46
|
+
# end
|
47
|
+
#
|
48
|
+
# To disable wait failures, set the value of either of these parameters
|
49
|
+
# to `nil`.
|
50
|
+
#
|
51
|
+
# # Extending a Waiter
|
52
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
53
|
+
# triggered before each polling attempt and before waiting.
|
54
|
+
#
|
55
|
+
# The following example implements an exponential backoff in a waiter
|
56
|
+
# by doubling the amount of time to wait on every attempt.
|
57
|
+
#
|
58
|
+
# client.wait_until(...) do |w|
|
59
|
+
# w.interval = 0 # disable normal sleep
|
60
|
+
# w.before_wait do |n, resp|
|
61
|
+
# sleep(n ** 2)
|
62
|
+
# end
|
63
|
+
# end
|
64
|
+
#
|
65
|
+
# # Available Waiters
|
66
|
+
#
|
67
|
+
# The following table lists the valid waiter names, the operations they call,
|
68
|
+
# and the default `:delay` and `:max_attempts` values.
|
69
|
+
#
|
70
|
+
# | waiter_name | params | :delay | :max_attempts |
|
71
|
+
# | ------------------------- | --------------------------------- | -------- | ------------- |
|
72
|
+
# | fhir_datastore_active | {Client#describe_fhir_datastore} | 60 | 360 |
|
73
|
+
# | fhir_datastore_deleted | {Client#describe_fhir_datastore} | 120 | 360 |
|
74
|
+
# | fhir_export_job_completed | {Client#describe_fhir_export_job} | 120 | 360 |
|
75
|
+
# | fhir_import_job_completed | {Client#describe_fhir_import_job} | 120 | 720 |
|
76
|
+
#
|
77
|
+
module Waiters
|
78
|
+
|
79
|
+
class FHIRDatastoreActive
|
80
|
+
|
81
|
+
# @param [Hash] options
|
82
|
+
# @option options [required, Client] :client
|
83
|
+
# @option options [Integer] :max_attempts (360)
|
84
|
+
# @option options [Integer] :delay (60)
|
85
|
+
# @option options [Proc] :before_attempt
|
86
|
+
# @option options [Proc] :before_wait
|
87
|
+
def initialize(options)
|
88
|
+
@client = options.fetch(:client)
|
89
|
+
@waiter = Aws::Waiters::Waiter.new({
|
90
|
+
max_attempts: 360,
|
91
|
+
delay: 60,
|
92
|
+
poller: Aws::Waiters::Poller.new(
|
93
|
+
operation_name: :describe_fhir_datastore,
|
94
|
+
acceptors: [
|
95
|
+
{
|
96
|
+
"state" => "success",
|
97
|
+
"matcher" => "path",
|
98
|
+
"argument" => "datastore_properties.datastore_status",
|
99
|
+
"expected" => "ACTIVE"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"state" => "failure",
|
103
|
+
"matcher" => "path",
|
104
|
+
"argument" => "datastore_properties.datastore_status",
|
105
|
+
"expected" => "CREATE_FAILED"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"state" => "failure",
|
109
|
+
"matcher" => "path",
|
110
|
+
"argument" => "datastore_properties.datastore_status",
|
111
|
+
"expected" => "DELETED"
|
112
|
+
}
|
113
|
+
]
|
114
|
+
)
|
115
|
+
}.merge(options))
|
116
|
+
end
|
117
|
+
|
118
|
+
# @option (see Client#describe_fhir_datastore)
|
119
|
+
# @return (see Client#describe_fhir_datastore)
|
120
|
+
def wait(params = {})
|
121
|
+
@waiter.wait(client: @client, params: params)
|
122
|
+
end
|
123
|
+
|
124
|
+
# @api private
|
125
|
+
attr_reader :waiter
|
126
|
+
|
127
|
+
end
|
128
|
+
|
129
|
+
class FHIRDatastoreDeleted
|
130
|
+
|
131
|
+
# @param [Hash] options
|
132
|
+
# @option options [required, Client] :client
|
133
|
+
# @option options [Integer] :max_attempts (360)
|
134
|
+
# @option options [Integer] :delay (120)
|
135
|
+
# @option options [Proc] :before_attempt
|
136
|
+
# @option options [Proc] :before_wait
|
137
|
+
def initialize(options)
|
138
|
+
@client = options.fetch(:client)
|
139
|
+
@waiter = Aws::Waiters::Waiter.new({
|
140
|
+
max_attempts: 360,
|
141
|
+
delay: 120,
|
142
|
+
poller: Aws::Waiters::Poller.new(
|
143
|
+
operation_name: :describe_fhir_datastore,
|
144
|
+
acceptors: [{
|
145
|
+
"state" => "success",
|
146
|
+
"matcher" => "path",
|
147
|
+
"argument" => "datastore_properties.datastore_status",
|
148
|
+
"expected" => "DELETED"
|
149
|
+
}]
|
150
|
+
)
|
151
|
+
}.merge(options))
|
152
|
+
end
|
153
|
+
|
154
|
+
# @option (see Client#describe_fhir_datastore)
|
155
|
+
# @return (see Client#describe_fhir_datastore)
|
156
|
+
def wait(params = {})
|
157
|
+
@waiter.wait(client: @client, params: params)
|
158
|
+
end
|
159
|
+
|
160
|
+
# @api private
|
161
|
+
attr_reader :waiter
|
162
|
+
|
163
|
+
end
|
164
|
+
|
165
|
+
class FHIRExportJobCompleted
|
166
|
+
|
167
|
+
# @param [Hash] options
|
168
|
+
# @option options [required, Client] :client
|
169
|
+
# @option options [Integer] :max_attempts (360)
|
170
|
+
# @option options [Integer] :delay (120)
|
171
|
+
# @option options [Proc] :before_attempt
|
172
|
+
# @option options [Proc] :before_wait
|
173
|
+
def initialize(options)
|
174
|
+
@client = options.fetch(:client)
|
175
|
+
@waiter = Aws::Waiters::Waiter.new({
|
176
|
+
max_attempts: 360,
|
177
|
+
delay: 120,
|
178
|
+
poller: Aws::Waiters::Poller.new(
|
179
|
+
operation_name: :describe_fhir_export_job,
|
180
|
+
acceptors: [
|
181
|
+
{
|
182
|
+
"state" => "success",
|
183
|
+
"matcher" => "path",
|
184
|
+
"argument" => "export_job_properties.job_status",
|
185
|
+
"expected" => "COMPLETED"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"state" => "success",
|
189
|
+
"matcher" => "path",
|
190
|
+
"argument" => "export_job_properties.job_status",
|
191
|
+
"expected" => "COMPLETED_WITH_ERRORS"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"state" => "failure",
|
195
|
+
"matcher" => "path",
|
196
|
+
"argument" => "export_job_properties.job_status",
|
197
|
+
"expected" => "CANCEL_COMPLETED"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"state" => "failure",
|
201
|
+
"matcher" => "path",
|
202
|
+
"argument" => "export_job_properties.job_status",
|
203
|
+
"expected" => "FAILED"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"state" => "failure",
|
207
|
+
"matcher" => "path",
|
208
|
+
"argument" => "export_job_properties.job_status",
|
209
|
+
"expected" => "CANCEL_FAILED"
|
210
|
+
}
|
211
|
+
]
|
212
|
+
)
|
213
|
+
}.merge(options))
|
214
|
+
end
|
215
|
+
|
216
|
+
# @option (see Client#describe_fhir_export_job)
|
217
|
+
# @return (see Client#describe_fhir_export_job)
|
218
|
+
def wait(params = {})
|
219
|
+
@waiter.wait(client: @client, params: params)
|
220
|
+
end
|
221
|
+
|
222
|
+
# @api private
|
223
|
+
attr_reader :waiter
|
224
|
+
|
225
|
+
end
|
226
|
+
|
227
|
+
class FHIRImportJobCompleted
|
228
|
+
|
229
|
+
# @param [Hash] options
|
230
|
+
# @option options [required, Client] :client
|
231
|
+
# @option options [Integer] :max_attempts (720)
|
232
|
+
# @option options [Integer] :delay (120)
|
233
|
+
# @option options [Proc] :before_attempt
|
234
|
+
# @option options [Proc] :before_wait
|
235
|
+
def initialize(options)
|
236
|
+
@client = options.fetch(:client)
|
237
|
+
@waiter = Aws::Waiters::Waiter.new({
|
238
|
+
max_attempts: 720,
|
239
|
+
delay: 120,
|
240
|
+
poller: Aws::Waiters::Poller.new(
|
241
|
+
operation_name: :describe_fhir_import_job,
|
242
|
+
acceptors: [
|
243
|
+
{
|
244
|
+
"state" => "success",
|
245
|
+
"matcher" => "path",
|
246
|
+
"argument" => "import_job_properties.job_status",
|
247
|
+
"expected" => "COMPLETED"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"state" => "success",
|
251
|
+
"matcher" => "path",
|
252
|
+
"argument" => "import_job_properties.job_status",
|
253
|
+
"expected" => "COMPLETED_WITH_ERRORS"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"state" => "failure",
|
257
|
+
"matcher" => "path",
|
258
|
+
"argument" => "import_job_properties.job_status",
|
259
|
+
"expected" => "FAILED"
|
260
|
+
}
|
261
|
+
]
|
262
|
+
)
|
263
|
+
}.merge(options))
|
264
|
+
end
|
265
|
+
|
266
|
+
# @option (see Client#describe_fhir_import_job)
|
267
|
+
# @return (see Client#describe_fhir_import_job)
|
268
|
+
def wait(params = {})
|
269
|
+
@waiter.wait(client: @client, params: params)
|
270
|
+
end
|
271
|
+
|
272
|
+
# @api private
|
273
|
+
attr_reader :waiter
|
274
|
+
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
data/lib/aws-sdk-healthlake.rb
CHANGED
@@ -49,12 +49,13 @@ module Aws::HealthLake
|
|
49
49
|
end
|
50
50
|
autoload :Client, 'aws-sdk-healthlake/client'
|
51
51
|
autoload :Errors, 'aws-sdk-healthlake/errors'
|
52
|
+
autoload :Waiters, 'aws-sdk-healthlake/waiters'
|
52
53
|
autoload :Resource, 'aws-sdk-healthlake/resource'
|
53
54
|
autoload :EndpointParameters, 'aws-sdk-healthlake/endpoint_parameters'
|
54
55
|
autoload :EndpointProvider, 'aws-sdk-healthlake/endpoint_provider'
|
55
56
|
autoload :Endpoints, 'aws-sdk-healthlake/endpoints'
|
56
57
|
|
57
|
-
GEM_VERSION = '1.
|
58
|
+
GEM_VERSION = '1.54.0'
|
58
59
|
|
59
60
|
end
|
60
61
|
|
data/sig/client.rbs
CHANGED
@@ -263,7 +263,8 @@ module Aws
|
|
263
263
|
},
|
264
264
|
datastore_id: ::String,
|
265
265
|
data_access_role_arn: ::String,
|
266
|
-
?client_token: ::String
|
266
|
+
?client_token: ::String,
|
267
|
+
?validation_level: ("strict" | "structure-only" | "minimal")
|
267
268
|
) -> _StartFHIRImportJobResponseSuccess
|
268
269
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartFHIRImportJobResponseSuccess
|
269
270
|
|
@@ -291,6 +292,26 @@ module Aws
|
|
291
292
|
tag_keys: Array[::String]
|
292
293
|
) -> _UntagResourceResponseSuccess
|
293
294
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
|
295
|
+
|
296
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/HealthLake/Client.html#wait_until-instance_method
|
297
|
+
def wait_until: (:fhir_datastore_active waiter_name,
|
298
|
+
datastore_id: ::String
|
299
|
+
) -> Client::_DescribeFHIRDatastoreResponseSuccess
|
300
|
+
| (:fhir_datastore_active waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeFHIRDatastoreResponseSuccess
|
301
|
+
| (:fhir_datastore_deleted waiter_name,
|
302
|
+
datastore_id: ::String
|
303
|
+
) -> Client::_DescribeFHIRDatastoreResponseSuccess
|
304
|
+
| (:fhir_datastore_deleted waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeFHIRDatastoreResponseSuccess
|
305
|
+
| (:fhir_export_job_completed waiter_name,
|
306
|
+
datastore_id: ::String,
|
307
|
+
job_id: ::String
|
308
|
+
) -> Client::_DescribeFHIRExportJobResponseSuccess
|
309
|
+
| (:fhir_export_job_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeFHIRExportJobResponseSuccess
|
310
|
+
| (:fhir_import_job_completed waiter_name,
|
311
|
+
datastore_id: ::String,
|
312
|
+
job_id: ::String
|
313
|
+
) -> Client::_DescribeFHIRImportJobResponseSuccess
|
314
|
+
| (:fhir_import_job_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeFHIRImportJobResponseSuccess
|
294
315
|
end
|
295
316
|
end
|
296
317
|
end
|
data/sig/types.rbs
CHANGED
@@ -144,6 +144,7 @@ module Aws::HealthLake
|
|
144
144
|
attr_accessor job_progress_report: Types::JobProgressReport
|
145
145
|
attr_accessor data_access_role_arn: ::String
|
146
146
|
attr_accessor message: ::String
|
147
|
+
attr_accessor validation_level: ("strict" | "structure-only" | "minimal")
|
147
148
|
SENSITIVE: []
|
148
149
|
end
|
149
150
|
|
@@ -293,6 +294,7 @@ module Aws::HealthLake
|
|
293
294
|
attr_accessor datastore_id: ::String
|
294
295
|
attr_accessor data_access_role_arn: ::String
|
295
296
|
attr_accessor client_token: ::String
|
297
|
+
attr_accessor validation_level: ("strict" | "structure-only" | "minimal")
|
296
298
|
SENSITIVE: []
|
297
299
|
end
|
298
300
|
|
data/sig/waiters.rbs
CHANGED
@@ -8,6 +8,48 @@
|
|
8
8
|
module Aws
|
9
9
|
module HealthLake
|
10
10
|
module Waiters
|
11
|
+
|
12
|
+
class FHIRDatastoreActive
|
13
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
14
|
+
| (?Hash[Symbol, untyped]) -> void
|
15
|
+
|
16
|
+
def wait: (
|
17
|
+
datastore_id: ::String
|
18
|
+
) -> Client::_DescribeFHIRDatastoreResponseSuccess
|
19
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeFHIRDatastoreResponseSuccess
|
20
|
+
end
|
21
|
+
|
22
|
+
class FHIRDatastoreDeleted
|
23
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
24
|
+
| (?Hash[Symbol, untyped]) -> void
|
25
|
+
|
26
|
+
def wait: (
|
27
|
+
datastore_id: ::String
|
28
|
+
) -> Client::_DescribeFHIRDatastoreResponseSuccess
|
29
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeFHIRDatastoreResponseSuccess
|
30
|
+
end
|
31
|
+
|
32
|
+
class FHIRExportJobCompleted
|
33
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
34
|
+
| (?Hash[Symbol, untyped]) -> void
|
35
|
+
|
36
|
+
def wait: (
|
37
|
+
datastore_id: ::String,
|
38
|
+
job_id: ::String
|
39
|
+
) -> Client::_DescribeFHIRExportJobResponseSuccess
|
40
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeFHIRExportJobResponseSuccess
|
41
|
+
end
|
42
|
+
|
43
|
+
class FHIRImportJobCompleted
|
44
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
45
|
+
| (?Hash[Symbol, untyped]) -> void
|
46
|
+
|
47
|
+
def wait: (
|
48
|
+
datastore_id: ::String,
|
49
|
+
job_id: ::String
|
50
|
+
) -> Client::_DescribeFHIRImportJobResponseSuccess
|
51
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeFHIRImportJobResponseSuccess
|
52
|
+
end
|
11
53
|
end
|
12
54
|
end
|
13
55
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-healthlake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.54.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- lib/aws-sdk-healthlake/plugins/endpoints.rb
|
66
66
|
- lib/aws-sdk-healthlake/resource.rb
|
67
67
|
- lib/aws-sdk-healthlake/types.rb
|
68
|
+
- lib/aws-sdk-healthlake/waiters.rb
|
68
69
|
- sig/client.rbs
|
69
70
|
- sig/errors.rbs
|
70
71
|
- sig/resource.rbs
|