aws-sdk-apigateway 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e7cee9c18525c2f0d8db0f6e95456de656f97aa
4
- data.tar.gz: 446f6177ef2604e8ed10f7144b292ff12aa46357
3
+ metadata.gz: f00d08b5cb94857cdb5c87951ec35a9487699a66
4
+ data.tar.gz: b8600cb912484bf24bd34f4e458c439876c536ef
5
5
  SHA512:
6
- metadata.gz: d33ca7f91ed4a14690ff78f8cd196cacffb948c763e297948d4118c3363f976944bf8d2b0ff63a79f1bcc5e17a7c90ffb4eb5fc76f2aa5d6e68129fd6bb68e48
7
- data.tar.gz: 2bbc3a5496828f68fb7e0d51a3c8e99baef4deda617a6ee34fa0eb9e623e635038bc702530919a2490c09980fd734b5dbce94fcec36c22c00f87d8cf5b2615b0
6
+ metadata.gz: 96a52394a1b05ba946ad13b52cf4bf74a76e50f8c9344976008f7dc7e434b0fbd41a4efe802f0dc6ff7262ea8497350ec686a21c404b58be03153bfb5c92df2b
7
+ data.tar.gz: 382e089aac2ec94d6356308148089cbfb49c3a43f7c2bb3ed6198480197c639174a700aa04604e64dd143c32e8689215b0bbe5d9d7fe2530b228f4313b0a4ed3
@@ -886,6 +886,21 @@ module Aws::APIGateway
886
886
  # The list of binary media types supported by the RestApi. By default,
887
887
  # the RestApi supports only UTF-8-encoded text payloads.
888
888
  #
889
+ # @option params [Integer] :minimum_compression_size
890
+ # A nullable integer used to enable (non-negative between 0 and 10485760
891
+ # (10M) bytes, inclusive) or disable (null) compression on an API. When
892
+ # compression is enabled, compression or decompression are not applied
893
+ # on the payload if the payload size is smaller than this value. Setting
894
+ # it to zero allows compression for any payload size.
895
+ #
896
+ # @option params [String] :api_key_source
897
+ # The source of the API key for metring requests according to a usage
898
+ # plan. Valid values are * `HEADER` to read the API key from the
899
+ # `X-API-Key` header of a
900
+ # request.
901
+ # * `AUTHORIZER` to read the API key from the `UsageIdentifierKey` from
902
+ # a custom authorizer.
903
+ #
889
904
  # @option params [Types::EndpointConfiguration] :endpoint_configuration
890
905
  # The endpoint configuration of this RestApi showing the endpoint types
891
906
  # of the API.
@@ -899,6 +914,8 @@ module Aws::APIGateway
899
914
  # * {Types::RestApi#version #version} => String
900
915
  # * {Types::RestApi#warnings #warnings} => Array<String>
901
916
  # * {Types::RestApi#binary_media_types #binary_media_types} => Array<String>
917
+ # * {Types::RestApi#minimum_compression_size #minimum_compression_size} => Integer
918
+ # * {Types::RestApi#api_key_source #api_key_source} => String
902
919
  # * {Types::RestApi#endpoint_configuration #endpoint_configuration} => Types::EndpointConfiguration
903
920
  #
904
921
  # @example Request syntax with placeholder values
@@ -909,6 +926,8 @@ module Aws::APIGateway
909
926
  # version: "String",
910
927
  # clone_from: "String",
911
928
  # binary_media_types: ["String"],
929
+ # minimum_compression_size: 1,
930
+ # api_key_source: "HEADER", # accepts HEADER, AUTHORIZER
912
931
  # endpoint_configuration: {
913
932
  # types: ["REGIONAL"], # accepts REGIONAL, EDGE
914
933
  # },
@@ -925,6 +944,8 @@ module Aws::APIGateway
925
944
  # resp.warnings[0] #=> String
926
945
  # resp.binary_media_types #=> Array
927
946
  # resp.binary_media_types[0] #=> String
947
+ # resp.minimum_compression_size #=> Integer
948
+ # resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
928
949
  # resp.endpoint_configuration.types #=> Array
929
950
  # resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE"
930
951
  #
@@ -968,6 +989,11 @@ module Aws::APIGateway
968
989
  # @option params [Types::CanarySettings] :canary_settings
969
990
  # The canary deployment settings of this stage.
970
991
  #
992
+ # @option params [Hash<String,String>] :tags
993
+ # Key/Value map of strings. Valid character set is \[a-zA-Z+-=.\_:/\].
994
+ # Tag key can be up to 128 characters and must not start with "aws:".
995
+ # Tag value can be up to 256 characters.
996
+ #
971
997
  # @return [Types::Stage] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
972
998
  #
973
999
  # * {Types::Stage#deployment_id #deployment_id} => String
@@ -982,6 +1008,7 @@ module Aws::APIGateway
982
1008
  # * {Types::Stage#documentation_version #documentation_version} => String
983
1009
  # * {Types::Stage#access_log_settings #access_log_settings} => Types::AccessLogSettings
984
1010
  # * {Types::Stage#canary_settings #canary_settings} => Types::CanarySettings
1011
+ # * {Types::Stage#tags #tags} => Hash&lt;String,String&gt;
985
1012
  # * {Types::Stage#created_date #created_date} => Time
986
1013
  # * {Types::Stage#last_updated_date #last_updated_date} => Time
987
1014
  #
@@ -1006,6 +1033,9 @@ module Aws::APIGateway
1006
1033
  # },
1007
1034
  # use_stage_cache: false,
1008
1035
  # },
