aws-sdk-lexmodelbuildingservice 1.27.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c0e92b0c626fbae46bbd95c98e9ea5008f154b02
4
- data.tar.gz: 526344d7c9655851c4394eb83fa2e5f98005a69a
2
+ SHA256:
3
+ metadata.gz: 8b03bd2a3ed4c95039bd1699a8e610b815fd1e40bb85300f465a6b7846225228
4
+ data.tar.gz: fa226777d54b5962a74ccec698581eaa8e75d5306e8eb0ba458aced4978323bb
5
5
  SHA512:
6
- metadata.gz: f1ae1fd7e387b866ca76254fca401a12789a38f63c1f09a90fd076179073aebdff7e1b087d4263608f5c082d781ac706c3fc2eef2952d215b42608607df685e0
7
- data.tar.gz: f601e4d7bd660ed6b89f86b4be7c090e6c5176d7fdadad97ca94aeffd130bee7c348e36bc6f957bf1510a75e4cd4740e3c52749c697bef6422383e2363ee2cb0
6
+ metadata.gz: 7f52b4bf040cd45f2f9e46204d319d87357a30d5d95d2b29841c4bd1621b4afec7bde461cf8d2aecc42761f5fbf5fce403c831cddd149e659c747f94e30b7eeb
7
+ data.tar.gz: f19945ddcb887582172e8c1ca84342c0ed908e8cb9317caa17a8f6a16b0514b6df60d02a14322e81b4afad86610bcdbaf4efc272b9526a7de15f4d03f0dc9956
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-lexmodelbuildingservice/customizations'
45
45
  # @service
46
46
  module Aws::LexModelBuildingService
47
47
 
48
- GEM_VERSION = '1.27.0'
48
+ GEM_VERSION = '1.28.0'
49
49
 
50
50
  end
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:lexmodelbuildingservice)
32
32
  module Aws::LexModelBuildingService
33
33
  # An API client for LexModelBuildingService. To construct a client, you need to configure a `:region` and `:credentials`.
34
34
  #
35
- # client = Aws::LexModelBuildingService::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
35
+ # client = Aws::LexModelBuildingService::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
40
  #
41
41
  # For details on configuring region and credentials see
42
42
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -229,15 +229,19 @@ module Aws::LexModelBuildingService
229
229
  #
230
230
  # @option options [String] :retry_mode ("legacy")
231
231
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
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
+ #
241
245
  #
242
246
  # @option options [String] :secret_access_key
243
247
  #
@@ -2417,6 +2421,38 @@ module Aws::LexModelBuildingService
2417
2421
  req.send_request(options)
2418
2422
  end
2419
2423
 
2424
+ # Gets a list of tags associated with the specified resource. Only bots,
2425
+ # bot aliases, and bot channels can have tags associated with them.
2426
+ #
2427
+ # @option params [required, String] :resource_arn
2428
+ # The Amazon Resource Name (ARN) of the resource to get a list of tags
2429
+ # for.
2430
+ #
2431
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2432
+ #
2433
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
2434
+ #
2435
+ # @example Request syntax with placeholder values
2436
+ #
2437
+ # resp = client.list_tags_for_resource({
2438
+ # resource_arn: "AmazonResourceName", # required
2439
+ # })
2440
+ #
2441
+ # @example Response structure
2442
+ #
2443
+ # resp.tags #=> Array
2444
+ # resp.tags[0].key #=> String
2445
+ # resp.tags[0].value #=> String
2446
+ #
2447
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/ListTagsForResource AWS API Documentation
2448
+ #
2449
+ # @overload list_tags_for_resource(params = {})
2450
+ # @param [Hash] params ({})
2451
+ def list_tags_for_resource(params = {}, options = {})
2452
+ req = build_request(:list_tags_for_resource, params)
2453
+ req.send_request(options)
2454
+ end
2455
+
2420
2456
  # Creates an Amazon Lex conversational bot or replaces an existing bot.
2421
2457
  # When you create or update a bot you are only required to specify a
2422
2458
  # name, a locale, and whether the bot is directed toward children under
@@ -2610,6 +2646,11 @@ module Aws::LexModelBuildingService
2610
2646
  # is the same as calling the `CreateBotVersion` operation. If you don't
2611
2647
  # specify `createVersion`, the default is `false`.
2612
2648
  #
2649
+ # @option params [Array<Types::Tag>] :tags
2650
+ # A list of tags to add to the bot. You can only add tags when you
2651
+ # create a bot, you can't use the `PutBot` operation to update the tags
2652
+ # on a bot. To update tags, use the `TagResource` operation.
2653
+ #
2613
2654
  # @return [Types::PutBotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2614
2655
  #
2615
2656
  # * {Types::PutBotResponse#name #name} => String
@@ -2629,6 +2670,7 @@ module Aws::LexModelBuildingService
2629
2670
  # * {Types::PutBotResponse#child_directed #child_directed} => Boolean
2630
2671
  # * {Types::PutBotResponse#create_version #create_version} => Boolean
2631
2672
  # * {Types::PutBotResponse#detect_sentiment #detect_sentiment} => Boolean
2673
+ # * {Types::PutBotResponse#tags #tags} => Array&lt;Types::Tag&gt;
2632
2674
  #
2633
2675
  #
2634
2676
  # @example Example: To create a bot
@@ -2760,6 +2802,12 @@ module Aws::LexModelBuildingService
2760
2802
  # child_directed: false, # required
2761
2803
  # detect_sentiment: false,
2762
2804
  # create_version: false,
2805
+ # tags: [
2806
+ # {
2807
+ # key: "TagKey", # required
2808
+ # value: "TagValue", # required
2809
+ # },
2810
+ # ],
2763
2811
  # })
2764
2812
  #
2765
2813
  # @example Response structure
@@ -2792,6 +2840,9 @@ module Aws::LexModelBuildingService
2792
2840
  # resp.child_directed #=> Boolean
2793
2841
  # resp.create_version #=> Boolean
2794
2842
  # resp.detect_sentiment #=> Boolean
2843
+ # resp.tags #=> Array
2844
+ # resp.tags[0].key #=> String
2845
+ # resp.tags[0].value #=> String
2795
2846
  #
2796
2847
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBot AWS API Documentation
2797
2848
  #
@@ -2836,6 +2887,12 @@ module Aws::LexModelBuildingService
2836
2887
  # @option params [Types::ConversationLogsRequest] :conversation_logs
2837
2888
  # Settings for conversation logs for the alias.
2838
2889
  #
2890
+ # @option params [Array<Types::Tag>] :tags
2891
+ # A list of tags to add to the bot alias. You can only add tags when you
2892
+ # create an alias, you can't use the `PutBotAlias` operation to update
2893
+ # the tags on a bot alias. To update tags, use the `TagResource`
2894
+ # operation.
2895
+ #
2839
2896
  # @return [Types::PutBotAliasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2840
2897
  #
2841
2898
  # * {Types::PutBotAliasResponse#name #name} => String
@@ -2846,6 +2903,7 @@ module Aws::LexModelBuildingService
2846
2903
  # * {Types::PutBotAliasResponse#created_date #created_date} => Time
2847
2904
  # * {Types::PutBotAliasResponse#checksum #checksum} => String
2848
2905
  # * {Types::PutBotAliasResponse#conversation_logs #conversation_logs} => Types::ConversationLogsResponse
2906
+ # * {Types::PutBotAliasResponse#tags #tags} => Array&lt;Types::Tag&gt;
2849
2907
  #
2850
2908
  # @example Request syntax with placeholder values
2851
2909
  #
@@ -2866,6 +2924,12 @@ module Aws::LexModelBuildingService
2866
2924
  # ],
2867
2925
  # iam_role_arn: "IamRoleArn", # required
2868
2926
  # },
2927
+ # tags: [
2928
+ # {
2929
+ # key: "TagKey", # required
2930
+ # value: "TagValue", # required
2931
+ # },
2932
+ # ],
2869
2933
  # })
2870
2934
  #
2871
2935
  # @example Response structure
@@ -2884,6 +2948,9 @@ module Aws::LexModelBuildingService
2884
2948
  # resp.conversation_logs.log_settings[0].resource_arn #=> String
2885
2949
  # resp.conversation_logs.log_settings[0].resource_prefix #=> String
2886
2950
  # resp.conversation_logs.iam_role_arn #=> String
