aws-sdk-sms 1.41.0 → 1.43.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: 88bcc0d6600ec2e9a4e9cf5d6d9add91ed37cbb02649bab39441ccc196cff6b1
4
- data.tar.gz: 01a15a8691868cebe5df45cc82ce1575a6cf74f03dcc1f8bec0be1f4b981fd4d
3
+ metadata.gz: c5a4af3e21cae659eb1f514a5ffcea642aee98046561d5d679f6f15c63f78033
4
+ data.tar.gz: e41fcfbe68f81bd14df01c617b5f0a302f74fd280e0678ee6e9f14015a775b73
5
5
  SHA512:
6
- metadata.gz: ec9c55c6bf9f67bda5390d90838253c4aa26b27dcb7b1cd2f61beb9d36e5012659cfbf6f1d37f58e0901f892288615edfc96724ea0f9b0494129a93749c84d26
7
- data.tar.gz: d4bf67551052049ebf89197acd9076c69c539717af082ea40443ab6bd3f3de7c47c7b3d6a6b95554ff0fc9dcbf2202f37017fc4b8449c33dca977e88f5178ca0
6
+ metadata.gz: cc79bb07d985ea4817197a8be2c989cedaa559be107eed0651841d507720eac3430949e29a94073ad233bf5b7edf337cc1bc7f13bb33cd7908ceb0062e266402
7
+ data.tar.gz: a2ba814763190e893c4c49a0f8db2ec3b85159c1de6e54323b841dd3d70d0f36a10ac08ea8bc0d08a460b32c0d42456a1177245ef4aa410e69c619fe3068f83c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2023-03-31)
5
+ ------------------
6
+
7
+ * Feature - Deprecating AWS Server Migration Service.
8
+
9
+ 1.42.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.41.0 (2022-10-25)
5
17
  ------------------
6
18
 
@@ -273,4 +285,4 @@ Unreleased Changes
273
285
  1.0.0.rc1 (2016-12-05)
274
286
  ------------------
275
287
 
276
- * Feature - Initial preview release of the `aws-sdk-sms` gem.
288
+ * Feature - Initial preview release of the `aws-sdk-sms` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.41.0
1
+ 1.43.0
@@ -2089,7 +2089,7 @@ module Aws::SMS
2089
2089
  params: params,
2090
2090
  config: config)
2091
2091
  context[:gem_name] = 'aws-sdk-sms'
2092
- context[:gem_version] = '1.41.0'
2092
+ context[:gem_version] = '1.43.0'
2093
2093
  Seahorse::Client::Request.new(handlers, context)
2094
2094
  end
2095
2095
 
@@ -9,103 +9,46 @@
9
9
 
10
10
  module Aws::SMS
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 Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ 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"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://sms-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://sms-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://sms.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://sms.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZ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