1036
+ # tags: {
1037
+ # "String" => "String",
1038
+ # },
1009
1039
  # })
1010
1040
  #
1011
1041
  # @example Response structure
@@ -1038,6 +1068,8 @@ module Aws::APIGateway
1038
1068
  # resp.canary_settings.stage_variable_overrides #=> Hash
1039
1069
  # resp.canary_settings.stage_variable_overrides["String"] #=> String
1040
1070
  # resp.canary_settings.use_stage_cache #=> Boolean
1071
+ # resp.tags #=> Hash
1072
+ # resp.tags["String"] #=> String
1041
1073
  # resp.created_date #=> Time
1042
1074
  # resp.last_updated_date #=> Time
1043
1075
  #
@@ -3387,6 +3419,8 @@ module Aws::APIGateway
3387
3419
  # * {Types::RestApi#version #version} => String
3388
3420
  # * {Types::RestApi#warnings #warnings} => Array&lt;String&gt;
3389
3421
  # * {Types::RestApi#binary_media_types #binary_media_types} => Array&lt;String&gt;
3422
+ # * {Types::RestApi#minimum_compression_size #minimum_compression_size} => Integer
3423
+ # * {Types::RestApi#api_key_source #api_key_source} => String
3390
3424
  # * {Types::RestApi#endpoint_configuration #endpoint_configuration} => Types::EndpointConfiguration
3391
3425
  #
3392
3426
  # @example Request syntax with placeholder values
@@ -3406,6 +3440,8 @@ module Aws::APIGateway
3406
3440
  # resp.warnings[0] #=> String
3407
3441
  # resp.binary_media_types #=> Array
3408
3442
  # resp.binary_media_types[0] #=> String
3443
+ # resp.minimum_compression_size #=> Integer
3444
+ # resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
3409
3445
  # resp.endpoint_configuration.types #=> Array
3410
3446
  # resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE"
3411
3447
  #
@@ -3450,6 +3486,8 @@ module Aws::APIGateway
3450
3486
  # resp.items[0].warnings[0] #=> String
3451
3487
  # resp.items[0].binary_media_types #=> Array
3452
3488
  # resp.items[0].binary_media_types[0] #=> String
3489
+ # resp.items[0].minimum_compression_size #=> Integer
3490
+ # resp.items[0].api_key_source #=> String, one of "HEADER", "AUTHORIZER"
3453
3491
  # resp.items[0].endpoint_configuration.types #=> Array
3454
3492
  # resp.items[0].endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE"
3455
3493
  #
@@ -3608,6 +3646,7 @@ module Aws::APIGateway
3608
3646
  # * {Types::Stage#documentation_version #documentation_version} => String
3609
3647
  # * {Types::Stage#access_log_settings #access_log_settings} => Types::AccessLogSettings
3610
3648
  # * {Types::Stage#canary_settings #canary_settings} => Types::CanarySettings
3649
+ # * {Types::Stage#tags #tags} => Hash&lt;String,String&gt;
3611
3650
  # * {Types::Stage#created_date #created_date} => Time
3612
3651
  # * {Types::Stage#last_updated_date #last_updated_date} => Time
3613
3652
  #
@@ -3648,6 +3687,8 @@ module Aws::APIGateway
3648
3687
  # resp.canary_settings.stage_variable_overrides #=> Hash
3649
3688
  # resp.canary_settings.stage_variable_overrides["String"] #=> String
3650
3689
  # resp.canary_settings.use_stage_cache #=> Boolean
3690
+ # resp.tags #=> Hash
3691
+ # resp.tags["String"] #=> String
3651
3692
  # resp.created_date #=> Time
3652
3693
  # resp.last_updated_date #=> Time
3653
3694
  #
@@ -3708,6 +3749,8 @@ module Aws::APIGateway
3708
3749
  # resp.item[0].canary_settings.stage_variable_overrides #=> Hash
3709
3750
  # resp.item[0].canary_settings.stage_variable_overrides["String"] #=> String
3710
3751
  # resp.item[0].canary_settings.use_stage_cache #=> Boolean
3752
+ # resp.item[0].tags #=> Hash
3753
+ # resp.item[0].tags["String"] #=> String
3711
3754
  # resp.item[0].created_date #=> Time
3712
3755
  # resp.item[0].last_updated_date #=> Time
3713
3756
  #
@@ -3718,6 +3761,44 @@ module Aws::APIGateway
3718
3761
  req.send_request(options)
3719
3762
  end
3720
3763
 
3764
+ # Gets the Tags collection for a given resource.
3765
+ #
3766
+ # @option params [required, String] :resource_arn
3767
+ # \[Required\] The ARN of a resource that can be tagged. At present,
3768
+ # Stage is the only taggable resource.
3769
+ #
3770
+ # @option params [String] :position
3771
+ # (Not currently supported) The current pagination position in the paged
3772
+ # result set.
3773
+ #
3774
+ # @option params [Integer] :limit
3775
+ # (Not currently supported) The maximum number of returned results per
3776
+ # page.
3777
+ #
3778
+ # @return [Types::Tags] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3779
+ #
3780
+ # * {Types::Tags#tags #tags} => Hash&lt;String,String&gt;
3781
+ #
3782
+ # @example Request syntax with placeholder values
3783
+ #
3784
+ # resp = client.get_tags({
3785
+ # resource_arn: "String", # required
3786
+ # position: "String",
3787
+ # limit: 1,
3788
+ # })
3789
+ #
3790
+ # @example Response structure
3791
+ #
3792
+ # resp.tags #=> Hash
3793
+ # resp.tags["String"] #=> String
3794
+ #
3795
+ # @overload get_tags(params = {})
3796
+ # @param [Hash] params ({})
3797
+ def get_tags(params = {}, options = {})
3798
+ req = build_request(:get_tags, params)
3799
+ req.send_request(options)
3800
+ end
3801
+
3721
3802
  # Gets the usage data of a usage plan in a specified time interval.
