aws-sdk-apigateway 1.80.0 → 1.82.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
2
  SHA256:
3
- metadata.gz: c59da1b2ad6c8b7a6d9e60053e1a6c2e197680514394c01f2e31897e8bf3eb6d
4
- data.tar.gz: f10a8f7a1c3077d723b87f7c8475aa9937c820ecae5a437e89dded649e9a69dd
3
+ metadata.gz: '07076628e075551f7029da2281f835155d80257791f6a9f8b0163a9e6091e371'
4
+ data.tar.gz: 75b9a40dca5e8fcd6fcdd4527b89da994fbc446949836b832ff763153d2d4e8d
5
5
  SHA512:
6
- metadata.gz: a97f07b839a180a17b8da00f73642f58afce5096e4d5558b96d487111bd1218c147a2d8a085ada29ca95bfedeb5122ddf35fcdcb6af623813c092a1f0373b512
7
- data.tar.gz: 16485f3161634ce0fb073591227ef1307e57d9ba8056ab60f1b78b0bd4dc99bd444940bceff40a012ffadfc48ec55ece19cd1417f0b2f387cf02bae0eeee753f
6
+ metadata.gz: 1a79aff5305098ac2304b05b32a723d7deff804c58f42d218ff89b88c99241b55d78477586b73c2c8d7bb530576b2b9c92cff5878f170ba67a6590ebf0dfbe47
7
+ data.tar.gz: 8d97b4e6457457051a30230e4b58225ee64a0f5d510ecc4c29cf702f513475a7589d5462e4cb12639a05642cd3c572a1faa9f8b195b13a3c2899694fc43a6ff2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.82.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.81.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.80.0 (2022-12-29)
5
17
  ------------------
6
18
 
@@ -472,4 +484,4 @@ Unreleased Changes
472
484
  1.0.0.rc1 (2016-12-05)
473
485
  ------------------
474
486
 
475
- * Feature - Initial preview release of the `aws-sdk-apigateway` gem.
487
+ * Feature - Initial preview release of the `aws-sdk-apigateway` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.80.0
1
+ 1.82.0
@@ -277,6 +277,11 @@ module Aws::APIGateway
277
277
  # in the future.
278
278
  #
279
279
  #
280
+ # @option options [String] :sdk_ua_app_id
281
+ # A unique and opaque application ID that is appended to the
282
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
283
+ # maximum length of 50.
284
+ #
280
285
  # @option options [String] :secret_access_key
281
286
  #
282
287
  # @option options [String] :session_token
@@ -7035,7 +7040,7 @@ module Aws::APIGateway
7035
7040
  params: params,
7036
7041
  config: config)
7037
7042
  context[:gem_name] = 'aws-sdk-apigateway'
7038
- context[:gem_version] = '1.80.0'
7043
+ context[:gem_version] = '1.82.0'
7039
7044
  Seahorse::Client::Request.new(handlers, context)
7040
7045
  end
7041
7046
 
@@ -9,102 +9,43 @@
9
9
 
10
10
  module Aws::APIGateway
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://apigateway-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://apigateway-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://apigateway.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://apigateway.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
- IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
42
- aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
43
- Uy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQuIElmIHRoZSBjb25maWd1
44
- cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgYSBGSVBTIGNvbXBsaWFudCBl
45
- bmRwb2ludCwgZGlzcGF0Y2hpbmcgdGhlIHJlcXVlc3Qgd2lsbCByZXR1cm4g
46
- YW4gZXJyb3IuIiwidHlwZ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vblJlc3VsdCJ9LCJzdXBwb3J0c0R1YWxTdGFjayJd
97
- fV19XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W10s
98
- ImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYXBpZ2F0ZXdheS57UmVnaW9u
99
- fS57UGFydGl0aW9uUmVzdWx0I2R1YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9w
100
- ZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19
101
- LHsiY29uZGl0aW9ucyI6W10sImVycm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJs
102
- ZWQgYnV0IHRoaXMgcGFydGl0aW9uIGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0
103
- YWNrIiwidHlwZSI6ImVycm9yIn1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRw
104
- b2ludCI6eyJ1cmwiOiJodHRwczovL2FwaWdhdGV3YXkue1JlZ2lvbn0ue1Bh
105
- cnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
106
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
107
-
108
- JSON
109
50
  end
110
51
  end
@@ -3362,21 +3362,21 @@ module Aws::APIGateway
3362
3362
  # template is defined in the integration or the content type does not
3363
3363
  # match any of the mapped content types, as specified in
3364
3364
  # `requestTemplates`. The valid value is one of the following:
3365
- # `WHEN_NO_MATCH`\: passes the method request body through the
3365
+ # `WHEN_NO_MATCH`: passes the method request body through the
3366
3366
  # integration request to the back end without transformation when the
3367
3367
  # method request content type does not match any content type
3368
3368
  # associated with the mapping templates defined in the integration
3369
- # request. `WHEN_NO_TEMPLATES`\: passes the method request body
3370
- # through the integration request to the back end without
3371
- # transformation when no mapping template is defined in the
3372
- # integration request. If a template is defined when this option is
3373
- # selected, the method request of an unmapped content-type will be
3374
- # rejected with an HTTP 415 Unsupported Media Type response. `NEVER`\:
3375
- # rejects the method request with an HTTP 415 Unsupported Media Type
3376
- # response when either the method request content type does not match
3377
- # any content type associated with the mapping templates defined in
3378
- # the integration request or no mapping template is defined in the
3379
- # integration request.
3369
+ # request. `WHEN_NO_TEMPLATES`: passes the method request body through
3370
+ # the integration request to the back end without transformation when
3371
+ # no mapping template is defined in the integration request. If a
3372
+ # template is defined when this option is selected, the method request
3373
+ # of an unmapped content-type will be rejected with an HTTP 415
3374
+ # Unsupported Media Type response. `NEVER`: rejects the method request
3375
+ # with an HTTP 415 Unsupported Media Type response when either the
3376
+ # method request content type does not match any content type
3377
+ # associated with the mapping templates defined in the integration
3378
+ # request or no mapping template is defined in the integration
3379
+ # request.
3380
3380
  # @return [String]
3381
3381
  #
3382
3382
  # @!attribute [rw] content_handling
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-apigateway/customizations'
52
52
  # @!group service
53
53
  module Aws::APIGateway
54
54
 
55
- GEM_VERSION = '1.80.0'
55
+ GEM_VERSION = '1.82.0'
56
56
 
57
57
  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.80.0
4
+ version: 1.82.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: 2022-12-29 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.165.0
22
+ version: 3.174.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.165.0
32
+ version: 3.174.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement