aws-sdk-augmentedairuntime 1.0.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3054112fbe9e4c8bbd67947aace99308b9214bc
4
- data.tar.gz: 878540e4aa20c061331a2adff0498d48db3a70b7
3
+ metadata.gz: ed712495a3d22eba19aec88643dc0beab1766360
4
+ data.tar.gz: bcea76308507a86c4a290f3630d6626be682d3b0
5
5
  SHA512:
6
- metadata.gz: a7768447112da30582c2b1bef2b5a22a179adace572ed6a370dd9364da8c06872bf1f559add6d542359a82dfddbfadf0032001bdeb5a60c430399b4aac4b63a6
7
- data.tar.gz: c451756432d1e8a8b96ae33870ebfdefbccbcfadec14b7b3cda7d3abf4b0d13f850580fdf44131049860b9d4559ed8b0cb162635b0c5dac5aa49ebd11a7f61cc
6
+ metadata.gz: 16ba958c7a0c8989f86ba494dd04fcdad8eaa55bd47e5ccf3f768e458f8dc0687568bd7b1f80cdcb242426a524c559767c8085856bb8d9247818b05154ceceb8
7
+ data.tar.gz: 6f25b9a40f1cb0d238f95ef1fb49ef202bcac13aa3ce3ae36e7ca3dd3cb43851af79c48268cb0a5cf28602f68bc2249e9a9178239c4047642d90842b28acc0ab
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-augmentedairuntime/customizations'
42
42
  # @service
43
43
  module Aws::AugmentedAIRuntime
44
44
 
45
- GEM_VERSION = '1.0.0'
45
+ GEM_VERSION = '1.1.1'
46
46
 
47
47
  end
@@ -279,19 +279,18 @@ module Aws::AugmentedAIRuntime
279
279
  # Returns information about the specified human loop.
280
280
  #
281
281
  # @option params [required, String] :human_loop_name
282
- # The name of the human loop.
282
+ # The unique name of the human loop.
283
283
  #
284
284
  # @return [Types::DescribeHumanLoopResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
285
285
  #
286
- # * {Types::DescribeHumanLoopResponse#creation_timestamp #creation_timestamp} => Time
286
+ # * {Types::DescribeHumanLoopResponse#creation_time #creation_time} => Time
287
287
  # * {Types::DescribeHumanLoopResponse#failure_reason #failure_reason} => String
288
288
  # * {Types::DescribeHumanLoopResponse#failure_code #failure_code} => String
289
289
  # * {Types::DescribeHumanLoopResponse#human_loop_status #human_loop_status} => String
290
290
  # * {Types::DescribeHumanLoopResponse#human_loop_name #human_loop_name} => String
291
291
  # * {Types::DescribeHumanLoopResponse#human_loop_arn #human_loop_arn} => String
292
292
  # * {Types::DescribeHumanLoopResponse#flow_definition_arn #flow_definition_arn} => String
293
- # * {Types::DescribeHumanLoopResponse#human_loop_input #human_loop_input} => Types::HumanLoopInputContent
294
- # * {Types::DescribeHumanLoopResponse#human_loop_output #human_loop_output} => Types::HumanLoopOutputContent
293
+ # * {Types::DescribeHumanLoopResponse#human_loop_output #human_loop_output} => Types::HumanLoopOutput
295
294
  #
296
295
  # @example Request syntax with placeholder values
297
296
  #
@@ -301,14 +300,13 @@ module Aws::AugmentedAIRuntime
301
300
  #
302
301
  # @example Response structure
303
302
  #
304
- # resp.creation_timestamp #=> Time
303
+ # resp.creation_time #=> Time
305
304
  # resp.failure_reason #=> String
306
305
  # resp.failure_code #=> String
307
306
  # resp.human_loop_status #=> String, one of "InProgress", "Failed", "Completed", "Stopped", "Stopping"
308
307
  # resp.human_loop_name #=> String
309
308
  # resp.human_loop_arn #=> String
310
309
  # resp.flow_definition_arn #=> String
311
- # resp.human_loop_input.input_content #=> String
312
310
  # resp.human_loop_output.output_s3_uri #=> String
313
311
  #
314
312
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop AWS API Documentation
@@ -321,14 +319,18 @@ module Aws::AugmentedAIRuntime
321
319
  end
322
320
 
323
321
  # Returns information about human loops, given the specified parameters.
322
+ # If a human loop was deleted, it will not be included.
324
323
  #
325
324
  # @option params [Time,DateTime,Date,Integer,String] :creation_time_after
326
325
  # (Optional) The timestamp of the date when you want the human loops to