3722
3803
  #
3723
3804
  # @option params [required, String] :usage_plan_id
@@ -4170,6 +4251,8 @@ module Aws::APIGateway
4170
4251
  # * {Types::RestApi#version #version} => String
4171
4252
  # * {Types::RestApi#warnings #warnings} => Array&lt;String&gt;
4172
4253
  # * {Types::RestApi#binary_media_types #binary_media_types} => Array&lt;String&gt;
4254
+ # * {Types::RestApi#minimum_compression_size #minimum_compression_size} => Integer
4255
+ # * {Types::RestApi#api_key_source #api_key_source} => String
4173
4256
  # * {Types::RestApi#endpoint_configuration #endpoint_configuration} => Types::EndpointConfiguration
4174
4257
  #
4175
4258
  # @example Request syntax with placeholder values
@@ -4193,6 +4276,8 @@ module Aws::APIGateway
4193
4276
  # resp.warnings[0] #=> String
4194
4277
  # resp.binary_media_types #=> Array
4195
4278
  # resp.binary_media_types[0] #=> String
4279
+ # resp.minimum_compression_size #=> Integer
4280
+ # resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
4196
4281
  # resp.endpoint_configuration.types #=> Array
4197
4282
  # resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE"
4198
4283
  #
@@ -4632,14 +4717,15 @@ module Aws::APIGateway
4632
4717
  # request.
4633
4718
  #
4634
4719
  # @option params [Array<String>] :authorization_scopes
4635
- # A list authorization scopes configured on the method used with a
4636
- # `COGNITO_USER_POOL` authorizer to authorize the method invocation by
4637
- # matching them against the scopes parsed from the access token in the
4638
- # incoming request. The method invocation is authorized if any method
4639
- # scopes matches a claimed scope in the access token. Otherwise, the
4640
- # invocation is not authorized. When the method scope is configured, the
4641
- # client must provide an access token instead of an identity token for
4642
- # authorizatinon purposes.
4720
+ # A list of authorization scopes configured on the method. The scopes
4721
+ # are used with a `COGNITO_USER_POOL` authorizer to authorize the method
4722
+ # invocation. The authorization works by matching the method scopes
4723
+ # against the scopes parsed from the access token in the incoming
4724
+ # request. The method invocation is authorized if any method scopes
4725
+ # matches a claimed scope in the access token. Otherwise, the invocation
4726
+ # is not authorized. When the method scope is configured, the client
4727
+ # must provide an access token instead of an identity token for
4728
+ # authorization purposes.
4643
4729
  #
4644
4730
  # @return [Types::Method] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4645
4731
  #
@@ -4837,6 +4923,8 @@ module Aws::APIGateway
4837
4923
  # * {Types::RestApi#version #version} => String
4838
4924
  # * {Types::RestApi#warnings #warnings} => Array&lt;String&gt;
4839
4925
  # * {Types::RestApi#binary_media_types #binary_media_types} => Array&lt;String&gt;
4926
+ # * {Types::RestApi#minimum_compression_size #minimum_compression_size} => Integer
4927
+ # * {Types::RestApi#api_key_source #api_key_source} => String
4840
4928
  # * {Types::RestApi#endpoint_configuration #endpoint_configuration} => Types::EndpointConfiguration
4841
4929
  #
4842
4930
  # @example Request syntax with placeholder values
@@ -4862,6 +4950,8 @@ module Aws::APIGateway
4862
4950
  # resp.warnings[0] #=> String
4863
4951
  # resp.binary_media_types #=> Array
4864
4952
  # resp.binary_media_types[0] #=> String
4953
+ # resp.minimum_compression_size #=> Integer
4954
+ # resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
4865
4955
  # resp.endpoint_configuration.types #=> Array
4866
4956
  # resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE"
4867
4957
  #
@@ -4872,6 +4962,35 @@ module Aws::APIGateway
4872
4962
  req.send_request(options)
4873
4963
  end
4874
4964
 
4965
+ # Adds or updates Tags on a gievn resource.
4966
+ #
4967
+ # @option params [required, String] :resource_arn
4968
+ # \[Required\] The ARN of a resource that can be tagged. At present,
4969
+ # Stage is the only taggable resource.
4970
+ #
4971
+ # @option params [required, Hash<String,String>] :tags
4972
+ # \[Required\] Key/Value map of strings. Valid character set is
4973
+ # \[a-zA-Z+-=.\_:/\]. Tag key can be up to 128 characters and must not
4974
+ # start with "aws:". Tag value can be up to 256 characters.
4975
+ #
4976
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4977
+ #
4978
+ # @example Request syntax with placeholder values
4979
+ #
4980
+ # resp = client.tag_resource({
4981
+ # resource_arn: "String", # required
4982
+ # tags: { # required
4983
+ # "String" => "String",
4984
+ # },
4985
+ # })
4986
+ #
4987
+ # @overload tag_resource(params = {})
4988
+ # @param [Hash] params ({})
4989
+ def tag_resource(params = {}, options = {})
4990
+ req = build_request(:tag_resource, params)
4991
+ req.send_request(options)
4992
+ end
4993
+
4875
4994
  # Simulate the execution of an Authorizer in your RestApi with headers,
4876
4995
  # parameters, and an incoming request body.