2951
+ # resp.tags #=> Array
2952
+ # resp.tags[0].key #=> String
2953
+ # resp.tags[0].value #=> String
2887
2954
  #
2888
2955
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAlias AWS API Documentation
2889
2956
  #
@@ -3762,6 +3829,10 @@ module Aws::LexModelBuildingService
3762
3829
  # conflict with an existing resource. The $LASTEST version of the
3763
3830
  # existing resource is overwritten with the data from the import file.
3764
3831
  #
3832
+ # @option params [Array<Types::Tag>] :tags
3833
+ # A list of tags to add to the imported bot. You can only add tags when
3834
+ # you import a bot, you can't add tags to an intent or slot type.
3835
+ #
3765
3836
  # @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3766
3837
  #
3767
3838
  # * {Types::StartImportResponse#name #name} => String
@@ -3769,6 +3840,7 @@ module Aws::LexModelBuildingService
3769
3840
  # * {Types::StartImportResponse#merge_strategy #merge_strategy} => String
3770
3841
  # * {Types::StartImportResponse#import_id #import_id} => String
3771
3842
  # * {Types::StartImportResponse#import_status #import_status} => String
3843
+ # * {Types::StartImportResponse#tags #tags} => Array&lt;Types::Tag&gt;
3772
3844
  # * {Types::StartImportResponse#created_date #created_date} => Time
3773
3845
  #
3774
3846
  # @example Request syntax with placeholder values
@@ -3777,6 +3849,12 @@ module Aws::LexModelBuildingService
3777
3849
  # payload: "data", # required
3778
3850
  # resource_type: "BOT", # required, accepts BOT, INTENT, SLOT_TYPE
3779
3851
  # merge_strategy: "OVERWRITE_LATEST", # required, accepts OVERWRITE_LATEST, FAIL_ON_CONFLICT
3852
+ # tags: [
3853
+ # {
3854
+ # key: "TagKey", # required
3855
+ # value: "TagValue", # required
3856
+ # },
3857
+ # ],
3780
3858
  # })
3781
3859
  #
3782
3860
  # @example Response structure
@@ -3786,6 +3864,9 @@ module Aws::LexModelBuildingService
3786
3864
  # resp.merge_strategy #=> String, one of "OVERWRITE_LATEST", "FAIL_ON_CONFLICT"
3787
3865
  # resp.import_id #=> String
3788
3866
  # resp.import_status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
3867
+ # resp.tags #=> Array
3868
+ # resp.tags[0].key #=> String
3869
+ # resp.tags[0].value #=> String
3789
3870
  # resp.created_date #=> Time
3790
3871
  #
3791
3872
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartImport AWS API Documentation
@@ -3797,6 +3878,68 @@ module Aws::LexModelBuildingService
3797
3878
  req.send_request(options)
3798
3879
  end
3799
3880
 
3881
+ # Adds the specified tags to the specified resource. If a tag key
3882
+ # already exists, the existing value is replaced with the new value.
3883
+ #
3884
+ # @option params [required, String] :resource_arn
3885
+ # The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel
3886
+ # to tag.
3887
+ #
3888
+ # @option params [required, Array<Types::Tag>] :tags
3889
+ # A list of tag keys to add to the resource. If a tag key already
3890
+ # exists, the existing value is replaced with the new value.
3891
+ #
3892
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3893
+ #
3894
+ # @example Request syntax with placeholder values
3895
+ #
3896
+ # resp = client.tag_resource({
3897
+ # resource_arn: "AmazonResourceName", # required
3898
+ # tags: [ # required
3899
+ # {
3900
+ # key: "TagKey", # required
3901
+ # value: "TagValue", # required
3902
+ # },
3903
+ # ],
3904
+ # })
3905
+ #
3906
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/TagResource AWS API Documentation
3907
+ #
3908
+ # @overload tag_resource(params = {})
3909
+ # @param [Hash] params ({})
3910
+ def tag_resource(params = {}, options = {})
3911
+ req = build_request(:tag_resource, params)
3912
+ req.send_request(options)
3913
+ end
3914
+
3915
+ # Removes tags from a bot, bot alias or bot channel.
3916
+ #
3917
+ # @option params [required, String] :resource_arn
3918
+ # The Amazon Resource Name (ARN) of the resource to remove the tags
3919
+ # from.
3920
+ #
3921
+ # @option params [required, Array<String>] :tag_keys
3922
+ # A list of tag keys to remove from the resource. If a tag key does not
3923
+ # exist on the resource, it is ignored.
3924
+ #
3925
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3926
+ #
3927
+ # @example Request syntax with placeholder values
3928
+ #
3929
+ # resp = client.untag_resource({
3930
+ # resource_arn: "AmazonResourceName", # required
3931
+ # tag_keys: ["TagKey"], # required
3932
+ # })
3933
+ #
3934
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UntagResource AWS API Documentation
3935
+ #
3936
+ # @overload untag_resource(params = {})
3937
+ # @param [Hash] params ({})
3938
+ def untag_resource(params = {}, options = {})
3939
+ req = build_request(:untag_resource, params)
3940
+ req.send_request(options)
3941
+ end
3942
+
3800
3943
  # @!endgroup