327
- # begin. For example, `1551000000`.
326
+ # begin in ISO 8601 format. For example, `2020-02-24`.
328
327
  #
329
328
  # @option params [Time,DateTime,Date,Integer,String] :creation_time_before
330
329
  # (Optional) The timestamp of the date before which you want the human
331
- # loops to begin. For example, `1550000000`.
330
+ # loops to begin in ISO 8601 format. For example, `2020-02-24`.
331
+ #
332
+ # @option params [required, String] :flow_definition_arn
333
+ # The Amazon Resource Name (ARN) of a flow definition.
332
334
  #
333
335
  # @option params [String] :sort_order
334
336
  # An optional value that specifies whether you want the results sorted
@@ -353,6 +355,7 @@ module Aws::AugmentedAIRuntime
353
355
  # resp = client.list_human_loops({
354
356
  # creation_time_after: Time.now,
355
357
  # creation_time_before: Time.now,
358
+ # flow_definition_arn: "FlowDefinitionArn", # required
356
359
  # sort_order: "Ascending", # accepts Ascending, Descending
357
360
  # next_token: "NextToken",
358
361
  # max_results: 1,
@@ -386,16 +389,15 @@ module Aws::AugmentedAIRuntime
386
389
  # @option params [required, String] :flow_definition_arn
387
390
  # The Amazon Resource Name (ARN) of the flow definition.
388
391
  #
389
- # @option params [required, Types::HumanLoopInputContent] :human_loop_input
392
+ # @option params [required, Types::HumanLoopInput] :human_loop_input
390
393
  # An object containing information about the human loop.
391
394
  #
392
- # @option params [Types::HumanReviewDataAttributes] :data_attributes
395
+ # @option params [Types::HumanLoopDataAttributes] :data_attributes
393
396
  # Attributes of the data specified by the customer.
394
397
  #
395
398
  # @return [Types::StartHumanLoopResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
396
399
  #
397
400
  # * {Types::StartHumanLoopResponse#human_loop_arn #human_loop_arn} => String
398
- # * {Types::StartHumanLoopResponse#human_loop_activation_results #human_loop_activation_results} => Types::HumanLoopActivationResults
399
401
  #
400
402
  # @example Request syntax with placeholder values
401
403
  #
@@ -413,8 +415,6 @@ module Aws::AugmentedAIRuntime
413
415
  # @example Response structure
414
416
  #
415
417
  # 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
418
  #
419
419
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop AWS API Documentation
420
420
  #
@@ -460,7 +460,7 @@ module Aws::AugmentedAIRuntime
460
460
  params: params,
461
461
  config: config)
462
462
  context[:gem_name] = 'aws-sdk-augmentedairuntime'
463
- context[:gem_version] = '1.0.0'
463
+ context[:gem_version] = '1.1.1'
464
464
  Seahorse::Client::Request.new(handlers, context)
465
465
  end
466
466
 
@@ -11,7 +11,7 @@ module Aws::AugmentedAIRuntime
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
- Boolean = Shapes::BooleanShape.new(name: 'Boolean')
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
- HumanLoopInputContent = Shapes::StructureShape.new(name: 'HumanLoopInputContent')
24
+ HumanLoopDataAttributes = Shapes::StructureShape.new(name: 'HumanLoopDataAttributes')
25
+ HumanLoopInput = Shapes::StructureShape.new(name: 'HumanLoopInput')
27
26
  HumanLoopName = Shapes::StringShape.new(name: 'HumanLoopName')
28
- HumanLoopOutputContent = Shapes::StructureShape.new(name: 'HumanLoopOutputContent')
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(:creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTimestamp"))
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(:human_loop_input, Shapes::ShapeRef.new(shape: HumanLoopInputContent, required: true, location_name: "HumanLoopInput"))
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
- HumanLoopActivationReason.add_member(:conditions_matched, Shapes::ShapeRef.new(shape: Boolean, location_name: "ConditionsMatched"))
73
- HumanLoopActivationReason.struct_class = Types::HumanLoopActivationReason
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
- HumanLoopInputContent.add_member(:input_content, Shapes::ShapeRef.new(shape: InputContent, required: true, location_name: "InputContent"))
80
- HumanLoopInputContent.struct_class = Types::HumanLoopInputContent
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
- HumanLoopOutputContent.add_member(:output_s3_uri, Shapes::ShapeRef.new(shape: String, required: true, location_name: "OutputS3Uri"))
83
- HumanLoopOutputContent.struct_class = Types::HumanLoopOutputContent
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: HumanLoopInputContent, required: true, location_name: "HumanLoopInput"))
120
- StartHumanLoopRequest.add_member(:data_attributes, Shapes::ShapeRef.new(shape: HumanReviewDataAttributes, location_name: "DataAttributes"))
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"))
@@ -204,6 +197,7 @@ module Aws::AugmentedAIRuntime
204
197
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
205
198
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
206
199
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
200
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
207
201
  end)