4877
4996
  #
@@ -5031,6 +5150,31 @@ module Aws::APIGateway
5031
5150
  req.send_request(options)
5032
5151
  end
5033
5152
 
5153
+ # Removes Tags from a given resource.
5154
+ #
5155
+ # @option params [required, String] :resource_arn
5156
+ # \[Required\] The ARN of a resource that can be tagged. At present,
5157
+ # Stage is the only taggable resource.
5158
+ #
5159
+ # @option params [required, Array<String>] :tag_keys
5160
+ # The Tag keys to delete.
5161
+ #
5162
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5163
+ #
5164
+ # @example Request syntax with placeholder values
5165
+ #
5166
+ # resp = client.untag_resource({
5167
+ # resource_arn: "String", # required
5168
+ # tag_keys: ["String"], # required
5169
+ # })
5170
+ #
5171
+ # @overload untag_resource(params = {})
5172
+ # @param [Hash] params ({})
5173
+ def untag_resource(params = {}, options = {})
5174
+ req = build_request(:untag_resource, params)
5175
+ req.send_request(options)
5176
+ end
5177
+
5034
5178
  # Changes information about the current Account resource.
5035
5179
  #
5036
5180
  # @option params [Array<Types::PatchOperation>] :patch_operations
@@ -6070,6 +6214,8 @@ module Aws::APIGateway
6070
6214
  # * {Types::RestApi#version #version} => String
6071
6215
  # * {Types::RestApi#warnings #warnings} => Array&lt;String&gt;
6072
6216
  # * {Types::RestApi#binary_media_types #binary_media_types} => Array&lt;String&gt;
6217
+ # * {Types::RestApi#minimum_compression_size #minimum_compression_size} => Integer
6218
+ # * {Types::RestApi#api_key_source #api_key_source} => String
6073
6219
  # * {Types::RestApi#endpoint_configuration #endpoint_configuration} => Types::EndpointConfiguration
6074
6220
  #
6075
6221
  # @example Request syntax with placeholder values
@@ -6097,6 +6243,8 @@ module Aws::APIGateway
6097
6243
  # resp.warnings[0] #=> String
6098
6244
  # resp.binary_media_types #=> Array
6099
6245
  # resp.binary_media_types[0] #=> String
6246
+ # resp.minimum_compression_size #=> Integer
6247
+ # resp.api_key_source #=> String, one of "HEADER", "AUTHORIZER"
6100
6248
  # resp.endpoint_configuration.types #=> Array
6101
6249
  # resp.endpoint_configuration.types[0] #=> String, one of "REGIONAL", "EDGE"
6102
6250
  #
@@ -6133,6 +6281,7 @@ module Aws::APIGateway
6133
6281
  # * {Types::Stage#documentation_version #documentation_version} => String
6134
6282
  # * {Types::Stage#access_log_settings #access_log_settings} => Types::AccessLogSettings
6135
6283
  # * {Types::Stage#canary_settings #canary_settings} => Types::CanarySettings
6284
+ # * {Types::Stage#tags #tags} => Hash&lt;String,String&gt;
6136
6285
  # * {Types::Stage#created_date #created_date} => Time
6137
6286
  # * {Types::Stage#last_updated_date #last_updated_date} => Time
6138
6287
  #
@@ -6181,6 +6330,8 @@ module Aws::APIGateway
6181
6330
  # resp.canary_settings.stage_variable_overrides #=> Hash
6182
6331
  # resp.canary_settings.stage_variable_overrides["String"] #=> String
6183
6332
  # resp.canary_settings.use_stage_cache #=> Boolean
6333
+ # resp.tags #=> Hash
6334
+ # resp.tags["String"] #=> String
6184
6335
  # resp.created_date #=> Time
6185
6336
  # resp.last_updated_date #=> Time
6186
6337
  #
@@ -6364,7 +6515,7 @@ module Aws::APIGateway
6364
6515
  params: params,
6365
6516
  config: config)
6366
6517
  context[:gem_name] = 'aws-sdk-apigateway'
6367
- context[:gem_version] = '1.8.0'
6518
+ context[:gem_version] = '1.9.0'
6368
6519
  Seahorse::Client::Request.new(handlers, context)
6369
6520
  end
6370
6521
 
@@ -15,6 +15,7 @@ module Aws::APIGateway
15
15
  Account = Shapes::StructureShape.new(name: 'Account')
16
16
  ApiKey = Shapes::StructureShape.new(name: 'ApiKey')
17
17
  ApiKeyIds = Shapes::StructureShape.new(name: 'ApiKeyIds')
18
+ ApiKeySourceType = Shapes::StringShape.new(name: 'ApiKeySourceType')
18
19
  ApiKeys = Shapes::StructureShape.new(name: 'ApiKeys')
19
20
  ApiKeysFormat = Shapes::StringShape.new(name: 'ApiKeysFormat')
20
21
  ApiStage = Shapes::StructureShape.new(name: 'ApiStage')
@@ -131,6 +132,7 @@ module Aws::APIGateway
131
132
  GetSdkTypesRequest = Shapes::StructureShape.new(name: 'GetSdkTypesRequest')
132
133
  GetStageRequest = Shapes::StructureShape.new(name: 'GetStageRequest')
133
134
  GetStagesRequest = Shapes::StructureShape.new(name: 'GetStagesRequest')
135
+ GetTagsRequest = Shapes::StructureShape.new(name: 'GetTagsRequest')
134
136
  GetUsagePlanKeyRequest = Shapes::StructureShape.new(name: 'GetUsagePlanKeyRequest')
