aws-sdk-augmentedairuntime 1.0.0 → 1.5.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 +5 -5
- data/lib/aws-sdk-augmentedairuntime.rb +7 -4
- data/lib/aws-sdk-augmentedairuntime/client.rb +96 -37
- data/lib/aws-sdk-augmentedairuntime/client_api.rb +20 -25
- data/lib/aws-sdk-augmentedairuntime/errors.rb +43 -5
- data/lib/aws-sdk-augmentedairuntime/resource.rb +1 -0
- data/lib/aws-sdk-augmentedairuntime/types.rb +91 -113
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 43fe61029e6f8aa7c9f3fd6055ee6c5d9c7eac7af7aecf4c06f2f9eaa0b27612
|
4
|
+
data.tar.gz: 89ff9919661a27887335b2342518836482af2d5cb787019d2aaf3b2a034d3e33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88c55c8ec8019a920d35081fbd4983545cc9a711db1f78800811769c91f9cfcdf724d289861121905e8da4f49536d052b0470718f5927d6e8830988532b7c7ba
|
7
|
+
data.tar.gz: bf6868c713cd69be8c56e1e1c16b5da41c18d7d30a9dd8808ab6b5963020bdf3060cc74acbc0dff5236db9ddb11dbbd43c695bac752543ebee0b94227d22a87e
|
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-augmentedairuntime/customizations'
|
|
24
24
|
# methods each accept a hash of request parameters and return a response
|
25
25
|
# structure.
|
26
26
|
#
|
27
|
+
# augmented_ai_runtime = Aws::AugmentedAIRuntime::Client.new
|
28
|
+
# resp = augmented_ai_runtime.delete_human_loop(params)
|
29
|
+
#
|
27
30
|
# See {Client} for more information.
|
28
31
|
#
|
29
32
|
# # Errors
|
30
33
|
#
|
31
|
-
# Errors returned from Amazon Augmented AI Runtime
|
32
|
-
# extend {Errors::ServiceError}.
|
34
|
+
# Errors returned from Amazon Augmented AI Runtime are defined in the
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
36
|
#
|
34
37
|
# begin
|
35
38
|
# # do stuff
|
36
39
|
# rescue Aws::AugmentedAIRuntime::Errors::ServiceError
|
37
|
-
# # rescues all
|
40
|
+
# # rescues all Amazon Augmented AI Runtime API errors
|
38
41
|
# end
|
39
42
|
#
|
40
43
|
# See {Errors} for more information.
|
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-augmentedairuntime/customizations'
|
|
42
45
|
# @service
|
43
46
|
module Aws::AugmentedAIRuntime
|
44
47
|
|
45
|
-
GEM_VERSION = '1.
|
48
|
+
GEM_VERSION = '1.5.0'
|
46
49
|
|
47
50
|
end
|
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:augmentedairuntime)
|
31
31
|
|
32
32
|
module Aws::AugmentedAIRuntime
|
33
|
+
# An API client for AugmentedAIRuntime. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::AugmentedAIRuntime::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -93,7 +105,7 @@ module Aws::AugmentedAIRuntime
|
|
93
105
|
# @option options [required, String] :region
|
94
106
|
# The AWS region to connect to. The configured `:region` is
|
95
107
|
# used to determine the service `:endpoint`. When not passed,
|
96
|
-
# a default `:region` is
|
108
|
+
# a default `:region` is searched for in the following locations:
|
97
109
|
#
|
98
110
|
# * `Aws.config[:region]`
|
99
111
|
# * `ENV['AWS_REGION']`
|
@@ -108,6 +120,12 @@ module Aws::AugmentedAIRuntime
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::AugmentedAIRuntime
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -139,7 +161,7 @@ module Aws::AugmentedAIRuntime
|
|
139
161
|
# @option options [String] :endpoint
|
140
162
|
# The client endpoint is normally constructed from the `:region`
|
141
163
|
# option. You should only configure an `:endpoint` when connecting
|
142
|
-
# to test endpoints. This should be
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
143
165
|
#
|
144
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -154,7 +176,7 @@ module Aws::AugmentedAIRuntime
|
|
154
176
|
# requests fetching endpoints information. Defaults to 60 sec.
|
155
177
|
#
|
156
178
|
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
179
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
158
180
|
#
|
159
181
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
182
|
# The log formatter.
|
@@ -166,15 +188,29 @@ module Aws::AugmentedAIRuntime
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,30 @@ module Aws::AugmentedAIRuntime
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
190
245
|
#
|
191
246
|
# @option options [String] :secret_access_key
|
192
247
|
#
|
@@ -209,16 +264,15 @@ module Aws::AugmentedAIRuntime
|
|
209
264
|
# requests through. Formatted like 'http://proxy.com:123'.
|
210
265
|
#
|
211
266
|
# @option options [Float] :http_open_timeout (15) The number of
|
212
|
-
# seconds to wait when opening a HTTP session before
|
267
|
+
# seconds to wait when opening a HTTP session before raising a
|
213
268
|
# `Timeout::Error`.
|
214
269
|
#
|
215
270
|
# @option options [Integer] :http_read_timeout (60) The default
|
216
271
|
# number of seconds to wait for response data. This value can
|
217
|
-
# safely be set
|
218
|
-
# per-request on the session yeidled by {#session_for}.
|
272
|
+
# safely be set per-request on the session.
|
219
273
|
#
|
220
274
|
# @option options [Float] :http_idle_timeout (5) The number of
|
221
|
-
# seconds a connection is allowed to sit
|
275
|
+
# seconds a connection is allowed to sit idle before it is
|
222
276
|
# considered stale. Stale connections are closed and removed
|
223
277
|
# from the pool before making a request.
|
224
278
|
#
|
@@ -227,7 +281,7 @@ module Aws::AugmentedAIRuntime
|
|
227
281
|
# request body. This option has no effect unless the request has
|
228
282
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
229
283
|
# disables this behaviour. This value can safely be set per
|
230
|
-
# request on the session
|
284
|
+
# request on the session.
|
231
285
|
#
|
232
286
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
233
287
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -257,7 +311,7 @@ module Aws::AugmentedAIRuntime
|
|
257
311
|
# Deletes the specified human loop for a flow definition.
|
258
312
|
#
|
259
313
|
# @option params [required, String] :human_loop_name
|
260
|
-
# The name of the human loop you want to delete.
|
314
|
+
# The name of the human loop that you want to delete.
|
261
315
|
#
|
262
316
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
263
317
|
#
|
@@ -279,19 +333,18 @@ module Aws::AugmentedAIRuntime
|
|
279
333
|
# Returns information about the specified human loop.
|
280
334
|
#
|
281
335
|
# @option params [required, String] :human_loop_name
|
282
|
-
# The name of the human loop.
|
336
|
+
# The name of the human loop that you want information about.
|
283
337
|
#
|
284
338
|
# @return [Types::DescribeHumanLoopResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
285
339
|
#
|
286
|
-
# * {Types::DescribeHumanLoopResponse#
|
340
|
+
# * {Types::DescribeHumanLoopResponse#creation_time #creation_time} => Time
|
287
341
|
# * {Types::DescribeHumanLoopResponse#failure_reason #failure_reason} => String
|
288
342
|
# * {Types::DescribeHumanLoopResponse#failure_code #failure_code} => String
|
289
343
|
# * {Types::DescribeHumanLoopResponse#human_loop_status #human_loop_status} => String
|
290
344
|
# * {Types::DescribeHumanLoopResponse#human_loop_name #human_loop_name} => String
|
291
345
|
# * {Types::DescribeHumanLoopResponse#human_loop_arn #human_loop_arn} => String
|
292
346
|
# * {Types::DescribeHumanLoopResponse#flow_definition_arn #flow_definition_arn} => String
|
293
|
-
# * {Types::DescribeHumanLoopResponse#
|
294
|
-
# * {Types::DescribeHumanLoopResponse#human_loop_output #human_loop_output} => Types::HumanLoopOutputContent
|
347
|
+
# * {Types::DescribeHumanLoopResponse#human_loop_output #human_loop_output} => Types::HumanLoopOutput
|
295
348
|
#
|
296
349
|
# @example Request syntax with placeholder values
|
297
350
|
#
|
@@ -301,14 +354,13 @@ module Aws::AugmentedAIRuntime
|
|
301
354
|
#
|
302
355
|
# @example Response structure
|
303
356
|
#
|
304
|
-
# resp.
|
357
|
+
# resp.creation_time #=> Time
|
305
358
|
# resp.failure_reason #=> String
|
306
359
|
# resp.failure_code #=> String
|
307
360
|
# resp.human_loop_status #=> String, one of "InProgress", "Failed", "Completed", "Stopped", "Stopping"
|
308
361
|
# resp.human_loop_name #=> String
|
309
362
|
# resp.human_loop_arn #=> String
|
310
363
|
# resp.flow_definition_arn #=> String
|
311
|
-
# resp.human_loop_input.input_content #=> String
|
312
364
|
# resp.human_loop_output.output_s3_uri #=> String
|
313
365
|
#
|
314
366
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop AWS API Documentation
|
@@ -321,38 +373,45 @@ module Aws::AugmentedAIRuntime
|
|
321
373
|
end
|
322
374
|
|
323
375
|
# Returns information about human loops, given the specified parameters.
|
376
|
+
# If a human loop was deleted, it will not be included.
|
324
377
|
#
|
325
378
|
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
326
379
|
# (Optional) The timestamp of the date when you want the human loops to
|
327
|
-
# begin. For example, `
|
380
|
+
# begin in ISO 8601 format. For example, `2020-02-24`.
|
328
381
|
#
|
329
382
|
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
330
383
|
# (Optional) The timestamp of the date before which you want the human
|
331
|
-
# loops to begin. For example, `
|
384
|
+
# loops to begin in ISO 8601 format. For example, `2020-02-24`.
|
385
|
+
#
|
386
|
+
# @option params [required, String] :flow_definition_arn
|
387
|
+
# The Amazon Resource Name (ARN) of a flow definition.
|
332
388
|
#
|
333
389
|
# @option params [String] :sort_order
|
334
|
-
#
|
335
|
-
#
|
390
|
+
# Optional. The order for displaying results. Valid values: `Ascending`
|
391
|
+
# and `Descending`.
|
336
392
|
#
|
337
393
|
# @option params [String] :next_token
|
338
|
-
# A token to
|
394
|
+
# A token to display the next page of results.
|
339
395
|
#
|
340
396
|
# @option params [Integer] :max_results
|
341
397
|
# The total number of items to return. If the total number of available
|
342
398
|
# items is more than the value specified in `MaxResults`, then a
|
343
|
-
# `NextToken`
|
344
|
-
#
|
399
|
+
# `NextToken` is returned in the output. You can use this token to
|
400
|
+
# display the next page of results.
|
345
401
|
#
|
346
402
|
# @return [Types::ListHumanLoopsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
347
403
|
#
|
348
404
|
# * {Types::ListHumanLoopsResponse#human_loop_summaries #human_loop_summaries} => Array<Types::HumanLoopSummary>
|
349
405
|
# * {Types::ListHumanLoopsResponse#next_token #next_token} => String
|
350
406
|
#
|
407
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
408
|
+
#
|
351
409
|
# @example Request syntax with placeholder values
|
352
410
|
#
|
353
411
|
# resp = client.list_human_loops({
|
354
412
|
# creation_time_after: Time.now,
|
355
413
|
# creation_time_before: Time.now,
|
414
|
+
# flow_definition_arn: "FlowDefinitionArn", # required
|
356
415
|
# sort_order: "Ascending", # accepts Ascending, Descending
|
357
416
|
# next_token: "NextToken",
|
358
417
|
# max_results: 1,
|
@@ -384,18 +443,20 @@ module Aws::AugmentedAIRuntime
|
|
384
443
|
# The name of the human loop.
|
385
444
|
#
|
386
445
|
# @option params [required, String] :flow_definition_arn
|
387
|
-
# The Amazon Resource Name (ARN) of the flow definition
|
446
|
+
# The Amazon Resource Name (ARN) of the flow definition associated with
|
447
|
+
# this human loop.
|
388
448
|
#
|
389
|
-
# @option params [required, Types::
|
390
|
-
# An object
|
449
|
+
# @option params [required, Types::HumanLoopInput] :human_loop_input
|
450
|
+
# An object that contains information about the human loop.
|
391
451
|
#
|
392
|
-
# @option params [Types::
|
393
|
-
# Attributes of the data
|
452
|
+
# @option params [Types::HumanLoopDataAttributes] :data_attributes
|
453
|
+
# Attributes of the specified data. Use `DataAttributes` to specify if
|
454
|
+
# your data is free of personally identifiable information and/or free
|
455
|
+
# of adult content.
|
394
456
|
#
|
395
457
|
# @return [Types::StartHumanLoopResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
396
458
|
#
|
397
459
|
# * {Types::StartHumanLoopResponse#human_loop_arn #human_loop_arn} => String
|
398
|
-
# * {Types::StartHumanLoopResponse#human_loop_activation_results #human_loop_activation_results} => Types::HumanLoopActivationResults
|
399
460
|
#
|
400
461
|
# @example Request syntax with placeholder values
|
401
462
|
#
|
@@ -413,8 +474,6 @@ module Aws::AugmentedAIRuntime
|
|
413
474
|
# @example Response structure
|
414
475
|
#
|
415
476
|
# resp.human_loop_arn #=> String
|
416
|
-
# resp.human_loop_activation_results.human_loop_activation_reason.conditions_matched #=> Boolean
|
417
|
-
# resp.human_loop_activation_results.human_loop_activation_conditions_evaluation_results #=> String
|
418
477
|
#
|
419
478
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop AWS API Documentation
|
420
479
|
#
|
@@ -428,7 +487,7 @@ module Aws::AugmentedAIRuntime
|
|
428
487
|
# Stops the specified human loop.
|
429
488
|
#
|
430
489
|
# @option params [required, String] :human_loop_name
|
431
|
-
# The name of the human loop you want to stop.
|
490
|
+
# The name of the human loop that you want to stop.
|
432
491
|
#
|
433
492
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
434
493
|
#
|
@@ -460,7 +519,7 @@ module Aws::AugmentedAIRuntime
|
|
460
519
|
params: params,
|
461
520
|
config: config)
|
462
521
|
context[:gem_name] = 'aws-sdk-augmentedairuntime'
|
463
|
-
context[:gem_version] = '1.
|
522
|
+
context[:gem_version] = '1.5.0'
|
464
523
|
Seahorse::Client::Request.new(handlers, context)
|
465
524
|
end
|
466
525
|
|
@@ -11,7 +11,7 @@ module Aws::AugmentedAIRuntime
|
|
11
11
|
|
12
12
|
include Seahorse::Model
|
13
13
|
|
14
|
-
|
14
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
15
15
|
ContentClassifier = Shapes::StringShape.new(name: 'ContentClassifier')
|
16
16
|
ContentClassifiers = Shapes::ListShape.new(name: 'ContentClassifiers')
|
17
17
|
DeleteHumanLoopRequest = Shapes::StructureShape.new(name: 'DeleteHumanLoopRequest')
|
@@ -20,16 +20,14 @@ module Aws::AugmentedAIRuntime
|
|
20
20
|
DescribeHumanLoopResponse = Shapes::StructureShape.new(name: 'DescribeHumanLoopResponse')
|
21
21
|
FailureReason = Shapes::StringShape.new(name: 'FailureReason')
|
22
22
|
FlowDefinitionArn = Shapes::StringShape.new(name: 'FlowDefinitionArn')
|
23
|
-
HumanLoopActivationReason = Shapes::StructureShape.new(name: 'HumanLoopActivationReason')
|
24
|
-
HumanLoopActivationResults = Shapes::StructureShape.new(name: 'HumanLoopActivationResults')
|
25
23
|
HumanLoopArn = Shapes::StringShape.new(name: 'HumanLoopArn')
|
26
|
-
|
24
|
+
HumanLoopDataAttributes = Shapes::StructureShape.new(name: 'HumanLoopDataAttributes')
|
25
|
+
HumanLoopInput = Shapes::StructureShape.new(name: 'HumanLoopInput')
|
27
26
|
HumanLoopName = Shapes::StringShape.new(name: 'HumanLoopName')
|
28
|
-
|
27
|
+
HumanLoopOutput = Shapes::StructureShape.new(name: 'HumanLoopOutput')
|
29
28
|
HumanLoopStatus = Shapes::StringShape.new(name: 'HumanLoopStatus')
|
30
29
|
HumanLoopSummaries = Shapes::ListShape.new(name: 'HumanLoopSummaries')
|
31
30
|
HumanLoopSummary = Shapes::StructureShape.new(name: 'HumanLoopSummary')
|
32
|
-
HumanReviewDataAttributes = Shapes::StructureShape.new(name: 'HumanReviewDataAttributes')
|
33
31
|
InputContent = Shapes::StringShape.new(name: 'InputContent')
|
34
32
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
35
33
|
ListHumanLoopsRequest = Shapes::StructureShape.new(name: 'ListHumanLoopsRequest')
|
@@ -48,6 +46,9 @@ module Aws::AugmentedAIRuntime
|
|
48
46
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
49
47
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
50
48
|
|
49
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: FailureReason, location_name: "Message"))
|
50
|
+
ConflictException.struct_class = Types::ConflictException
|
51
|
+
|
51
52
|
ContentClassifiers.member = Shapes::ShapeRef.new(shape: ContentClassifier)
|
52
53
|
|
53
54
|
DeleteHumanLoopRequest.add_member(:human_loop_name, Shapes::ShapeRef.new(shape: HumanLoopName, required: true, location: "uri", location_name: "HumanLoopName"))
|
@@ -58,29 +59,24 @@ module Aws::AugmentedAIRuntime
|
|
58
59
|
DescribeHumanLoopRequest.add_member(:human_loop_name, Shapes::ShapeRef.new(shape: HumanLoopName, required: true, location: "uri", location_name: "HumanLoopName"))
|
59
60
|
DescribeHumanLoopRequest.struct_class = Types::DescribeHumanLoopRequest
|
60
61
|
|
61
|
-
DescribeHumanLoopResponse.add_member(:
|
62
|
+
DescribeHumanLoopResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
|
62
63
|
DescribeHumanLoopResponse.add_member(:failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "FailureReason"))
|
63
64
|
DescribeHumanLoopResponse.add_member(:failure_code, Shapes::ShapeRef.new(shape: String, location_name: "FailureCode"))
|
64
65
|
DescribeHumanLoopResponse.add_member(:human_loop_status, Shapes::ShapeRef.new(shape: HumanLoopStatus, required: true, location_name: "HumanLoopStatus"))
|
65
66
|
DescribeHumanLoopResponse.add_member(:human_loop_name, Shapes::ShapeRef.new(shape: HumanLoopName, required: true, location_name: "HumanLoopName"))
|
66
67
|
DescribeHumanLoopResponse.add_member(:human_loop_arn, Shapes::ShapeRef.new(shape: HumanLoopArn, required: true, location_name: "HumanLoopArn"))
|
67
68
|
DescribeHumanLoopResponse.add_member(:flow_definition_arn, Shapes::ShapeRef.new(shape: FlowDefinitionArn, required: true, location_name: "FlowDefinitionArn"))
|
68
|
-
DescribeHumanLoopResponse.add_member(:
|
69
|
-
DescribeHumanLoopResponse.add_member(:human_loop_output, Shapes::ShapeRef.new(shape: HumanLoopOutputContent, location_name: "HumanLoopOutput"))
|
69
|
+
DescribeHumanLoopResponse.add_member(:human_loop_output, Shapes::ShapeRef.new(shape: HumanLoopOutput, location_name: "HumanLoopOutput"))
|
70
70
|
DescribeHumanLoopResponse.struct_class = Types::DescribeHumanLoopResponse
|
71
71
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
HumanLoopActivationResults.add_member(:human_loop_activation_reason, Shapes::ShapeRef.new(shape: HumanLoopActivationReason, location_name: "HumanLoopActivationReason"))
|
76
|
-
HumanLoopActivationResults.add_member(:human_loop_activation_conditions_evaluation_results, Shapes::ShapeRef.new(shape: String, location_name: "HumanLoopActivationConditionsEvaluationResults"))
|
77
|
-
HumanLoopActivationResults.struct_class = Types::HumanLoopActivationResults
|
72
|
+
HumanLoopDataAttributes.add_member(:content_classifiers, Shapes::ShapeRef.new(shape: ContentClassifiers, required: true, location_name: "ContentClassifiers"))
|
73
|
+
HumanLoopDataAttributes.struct_class = Types::HumanLoopDataAttributes
|
78
74
|
|
79
|
-
|
80
|
-
|
75
|
+
HumanLoopInput.add_member(:input_content, Shapes::ShapeRef.new(shape: InputContent, required: true, location_name: "InputContent"))
|
76
|
+
HumanLoopInput.struct_class = Types::HumanLoopInput
|
81
77
|
|
82
|
-
|
83
|
-
|
78
|
+
HumanLoopOutput.add_member(:output_s3_uri, Shapes::ShapeRef.new(shape: String, required: true, location_name: "OutputS3Uri"))
|
79
|
+
HumanLoopOutput.struct_class = Types::HumanLoopOutput
|
84
80
|
|
85
81
|
HumanLoopSummaries.member = Shapes::ShapeRef.new(shape: HumanLoopSummary)
|
86
82
|
|
@@ -91,14 +87,12 @@ module Aws::AugmentedAIRuntime
|
|
91
87
|
HumanLoopSummary.add_member(:flow_definition_arn, Shapes::ShapeRef.new(shape: FlowDefinitionArn, location_name: "FlowDefinitionArn"))
|
92
88
|
HumanLoopSummary.struct_class = Types::HumanLoopSummary
|
93
89
|
|
94
|
-
HumanReviewDataAttributes.add_member(:content_classifiers, Shapes::ShapeRef.new(shape: ContentClassifiers, required: true, location_name: "ContentClassifiers"))
|
95
|
-
HumanReviewDataAttributes.struct_class = Types::HumanReviewDataAttributes
|
96
|
-
|
97
90
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: FailureReason, location_name: "Message"))
|
98
91
|
InternalServerException.struct_class = Types::InternalServerException
|
99
92
|
|
100
93
|
ListHumanLoopsRequest.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "CreationTimeAfter"))
|
101
94
|
ListHumanLoopsRequest.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "CreationTimeBefore"))
|
95
|
+
ListHumanLoopsRequest.add_member(:flow_definition_arn, Shapes::ShapeRef.new(shape: FlowDefinitionArn, required: true, location: "querystring", location_name: "FlowDefinitionArn"))
|
102
96
|
ListHumanLoopsRequest.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "SortOrder"))
|
103
97
|
ListHumanLoopsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
104
98
|
ListHumanLoopsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults", metadata: {"box"=>true}))
|
@@ -116,12 +110,11 @@ module Aws::AugmentedAIRuntime
|
|
116
110
|
|
117
111
|
StartHumanLoopRequest.add_member(:human_loop_name, Shapes::ShapeRef.new(shape: HumanLoopName, required: true, location_name: "HumanLoopName"))
|
118
112
|
StartHumanLoopRequest.add_member(:flow_definition_arn, Shapes::ShapeRef.new(shape: FlowDefinitionArn, required: true, location_name: "FlowDefinitionArn"))
|
119
|
-
StartHumanLoopRequest.add_member(:human_loop_input, Shapes::ShapeRef.new(shape:
|
120
|
-
StartHumanLoopRequest.add_member(:data_attributes, Shapes::ShapeRef.new(shape:
|
113
|
+
StartHumanLoopRequest.add_member(:human_loop_input, Shapes::ShapeRef.new(shape: HumanLoopInput, required: true, location_name: "HumanLoopInput"))
|
114
|
+
StartHumanLoopRequest.add_member(:data_attributes, Shapes::ShapeRef.new(shape: HumanLoopDataAttributes, location_name: "DataAttributes"))
|
121
115
|
StartHumanLoopRequest.struct_class = Types::StartHumanLoopRequest
|
122
116
|
|
123
117
|
StartHumanLoopResponse.add_member(:human_loop_arn, Shapes::ShapeRef.new(shape: HumanLoopArn, location_name: "HumanLoopArn"))
|
124
|
-
StartHumanLoopResponse.add_member(:human_loop_activation_results, Shapes::ShapeRef.new(shape: HumanLoopActivationResults, location_name: "HumanLoopActivationResults"))
|
125
118
|
StartHumanLoopResponse.struct_class = Types::StartHumanLoopResponse
|
126
119
|
|
127
120
|
StopHumanLoopRequest.add_member(:human_loop_name, Shapes::ShapeRef.new(shape: HumanLoopName, required: true, location_name: "HumanLoopName"))
|
@@ -184,6 +177,7 @@ module Aws::AugmentedAIRuntime
|
|
184
177
|
o.input = Shapes::ShapeRef.new(shape: ListHumanLoopsRequest)
|
185
178
|
o.output = Shapes::ShapeRef.new(shape: ListHumanLoopsResponse)
|
186
179
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
180
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
187
181
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
188
182
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
189
183
|
o[:pager] = Aws::Pager.new(
|
@@ -204,6 +198,7 @@ module Aws::AugmentedAIRuntime
|
|
204
198
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
205
199
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
206
200
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
201
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
207
202
|
end)
|
208
203
|
|
209
204
|
api.add_operation(:stop_human_loop, Seahorse::Model::Operation.new.tap do |o|
|
@@ -6,10 +6,53 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::AugmentedAIRuntime
|
9
|
+
|
10
|
+
# When AugmentedAIRuntime returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::AugmentedAIRuntime::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all AugmentedAIRuntime errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::AugmentedAIRuntime::Errors::ServiceError
|
18
|
+
# # rescues all AugmentedAIRuntime API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {ConflictException}
|
29
|
+
# * {InternalServerException}
|
30
|
+
# * {ResourceNotFoundException}
|
31
|
+
# * {ServiceQuotaExceededException}
|
32
|
+
# * {ThrottlingException}
|
33
|
+
# * {ValidationException}
|
34
|
+
#
|
35
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
36
|
+
# if they are not defined above.
|
9
37
|
module Errors
|
10
38
|
|
11
39
|
extend Aws::Errors::DynamicErrors
|
12
40
|
|
41
|
+
class ConflictException < ServiceError
|
42
|
+
|
43
|
+
# @param [Seahorse::Client::RequestContext] context
|
44
|
+
# @param [String] message
|
45
|
+
# @param [Aws::AugmentedAIRuntime::Types::ConflictException] data
|
46
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
47
|
+
super(context, message, data)
|
48
|
+
end
|
49
|
+
|
50
|
+
# @return [String]
|
51
|
+
def message
|
52
|
+
@message || @data[:message]
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
13
56
|
class InternalServerException < ServiceError
|
14
57
|
|
15
58
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -23,7 +66,6 @@ module Aws::AugmentedAIRuntime
|
|
23
66
|
def message
|
24
67
|
@message || @data[:message]
|
25
68
|
end
|
26
|
-
|
27
69
|
end
|
28
70
|
|
29
71
|
class ResourceNotFoundException < ServiceError
|
@@ -39,7 +81,6 @@ module Aws::AugmentedAIRuntime
|
|
39
81
|
def message
|
40
82
|
@message || @data[:message]
|
41
83
|
end
|
42
|
-
|
43
84
|
end
|
44
85
|
|
45
86
|
class ServiceQuotaExceededException < ServiceError
|
@@ -55,7 +96,6 @@ module Aws::AugmentedAIRuntime
|
|
55
96
|
def message
|
56
97
|
@message || @data[:message]
|
57
98
|
end
|
58
|
-
|
59
99
|
end
|
60
100
|
|
61
101
|
class ThrottlingException < ServiceError
|
@@ -71,7 +111,6 @@ module Aws::AugmentedAIRuntime
|
|
71
111
|
def message
|
72
112
|
@message || @data[:message]
|
73
113
|
end
|
74
|
-
|
75
114
|
end
|
76
115
|
|
77
116
|
class ValidationException < ServiceError
|
@@ -87,7 +126,6 @@ module Aws::AugmentedAIRuntime
|
|
87
126
|
def message
|
88
127
|
@message || @data[:message]
|
89
128
|
end
|
90
|
-
|
91
129
|
end
|
92
130
|
|
93
131
|
end
|
@@ -8,6 +8,20 @@
|
|
8
8
|
module Aws::AugmentedAIRuntime
|
9
9
|
module Types
|
10
10
|
|
11
|
+
# Your request has the same name as another active human loop but has
|
12
|
+
# different input data. You cannot start two human loops with the same
|
13
|
+
# name and different input data.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ConflictException AWS API Documentation
|
19
|
+
#
|
20
|
+
class ConflictException < Struct.new(
|
21
|
+
:message)
|
22
|
+
include Aws::Structure
|
23
|
+
end
|
24
|
+
|
11
25
|
# @note When making an API call, you may pass DeleteHumanLoopRequest
|
12
26
|
# data as a hash:
|
13
27
|
#
|
@@ -16,7 +30,7 @@ module Aws::AugmentedAIRuntime
|
|
16
30
|
# }
|
17
31
|
#
|
18
32
|
# @!attribute [rw] human_loop_name
|
19
|
-
# The name of the human loop you want to delete.
|
33
|
+
# The name of the human loop that you want to delete.
|
20
34
|
# @return [String]
|
21
35
|
#
|
22
36
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoopRequest AWS API Documentation
|
@@ -38,7 +52,7 @@ module Aws::AugmentedAIRuntime
|
|
38
52
|
# }
|
39
53
|
#
|
40
54
|
# @!attribute [rw] human_loop_name
|
41
|
-
# The name of the human loop.
|
55
|
+
# The name of the human loop that you want information about.
|
42
56
|
# @return [String]
|
43
57
|
#
|
44
58
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoopRequest AWS API Documentation
|
@@ -48,25 +62,27 @@ module Aws::AugmentedAIRuntime
|
|
48
62
|
include Aws::Structure
|
49
63
|
end
|
50
64
|
|
51
|
-
# @!attribute [rw]
|
52
|
-
# The
|
65
|
+
# @!attribute [rw] creation_time
|
66
|
+
# The creation time when Amazon Augmented AI created the human loop.
|
53
67
|
# @return [Time]
|
54
68
|
#
|
55
69
|
# @!attribute [rw] failure_reason
|
56
|
-
# The reason why a human loop
|
57
|
-
#
|
70
|
+
# The reason why a human loop failed. The failure reason is returned
|
71
|
+
# when the status of the human loop is `Failed`.
|
58
72
|
# @return [String]
|
59
73
|
#
|
60
74
|
# @!attribute [rw] failure_code
|
61
|
-
# A failure code
|
75
|
+
# A failure code that identifies the type of failure.
|
62
76
|
# @return [String]
|
63
77
|
#
|
64
78
|
# @!attribute [rw] human_loop_status
|
65
|
-
# The status of the human loop.
|
79
|
+
# The status of the human loop.
|
66
80
|
# @return [String]
|
67
81
|
#
|
68
82
|
# @!attribute [rw] human_loop_name
|
69
|
-
# The name of the human loop.
|
83
|
+
# The name of the human loop. The name must be lowercase, unique
|
84
|
+
# within the Region in your account, and can have up to 63 characters.
|
85
|
+
# Valid characters: a-z, 0-9, and - (hyphen).
|
70
86
|
# @return [String]
|
71
87
|
#
|
72
88
|
# @!attribute [rw] human_loop_arn
|
@@ -77,71 +93,53 @@ module Aws::AugmentedAIRuntime
|
|
77
93
|
# The Amazon Resource Name (ARN) of the flow definition.
|
78
94
|
# @return [String]
|
79
95
|
#
|
80
|
-
# @!attribute [rw] human_loop_input
|
81
|
-
# An object containing information about the human loop input.
|
82
|
-
# @return [Types::HumanLoopInputContent]
|
83
|
-
#
|
84
96
|
# @!attribute [rw] human_loop_output
|
85
|
-
# An object
|
86
|
-
#
|
97
|
+
# An object that contains information about the output of the human
|
98
|
+
# loop.
|
99
|
+
# @return [Types::HumanLoopOutput]
|
87
100
|
#
|
88
101
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoopResponse AWS API Documentation
|
89
102
|
#
|
90
103
|
class DescribeHumanLoopResponse < Struct.new(
|
91
|
-
:
|
104
|
+
:creation_time,
|
92
105
|
:failure_reason,
|
93
106
|
:failure_code,
|
94
107
|
:human_loop_status,
|
95
108
|
:human_loop_name,
|
96
109
|
:human_loop_arn,
|
97
110
|
:flow_definition_arn,
|
98
|
-
:human_loop_input,
|
99
111
|
:human_loop_output)
|
100
112
|
include Aws::Structure
|
101
113
|
end
|
102
114
|
|
103
|
-
#
|
104
|
-
#
|
105
|
-
# activated.
|
115
|
+
# Attributes of the data specified by the customer. Use these to
|
116
|
+
# describe the data to be labeled.
|
106
117
|
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# loop.
|
110
|
-
# @return [Boolean]
|
118
|
+
# @note When making an API call, you may pass HumanLoopDataAttributes
|
119
|
+
# data as a hash:
|
111
120
|
#
|
112
|
-
#
|
121
|
+
# {
|
122
|
+
# content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # required, accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
|
123
|
+
# }
|
113
124
|
#
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
end
|
118
|
-
|
119
|
-
# Information about the corresponding flow definition's human loop
|
120
|
-
# activation condition evaluation. Null if `StartHumanLoop` was invoked
|
121
|
-
# directly.
|
122
|
-
#
|
123
|
-
# @!attribute [rw] human_loop_activation_reason
|
124
|
-
# An object containing information about why a human loop was
|
125
|
-
# triggered.
|
126
|
-
# @return [Types::HumanLoopActivationReason]
|
127
|
-
#
|
128
|
-
# @!attribute [rw] human_loop_activation_conditions_evaluation_results
|
129
|
-
# A copy of the human loop activation conditions of the flow
|
130
|
-
# definition, augmented with the results of evaluating those
|
131
|
-
# conditions on the input provided to the `StartHumanLoop` operation.
|
132
|
-
# @return [String]
|
125
|
+
# @!attribute [rw] content_classifiers
|
126
|
+
# Declares that your content is free of personally identifiable
|
127
|
+
# information or adult content.
|
133
128
|
#
|
134
|
-
#
|
129
|
+
# Amazon SageMaker can restrict the Amazon Mechanical Turk workers who
|
130
|
+
# can view your task based on this information.
|
131
|
+
# @return [Array<String>]
|
132
|
+
#
|
133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopDataAttributes AWS API Documentation
|
135
134
|
#
|
136
|
-
class
|
137
|
-
:
|
138
|
-
:human_loop_activation_conditions_evaluation_results)
|
135
|
+
class HumanLoopDataAttributes < Struct.new(
|
136
|
+
:content_classifiers)
|
139
137
|
include Aws::Structure
|
140
138
|
end
|
141
139
|
|
142
|
-
# An object containing the input.
|
140
|
+
# An object containing the human loop input in JSON format.
|
143
141
|
#
|
144
|
-
# @note When making an API call, you may pass
|
142
|
+
# @note When making an API call, you may pass HumanLoopInput
|
145
143
|
# data as a hash:
|
146
144
|
#
|
147
145
|
# {
|
@@ -149,12 +147,13 @@ module Aws::AugmentedAIRuntime
|
|
149
147
|
# }
|
150
148
|
#
|
151
149
|
# @!attribute [rw] input_content
|
152
|
-
# Serialized input from the human loop.
|
150
|
+
# Serialized input from the human loop. The input must be a string
|
151
|
+
# representation of a file in JSON format.
|
153
152
|
# @return [String]
|
154
153
|
#
|
155
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/
|
154
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopInput AWS API Documentation
|
156
155
|
#
|
157
|
-
class
|
156
|
+
class HumanLoopInput < Struct.new(
|
158
157
|
:input_content)
|
159
158
|
include Aws::Structure
|
160
159
|
end
|
@@ -163,14 +162,12 @@ module Aws::AugmentedAIRuntime
|
|
163
162
|
#
|
164
163
|
# @!attribute [rw] output_s3_uri
|
165
164
|
# The location of the Amazon S3 object where Amazon Augmented AI
|
166
|
-
# stores your human loop output.
|
167
|
-
# location:
|
168
|
-
# `s3://S3OutputPath/HumanLoopName/CreationTime/output.json`.
|
165
|
+
# stores your human loop output.
|
169
166
|
# @return [String]
|
170
167
|
#
|
171
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/
|
168
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopOutput AWS API Documentation
|
172
169
|
#
|
173
|
-
class
|
170
|
+
class HumanLoopOutput < Struct.new(
|
174
171
|
:output_s3_uri)
|
175
172
|
include Aws::Structure
|
176
173
|
end
|
@@ -182,7 +179,7 @@ module Aws::AugmentedAIRuntime
|
|
182
179
|
# @return [String]
|
183
180
|
#
|
184
181
|
# @!attribute [rw] human_loop_status
|
185
|
-
# The status of the human loop.
|
182
|
+
# The status of the human loop.
|
186
183
|
# @return [String]
|
187
184
|
#
|
188
185
|
# @!attribute [rw] creation_time
|
@@ -191,11 +188,12 @@ module Aws::AugmentedAIRuntime
|
|
191
188
|
#
|
192
189
|
# @!attribute [rw] failure_reason
|
193
190
|
# The reason why the human loop failed. A failure reason is returned
|
194
|
-
#
|
191
|
+
# when the status of the human loop is `Failed`.
|
195
192
|
# @return [String]
|
196
193
|
#
|
197
194
|
# @!attribute [rw] flow_definition_arn
|
198
|
-
# The Amazon Resource Name (ARN) of the flow definition
|
195
|
+
# The Amazon Resource Name (ARN) of the flow definition used to
|
196
|
+
# configure the human loop.
|
199
197
|
# @return [String]
|
200
198
|
#
|
201
199
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopSummary AWS API Documentation
|
@@ -209,31 +207,8 @@ module Aws::AugmentedAIRuntime
|
|
209
207
|
include Aws::Structure
|
210
208
|
end
|
211
209
|
|
212
|
-
#
|
213
|
-
#
|
214
|
-
#
|
215
|
-
# @note When making an API call, you may pass HumanReviewDataAttributes
|
216
|
-
# data as a hash:
|
217
|
-
#
|
218
|
-
# {
|
219
|
-
# content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # required, accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
|
220
|
-
# }
|
221
|
-
#
|
222
|
-
# @!attribute [rw] content_classifiers
|
223
|
-
# Declares that your content is free of personally identifiable
|
224
|
-
# information or adult content. Amazon SageMaker may restrict the
|
225
|
-
# Amazon Mechanical Turk workers that can view your task based on this
|
226
|
-
# information.
|
227
|
-
# @return [Array<String>]
|
228
|
-
#
|
229
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanReviewDataAttributes AWS API Documentation
|
230
|
-
#
|
231
|
-
class HumanReviewDataAttributes < Struct.new(
|
232
|
-
:content_classifiers)
|
233
|
-
include Aws::Structure
|
234
|
-
end
|
235
|
-
|
236
|
-
# Your request could not be processed.
|
210
|
+
# We couldn't process your request because of an issue with the server.
|
211
|
+
# Try again later.
|
237
212
|
#
|
238
213
|
# @!attribute [rw] message
|
239
214
|
# @return [String]
|
@@ -251,6 +226,7 @@ module Aws::AugmentedAIRuntime
|
|
251
226
|
# {
|
252
227
|
# creation_time_after: Time.now,
|
253
228
|
# creation_time_before: Time.now,
|
229
|
+
# flow_definition_arn: "FlowDefinitionArn", # required
|
254
230
|
# sort_order: "Ascending", # accepts Ascending, Descending
|
255
231
|
# next_token: "NextToken",
|
256
232
|
# max_results: 1,
|
@@ -258,28 +234,32 @@ module Aws::AugmentedAIRuntime
|
|
258
234
|
#
|
259
235
|
# @!attribute [rw] creation_time_after
|
260
236
|
# (Optional) The timestamp of the date when you want the human loops
|
261
|
-
# to begin. For example, `
|
237
|
+
# to begin in ISO 8601 format. For example, `2020-02-24`.
|
262
238
|
# @return [Time]
|
263
239
|
#
|
264
240
|
# @!attribute [rw] creation_time_before
|
265
241
|
# (Optional) The timestamp of the date before which you want the human
|
266
|
-
# loops to begin. For example, `
|
242
|
+
# loops to begin in ISO 8601 format. For example, `2020-02-24`.
|
267
243
|
# @return [Time]
|
268
244
|
#
|
245
|
+
# @!attribute [rw] flow_definition_arn
|
246
|
+
# The Amazon Resource Name (ARN) of a flow definition.
|
247
|
+
# @return [String]
|
248
|
+
#
|
269
249
|
# @!attribute [rw] sort_order
|
270
|
-
#
|
271
|
-
#
|
250
|
+
# Optional. The order for displaying results. Valid values:
|
251
|
+
# `Ascending` and `Descending`.
|
272
252
|
# @return [String]
|
273
253
|
#
|
274
254
|
# @!attribute [rw] next_token
|
275
|
-
# A token to
|
255
|
+
# A token to display the next page of results.
|
276
256
|
# @return [String]
|
277
257
|
#
|
278
258
|
# @!attribute [rw] max_results
|
279
259
|
# The total number of items to return. If the total number of
|
280
260
|
# available items is more than the value specified in `MaxResults`,
|
281
|
-
# then a `NextToken`
|
282
|
-
# to
|
261
|
+
# then a `NextToken` is returned in the output. You can use this token
|
262
|
+
# to display the next page of results.
|
283
263
|
# @return [Integer]
|
284
264
|
#
|
285
265
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoopsRequest AWS API Documentation
|
@@ -287,6 +267,7 @@ module Aws::AugmentedAIRuntime
|
|
287
267
|
class ListHumanLoopsRequest < Struct.new(
|
288
268
|
:creation_time_after,
|
289
269
|
:creation_time_before,
|
270
|
+
:flow_definition_arn,
|
290
271
|
:sort_order,
|
291
272
|
:next_token,
|
292
273
|
:max_results)
|
@@ -294,11 +275,11 @@ module Aws::AugmentedAIRuntime
|
|
294
275
|
end
|
295
276
|
|
296
277
|
# @!attribute [rw] human_loop_summaries
|
297
|
-
# An array of objects
|
278
|
+
# An array of objects that contain information about the human loops.
|
298
279
|
# @return [Array<Types::HumanLoopSummary>]
|
299
280
|
#
|
300
281
|
# @!attribute [rw] next_token
|
301
|
-
# A token to
|
282
|
+
# A token to display the next page of results.
|
302
283
|
# @return [String]
|
303
284
|
#
|
304
285
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoopsResponse AWS API Documentation
|
@@ -309,7 +290,7 @@ module Aws::AugmentedAIRuntime
|
|
309
290
|
include Aws::Structure
|
310
291
|
end
|
311
292
|
|
312
|
-
# We
|
293
|
+
# We couldn't find the requested resource.
|
313
294
|
#
|
314
295
|
# @!attribute [rw] message
|
315
296
|
# @return [String]
|
@@ -321,9 +302,8 @@ module Aws::AugmentedAIRuntime
|
|
321
302
|
include Aws::Structure
|
322
303
|
end
|
323
304
|
|
324
|
-
# You
|
325
|
-
#
|
326
|
-
# increase.
|
305
|
+
# You exceeded your service quota. Delete some resources or request an
|
306
|
+
# increase in your service quota.
|
327
307
|
#
|
328
308
|
# @!attribute [rw] message
|
329
309
|
# @return [String]
|
@@ -354,16 +334,19 @@ module Aws::AugmentedAIRuntime
|
|
354
334
|
# @return [String]
|
355
335
|
#
|
356
336
|
# @!attribute [rw] flow_definition_arn
|
357
|
-
# The Amazon Resource Name (ARN) of the flow definition
|
337
|
+
# The Amazon Resource Name (ARN) of the flow definition associated
|
338
|
+
# with this human loop.
|
358
339
|
# @return [String]
|
359
340
|
#
|
360
341
|
# @!attribute [rw] human_loop_input
|
361
|
-
# An object
|
362
|
-
# @return [Types::
|
342
|
+
# An object that contains information about the human loop.
|
343
|
+
# @return [Types::HumanLoopInput]
|
363
344
|
#
|
364
345
|
# @!attribute [rw] data_attributes
|
365
|
-
# Attributes of the data
|
366
|
-
#
|
346
|
+
# Attributes of the specified data. Use `DataAttributes` to specify if
|
347
|
+
# your data is free of personally identifiable information and/or free
|
348
|
+
# of adult content.
|
349
|
+
# @return [Types::HumanLoopDataAttributes]
|
367
350
|
#
|
368
351
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoopRequest AWS API Documentation
|
369
352
|
#
|
@@ -379,15 +362,10 @@ module Aws::AugmentedAIRuntime
|
|
379
362
|
# The Amazon Resource Name (ARN) of the human loop.
|
380
363
|
# @return [String]
|
381
364
|
#
|
382
|
-
# @!attribute [rw] human_loop_activation_results
|
383
|
-
# An object containing information about the human loop activation.
|
384
|
-
# @return [Types::HumanLoopActivationResults]
|
385
|
-
#
|
386
365
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoopResponse AWS API Documentation
|
387
366
|
#
|
388
367
|
class StartHumanLoopResponse < Struct.new(
|
389
|
-
:human_loop_arn
|
390
|
-
:human_loop_activation_results)
|
368
|
+
:human_loop_arn)
|
391
369
|
include Aws::Structure
|
392
370
|
end
|
393
371
|
|
@@ -399,7 +377,7 @@ module Aws::AugmentedAIRuntime
|
|
399
377
|
# }
|
400
378
|
#
|
401
379
|
# @!attribute [rw] human_loop_name
|
402
|
-
# The name of the human loop you want to stop.
|
380
|
+
# The name of the human loop that you want to stop.
|
403
381
|
# @return [String]
|
404
382
|
#
|
405
383
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoopRequest AWS API Documentation
|
@@ -413,7 +391,7 @@ module Aws::AugmentedAIRuntime
|
|
413
391
|
#
|
414
392
|
class StopHumanLoopResponse < Aws::EmptyStructure; end
|
415
393
|
|
416
|
-
#
|
394
|
+
# You exceeded the maximum number of requests.
|
417
395
|
#
|
418
396
|
# @!attribute [rw] message
|
419
397
|
# @return [String]
|
@@ -425,7 +403,7 @@ module Aws::AugmentedAIRuntime
|
|
425
403
|
include Aws::Structure
|
426
404
|
end
|
427
405
|
|
428
|
-
#
|
406
|
+
# The request isn't valid. Check the syntax and try again.
|
429
407
|
#
|
430
408
|
# @!attribute [rw] message
|
431
409
|
# @return [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-augmentedairuntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.7.6.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: AWS SDK for Ruby - Amazon Augmented AI Runtime
|