208
202
 
209
203
  api.add_operation(:stop_human_loop, Seahorse::Model::Operation.new.tap do |o|
@@ -10,6 +10,22 @@ module Aws::AugmentedAIRuntime
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class ConflictException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::AugmentedAIRuntime::Types::ConflictException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
13
29
  class InternalServerException < ServiceError
14
30
 
15
31
  # @param [Seahorse::Client::RequestContext] context
@@ -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
  #
@@ -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 unique name of the human loop.
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,8 +62,8 @@ module Aws::AugmentedAIRuntime
48
62
  include Aws::Structure
49
63
  end
50
64
 
51
- # @!attribute [rw] creation_timestamp
52
- # The timestamp when Amazon Augmented AI created the human loop.
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
@@ -77,71 +91,52 @@ module Aws::AugmentedAIRuntime
77
91
  # The Amazon Resource Name (ARN) of the flow definition.
78
92
  # @return [String]
79
93
  #
80
- # @!attribute [rw] human_loop_input
81
- # An object containing information about the human loop input.
82
- # @return [Types::HumanLoopInputContent]
83
- #
84
94
  # @!attribute [rw] human_loop_output
85
95
  # An object containing information about the output of the human loop.
86
- # @return [Types::HumanLoopOutputContent]
96
+ # @return [Types::HumanLoopOutput]
87
97
  #
88
98
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoopResponse AWS API Documentation
89
99
  #
90
100
  class DescribeHumanLoopResponse < Struct.new(
91
- :creation_timestamp,
101
+ :creation_time,
92
102
  :failure_reason,
93
103
  :failure_code,
94
104
  :human_loop_status,
95
105
  :human_loop_name,
96
106
  :human_loop_arn,
97
107
  :flow_definition_arn,
98
- :human_loop_input,
99
108
  :human_loop_output)
100
109
  include Aws::Structure
101
110
  end
102
111
 
103
- # Contains information about why a human loop was triggered. If at least
104
- # one activation reason is evaluated to be true, the human loop is
105
- # activated.
112
+ # Attributes of the data specified by the customer. Use these to
113
+ # describe the data to be labeled.
106
114
  #
107
- # @!attribute [rw] conditions_matched
108
- # True if the specified conditions were matched to trigger the human
109
- # loop.
110
- # @return [Boolean]
115
+ # @note When making an API call, you may pass HumanLoopDataAttributes
116
+ # data as a hash:
111
117
  #
112
- # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopActivationReason AWS API Documentation
118
+ # {
119
+ # content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # required, accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
120
+ # }
113
121
  #
114
- class HumanLoopActivationReason < Struct.new(
115
- :conditions_matched)
116
- include Aws::Structure
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]
122
+ # @!attribute [rw] content_classifiers
123
+ # Declares that your content is free of personally identifiable
124
+ # information or adult content.
133
125
  #
134
- # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopActivationResults AWS API Documentation
126
+ # Amazon SageMaker can restrict the Amazon Mechanical Turk workers who
127
+ # can view your task based on this information.
128
+ # @return [Array<String>]
135
129
  #
136
- class HumanLoopActivationResults < Struct.new(
137
- :human_loop_activation_reason,
138
- :human_loop_activation_conditions_evaluation_results)
130
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopDataAttributes AWS API Documentation
131
+ #
132
+ class HumanLoopDataAttributes < Struct.new(
133
+ :content_classifiers)
139
134
  include Aws::Structure
140
135
  end
141
136
 
142
- # An object containing the input.
137
+ # An object containing the human loop input in JSON format.
143
138
  #
144
- # @note When making an API call, you may pass HumanLoopInputContent
139
+ # @note When making an API call, you may pass HumanLoopInput
145
140
  # data as a hash:
146
141
  #
147
142
  # {
@@ -149,12 +144,13 @@ module Aws::AugmentedAIRuntime
149
144
  # }
150
145
  #
151
146
  # @!attribute [rw] input_content
152
- # Serialized input from the human loop.
147
+ # Serialized input from the human loop. The input must be a string
148
+ # representation of a file in JSON format.
153
149
  # @return [String]
154
150
  #
155
- # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopInputContent AWS API Documentation
151
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopInput AWS API Documentation
156
152
  #