135
137
  GetUsagePlanKeysRequest = Shapes::StructureShape.new(name: 'GetUsagePlanKeysRequest')
136
138
  GetUsagePlanRequest = Shapes::StructureShape.new(name: 'GetUsagePlanRequest')
@@ -223,6 +225,8 @@ module Aws::APIGateway
223
225
  Stages = Shapes::StructureShape.new(name: 'Stages')
224
226
  StatusCode = Shapes::StringShape.new(name: 'StatusCode')
225
227
  String = Shapes::StringShape.new(name: 'String')
228
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
229
+ Tags = Shapes::StructureShape.new(name: 'Tags')
226
230
  Template = Shapes::StructureShape.new(name: 'Template')
227
231
  TestInvokeAuthorizerRequest = Shapes::StructureShape.new(name: 'TestInvokeAuthorizerRequest')
228
232
  TestInvokeAuthorizerResponse = Shapes::StructureShape.new(name: 'TestInvokeAuthorizerResponse')
@@ -233,6 +237,7 @@ module Aws::APIGateway
233
237
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
234
238
  UnauthorizedCacheControlHeaderStrategy = Shapes::StringShape.new(name: 'UnauthorizedCacheControlHeaderStrategy')
235
239
  UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
240
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
236
241
  UpdateAccountRequest = Shapes::StructureShape.new(name: 'UpdateAccountRequest')
237
242
  UpdateApiKeyRequest = Shapes::StructureShape.new(name: 'UpdateApiKeyRequest')
238
243
  UpdateAuthorizerRequest = Shapes::StructureShape.new(name: 'UpdateAuthorizerRequest')
@@ -422,6 +427,8 @@ module Aws::APIGateway
422
427
  CreateRestApiRequest.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
423
428
  CreateRestApiRequest.add_member(:clone_from, Shapes::ShapeRef.new(shape: String, location_name: "cloneFrom"))
424
429
  CreateRestApiRequest.add_member(:binary_media_types, Shapes::ShapeRef.new(shape: ListOfString, location_name: "binaryMediaTypes"))
430
+ CreateRestApiRequest.add_member(:minimum_compression_size, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "minimumCompressionSize"))
431
+ CreateRestApiRequest.add_member(:api_key_source, Shapes::ShapeRef.new(shape: ApiKeySourceType, location_name: "apiKeySource"))
425
432
  CreateRestApiRequest.add_member(:endpoint_configuration, Shapes::ShapeRef.new(shape: EndpointConfiguration, location_name: "endpointConfiguration"))
426
433
  CreateRestApiRequest.struct_class = Types::CreateRestApiRequest
427
434
 
@@ -434,6 +441,7 @@ module Aws::APIGateway
434
441
  CreateStageRequest.add_member(:variables, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "variables"))
435
442
  CreateStageRequest.add_member(:documentation_version, Shapes::ShapeRef.new(shape: String, location_name: "documentationVersion"))
436
443
  CreateStageRequest.add_member(:canary_settings, Shapes::ShapeRef.new(shape: CanarySettings, location_name: "canarySettings"))
444
+ CreateStageRequest.add_member(:tags, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "tags"))
437
445
  CreateStageRequest.struct_class = Types::CreateStageRequest
438
446
 
439
447
  CreateUsagePlanKeyRequest.add_member(:usage_plan_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "usageplanId"))
@@ -807,6 +815,11 @@ module Aws::APIGateway
807
815
  GetStagesRequest.add_member(:deployment_id, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "deploymentId"))
808
816
  GetStagesRequest.struct_class = Types::GetStagesRequest
809
817
 
818
+ GetTagsRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resource_arn"))
819
+ GetTagsRequest.add_member(:position, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "position"))
820
+ GetTagsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: NullableInteger, location: "querystring", location_name: "limit"))
821
+ GetTagsRequest.struct_class = Types::GetTagsRequest
822
+
810
823
  GetUsagePlanKeyRequest.add_member(:usage_plan_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "usageplanId"))
811
824
  GetUsagePlanKeyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "keyId"))
812
825
  GetUsagePlanKeyRequest.struct_class = Types::GetUsagePlanKeyRequest
@@ -1121,6 +1134,8 @@ module Aws::APIGateway
1121
1134
  RestApi.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
1122
1135
  RestApi.add_member(:warnings, Shapes::ShapeRef.new(shape: ListOfString, location_name: "warnings"))
1123
1136
  RestApi.add_member(:binary_media_types, Shapes::ShapeRef.new(shape: ListOfString, location_name: "binaryMediaTypes"))
1137
+ RestApi.add_member(:minimum_compression_size, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "minimumCompressionSize"))
1138
+ RestApi.add_member(:api_key_source, Shapes::ShapeRef.new(shape: ApiKeySourceType, location_name: "apiKeySource"))
1124
1139
  RestApi.add_member(:endpoint_configuration, Shapes::ShapeRef.new(shape: EndpointConfiguration, location_name: "endpointConfiguration"))
1125
1140
  RestApi.struct_class = Types::RestApi
1126
1141
 
@@ -1164,6 +1179,7 @@ module Aws::APIGateway
1164
1179
  Stage.add_member(:documentation_version, Shapes::ShapeRef.new(shape: String, location_name: "documentationVersion"))
1165
1180
  Stage.add_member(:access_log_settings, Shapes::ShapeRef.new(shape: AccessLogSettings, location_name: "accessLogSettings"))
1166
1181
  Stage.add_member(:canary_settings, Shapes::ShapeRef.new(shape: CanarySettings, location_name: "canarySettings"))
1182
+ Stage.add_member(:tags, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "tags"))
1167
1183
  Stage.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
1168
1184
  Stage.add_member(:last_updated_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedDate"))
1169
1185
  Stage.struct_class = Types::Stage
@@ -1175,6 +1191,13 @@ module Aws::APIGateway
1175
1191
  Stages.add_member(:item, Shapes::ShapeRef.new(shape: ListOfStage, location_name: "item"))
1176
1192
  Stages.struct_class = Types::Stages
1177
1193
 
1194
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resource_arn"))
1195
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: MapOfStringToString, required: true, location_name: "tags"))
1196
+ TagResourceRequest.struct_class = Types::TagResourceRequest
1197
+
1198
+ Tags.add_member(:tags, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "tags"))
1199
+ Tags.struct_class = Types::Tags
1200
+
1178
1201
  Template.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
1179
1202
  Template.struct_class = Types::Template
1180
1203
 
@@ -1217,6 +1240,10 @@ module Aws::APIGateway
1217
1240
  ThrottleSettings.add_member(:rate_limit, Shapes::ShapeRef.new(shape: Double, location_name: "rateLimit"))
1218
1241
  ThrottleSettings.struct_class = Types::ThrottleSettings
1219
1242
 
1243
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resource_arn"))
1244
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: ListOfString, required: true, location: "querystring", location_name: "tagKeys"))
1245
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
1246
+
1220
1247
  UpdateAccountRequest.add_member(:patch_operations, Shapes::ShapeRef.new(shape: ListOfPatchOperation, location_name: "patchOperations"))
1221
1248
  UpdateAccountRequest.struct_class = Types::UpdateAccountRequest
1222
1249
 
@@ -2356,6 +2383,19 @@ module Aws::APIGateway
2356
2383
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2357
2384
  end)
2358
2385
 
2386
+ api.add_operation(:get_tags, Seahorse::Model::Operation.new.tap do |o|
2387
+ o.name = "GetTags"
2388
+ o.http_method = "GET"
2389
+ o.http_request_uri = "/tags/{resource_arn}"
2390
+ o.input = Shapes::ShapeRef.new(shape: GetTagsRequest)
2391
+ o.output = Shapes::ShapeRef.new(shape: Tags)
2392
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2393
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
2394
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2395
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2396
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2397
+ end)
2398
+
2359
2399
  api.add_operation(:get_usage, Seahorse::Model::Operation.new.tap do |o|
2360
2400
  o.name = "GetUsage"
2361
2401
  o.http_method = "GET"
@@ -2585,6 +2625,20 @@ module Aws::APIGateway
2585
2625
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2586
2626
  end)
2587
2627
 
2628
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
2629
+ o.name = "TagResource"
2630
+ o.http_method = "PUT"
2631
+ o.http_request_uri = "/tags/{resource_arn}"
2632
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
2633
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2634
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2635
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
2636
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2637
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2638
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2639
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2640
+ end)
2641
+
2588
2642
  api.add_operation(:test_invoke_authorizer, Seahorse::Model::Operation.new.tap do |o|
2589
2643
  o.name = "TestInvokeAuthorizer"
2590
2644
  o.http_method = "POST"
@@ -2609,6 +2663,19 @@ module Aws::APIGateway
2609
2663
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2610
2664
  end)
2611
2665
 
2666
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
2667
+ o.name = "UntagResource"
2668
+ o.http_method = "DELETE"
2669
+ o.http_request_uri = "/tags/{resource_arn}"
2670
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
2671
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2672
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2673
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
2674
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2675
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2676
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2677
+ end)
2678
+
2612
2679
  api.add_operation(:update_account, Seahorse::Model::Operation.new.tap do |o|
2613
2680
  o.name = "UpdateAccount"
2614
2681
  o.http_method = "PATCH"
@@ -1137,6 +1137,8 @@ module Aws::APIGateway
1137
1137
  # version: "String",
1138
1138
  # clone_from: "String",
1139
1139
  # binary_media_types: ["String"],
1140
+ # minimum_compression_size: 1,
1141
+ # api_key_source: "HEADER", # accepts HEADER, AUTHORIZER
1140
1142
  # endpoint_configuration: {
1141
1143
  # types: ["REGIONAL"], # accepts REGIONAL, EDGE
1142
1144
  # },
@@ -1163,6 +1165,23 @@ module Aws::APIGateway
1163
1165
  # the RestApi supports only UTF-8-encoded text payloads.
1164
1166
  # @return [Array<String>]
1165
1167
  #
1168
+ # @!attribute [rw] minimum_compression_size
1169
+ # A nullable integer used to enable (non-negative between 0 and
1170
+ # 10485760 (10M) bytes, inclusive) or disable (null) compression on an
1171
+ # API. When compression is enabled, compression or decompression are
1172
+ # not applied on the payload if the payload size is smaller than this
1173
+ # value. Setting it to zero allows compression for any payload size.
1174
+ # @return [Integer]
1175
+ #
1176
+ # @!attribute [rw] api_key_source
1177
+ # The source of the API key for metring requests according to a usage
1178
+ # plan. Valid values are * `HEADER` to read the API key from the
1179
+ # `X-API-Key` header of a
1180
+ # request.
1181
+ # * `AUTHORIZER` to read the API key from the `UsageIdentifierKey`
1182
+ # from a custom authorizer.
1183
+ # @return [String]
1184
+ #
1166
1185
  # @!attribute [rw] endpoint_configuration
1167
1186
  # The endpoint configuration of this RestApi showing the endpoint
1168
1187
  # types of the API.
@@ -1174,6 +1193,8 @@ module Aws::APIGateway
1174
1193
  :version,
1175
1194
  :clone_from,
1176
1195
  :binary_media_types,
1196
+ :minimum_compression_size,
1197
+ :api_key_source,
1177
1198
  :endpoint_configuration)
