aws-sdk-lexmodelbuildingservice 1.26.0 → 1.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-lexmodelbuildingservice.rb +7 -4
- data/lib/aws-sdk-lexmodelbuildingservice/client.rb +255 -14
- data/lib/aws-sdk-lexmodelbuildingservice/client_api.rb +95 -0
- data/lib/aws-sdk-lexmodelbuildingservice/errors.rb +29 -7
- data/lib/aws-sdk-lexmodelbuildingservice/resource.rb +1 -0
- data/lib/aws-sdk-lexmodelbuildingservice/types.rb +284 -14
- metadata +5 -5
@@ -13,6 +13,7 @@ module Aws::LexModelBuildingService
|
|
13
13
|
|
14
14
|
AliasName = Shapes::StringShape.new(name: 'AliasName')
|
15
15
|
AliasNameOrListAll = Shapes::StringShape.new(name: 'AliasNameOrListAll')
|
16
|
+
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
16
17
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
17
18
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
18
19
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
@@ -116,10 +117,14 @@ module Aws::LexModelBuildingService
|
|
116
117
|
IntentName = Shapes::StringShape.new(name: 'IntentName')
|
117
118
|
IntentUtteranceList = Shapes::ListShape.new(name: 'IntentUtteranceList')
|
118
119
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
120
|
+
KendraConfiguration = Shapes::StructureShape.new(name: 'KendraConfiguration')
|
121
|
+
KendraIndexArn = Shapes::StringShape.new(name: 'KendraIndexArn')
|
119
122
|
KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
|
120
123
|
LambdaARN = Shapes::StringShape.new(name: 'LambdaARN')
|
121
124
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
122
125
|
ListOfUtterance = Shapes::ListShape.new(name: 'ListOfUtterance')
|
126
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
127
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
123
128
|
ListsOfUtterances = Shapes::ListShape.new(name: 'ListsOfUtterances')
|
124
129
|
Locale = Shapes::StringShape.new(name: 'Locale')
|
125
130
|
LocaleList = Shapes::ListShape.new(name: 'LocaleList')
|
@@ -151,6 +156,7 @@ module Aws::LexModelBuildingService
|
|
151
156
|
PutIntentResponse = Shapes::StructureShape.new(name: 'PutIntentResponse')
|
152
157
|
PutSlotTypeRequest = Shapes::StructureShape.new(name: 'PutSlotTypeRequest')
|
153
158
|
PutSlotTypeResponse = Shapes::StructureShape.new(name: 'PutSlotTypeResponse')
|
159
|
+
QueryFilterString = Shapes::StringShape.new(name: 'QueryFilterString')
|
154
160
|
ReferenceType = Shapes::StringShape.new(name: 'ReferenceType')
|
155
161
|
RegexPattern = Shapes::StringShape.new(name: 'RegexPattern')
|
156
162
|
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
@@ -180,7 +186,16 @@ module Aws::LexModelBuildingService
|
|
180
186
|
String = Shapes::StringShape.new(name: 'String')
|
181
187
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
182
188
|
SynonymList = Shapes::ListShape.new(name: 'SynonymList')
|
189
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
190
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
191
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
192
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
193
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
194
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
195
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
183
196
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
197
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
198
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
184
199
|
UserId = Shapes::StringShape.new(name: 'UserId')
|
185
200
|
Utterance = Shapes::StringShape.new(name: 'Utterance')
|
186
201
|
UtteranceData = Shapes::StructureShape.new(name: 'UtteranceData')
|
@@ -188,6 +203,7 @@ module Aws::LexModelBuildingService
|
|
188
203
|
UtteranceString = Shapes::StringShape.new(name: 'UtteranceString')
|
189
204
|
Value = Shapes::StringShape.new(name: 'Value')
|
190
205
|
Version = Shapes::StringShape.new(name: 'Version')
|
206
|
+
roleArn = Shapes::StringShape.new(name: 'roleArn')
|
191
207
|
|
192
208
|
BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
193
209
|
BadRequestException.struct_class = Types::BadRequestException
|
@@ -305,6 +321,7 @@ module Aws::LexModelBuildingService
|
|
305
321
|
CreateIntentVersionResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
|
306
322
|
CreateIntentVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
|
307
323
|
CreateIntentVersionResponse.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
|
324
|
+
CreateIntentVersionResponse.add_member(:kendra_configuration, Shapes::ShapeRef.new(shape: KendraConfiguration, location_name: "kendraConfiguration"))
|
308
325
|
CreateIntentVersionResponse.struct_class = Types::CreateIntentVersionResponse
|
309
326
|
|
310
327
|
CreateSlotTypeVersionRequest.add_member(:name, Shapes::ShapeRef.new(shape: SlotTypeName, required: true, location: "uri", location_name: "name"))
|
@@ -536,6 +553,7 @@ module Aws::LexModelBuildingService
|
|
536
553
|
GetIntentResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
|
537
554
|
GetIntentResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
|
538
555
|
GetIntentResponse.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
|
556
|
+
GetIntentResponse.add_member(:kendra_configuration, Shapes::ShapeRef.new(shape: KendraConfiguration, location_name: "kendraConfiguration"))
|
539
557
|
GetIntentResponse.struct_class = Types::GetIntentResponse
|
540
558
|
|
541
559
|
GetIntentVersionsRequest.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, required: true, location: "uri", location_name: "name"))
|
@@ -619,12 +637,23 @@ module Aws::LexModelBuildingService
|
|
619
637
|
InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
620
638
|
InternalFailureException.struct_class = Types::InternalFailureException
|
621
639
|
|
640
|
+
KendraConfiguration.add_member(:kendra_index, Shapes::ShapeRef.new(shape: KendraIndexArn, required: true, location_name: "kendraIndex"))
|
641
|
+
KendraConfiguration.add_member(:query_filter_string, Shapes::ShapeRef.new(shape: QueryFilterString, location_name: "queryFilterString"))
|
642
|
+
KendraConfiguration.add_member(:role, Shapes::ShapeRef.new(shape: roleArn, required: true, location_name: "role"))
|
643
|
+
KendraConfiguration.struct_class = Types::KendraConfiguration
|
644
|
+
|
622
645
|
LimitExceededException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Retry-After"))
|
623
646
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
624
647
|
LimitExceededException.struct_class = Types::LimitExceededException
|
625
648
|
|
626
649
|
ListOfUtterance.member = Shapes::ShapeRef.new(shape: UtteranceData)
|
627
650
|
|
651
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "uri", location_name: "resourceArn"))
|
652
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
653
|
+
|
654
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
655
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
656
|
+
|
628
657
|
ListsOfUtterances.member = Shapes::ShapeRef.new(shape: UtteranceList)
|
629
658
|
|
630
659
|
LocaleList.member = Shapes::ShapeRef.new(shape: Locale)
|
@@ -670,6 +699,7 @@ module Aws::LexModelBuildingService
|
|
670
699
|
PutBotAliasRequest.add_member(:bot_name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "botName"))
|
671
700
|
PutBotAliasRequest.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
|
672
701
|
PutBotAliasRequest.add_member(:conversation_logs, Shapes::ShapeRef.new(shape: ConversationLogsRequest, location_name: "conversationLogs"))
|
702
|
+
PutBotAliasRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
673
703
|
PutBotAliasRequest.struct_class = Types::PutBotAliasRequest
|
674
704
|
|
675
705
|
PutBotAliasResponse.add_member(:name, Shapes::ShapeRef.new(shape: AliasName, location_name: "name"))
|
@@ -680,6 +710,7 @@ module Aws::LexModelBuildingService
|
|
680
710
|
PutBotAliasResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
|
681
711
|
PutBotAliasResponse.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
|
682
712
|
PutBotAliasResponse.add_member(:conversation_logs, Shapes::ShapeRef.new(shape: ConversationLogsResponse, location_name: "conversationLogs"))
|
713
|
+
PutBotAliasResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
683
714
|
PutBotAliasResponse.struct_class = Types::PutBotAliasResponse
|
684
715
|
|
685
716
|
PutBotRequest.add_member(:name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "name"))
|
@@ -695,6 +726,7 @@ module Aws::LexModelBuildingService
|
|
695
726
|
PutBotRequest.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "childDirected"))
|
696
727
|
PutBotRequest.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
|
697
728
|
PutBotRequest.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
|
729
|
+
PutBotRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
698
730
|
PutBotRequest.struct_class = Types::PutBotRequest
|
699
731
|
|
700
732
|
PutBotResponse.add_member(:name, Shapes::ShapeRef.new(shape: BotName, location_name: "name"))
|
@@ -714,6 +746,7 @@ module Aws::LexModelBuildingService
|
|
714
746
|
PutBotResponse.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, location_name: "childDirected"))
|
715
747
|
PutBotResponse.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
|
716
748
|
PutBotResponse.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
|
749
|
+
PutBotResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
717
750
|
PutBotResponse.struct_class = Types::PutBotResponse
|
718
751
|
|
719
752
|
PutIntentRequest.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, required: true, location: "uri", location_name: "name"))
|
@@ -729,6 +762,7 @@ module Aws::LexModelBuildingService
|
|
729
762
|
PutIntentRequest.add_member(:parent_intent_signature, Shapes::ShapeRef.new(shape: BuiltinIntentSignature, location_name: "parentIntentSignature"))
|
730
763
|
PutIntentRequest.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
|
731
764
|
PutIntentRequest.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
|
765
|
+
PutIntentRequest.add_member(:kendra_configuration, Shapes::ShapeRef.new(shape: KendraConfiguration, location_name: "kendraConfiguration"))
|
732
766
|
PutIntentRequest.struct_class = Types::PutIntentRequest
|
733
767
|
|
734
768
|
PutIntentResponse.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, location_name: "name"))
|
@@ -747,6 +781,7 @@ module Aws::LexModelBuildingService
|
|
747
781
|
PutIntentResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
|
748
782
|
PutIntentResponse.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
|
749
783
|
PutIntentResponse.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
|
784
|
+
PutIntentResponse.add_member(:kendra_configuration, Shapes::ShapeRef.new(shape: KendraConfiguration, location_name: "kendraConfiguration"))
|
750
785
|
PutIntentResponse.struct_class = Types::PutIntentResponse
|
751
786
|
|
752
787
|
PutSlotTypeRequest.add_member(:name, Shapes::ShapeRef.new(shape: SlotTypeName, required: true, location: "uri", location_name: "name"))
|
@@ -816,6 +851,7 @@ module Aws::LexModelBuildingService
|
|
816
851
|
StartImportRequest.add_member(:payload, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "payload"))
|
817
852
|
StartImportRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
818
853
|
StartImportRequest.add_member(:merge_strategy, Shapes::ShapeRef.new(shape: MergeStrategy, required: true, location_name: "mergeStrategy"))
|
854
|
+
StartImportRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
819
855
|
StartImportRequest.struct_class = Types::StartImportRequest
|
820
856
|
|
821
857
|
StartImportResponse.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
|
@@ -823,6 +859,7 @@ module Aws::LexModelBuildingService
|
|
823
859
|
StartImportResponse.add_member(:merge_strategy, Shapes::ShapeRef.new(shape: MergeStrategy, location_name: "mergeStrategy"))
|
824
860
|
StartImportResponse.add_member(:import_id, Shapes::ShapeRef.new(shape: String, location_name: "importId"))
|
825
861
|
StartImportResponse.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "importStatus"))
|
862
|
+
StartImportResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
826
863
|
StartImportResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
|
827
864
|
StartImportResponse.struct_class = Types::StartImportResponse
|
828
865
|
|
@@ -834,6 +871,26 @@ module Aws::LexModelBuildingService
|
|
834
871
|
|
835
872
|
SynonymList.member = Shapes::ShapeRef.new(shape: Value)
|
836
873
|
|
874
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
|
875
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
|
876
|
+
Tag.struct_class = Types::Tag
|
877
|
+
|
878
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
879
|
+
|
880
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
881
|
+
|
882
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "uri", location_name: "resourceArn"))
|
883
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
|
884
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
885
|
+
|
886
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
887
|
+
|
888
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "uri", location_name: "resourceArn"))
|
889
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
|
890
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
891
|
+
|
892
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
893
|
+
|
837
894
|
UtteranceData.add_member(:utterance_string, Shapes::ShapeRef.new(shape: UtteranceString, location_name: "utteranceString"))
|
838
895
|
UtteranceData.add_member(:count, Shapes::ShapeRef.new(shape: Count, location_name: "count"))
|
839
896
|
UtteranceData.add_member(:distinct_users, Shapes::ShapeRef.new(shape: Count, location_name: "distinctUsers"))
|
@@ -1311,6 +1368,18 @@ module Aws::LexModelBuildingService
|
|
1311
1368
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1312
1369
|
end)
|
1313
1370
|
|
1371
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
1372
|
+
o.name = "ListTagsForResource"
|
1373
|
+
o.http_method = "GET"
|
1374
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
1375
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
1376
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
1377
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1378
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1379
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1380
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1381
|
+
end)
|
1382
|
+
|
1314
1383
|
api.add_operation(:put_bot, Seahorse::Model::Operation.new.tap do |o|
|
1315
1384
|
o.name = "PutBot"
|
1316
1385
|
o.http_method = "PUT"
|
@@ -1373,6 +1442,32 @@ module Aws::LexModelBuildingService
|
|
1373
1442
|
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1374
1443
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1375
1444
|
end)
|
1445
|
+
|
1446
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1447
|
+
o.name = "TagResource"
|
1448
|
+
o.http_method = "POST"
|
1449
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
1450
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
1451
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
1452
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1453
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1454
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1455
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1456
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1457
|
+
end)
|
1458
|
+
|
1459
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1460
|
+
o.name = "UntagResource"
|
1461
|
+
o.http_method = "DELETE"
|
1462
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
1463
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
1464
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
1465
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1466
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1467
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1468
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1469
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1470
|
+
end)
|
1376
1471
|
end
|
1377
1472
|
|
1378
1473
|
end
|
@@ -6,6 +6,35 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::LexModelBuildingService
|
9
|
+
|
10
|
+
# When LexModelBuildingService returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::LexModelBuildingService::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all LexModelBuildingService errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::LexModelBuildingService::Errors::ServiceError
|
18
|
+
# # rescues all LexModelBuildingService 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
|
+
# * {BadRequestException}
|
29
|
+
# * {ConflictException}
|
30
|
+
# * {InternalFailureException}
|
31
|
+
# * {LimitExceededException}
|
32
|
+
# * {NotFoundException}
|
33
|
+
# * {PreconditionFailedException}
|
34
|
+
# * {ResourceInUseException}
|
35
|
+
#
|
36
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
37
|
+
# if they are not defined above.
|
9
38
|
module Errors
|
10
39
|
|
11
40
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +52,6 @@ module Aws::LexModelBuildingService
|
|
23
52
|
def message
|
24
53
|
@message || @data[:message]
|
25
54
|
end
|
26
|
-
|
27
55
|
end
|
28
56
|
|
29
57
|
class ConflictException < ServiceError
|
@@ -39,7 +67,6 @@ module Aws::LexModelBuildingService
|
|
39
67
|
def message
|
40
68
|
@message || @data[:message]
|
41
69
|
end
|
42
|
-
|
43
70
|
end
|
44
71
|
|
45
72
|
class InternalFailureException < ServiceError
|
@@ -55,7 +82,6 @@ module Aws::LexModelBuildingService
|
|
55
82
|
def message
|
56
83
|
@message || @data[:message]
|
57
84
|
end
|
58
|
-
|
59
85
|
end
|
60
86
|
|
61
87
|
class LimitExceededException < ServiceError
|
@@ -76,7 +102,6 @@ module Aws::LexModelBuildingService
|
|
76
102
|
def message
|
77
103
|
@message || @data[:message]
|
78
104
|
end
|
79
|
-
|
80
105
|
end
|
81
106
|
|
82
107
|
class NotFoundException < ServiceError
|
@@ -92,7 +117,6 @@ module Aws::LexModelBuildingService
|
|
92
117
|
def message
|
93
118
|
@message || @data[:message]
|
94
119
|
end
|
95
|
-
|
96
120
|
end
|
97
121
|
|
98
122
|
class PreconditionFailedException < ServiceError
|
@@ -108,7 +132,6 @@ module Aws::LexModelBuildingService
|
|
108
132
|
def message
|
109
133
|
@message || @data[:message]
|
110
134
|
end
|
111
|
-
|
112
135
|
end
|
113
136
|
|
114
137
|
class ResourceInUseException < ServiceError
|
@@ -129,7 +152,6 @@ module Aws::LexModelBuildingService
|
|
129
152
|
def example_reference
|
130
153
|
@data[:example_reference]
|
131
154
|
end
|
132
|
-
|
133
155
|
end
|
134
156
|
|
135
157
|
end
|
@@ -603,6 +603,11 @@ module Aws::LexModelBuildingService
|
|
603
603
|
# Checksum of the intent version created.
|
604
604
|
# @return [String]
|
605
605
|
#
|
606
|
+
# @!attribute [rw] kendra_configuration
|
607
|
+
# Configuration information, if any, for connectin an Amazon Kendra
|
608
|
+
# index with the `AMAZON.KendraSearchIntent` intent.
|
609
|
+
# @return [Types::KendraConfiguration]
|
610
|
+
#
|
606
611
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateIntentVersionResponse AWS API Documentation
|
607
612
|
#
|
608
613
|
class CreateIntentVersionResponse < Struct.new(
|
@@ -620,7 +625,8 @@ module Aws::LexModelBuildingService
|
|
620
625
|
:last_updated_date,
|
621
626
|
:created_date,
|
622
627
|
:version,
|
623
|
-
:checksum
|
628
|
+
:checksum,
|
629
|
+
:kendra_configuration)
|
624
630
|
include Aws::Structure
|
625
631
|
end
|
626
632
|
|
@@ -2053,6 +2059,11 @@ module Aws::LexModelBuildingService
|
|
2053
2059
|
# Checksum of the intent.
|
2054
2060
|
# @return [String]
|
2055
2061
|
#
|
2062
|
+
# @!attribute [rw] kendra_configuration
|
2063
|
+
# Configuration information, if any, to connect to an Amazon Kendra
|
2064
|
+
# index with the `AMAZON.KendraSearchIntent` intent.
|
2065
|
+
# @return [Types::KendraConfiguration]
|
2066
|
+
#
|
2056
2067
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntentResponse AWS API Documentation
|
2057
2068
|
#
|
2058
2069
|
class GetIntentResponse < Struct.new(
|
@@ -2070,7 +2081,8 @@ module Aws::LexModelBuildingService
|
|
2070
2081
|
:last_updated_date,
|
2071
2082
|
:created_date,
|
2072
2083
|
:version,
|
2073
|
-
:checksum
|
2084
|
+
:checksum,
|
2085
|
+
:kendra_configuration)
|
2074
2086
|
include Aws::Structure
|
2075
2087
|
end
|
2076
2088
|
|
@@ -2502,6 +2514,62 @@ module Aws::LexModelBuildingService
|
|
2502
2514
|
include Aws::Structure
|
2503
2515
|
end
|
2504
2516
|
|
2517
|
+
# Provides configuration information for the AMAZON.KendraSearchIntent
|
2518
|
+
# intent. When you use this intent, Amazon Lex searches the specified
|
2519
|
+
# Amazon Kendra index and returns documents from the index that match
|
2520
|
+
# the user's utterance. For more information, see [
|
2521
|
+
# AMAZON.KendraSearchIntent][1].
|
2522
|
+
#
|
2523
|
+
#
|
2524
|
+
#
|
2525
|
+
# [1]: http://docs.aws.amazon.com/lex/latest/dg/built-in-intent-kendra-search.html
|
2526
|
+
#
|
2527
|
+
# @note When making an API call, you may pass KendraConfiguration
|
2528
|
+
# data as a hash:
|
2529
|
+
#
|
2530
|
+
# {
|
2531
|
+
# kendra_index: "KendraIndexArn", # required
|
2532
|
+
# query_filter_string: "QueryFilterString",
|
2533
|
+
# role: "roleArn", # required
|
2534
|
+
# }
|
2535
|
+
#
|
2536
|
+
# @!attribute [rw] kendra_index
|
2537
|
+
# The Amazon Resource Name (ARN) of the Amazon Kendra index that you
|
2538
|
+
# want the AMAZON.KendraSearchIntent intent to search. The index must
|
2539
|
+
# be in the same account and Region as the Amazon Lex bot. If the
|
2540
|
+
# Amazon Kendra index does not exist, you get an exception when you
|
2541
|
+
# call the `PutIntent` operation.
|
2542
|
+
# @return [String]
|
2543
|
+
#
|
2544
|
+
# @!attribute [rw] query_filter_string
|
2545
|
+
# A query filter that Amazon Lex sends to Amazon Kendra to filter the
|
2546
|
+
# response from the query. The filter is in the format defined by
|
2547
|
+
# Amazon Kendra. For more information, see [Filtering queries][1].
|
2548
|
+
#
|
2549
|
+
# You can override this filter string with a new filter string at
|
2550
|
+
# runtime.
|
2551
|
+
#
|
2552
|
+
#
|
2553
|
+
#
|
2554
|
+
# [1]: http://docs.aws.amazon.com/kendra/latest/dg/filtering.html
|
2555
|
+
# @return [String]
|
2556
|
+
#
|
2557
|
+
# @!attribute [rw] role
|
2558
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permission to
|
2559
|
+
# search the Amazon Kendra index. The role must be in the same account
|
2560
|
+
# and Region as the Amazon Lex bot. If the role does not exist, you
|
2561
|
+
# get an exception when you call the `PutIntent` operation.
|
2562
|
+
# @return [String]
|
2563
|
+
#
|
2564
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/KendraConfiguration AWS API Documentation
|
2565
|
+
#
|
2566
|
+
class KendraConfiguration < Struct.new(
|
2567
|
+
:kendra_index,
|
2568
|
+
:query_filter_string,
|
2569
|
+
:role)
|
2570
|
+
include Aws::Structure
|
2571
|
+
end
|
2572
|
+
|
2505
2573
|
# The request exceeded a limit. Try your request again.
|
2506
2574
|
#
|
2507
2575
|
# @!attribute [rw] retry_after_seconds
|
@@ -2518,6 +2586,36 @@ module Aws::LexModelBuildingService
|
|
2518
2586
|
include Aws::Structure
|
2519
2587
|
end
|
2520
2588
|
|
2589
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
2590
|
+
# data as a hash:
|
2591
|
+
#
|
2592
|
+
# {
|
2593
|
+
# resource_arn: "AmazonResourceName", # required
|
2594
|
+
# }
|
2595
|
+
#
|
2596
|
+
# @!attribute [rw] resource_arn
|
2597
|
+
# The Amazon Resource Name (ARN) of the resource to get a list of tags
|
2598
|
+
# for.
|
2599
|
+
# @return [String]
|
2600
|
+
#
|
2601
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/ListTagsForResourceRequest AWS API Documentation
|
2602
|
+
#
|
2603
|
+
class ListTagsForResourceRequest < Struct.new(
|
2604
|
+
:resource_arn)
|
2605
|
+
include Aws::Structure
|
2606
|
+
end
|
2607
|
+
|
2608
|
+
# @!attribute [rw] tags
|
2609
|
+
# The tags associated with a resource.
|
2610
|
+
# @return [Array<Types::Tag>]
|
2611
|
+
#
|
2612
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/ListTagsForResourceResponse AWS API Documentation
|
2613
|
+
#
|
2614
|
+
class ListTagsForResourceResponse < Struct.new(
|
2615
|
+
:tags)
|
2616
|
+
include Aws::Structure
|
2617
|
+
end
|
2618
|
+
|
2521
2619
|
# Settings used to configure delivery mode and destination for
|
2522
2620
|
# conversation logs.
|
2523
2621
|
#
|
@@ -2728,6 +2826,12 @@ module Aws::LexModelBuildingService
|
|
2728
2826
|
# ],
|
2729
2827
|
# iam_role_arn: "IamRoleArn", # required
|
2730
2828
|
# },
|
2829
|
+
# tags: [
|
2830
|
+
# {
|
2831
|
+
# key: "TagKey", # required
|
2832
|
+
# value: "TagValue", # required
|
2833
|
+
# },
|
2834
|
+
# ],
|
2731
2835
|
# }
|
2732
2836
|
#
|
2733
2837
|
# @!attribute [rw] name
|
@@ -2763,6 +2867,13 @@ module Aws::LexModelBuildingService
|
|
2763
2867
|
# Settings for conversation logs for the alias.
|
2764
2868
|
# @return [Types::ConversationLogsRequest]
|
2765
2869
|
#
|
2870
|
+
# @!attribute [rw] tags
|
2871
|
+
# A list of tags to add to the bot alias. You can only add tags when
|
2872
|
+
# you create an alias, you can't use the `PutBotAlias` operation to
|
2873
|
+
# update the tags on a bot alias. To update tags, use the
|
2874
|
+
# `TagResource` operation.
|
2875
|
+
# @return [Array<Types::Tag>]
|
2876
|
+
#
|
2766
2877
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAliasRequest AWS API Documentation
|
2767
2878
|
#
|
2768
2879
|
class PutBotAliasRequest < Struct.new(
|
@@ -2771,7 +2882,8 @@ module Aws::LexModelBuildingService
|
|
2771
2882
|
:bot_version,
|
2772
2883
|
:bot_name,
|
2773
2884
|
:checksum,
|
2774
|
-
:conversation_logs
|
2885
|
+
:conversation_logs,
|
2886
|
+
:tags)
|
2775
2887
|
include Aws::Structure
|
2776
2888
|
end
|
2777
2889
|
|
@@ -2809,6 +2921,10 @@ module Aws::LexModelBuildingService
|
|
2809
2921
|
# for the alias.
|
2810
2922
|
# @return [Types::ConversationLogsResponse]
|
2811
2923
|
#
|
2924
|
+
# @!attribute [rw] tags
|
2925
|
+
# A list of tags associated with a bot.
|
2926
|
+
# @return [Array<Types::Tag>]
|
2927
|
+
#
|
2812
2928
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAliasResponse AWS API Documentation
|
2813
2929
|
#
|
2814
2930
|
class PutBotAliasResponse < Struct.new(
|
@@ -2819,7 +2935,8 @@ module Aws::LexModelBuildingService
|
|
2819
2935
|
:last_updated_date,
|
2820
2936
|
:created_date,
|
2821
2937
|
:checksum,
|
2822
|
-
:conversation_logs
|
2938
|
+
:conversation_logs,
|
2939
|
+
:tags)
|
2823
2940
|
include Aws::Structure
|
2824
2941
|
end
|
2825
2942
|
|
@@ -2864,6 +2981,12 @@ module Aws::LexModelBuildingService
|
|
2864
2981
|
# child_directed: false, # required
|
2865
2982
|
# detect_sentiment: false,
|
2866
2983
|
# create_version: false,
|
2984
|
+
# tags: [
|
2985
|
+
# {
|
2986
|
+
# key: "TagKey", # required
|
2987
|
+
# value: "TagValue", # required
|
2988
|
+
# },
|
2989
|
+
# ],
|
2867
2990
|
# }
|
2868
2991
|
#
|
2869
2992
|
# @!attribute [rw] name
|
@@ -3055,6 +3178,12 @@ module Aws::LexModelBuildingService
|
|
3055
3178
|
# don't specify `createVersion`, the default is `false`.
|
3056
3179
|
# @return [Boolean]
|
3057
3180
|
#
|
3181
|
+
# @!attribute [rw] tags
|
3182
|
+
# A list of tags to add to the bot. You can only add tags when you
|
3183
|
+
# create a bot, you can't use the `PutBot` operation to update the
|
3184
|
+
# tags on a bot. To update tags, use the `TagResource` operation.
|
3185
|
+
# @return [Array<Types::Tag>]
|
3186
|
+
#
|
3058
3187
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotRequest AWS API Documentation
|
3059
3188
|
#
|
3060
3189
|
class PutBotRequest < Struct.new(
|
@@ -3070,7 +3199,8 @@ module Aws::LexModelBuildingService
|
|
3070
3199
|
:locale,
|
3071
3200
|
:child_directed,
|
3072
3201
|
:detect_sentiment,
|
3073
|
-
:create_version
|
3202
|
+
:create_version,
|
3203
|
+
:tags)
|
3074
3204
|
include Aws::Structure
|
3075
3205
|
end
|
3076
3206
|
|
@@ -3199,6 +3329,10 @@ module Aws::LexModelBuildingService
|
|
3199
3329
|
# `false` in the response.
|
3200
3330
|
# @return [Boolean]
|
3201
3331
|
#
|
3332
|
+
# @!attribute [rw] tags
|
3333
|
+
# A list of tags associated with the bot.
|
3334
|
+
# @return [Array<Types::Tag>]
|
3335
|
+
#
|
3202
3336
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotResponse AWS API Documentation
|
3203
3337
|
#
|
3204
3338
|
class PutBotResponse < Struct.new(
|
@@ -3218,7 +3352,8 @@ module Aws::LexModelBuildingService
|
|
3218
3352
|
:locale,
|
3219
3353
|
:child_directed,
|
3220
3354
|
:create_version,
|
3221
|
-
:detect_sentiment
|
3355
|
+
:detect_sentiment,
|
3356
|
+
:tags)
|
3222
3357
|
include Aws::Structure
|
3223
3358
|
end
|
3224
3359
|
|
@@ -3321,6 +3456,11 @@ module Aws::LexModelBuildingService
|
|
3321
3456
|
# parent_intent_signature: "BuiltinIntentSignature",
|
3322
3457
|
# checksum: "String",
|
3323
3458
|
# create_version: false,
|
3459
|
+
# kendra_configuration: {
|
3460
|
+
# kendra_index: "KendraIndexArn", # required
|
3461
|
+
# query_filter_string: "QueryFilterString",
|
3462
|
+
# role: "roleArn", # required
|
3463
|
+
# },
|
3324
3464
|
# }
|
3325
3465
|
#
|
3326
3466
|
# @!attribute [rw] name
|
@@ -3476,6 +3616,16 @@ module Aws::LexModelBuildingService
|
|
3476
3616
|
# you do not specify `createVersion`, the default is `false`.
|
3477
3617
|
# @return [Boolean]
|
3478
3618
|
#
|
3619
|
+
# @!attribute [rw] kendra_configuration
|
3620
|
+
# Configuration information required to use the
|
3621
|
+
# `AMAZON.KendraSearchIntent` intent to connect to an Amazon Kendra
|
3622
|
+
# index. For more information, see [ AMAZON.KendraSearchIntent][1].
|
3623
|
+
#
|
3624
|
+
#
|
3625
|
+
#
|
3626
|
+
# [1]: http://docs.aws.amazon.com/lex/latest/dg/built-in-intent-kendra-search.html
|
3627
|
+
# @return [Types::KendraConfiguration]
|
3628
|
+
#
|
3479
3629
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntentRequest AWS API Documentation
|
3480
3630
|
#
|
3481
3631
|
class PutIntentRequest < Struct.new(
|
@@ -3491,7 +3641,8 @@ module Aws::LexModelBuildingService
|
|
3491
3641
|
:fulfillment_activity,
|
3492
3642
|
:parent_intent_signature,
|
3493
3643
|
:checksum,
|
3494
|
-
:create_version
|
3644
|
+
:create_version,
|
3645
|
+
:kendra_configuration)
|
3495
3646
|
include Aws::Structure
|
3496
3647
|
end
|
3497
3648
|
|
@@ -3573,6 +3724,11 @@ module Aws::LexModelBuildingService
|
|
3573
3724
|
# `createVersion` field is set to false in the response.
|
3574
3725
|
# @return [Boolean]
|
3575
3726
|
#
|
3727
|
+
# @!attribute [rw] kendra_configuration
|
3728
|
+
# Configuration information, if any, required to connect to an Amazon
|
3729
|
+
# Kendra index and use the `AMAZON.KendraSearchIntent` intent.
|
3730
|
+
# @return [Types::KendraConfiguration]
|
3731
|
+
#
|
3576
3732
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntentResponse AWS API Documentation
|
3577
3733
|
#
|
3578
3734
|
class PutIntentResponse < Struct.new(
|
@@ -3591,7 +3747,8 @@ module Aws::LexModelBuildingService
|
|
3591
3747
|
:created_date,
|
3592
3748
|
:version,
|
3593
3749
|
:checksum,
|
3594
|
-
:create_version
|
3750
|
+
:create_version,
|
3751
|
+
:kendra_configuration)
|
3595
3752
|
include Aws::Structure
|
3596
3753
|
end
|
3597
3754
|
|
@@ -3894,12 +4051,13 @@ module Aws::LexModelBuildingService
|
|
3894
4051
|
# @return [Types::Prompt]
|
3895
4052
|
#
|
3896
4053
|
# @!attribute [rw] priority
|
3897
|
-
# Directs Lex the order in which to elicit this slot value from
|
3898
|
-
# user. For example, if the intent has two slots with priorities 1
|
3899
|
-
# 2, AWS Lex first elicits a value for the slot with
|
4054
|
+
# Directs Amazon Lex the order in which to elicit this slot value from
|
4055
|
+
# the user. For example, if the intent has two slots with priorities 1
|
4056
|
+
# and 2, AWS Amazon Lex first elicits a value for the slot with
|
4057
|
+
# priority 1.
|
3900
4058
|
#
|
3901
|
-
# If multiple slots share the same priority, the order in which
|
3902
|
-
# elicits values is arbitrary.
|
4059
|
+
# If multiple slots share the same priority, the order in which Amazon
|
4060
|
+
# Lex elicits values is arbitrary.
|
3903
4061
|
# @return [Integer]
|
3904
4062
|
#
|
3905
4063
|
# @!attribute [rw] sample_utterances
|
@@ -4045,6 +4203,12 @@ module Aws::LexModelBuildingService
|
|
4045
4203
|
# payload: "data", # required
|
4046
4204
|
# resource_type: "BOT", # required, accepts BOT, INTENT, SLOT_TYPE
|
4047
4205
|
# merge_strategy: "OVERWRITE_LATEST", # required, accepts OVERWRITE_LATEST, FAIL_ON_CONFLICT
|
4206
|
+
# tags: [
|
4207
|
+
# {
|
4208
|
+
# key: "TagKey", # required
|
4209
|
+
# value: "TagValue", # required
|
4210
|
+
# },
|
4211
|
+
# ],
|
4048
4212
|
# }
|
4049
4213
|
#
|
4050
4214
|
# @!attribute [rw] payload
|
@@ -4078,12 +4242,19 @@ module Aws::LexModelBuildingService
|
|
4078
4242
|
# file.
|
4079
4243
|
# @return [String]
|
4080
4244
|
#
|
4245
|
+
# @!attribute [rw] tags
|
4246
|
+
# A list of tags to add to the imported bot. You can only add tags
|
4247
|
+
# when you import a bot, you can't add tags to an intent or slot
|
4248
|
+
# type.
|
4249
|
+
# @return [Array<Types::Tag>]
|
4250
|
+
#
|
4081
4251
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartImportRequest AWS API Documentation
|
4082
4252
|
#
|
4083
4253
|
class StartImportRequest < Struct.new(
|
4084
4254
|
:payload,
|
4085
4255
|
:resource_type,
|
4086
|
-
:merge_strategy
|
4256
|
+
:merge_strategy,
|
4257
|
+
:tags)
|
4087
4258
|
include Aws::Structure
|
4088
4259
|
end
|
4089
4260
|
|
@@ -4108,6 +4279,10 @@ module Aws::LexModelBuildingService
|
|
4108
4279
|
# the reason for the failure using the `GetImport` operation.
|
4109
4280
|
# @return [String]
|
4110
4281
|
#
|
4282
|
+
# @!attribute [rw] tags
|
4283
|
+
# A list of tags added to the imported bot.
|
4284
|
+
# @return [Array<Types::Tag>]
|
4285
|
+
#
|
4111
4286
|
# @!attribute [rw] created_date
|
4112
4287
|
# A timestamp for the date and time that the import job was requested.
|
4113
4288
|
# @return [Time]
|
@@ -4120,6 +4295,7 @@ module Aws::LexModelBuildingService
|
|
4120
4295
|
:merge_strategy,
|
4121
4296
|
:import_id,
|
4122
4297
|
:import_status,
|
4298
|
+
:tags,
|
4123
4299
|
:created_date)
|
4124
4300
|
include Aws::Structure
|
4125
4301
|
end
|
@@ -4164,6 +4340,100 @@ module Aws::LexModelBuildingService
|
|
4164
4340
|
include Aws::Structure
|
4165
4341
|
end
|
4166
4342
|
|
4343
|
+
# A list of key/value pairs that identify a bot, bot alias, or bot
|
4344
|
+
# channel. Tag keys and values can consist of Unicode letters, digits,
|
4345
|
+
# white space, and any of the following symbols: \_ . : / = + - @.
|
4346
|
+
#
|
4347
|
+
# @note When making an API call, you may pass Tag
|
4348
|
+
# data as a hash:
|
4349
|
+
#
|
4350
|
+
# {
|
4351
|
+
# key: "TagKey", # required
|
4352
|
+
# value: "TagValue", # required
|
4353
|
+
# }
|
4354
|
+
#
|
4355
|
+
# @!attribute [rw] key
|
4356
|
+
# The key for the tag. Keys are not case-sensitive and must be unique.
|
4357
|
+
# @return [String]
|
4358
|
+
#
|
4359
|
+
# @!attribute [rw] value
|
4360
|
+
# The value associated with a key. The value may be an empty string
|
4361
|
+
# but it can't be null.
|
4362
|
+
# @return [String]
|
4363
|
+
#
|
4364
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/Tag AWS API Documentation
|
4365
|
+
#
|
4366
|
+
class Tag < Struct.new(
|
4367
|
+
:key,
|
4368
|
+
:value)
|
4369
|
+
include Aws::Structure
|
4370
|
+
end
|
4371
|
+
|
4372
|
+
# @note When making an API call, you may pass TagResourceRequest
|
4373
|
+
# data as a hash:
|
4374
|
+
#
|
4375
|
+
# {
|
4376
|
+
# resource_arn: "AmazonResourceName", # required
|
4377
|
+
# tags: [ # required
|
4378
|
+
# {
|
4379
|
+
# key: "TagKey", # required
|
4380
|
+
# value: "TagValue", # required
|
4381
|
+
# },
|
4382
|
+
# ],
|
4383
|
+
# }
|
4384
|
+
#
|
4385
|
+
# @!attribute [rw] resource_arn
|
4386
|
+
# The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel
|
4387
|
+
# to tag.
|
4388
|
+
# @return [String]
|
4389
|
+
#
|
4390
|
+
# @!attribute [rw] tags
|
4391
|
+
# A list of tag keys to add to the resource. If a tag key already
|
4392
|
+
# exists, the existing value is replaced with the new value.
|
4393
|
+
# @return [Array<Types::Tag>]
|
4394
|
+
#
|
4395
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/TagResourceRequest AWS API Documentation
|
4396
|
+
#
|
4397
|
+
class TagResourceRequest < Struct.new(
|
4398
|
+
:resource_arn,
|
4399
|
+
:tags)
|
4400
|
+
include Aws::Structure
|
4401
|
+
end
|
4402
|
+
|
4403
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/TagResourceResponse AWS API Documentation
|
4404
|
+
#
|
4405
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
4406
|
+
|
4407
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
4408
|
+
# data as a hash:
|
4409
|
+
#
|
4410
|
+
# {
|
4411
|
+
# resource_arn: "AmazonResourceName", # required
|
4412
|
+
# tag_keys: ["TagKey"], # required
|
4413
|
+
# }
|
4414
|
+
#
|
4415
|
+
# @!attribute [rw] resource_arn
|
4416
|
+
# The Amazon Resource Name (ARN) of the resource to remove the tags
|
4417
|
+
# from.
|
4418
|
+
# @return [String]
|
4419
|
+
#
|
4420
|
+
# @!attribute [rw] tag_keys
|
4421
|
+
# A list of tag keys to remove from the resource. If a tag key does
|
4422
|
+
# not exist on the resource, it is ignored.
|
4423
|
+
# @return [Array<String>]
|
4424
|
+
#
|
4425
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UntagResourceRequest AWS API Documentation
|
4426
|
+
#
|
4427
|
+
class UntagResourceRequest < Struct.new(
|
4428
|
+
:resource_arn,
|
4429
|
+
:tag_keys)
|
4430
|
+
include Aws::Structure
|
4431
|
+
end
|
4432
|
+
|
4433
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UntagResourceResponse AWS API Documentation
|
4434
|
+
#
|
4435
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
4436
|
+
|
4167
4437
|
# Provides information about a single utterance that was made to your
|
4168
4438
|
# bot.
|
4169
4439
|
#
|