3801
3944
 
3802
3945
  # @param params ({})
@@ -3810,7 +3953,7 @@ module Aws::LexModelBuildingService
3810
3953
  params: params,
3811
3954
  config: config)
3812
3955
  context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
3813
- context[:gem_version] = '1.27.0'
3956
+ context[:gem_version] = '1.28.0'
3814
3957
  Seahorse::Client::Request.new(handlers, context)
3815
3958
  end
3816
3959
 
@@ -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')
@@ -120,6 +121,8 @@ module Aws::LexModelBuildingService
120
121
  LambdaARN = Shapes::StringShape.new(name: 'LambdaARN')
121
122
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
122
123
  ListOfUtterance = Shapes::ListShape.new(name: 'ListOfUtterance')
124
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
125
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
123
126
  ListsOfUtterances = Shapes::ListShape.new(name: 'ListsOfUtterances')
124
127
  Locale = Shapes::StringShape.new(name: 'Locale')
125
128
  LocaleList = Shapes::ListShape.new(name: 'LocaleList')
@@ -180,7 +183,16 @@ module Aws::LexModelBuildingService
180
183
  String = Shapes::StringShape.new(name: 'String')
181
184
  StringList = Shapes::ListShape.new(name: 'StringList')
182
185
  SynonymList = Shapes::ListShape.new(name: 'SynonymList')
186
+ Tag = Shapes::StructureShape.new(name: 'Tag')
187
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
188
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
189
+ TagList = Shapes::ListShape.new(name: 'TagList')
190
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
191
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
192
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
183
193
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
194
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
195
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
184
196
  UserId = Shapes::StringShape.new(name: 'UserId')
185
197
  Utterance = Shapes::StringShape.new(name: 'Utterance')
186
198
  UtteranceData = Shapes::StructureShape.new(name: 'UtteranceData')
@@ -625,6 +637,12 @@ module Aws::LexModelBuildingService
625
637
 
626
638
  ListOfUtterance.member = Shapes::ShapeRef.new(shape: UtteranceData)
627
639
 
640
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "uri", location_name: "resourceArn"))
641
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
642
+
643
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
644
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
645
+
628
646
  ListsOfUtterances.member = Shapes::ShapeRef.new(shape: UtteranceList)
629
647
 
630
648
  LocaleList.member = Shapes::ShapeRef.new(shape: Locale)
@@ -670,6 +688,7 @@ module Aws::LexModelBuildingService
670
688
  PutBotAliasRequest.add_member(:bot_name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "botName"))
671
689
  PutBotAliasRequest.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
672
690
  PutBotAliasRequest.add_member(:conversation_logs, Shapes::ShapeRef.new(shape: ConversationLogsRequest, location_name: "conversationLogs"))
691
+ PutBotAliasRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
673
692
  PutBotAliasRequest.struct_class = Types::PutBotAliasRequest
674
693
 
675
694
  PutBotAliasResponse.add_member(:name, Shapes::ShapeRef.new(shape: AliasName, location_name: "name"))
@@ -680,6 +699,7 @@ module Aws::LexModelBuildingService
680
699
  PutBotAliasResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
681
700
  PutBotAliasResponse.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
682
701
  PutBotAliasResponse.add_member(:conversation_logs, Shapes::ShapeRef.new(shape: ConversationLogsResponse, location_name: "conversationLogs"))