1178
1199
  include Aws::Structure
1179
1200
  end
@@ -1202,6 +1223,9 @@ module Aws::APIGateway
1202
1223
  # },
1203
1224
  # use_stage_cache: false,
1204
1225
  # },
1226
+ # tags: {
1227
+ # "String" => "String",
1228
+ # },
1205
1229
  # }
1206
1230
  #
1207
1231
  # @!attribute [rw] rest_api_id
@@ -1243,6 +1267,12 @@ module Aws::APIGateway
1243
1267
  # The canary deployment settings of this stage.
1244
1268
  # @return [Types::CanarySettings]
1245
1269
  #
1270
+ # @!attribute [rw] tags
1271
+ # Key/Value map of strings. Valid character set is \[a-zA-Z+-=.\_:/\].
1272
+ # Tag key can be up to 128 characters and must not start with
1273
+ # "aws:". Tag value can be up to 256 characters.
1274
+ # @return [Hash<String,String>]
1275
+ #
1246
1276
  class CreateStageRequest < Struct.new(
1247
1277
  :rest_api_id,
1248
1278
  :stage_name,
@@ -1252,7 +1282,8 @@ module Aws::APIGateway
1252
1282
  :cache_cluster_size,
1253
1283
  :variables,
1254
1284
  :documentation_version,
1255
- :canary_settings)
1285
+ :canary_settings,
1286
+ :tags)
1256
1287
  include Aws::Structure
1257
1288
  end
1258
1289
 
@@ -3840,6 +3871,39 @@ module Aws::APIGateway
3840
3871
  include Aws::Structure
3841
3872
  end
3842
3873
 
3874
+ # Gets the Tags collection for a given resource.
3875
+ #
3876
+ # @note When making an API call, you may pass GetTagsRequest
3877
+ # data as a hash:
3878
+ #
3879
+ # {
3880
+ # resource_arn: "String", # required
3881
+ # position: "String",
3882
+ # limit: 1,
3883
+ # }
3884
+ #
3885
+ # @!attribute [rw] resource_arn
3886
+ # \[Required\] The ARN of a resource that can be tagged. At present,
3887
+ # Stage is the only taggable resource.
3888
+ # @return [String]
3889
+ #
3890
+ # @!attribute [rw] position
3891
+ # (Not currently supported) The current pagination position in the
3892
+ # paged result set.
3893
+ # @return [String]
3894
+ #
3895
+ # @!attribute [rw] limit
3896
+ # (Not currently supported) The maximum number of returned results per
3897
+ # page.
3898
+ # @return [Integer]
3899
+ #
3900
+ class GetTagsRequest < Struct.new(
3901
+ :resource_arn,
3902
+ :position,
3903
+ :limit)
3904
+ include Aws::Structure
3905
+ end
3906
+
3843
3907
  # The GET request to get a usage plan key of a given key identifier.
3844
3908
  #
3845
3909
  # @note When making an API call, you may pass GetUsagePlanKeyRequest
@@ -4683,14 +4747,15 @@ module Aws::APIGateway
4683
4747
  # @return [Types::Integration]
4684
4748
  #
4685
4749
  # @!attribute [rw] authorization_scopes
4686
- # A list authorization scopes configured on the method used with a
4687
- # `COGNITO_USER_POOL` authorizer to authorize the method invocation by
4688
- # matching them against the scopes parsed from the access token in the
4750
+ # A list of authorization scopes configured on the method. The scopes
4751
+ # are used with a `COGNITO_USER_POOL` authorizer to authorize the
4752
+ # method invocation. The authorization works by matching the method
4753
+ # scopes against the scopes parsed from the access token in the
4689
4754
  # incoming request. The method invocation is authorized if any method
4690
4755
  # scopes matches a claimed scope in the access token. Otherwise, the
4691
4756
  # invocation is not authorized. When the method scope is configured,
4692
4757
  # the client must provide an access token instead of an identity token
4693
- # for authorizatinon purposes.
4758
+ # for authorization purposes.
4694
4759
  # @return [Array<String>]
4695
4760
  #
4696
4761
  class Method < Struct.new(
@@ -5476,14 +5541,15 @@ module Aws::APIGateway
5476
5541
  # @return [String]
5477
5542
  #
5478
5543
  # @!attribute [rw] authorization_scopes
5479
- # A list authorization scopes configured on the method used with a
5480
- # `COGNITO_USER_POOL` authorizer to authorize the method invocation by
5481
- # matching them against the scopes parsed from the access token in the
5544
+ # A list of authorization scopes configured on the method. The scopes
5545
+ # are used with a `COGNITO_USER_POOL` authorizer to authorize the
5546
+ # method invocation. The authorization works by matching the method
5547
+ # scopes against the scopes parsed from the access token in the
5482
5548
  # incoming request. The method invocation is authorized if any method
5483
5549
  # scopes matches a claimed scope in the access token. Otherwise, the
5484
5550
  # invocation is not authorized. When the method scope is configured,
5485
5551
  # the client must provide an access token instead of an identity token
5486
- # for authorizatinon purposes.
5552
+ # for authorization purposes.
5487
5553
  # @return [Array<String>]
5488
5554
  #
5489
5555
  class PutMethodRequest < Struct.new(
@@ -5863,6 +5929,23 @@ module Aws::APIGateway
5863
5929
  # the RestApi supports only UTF-8-encoded text payloads.
5864
5930
  # @return [Array<String>]
5865
5931
  #
5932
+ # @!attribute [rw] minimum_compression_size
5933
+ # A nullable integer used to enable (non-negative between 0 and
5934
+ # 10485760 (10M) bytes, inclusive) or disable (null) compression on an
5935
+ # API. When compression is enabled, compression or decompression are
5936
+ # not applied on the payload if the payload size is smaller than this
5937
+ # value. Setting it to zero allows compression for any payload size.
5938
+ # @return [Integer]
5939
+ #
5940
+ # @!attribute [rw] api_key_source
5941
+ # The source of the API key for metring requests according to a usage
5942
+ # plan. Valid values are * `HEADER` to read the API key from the
5943
+ # `X-API-Key` header of a
5944
+ # request.
5945
+ # * `AUTHORIZER` to read the API key from the `UsageIdentifierKey`
5946
+ # from a custom authorizer.
5947
+ # @return [String]
5948
+ #
5866
5949
  # @!attribute [rw] endpoint_configuration
5867
5950
  # The endpoint configuration of this RestApi showing the endpoint
5868
5951
  # types of the API.
@@ -5876,6 +5959,8 @@ module Aws::APIGateway
5876
5959
  :version,
5877
5960
  :warnings,
5878
5961
  :binary_media_types,
5962
+ :minimum_compression_size,
5963
+ :api_key_source,
5879
5964
  :endpoint_configuration)
5880
5965
  include Aws::Structure
5881
5966
  end
@@ -6067,6 +6152,10 @@ module Aws::APIGateway
6067
6152
  # Settings for the canary deployment in this stage.
6068
6153
  # @return [Types::CanarySettings]
6069
6154
  #
6155
+ # @!attribute [rw] tags
6156
+ # A collection of Tags associated with a given resource.
6157
+ # @return [Hash<String,String>]
6158
+ #
6070
6159
  # @!attribute [rw] created_date
6071
6160
  # The timestamp when the stage was created.
6072
6161
  # @return [Time]
@@ -6088,6 +6177,7 @@ module Aws::APIGateway
6088
6177
  :documentation_version,
6089
6178
  :access_log_settings,
6090
6179
  :canary_settings,
6180
+ :tags,
6091
6181
  :created_date,
6092
6182
  :last_updated_date)
6093
6183
  include Aws::Structure
@@ -6138,6 +6228,46 @@ module Aws::APIGateway
6138
6228
  include Aws::Structure
6139
6229
  end
6140
6230
 
6231
+ # Adds or updates Tags on a gievn resource.
6232
+ #
6233
+ # @note When making an API call, you may pass TagResourceRequest
6234
+ # data as a hash:
6235
+ #
6236
+ # {
6237
+ # resource_arn: "String", # required
6238
+ # tags: { # required
6239
+ # "String" => "String",
6240
+ # },
6241
+ # }
6242
+ #
6243
+ # @!attribute [rw] resource_arn
6244
+ # \[Required\] The ARN of a resource that can be tagged. At present,
6245
+ # Stage is the only taggable resource.
6246
+ # @return [String]
6247
+ #
6248
+ # @!attribute [rw] tags
6249
+ # \[Required\] Key/Value map of strings. Valid character set is
6250
+ # \[a-zA-Z+-=.\_:/\]. Tag key can be up to 128 characters and must not
6251
+ # start with "aws:". Tag value can be up to 256 characters.
6252
+ # @return [Hash<String,String>]
6253
+ #
6254
+ class TagResourceRequest < Struct.new(
6255
+ :resource_arn,
6256
+ :tags)
6257
+ include Aws::Structure
6258
+ end
6259
+
6260
+ # A collection of Tags associated with a given resource.
6261
+ #
6262
+ # @!attribute [rw] tags
6263
+ # A collection of Tags associated with a given resource.
6264
+ # @return [Hash<String,String>]
6265
+ #
6266
+ class Tags < Struct.new(
6267
+ :tags)
6268
+ include Aws::Structure
6269
+ end
6270
+
6141
6271
  # Represents a mapping template used to transform a payload.
6142
6272
  #
6143
6273
  # <div class="seeAlso">
@@ -6410,6 +6540,31 @@ module Aws::APIGateway
6410
6540
  include Aws::Structure
6411
6541
  end
6412
6542
 
6543
+ # Removes Tags from a given resource.
6544
+ #
6545
+ # @note When making an API call, you may pass UntagResourceRequest
6546
+ # data as a hash:
6547
+ #
6548
+ # {
6549
+ # resource_arn: "String", # required
6550
+ # tag_keys: ["String"], # required
6551
+ # }
6552
+ #
6553
+ # @!attribute [rw] resource_arn
6554
+ # \[Required\] The ARN of a resource that can be tagged. At present,
6555
+ # Stage is the only taggable resource.
6556
+ # @return [String]
6557
+ #
6558
+ # @!attribute [rw] tag_keys
6559
+ # The Tag keys to delete.
6560
+ # @return [Array<String>]
6561
+ #
6562
+ class UntagResourceRequest < Struct.new(
6563
+ :resource_arn,
6564
+ :tag_keys)
6565
+ include Aws::Structure
6566
+ end
6567
+
6413
6568
  # Requests API Gateway to change information about the current Account
6414
6569
  # resource.
6415
6570
  #
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-apigateway/customizations'
42
42
  # @service
43
43
  module Aws::APIGateway
44
44
 
45
- GEM_VERSION = '1.8.0'
45
+ GEM_VERSION = '1.9.0'
46
46
 
47
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-apigateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.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: 2017-12-14 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core