aws-sdk-apigatewayv2 1.43.0 → 1.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-apigatewayv2/client.rb +10 -5
- data/lib/aws-sdk-apigatewayv2/endpoint_provider.rb +35 -96
- data/lib/aws-sdk-apigatewayv2/types.rb +22 -993
- data/lib/aws-sdk-apigatewayv2.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f9ed505963b28e7dbf61f69a3917b21cdea65981c721a46a962c607b98ff5c3
|
4
|
+
data.tar.gz: 0fb67c7a4f94c66530a6a601fed471f248727f72d81ef689298ff0ce3ddfcc51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e3dda49b50333b3a29e9b6c954fdb20e1bbd7bc1f204b67b985172451e2f8c432da89dc187544fd976aee8500a1a27db071c5814f13cf9f7343fe5c6f81e04a
|
7
|
+
data.tar.gz: bdb503a9d292b4f3eb30ba7223bcabe3e1cbe31e0858270fd3da143ed2165553cbecd790448d6f6e1d4d7a2fbfdb7cdbfae263bb4bc67761979a581c1085dbea
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.45.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.44.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.43.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
@@ -225,4 +237,4 @@ Unreleased Changes
|
|
225
237
|
1.0.0 (2018-12-18)
|
226
238
|
------------------
|
227
239
|
|
228
|
-
* Feature - Initial release of `aws-sdk-apigatewayv2`.
|
240
|
+
* Feature - Initial release of `aws-sdk-apigatewayv2`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.45.0
|
@@ -275,6 +275,11 @@ module Aws::ApiGatewayV2
|
|
275
275
|
# in the future.
|
276
276
|
#
|
277
277
|
#
|
278
|
+
# @option options [String] :sdk_ua_app_id
|
279
|
+
# A unique and opaque application ID that is appended to the
|
280
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
281
|
+
# maximum length of 50.
|
282
|
+
#
|
278
283
|
# @option options [String] :secret_access_key
|
279
284
|
#
|
280
285
|
# @option options [String] :session_token
|
@@ -854,7 +859,7 @@ module Aws::ApiGatewayV2
|
|
854
859
|
# request parameters are a key-value map specifying how to transform
|
855
860
|
# HTTP requests before sending them to the backend. The key should
|
856
861
|
# follow the pattern
|
857
|
-
# <action>
|
862
|
+
# <action>:<header\|querystring\|path>.<location>
|
858
863
|
# where action can be append, overwrite or remove. For values, you can
|
859
864
|
# provide static values, or map request data, stage variables, or
|
860
865
|
# context variables that are evaluated at runtime. To learn more, see
|
@@ -1023,7 +1028,7 @@ module Aws::ApiGatewayV2
|
|
1023
1028
|
# request parameters are a key-value map specifying how to transform
|
1024
1029
|
# HTTP requests before sending them to the backend. The key should
|
1025
1030
|
# follow the pattern
|
1026
|
-
# <action>
|
1031
|
+
# <action>:<header\|querystring\|path>.<location>
|
1027
1032
|
# where action can be append, overwrite or remove. For values, you can
|
1028
1033
|
# provide static values, or map request data, stage variables, or
|
1029
1034
|
# context variables that are evaluated at runtime. To learn more, see
|
@@ -3822,7 +3827,7 @@ module Aws::ApiGatewayV2
|
|
3822
3827
|
# request parameters are a key-value map specifying how to transform
|
3823
3828
|
# HTTP requests before sending them to the backend. The key should
|
3824
3829
|
# follow the pattern
|
3825
|
-
# <action>
|
3830
|
+
# <action>:<header\|querystring\|path>.<location>
|
3826
3831
|
# where action can be append, overwrite or remove. For values, you can
|
3827
3832
|
# provide static values, or map request data, stage variables, or
|
3828
3833
|
# context variables that are evaluated at runtime. To learn more, see
|
@@ -3994,7 +3999,7 @@ module Aws::ApiGatewayV2
|
|
3994
3999
|
# request parameters are a key-value map specifying how to transform
|
3995
4000
|
# HTTP requests before sending them to the backend. The key should
|
3996
4001
|
# follow the pattern
|
3997
|
-
# <action>
|
4002
|
+
# <action>:<header\|querystring\|path>.<location>
|
3998
4003
|
# where action can be append, overwrite or remove. For values, you can
|
3999
4004
|
# provide static values, or map request data, stage variables, or
|
4000
4005
|
# context variables that are evaluated at runtime. To learn more, see
|
@@ -4498,7 +4503,7 @@ module Aws::ApiGatewayV2
|
|
4498
4503
|
params: params,
|
4499
4504
|
config: config)
|
4500
4505
|
context[:gem_name] = 'aws-sdk-apigatewayv2'
|
4501
|
-
context[:gem_version] = '1.
|
4506
|
+
context[:gem_version] = '1.45.0'
|
4502
4507
|
Seahorse::Client::Request.new(handlers, context)
|
4503
4508
|
end
|
4504
4509
|
|
@@ -9,104 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::ApiGatewayV2
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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) && (url = Aws::Endpoints::Matchers.parse_url(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
|
-
|
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
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
-
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
-
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
-
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
-
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
-
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
-
ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
|
39
|
-
aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
|
40
|
-
OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
|
41
|
-
UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
|
42
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