702
+ PutBotAliasResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
683
703
  PutBotAliasResponse.struct_class = Types::PutBotAliasResponse
684
704
 
685
705
  PutBotRequest.add_member(:name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "name"))
@@ -695,6 +715,7 @@ module Aws::LexModelBuildingService
695
715
  PutBotRequest.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "childDirected"))
696
716
  PutBotRequest.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
697
717
  PutBotRequest.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
718
+ PutBotRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
698
719
  PutBotRequest.struct_class = Types::PutBotRequest
699
720
 
700
721
  PutBotResponse.add_member(:name, Shapes::ShapeRef.new(shape: BotName, location_name: "name"))
@@ -714,6 +735,7 @@ module Aws::LexModelBuildingService
714
735
  PutBotResponse.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, location_name: "childDirected"))
715
736
  PutBotResponse.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
716
737
  PutBotResponse.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
738
+ PutBotResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
717
739
  PutBotResponse.struct_class = Types::PutBotResponse
718
740
 
719
741
  PutIntentRequest.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, required: true, location: "uri", location_name: "name"))
@@ -816,6 +838,7 @@ module Aws::LexModelBuildingService
816
838
  StartImportRequest.add_member(:payload, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "payload"))
817
839
  StartImportRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
818
840
  StartImportRequest.add_member(:merge_strategy, Shapes::ShapeRef.new(shape: MergeStrategy, required: true, location_name: "mergeStrategy"))
841
+ StartImportRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
819
842
  StartImportRequest.struct_class = Types::StartImportRequest
820
843
 
821
844
  StartImportResponse.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
@@ -823,6 +846,7 @@ module Aws::LexModelBuildingService
823
846
  StartImportResponse.add_member(:merge_strategy, Shapes::ShapeRef.new(shape: MergeStrategy, location_name: "mergeStrategy"))
824
847
  StartImportResponse.add_member(:import_id, Shapes::ShapeRef.new(shape: String, location_name: "importId"))
825
848
  StartImportResponse.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "importStatus"))
849
+ StartImportResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
826
850
  StartImportResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
827
851
  StartImportResponse.struct_class = Types::StartImportResponse
828
852
 
@@ -834,6 +858,26 @@ module Aws::LexModelBuildingService
834
858
 
835
859
  SynonymList.member = Shapes::ShapeRef.new(shape: Value)
836
860
 
861
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
862
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
863
+ Tag.struct_class = Types::Tag
864
+
865
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
866
+
867
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
868
+
869
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "uri", location_name: "resourceArn"))
870
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
871
+ TagResourceRequest.struct_class = Types::TagResourceRequest
872
+
873
+ TagResourceResponse.struct_class = Types::TagResourceResponse
874
+
875
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "uri", location_name: "resourceArn"))
876
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
877
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
878
+
879
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
880
+
837
881
  UtteranceData.add_member(:utterance_string, Shapes::ShapeRef.new(shape: UtteranceString, location_name: "utteranceString"))
838
882
  UtteranceData.add_member(:count, Shapes::ShapeRef.new(shape: Count, location_name: "count"))
839
883
  UtteranceData.add_member(:distinct_users, Shapes::ShapeRef.new(shape: Count, location_name: "distinctUsers"))
@@ -1311,6 +1355,18 @@ module Aws::LexModelBuildingService
1311
1355
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1312
1356
  end)
1313
1357
 
1358
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1359
+ o.name = "ListTagsForResource"
1360
+ o.http_method = "GET"
1361
+ o.http_request_uri = "/tags/{resourceArn}"
1362
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
1363
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
1364
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1365
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1366
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1367
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1368
+ end)
1369
+
1314
1370
  api.add_operation(:put_bot, Seahorse::Model::Operation.new.tap do |o|
1315
1371
  o.name = "PutBot"
1316
1372
  o.http_method = "PUT"
@@ -1373,6 +1429,32 @@ module Aws::LexModelBuildingService
1373
1429
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1374
1430
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1375
1431
  end)
1432
+
1433
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1434
+ o.name = "TagResource"
1435
+ o.http_method = "POST"
1436
+ o.http_request_uri = "/tags/{resourceArn}"
1437
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1438
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
1439
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1440
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1441
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1442
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1443
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1444
+ end)
1445
+
1446
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1447
+ o.name = "UntagResource"
1448
+ o.http_method = "DELETE"
1449
+ o.http_request_uri = "/tags/{resourceArn}"
1450
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1451
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
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)
1376
1458
  end
1377
1459
 
1378
1460
  end
@@ -2518,6 +2518,36 @@ module Aws::LexModelBuildingService
2518
2518
  include Aws::Structure
2519
2519
  end
2520
2520
 
2521
+ # @note When making an API call, you may pass ListTagsForResourceRequest
2522
+ # data as a hash:
2523
+ #
2524
+ # {
2525
+ # resource_arn: "AmazonResourceName", # required
2526
+ # }
2527
+ #
2528
+ # @!attribute [rw] resource_arn
2529
+ # The Amazon Resource Name (ARN) of the resource to get a list of tags
2530
+ # for.
2531
+ # @return [String]
2532
+ #
2533
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/ListTagsForResourceRequest AWS API Documentation
2534
+ #
2535
+ class ListTagsForResourceRequest < Struct.new(
2536
+ :resource_arn)
2537
+ include Aws::Structure
2538
+ end
2539
+
2540
+ # @!attribute [rw] tags
2541
+ # The tags associated with a resource.
2542
+ # @return [Array<Types::Tag>]
2543
+ #
2544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/ListTagsForResourceResponse AWS API Documentation
2545
+ #
2546
+ class ListTagsForResourceResponse < Struct.new(
2547
+ :tags)
2548
+ include Aws::Structure
2549
+ end
2550
+
2521
2551
  # Settings used to configure delivery mode and destination for
2522
2552
  # conversation logs.
2523
2553
  #
@@ -2728,6 +2758,12 @@ module Aws::LexModelBuildingService
2728
2758
  # ],
2729
2759
  # iam_role_arn: "IamRoleArn", # required
2730
2760
  # },
2761
+ # tags: [
2762
+ # {
2763
+ # key: "TagKey", # required
2764
+ # value: "TagValue", # required
2765
+ # },
2766
+ # ],
2731
2767
  # }
2732
2768
  #
2733
2769
  # @!attribute [rw] name
@@ -2763,6 +2799,13 @@ module Aws::LexModelBuildingService
2763
2799
  # Settings for conversation logs for the alias.
2764
2800
  # @return [Types::ConversationLogsRequest]
2765
2801
  #
2802
+ # @!attribute [rw] tags
2803
+ # A list of tags to add to the bot alias. You can only add tags when
2804
+ # you create an alias, you can't use the `PutBotAlias` operation to
2805
+ # update the tags on a bot alias. To update tags, use the
2806
+ # `TagResource` operation.
2807
+ # @return [Array<Types::Tag>]
2808
+ #
2766
2809
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAliasRequest AWS API Documentation
2767
2810
  #
2768
2811
  class PutBotAliasRequest < Struct.new(
@@ -2771,7 +2814,8 @@ module Aws::LexModelBuildingService
2771
2814
  :bot_version,
2772
2815
  :bot_name,
2773
2816
  :checksum,
2774
- :conversation_logs)
2817
+ :conversation_logs,
2818
+ :tags)
2775
2819
  include Aws::Structure
2776
2820
  end
2777
2821
 
@@ -2809,6 +2853,10 @@ module Aws::LexModelBuildingService
2809
2853
  # for the alias.
2810
2854
  # @return [Types::ConversationLogsResponse]
2811
2855
  #
2856
+ # @!attribute [rw] tags
2857
+ # A list of tags associated with a bot.
2858
+ # @return [Array<Types::Tag>]
2859
+ #
2812
2860
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAliasResponse AWS API Documentation
2813
2861
  #
2814
2862
  class PutBotAliasResponse < Struct.new(
@@ -2819,7 +2867,8 @@ module Aws::LexModelBuildingService
2819
2867
  :last_updated_date,
2820
2868
  :created_date,
2821
2869
  :checksum,
2822
- :conversation_logs)
2870
+ :conversation_logs,
2871
+ :tags)
2823
2872
  include Aws::Structure
2824
2873
  end
2825
2874
 
@@ -2864,6 +2913,12 @@ module Aws::LexModelBuildingService
2864
2913
  # child_directed: false, # required
2865
2914
  # detect_sentiment: false,
