aws-sdk-apigatewaymanagementapi 1.31.0 → 1.32.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: 0b584ee1b9aa4cf85812c9710985446bae2a35f4921f3099187bf87b964cfb48
4
- data.tar.gz: c4f27e3632457b5a71f5f3dd30625769e4d103d1ef09245dc1452ea911baceb4
3
+ metadata.gz: fa63072e1aa2ad4a84d1d70e5bd62eec1d6437f589f77cd19c7cab5462f0e803
4
+ data.tar.gz: 8216e814d22b18551a2c42cb1a7463aef2f32f04ba9155ad0f7b15eb6f48c2ea
5
5
  SHA512:
6
- metadata.gz: bf34581bd0a509d8f4bd68f753b2b118b2aba51166071e96ecb700324430c24e8d252f203583321465125a18818e92a4799b6f9b4b6724f532afe1c2527dc348
7
- data.tar.gz: 1db6891277ea5677a807eee3952733224dc8ed949d66ad8bdeb0763515dd2037849873f220764e6ef04d2656a1804a45b1d5b890b2869cf63292118ade1849df
6
+ metadata.gz: 3ba9e44d99eebdb1748308db2efce5456271539025e32d9cf92ab489724fde9abe12585518e801aa253a37ea175d77b6459bd537b9ee72471bd5c631466afee2
7
+ data.tar.gz: 9b1d862525221dbd4107f5eb82c1d44f14886cb1e9768fb3e3c09c3fc0c9774e4c0db26112c91b6ac799881d270384d77d2f268beac027a8fb77796d83fec568
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.32.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.31.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -165,4 +172,4 @@ Unreleased Changes
165
172
  1.0.0 (2018-12-18)
166
173
  ------------------
167
174
 
168
- * Feature - Initial release of `aws-sdk-apigatewaymanagementapi`.
175
+ * Feature - Initial release of `aws-sdk-apigatewaymanagementapi`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.31.0
1
+ 1.32.0
@@ -453,7 +453,7 @@ module Aws::ApiGatewayManagementApi
453
453
  params: params,
454
454
  config: config)
455
455
  context[:gem_name] = 'aws-sdk-apigatewaymanagementapi'
456
- context[:gem_version] = '1.31.0'
456
+ context[:gem_version] = '1.32.0'
457
457
  Seahorse::Client::Request.new(handlers, context)
458
458
  end
459
459
 
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::ApiGatewayManagementApi
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) && (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://execute-api-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://execute-api-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://execute-api.#{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://execute-api.#{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
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34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XMiOnt9LCJoZWFkZXJzIjp7
101
- fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJy
102
- b3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24g
103
- ZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19
104
- LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8v
105
- ZXhlY3V0ZS1hcGkue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZm
106
- aXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVu
107
- ZHBvaW50In1dfV19
108
-
109
- JSON
110
50
  end
111
51
  end
@@ -10,13 +10,6 @@
10
10
  module Aws::ApiGatewayManagementApi
11
11
  module Types
12
12
 
13
- # @note When making an API call, you may pass DeleteConnectionRequest
14
- # data as a hash:
15
- #
16
- # {
17
- # connection_id: "__string", # required
18
- # }
19
- #
20
13
  # @!attribute [rw] connection_id
21
14
  # @return [String]
22
15
  #
@@ -30,13 +23,6 @@ module Aws::ApiGatewayManagementApi
30
23
  #
31
24
  class ForbiddenException < Aws::EmptyStructure; end
32
25
 
33
- # @note When making an API call, you may pass GetConnectionRequest
34
- # data as a hash:
35
- #
36
- # {
37
- # connection_id: "__string", # required
38
- # }
39
- #
40
26
  # @!attribute [rw] connection_id
41
27
  # @return [String]
42
28
  #
@@ -94,14 +80,6 @@ module Aws::ApiGatewayManagementApi
94
80
  include Aws::Structure
95
81
  end
96
82
 
97
- # @note When making an API call, you may pass PostToConnectionRequest
98
- # data as a hash:
99
- #
100
- # {
101
- # data: "data", # required
102
- # connection_id: "__string", # required
103
- # }
104
- #
105
83
  # @!attribute [rw] data
106
84
  # The data to be sent to the client specified by its connection id.
107
85
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-apigatewaymanagementapi/customizations'
52
52
  # @!group service
53
53
  module Aws::ApiGatewayManagementApi
54
54
 
55
- GEM_VERSION = '1.31.0'
55
+ GEM_VERSION = '1.32.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-apigatewaymanagementapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.31.0
4
+ version: 1.32.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-10-25 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core