aws-sdk-elastictranscoder 1.39.0 → 1.40.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: cfbb87f64ee774e83812b6885bf24c5802f7dace1ec54c62b1779b806a5e1dee
4
- data.tar.gz: 9e0aacec98324d3492ab6d919069b23a6df79acbde44a9a5f05900c334cf0440
3
+ metadata.gz: d6219e6c69b563b97fa87298ef4efed89833b412688db95339c5db297732f7f8
4
+ data.tar.gz: 8ea6d82615aa339498c66e38ee61e0d7f2d07d3e4c34aa37e0495a7f4944df3f
5
5
  SHA512:
6
- metadata.gz: 34063e6f3f700ab018a1309846ddd82aa620f0aff5a62babce6638bd32aad0f12928d8a008ba85490a0f3b0cde9ca1a8aa11bd4c237066b6433e55fa919b76c2
7
- data.tar.gz: 5a35d77e263397d2a703e03b98f386599fef54ddb9b49ae25b685efe1f3ed5b08518eff4eba522b0a70357efefcd7e365de21c51546de31b4cc73e6dd6da4c5b
6
+ metadata.gz: c69e694f64f73485a95f30bfd5c5fe95570fd107d6c5ac9fdc36e2cf05a3cc49ecf1bc75c66e6004a819bb74e151d0dd912171c5932425325359b418679e19ee
7
+ data.tar.gz: 4551da681332d621fed49232349b478c50a69396a5107d5c54c0eb3473a052189d0b01178b27e13437f937eb7c628d15e97dbde44283bbd4c0a1192676833ea5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.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.39.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -263,4 +270,4 @@ Unreleased Changes
263
270
  1.0.0.rc1 (2016-12-05)
264
271
  ------------------
265
272
 
266
- * Feature - Initial preview release of the `aws-sdk-elastictranscoder` gem.
273
+ * Feature - Initial preview release of the `aws-sdk-elastictranscoder` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.40.0
@@ -3032,7 +3032,7 @@ module Aws::ElasticTranscoder
3032
3032
  params: params,
3033
3033
  config: config)
3034
3034
  context[:gem_name] = 'aws-sdk-elastictranscoder'
3035
- context[:gem_version] = '1.39.0'
3035
+ context[:gem_version] = '1.40.0'
3036
3036
  Seahorse::Client::Request.new(handlers, context)
3037
3037
  end
3038
3038
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::ElasticTranscoder
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://elastictranscoder-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://elastictranscoder-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://elastictranscoder.#{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://elastictranscoder.#{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
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gd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HRwczovL2VsYXN0aWN0cmFuc2NvZGVyLntSZWdpb259LntQYXJ0
101
- aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMi
102
- Ont9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25k
103
- aXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQg
104
- dGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0
105
- eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7
106
- InVybCI6Imh0dHBzOi8vZWxhc3RpY3RyYW5zY29kZXIue1JlZ2lvbn0ue1Bh
107
- cnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
108
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
109
-
110
- JSON
111
50
  end
112
51
  end