2866
2915
  # create_version: false,
2916
+ # tags: [
2917
+ # {
2918
+ # key: "TagKey", # required
2919
+ # value: "TagValue", # required
2920
+ # },
2921
+ # ],
2867
2922
  # }
2868
2923
  #
2869
2924
  # @!attribute [rw] name
@@ -3055,6 +3110,12 @@ module Aws::LexModelBuildingService
3055
3110
  # don't specify `createVersion`, the default is `false`.
3056
3111
  # @return [Boolean]
3057
3112
  #
3113
+ # @!attribute [rw] tags
3114
+ # A list of tags to add to the bot. You can only add tags when you
3115
+ # create a bot, you can't use the `PutBot` operation to update the
3116
+ # tags on a bot. To update tags, use the `TagResource` operation.
3117
+ # @return [Array<Types::Tag>]
3118
+ #
3058
3119
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotRequest AWS API Documentation
3059
3120
  #
3060
3121
  class PutBotRequest < Struct.new(
@@ -3070,7 +3131,8 @@ module Aws::LexModelBuildingService
3070
3131
  :locale,
3071
3132
  :child_directed,
3072
3133
  :detect_sentiment,
3073
- :create_version)
3134
+ :create_version,
3135
+ :tags)
3074
3136
  include Aws::Structure
3075
3137
  end
3076
3138
 
@@ -3199,6 +3261,10 @@ module Aws::LexModelBuildingService
3199
3261
  # `false` in the response.
3200
3262
  # @return [Boolean]
3201
3263
  #
3264
+ # @!attribute [rw] tags
3265
+ # A list of tags associated with the bot.
3266
+ # @return [Array<Types::Tag>]
3267
+ #
3202
3268
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotResponse AWS API Documentation
3203
3269
  #
3204
3270
  class PutBotResponse < Struct.new(
@@ -3218,7 +3284,8 @@ module Aws::LexModelBuildingService
3218
3284
  :locale,
3219
3285
  :child_directed,
3220
3286
  :create_version,
3221
- :detect_sentiment)
3287
+ :detect_sentiment,
3288
+ :tags)
3222
3289
  include Aws::Structure
3223
3290
  end
3224
3291
 
@@ -4045,6 +4112,12 @@ module Aws::LexModelBuildingService
4045
4112
  # payload: "data", # required
4046
4113
  # resource_type: "BOT", # required, accepts BOT, INTENT, SLOT_TYPE
4047
4114
  # merge_strategy: "OVERWRITE_LATEST", # required, accepts OVERWRITE_LATEST, FAIL_ON_CONFLICT
4115
+ # tags: [
4116
+ # {
4117
+ # key: "TagKey", # required
4118
+ # value: "TagValue", # required
4119
+ # },
4120
+ # ],
4048
4121
  # }
4049
4122
  #
4050
4123
  # @!attribute [rw] payload
@@ -4078,12 +4151,19 @@ module Aws::LexModelBuildingService
4078
4151
  # file.
4079
4152
  # @return [String]
4080
4153
  #
4154
+ # @!attribute [rw] tags
4155
+ # A list of tags to add to the imported bot. You can only add tags
4156
+ # when you import a bot, you can't add tags to an intent or slot
4157
+ # type.
4158
+ # @return [Array<Types::Tag>]
4159
+ #
4081
4160
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartImportRequest AWS API Documentation
4082
4161
  #
4083
4162
  class StartImportRequest < Struct.new(
4084
4163
  :payload,
4085
4164
  :resource_type,
4086
- :merge_strategy)
4165
+ :merge_strategy,
4166
+ :tags)
4087
4167
  include Aws::Structure
4088
4168
  end
4089
4169
 
@@ -4108,6 +4188,10 @@ module Aws::LexModelBuildingService
4108
4188
  # the reason for the failure using the `GetImport` operation.
4109
4189
  # @return [String]
4110
4190
  #
4191
+ # @!attribute [rw] tags
4192
+ # A list of tags added to the imported bot.
4193
+ # @return [Array<Types::Tag>]
4194
+ #
4111
4195
  # @!attribute [rw] created_date
4112
4196
  # A timestamp for the date and time that the import job was requested.
4113
4197
  # @return [Time]
@@ -4120,6 +4204,7 @@ module Aws::LexModelBuildingService
4120
4204
  :merge_strategy,
4121
4205
  :import_id,
4122
4206
  :import_status,
4207
+ :tags,
4123
4208
  :created_date)
4124
4209
  include Aws::Structure
4125
4210
  end
@@ -4164,6 +4249,100 @@ module Aws::LexModelBuildingService
4164
4249
  include Aws::Structure
4165
4250
  end
4166
4251
 
4252
+ # A list of key/value pairs that identify a bot, bot alias, or bot
4253
+ # channel. Tag keys and values can consist of Unicode letters, digits,
4254
+ # white space, and any of the following symbols: \_ . : / = + - @.
4255
+ #
4256
+ # @note When making an API call, you may pass Tag
4257
+ # data as a hash:
4258
+ #
4259
+ # {
4260
+ # key: "TagKey", # required
4261
+ # value: "TagValue", # required
4262
+ # }
4263
+ #
4264
+ # @!attribute [rw] key
4265
+ # The key for the tag. Keys are not case-sensitive and must be unique.
4266
+ # @return [String]
4267
+ #
4268
+ # @!attribute [rw] value
4269
+ # The value associated with a key. The value may be an empty string
4270
+ # but it can't be null.
4271
+ # @return [String]
4272
+ #
4273
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/Tag AWS API Documentation
4274
+ #
4275
+ class Tag < Struct.new(
4276
+ :key,
4277
+ :value)
4278
+ include Aws::Structure
4279
+ end
4280
+
4281
+ # @note When making an API call, you may pass TagResourceRequest
4282
+ # data as a hash:
4283
+ #
4284
+ # {
4285
+ # resource_arn: "AmazonResourceName", # required
4286
+ # tags: [ # required
4287
+ # {
4288
+ # key: "TagKey", # required
4289
+ # value: "TagValue", # required
4290
+ # },
4291
+ # ],
4292
+ # }
4293
+ #
4294
+ # @!attribute [rw] resource_arn
4295
+ # The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel
4296
+ # to tag.
4297
+ # @return [String]
4298
+ #
4299
+ # @!attribute [rw] tags
4300
+ # A list of tag keys to add to the resource. If a tag key already
4301
+ # exists, the existing value is replaced with the new value.
4302
+ # @return [Array<Types::Tag>]
4303
+ #
4304
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/TagResourceRequest AWS API Documentation
4305
+ #
4306
+ class TagResourceRequest < Struct.new(
4307
+ :resource_arn,
4308
+ :tags)
4309
+ include Aws::Structure
4310
+ end
4311
+
4312
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/TagResourceResponse AWS API Documentation
4313
+ #
4314
+ class TagResourceResponse < Aws::EmptyStructure; end
4315
+
4316
+ # @note When making an API call, you may pass UntagResourceRequest
4317
+ # data as a hash:
4318
+ #
4319
+ # {
4320
+ # resource_arn: "AmazonResourceName", # required
4321
+ # tag_keys: ["TagKey"], # required
4322
+ # }
4323
+ #
4324
+ # @!attribute [rw] resource_arn
4325
+ # The Amazon Resource Name (ARN) of the resource to remove the tags
4326
+ # from.
4327
+ # @return [String]
4328
+ #
4329
+ # @!attribute [rw] tag_keys
4330
+ # A list of tag keys to remove from the resource. If a tag key does
4331
+ # not exist on the resource, it is ignored.
4332
+ # @return [Array<String>]
4333
+ #
4334
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UntagResourceRequest AWS API Documentation
4335
+ #
4336
+ class UntagResourceRequest < Struct.new(
4337
+ :resource_arn,
4338
+ :tag_keys)
4339
+ include Aws::Structure
4340
+ end
4341
+
4342
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UntagResourceResponse AWS API Documentation
4343
+ #
4344
+ class UntagResourceResponse < Aws::EmptyStructure; end
4345
+
4167
4346
  # Provides information about a single utterance that was made to your
4168
4347
  # bot.
4169
4348
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lexmodelbuildingservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.28.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: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -80,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.5.2.3
83
+ rubygems_version: 3.0.3
85
84
  signing_key:
86
85
  specification_version: 4
87
86
  summary: AWS SDK for Ruby - Amazon Lex Model Building Service