157
- class HumanLoopInputContent < Struct.new(
153
+ class HumanLoopInput < Struct.new(
158
154
  :input_content)
159
155
  include Aws::Structure
160
156
  end
@@ -163,14 +159,12 @@ module Aws::AugmentedAIRuntime
163
159
  #
164
160
  # @!attribute [rw] output_s3_uri
165
161
  # The location of the Amazon S3 object where Amazon Augmented AI
166
- # stores your human loop output. The output is stored at the following
167
- # location:
168
- # `s3://S3OutputPath/HumanLoopName/CreationTime/output.json`.
162
+ # stores your human loop output.
169
163
  # @return [String]
170
164
  #
171
- # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopOutputContent AWS API Documentation
165
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/HumanLoopOutput AWS API Documentation
172
166
  #
173
- class HumanLoopOutputContent < Struct.new(
167
+ class HumanLoopOutput < Struct.new(
174
168
  :output_s3_uri)
175
169
  include Aws::Structure
176
170
  end
@@ -209,30 +203,6 @@ module Aws::AugmentedAIRuntime
209
203
  include Aws::Structure
210
204
  end
211
205
 
212
- # Attributes of the data specified by the customer. Use these to
213
- # describe the data to be labeled.
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
206
  # Your request could not be processed.
237
207
  #
238
208
  # @!attribute [rw] message
@@ -251,6 +221,7 @@ module Aws::AugmentedAIRuntime
251
221
  # {
252
222
  # creation_time_after: Time.now,
253
223
  # creation_time_before: Time.now,
224
+ # flow_definition_arn: "FlowDefinitionArn", # required
254
225
  # sort_order: "Ascending", # accepts Ascending, Descending
255
226
  # next_token: "NextToken",
256
227
  # max_results: 1,
@@ -258,14 +229,18 @@ module Aws::AugmentedAIRuntime
258
229
  #
259
230
  # @!attribute [rw] creation_time_after
260
231
  # (Optional) The timestamp of the date when you want the human loops
261
- # to begin. For example, `1551000000`.
232
+ # to begin in ISO 8601 format. For example, `2020-02-24`.
262
233
  # @return [Time]
263
234
  #
264
235
  # @!attribute [rw] creation_time_before
265
236
  # (Optional) The timestamp of the date before which you want the human
266
- # loops to begin. For example, `1550000000`.
237
+ # loops to begin in ISO 8601 format. For example, `2020-02-24`.
267
238
  # @return [Time]
268
239
  #
240
+ # @!attribute [rw] flow_definition_arn
241
+ # The Amazon Resource Name (ARN) of a flow definition.
242
+ # @return [String]
243
+ #
269
244
  # @!attribute [rw] sort_order
270
245
  # An optional value that specifies whether you want the results sorted
271
246
  # in `Ascending` or `Descending` order.
@@ -287,6 +262,7 @@ module Aws::AugmentedAIRuntime
287
262
  class ListHumanLoopsRequest < Struct.new(
288
263
  :creation_time_after,
289
264
  :creation_time_before,
265
+ :flow_definition_arn,
290
266
  :sort_order,
291
267
  :next_token,
292
268
  :max_results)
@@ -359,11 +335,11 @@ module Aws::AugmentedAIRuntime
359
335
  #
360
336
  # @!attribute [rw] human_loop_input
361
337
  # An object containing information about the human loop.
362
- # @return [Types::HumanLoopInputContent]
338
+ # @return [Types::HumanLoopInput]
363
339
  #
364
340
  # @!attribute [rw] data_attributes
365
341
  # Attributes of the data specified by the customer.
366
- # @return [Types::HumanReviewDataAttributes]
342
+ # @return [Types::HumanLoopDataAttributes]
367
343
  #
368
344
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoopRequest AWS API Documentation
369
345
  #
@@ -379,15 +355,10 @@ module Aws::AugmentedAIRuntime
379
355
  # The Amazon Resource Name (ARN) of the human loop.
380
356
  # @return [String]
381
357
  #
382
- # @!attribute [rw] human_loop_activation_results
383
- # An object containing information about the human loop activation.
384
- # @return [Types::HumanLoopActivationResults]
385
- #
386
358
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoopResponse AWS API Documentation
387
359
  #
388
360
  class StartHumanLoopResponse < Struct.new(
389
- :human_loop_arn,
390
- :human_loop_activation_results)
361
+ :human_loop_arn)
391
362
  include Aws::Structure
392
363
  end
393
364
 
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.0.0
4
+ version: 1.1.1
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: 2019-12-03 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core