aws-sdk-kinesisvideomedia 1.38.0 → 1.39.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: c919b6d76f0d74cc3489805cbd0cb630e1eee4366da1b2fd15714a3cf69e235c
4
- data.tar.gz: 1550d643c9d7e4d06aa44f577b1785724e147cb8fbe94e7355d4be06ffe72393
3
+ metadata.gz: 4b3ea278f8ebb6c4da0b2158cf55b37ff9af4461f6f22cb7c9933aeee7fda9ac
4
+ data.tar.gz: 670bfb7f0bb73e397d0ce8a2278d45e4adc803e70f74ce193ef83d1a58fbd1f1
5
5
  SHA512:
6
- metadata.gz: 77f7892c6d96c0419a68ae5b3bc86d4a385f7988398c54757d6b5eed896ec5ec94f8ba513d47cf658f14c94460f91eb8796ff4326010237bd092cc4651d3e681
7
- data.tar.gz: 0ac3ede25b8458b08d548e65c34bcb3ce109d507ce1a276ad535e38c2a49f74d91aec0dd22510dec9668b0ca2504acdff56e6d8372e5b7386a4a3afbeef8d145
6
+ metadata.gz: 4a3c47c7e201f3cd6e9f2ce1070746af974568e4c770f3fd6a09fcc758eeb08be43eb739e40158bf1a97bfa966a8375b9d723701db1fab082bb778d990e9cd63
7
+ data.tar.gz: 5fdb514391bdffd58fd57cd15f6da49491cbf8f911e9bdb699bc4861bf4126f17a162cfc8beb9593dd23fce23b0a2efd29219ca04b2c0bf5ed184920cff3e27d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.39.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.38.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -200,4 +207,4 @@ Unreleased Changes
200
207
  1.0.0 (2017-11-29)
201
208
  ------------------
202
209
 
203
- * Feature - Initial release of `aws-sdk-kinesisvideomedia`.
210
+ * Feature - Initial release of `aws-sdk-kinesisvideomedia`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.38.0
1
+ 1.39.0
@@ -478,7 +478,7 @@ module Aws::KinesisVideoMedia
478
478
  params: params,
479
479
  config: config)
480
480
  context[:gem_name] = 'aws-sdk-kinesisvideomedia'
481
- context[:gem_version] = '1.38.0'
481
+ context[:gem_version] = '1.39.0'
482
482
  Seahorse::Client::Request.new(handlers, context)
483
483
  end
484
484
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::KinesisVideoMedia
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://kinesisvideo-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://kinesisvideo-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://kinesisvideo.#{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://kinesisvideo.#{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
- dGF0aW9uIjoiVGhlIEF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W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBz
100
- Oi8va2luZXNpc3ZpZGVvLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVh
101
- bFN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7
102
- fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJy
103
- b3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24g
104
- ZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19
105
- LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8v
106
- a2luZXNpc3ZpZGVvLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3Vm
107
- Zml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJl
108
- bmRwb2ludCJ9XX1dfQ==
109
-
110
- JSON
111
50
  end
112
51
  end
@@ -38,20 +38,6 @@ module Aws::KinesisVideoMedia
38
38
  include Aws::Structure
39
39
  end
40
40
 
41
- # @note When making an API call, you may pass GetMediaInput
42
- # data as a hash:
43
- #
44
- # {
45
- # stream_name: "StreamName",
46
- # stream_arn: "ResourceARN",
47
- # start_selector: { # required
48
- # start_selector_type: "FRAGMENT_NUMBER", # required, accepts FRAGMENT_NUMBER, SERVER_TIMESTAMP, PRODUCER_TIMESTAMP, NOW, EARLIEST, CONTINUATION_TOKEN
49
- # after_fragment_number: "FragmentNumberString",
50
- # start_timestamp: Time.now,
51
- # continuation_token: "ContinuationToken",
52
- # },
53
- # }
54
- #
55
41
  # @!attribute [rw] stream_name
56
42
  # The Kinesis video stream name from where you want to get the media
57
43
  # content. If you don't specify the `streamName`, you must specify
@@ -217,16 +203,6 @@ module Aws::KinesisVideoMedia
217
203
  # next `GetMedia` request. The API then starts returning chunks
218
204
  # starting where the last API ended.
219
205
  #
220
- # @note When making an API call, you may pass StartSelector
221
- # data as a hash:
222
- #
223
- # {
224
- # start_selector_type: "FRAGMENT_NUMBER", # required, accepts FRAGMENT_NUMBER, SERVER_TIMESTAMP, PRODUCER_TIMESTAMP, NOW, EARLIEST, CONTINUATION_TOKEN
225
- # after_fragment_number: "FragmentNumberString",
226
- # start_timestamp: Time.now,
227
- # continuation_token: "ContinuationToken",
228
- # }
229
- #
230
206
  # @!attribute [rw] start_selector_type
231
207
  # Identifies the fragment on the Kinesis video stream where you want
232
208
  # to start getting the data from.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-kinesisvideomedia/customizations'
52
52
  # @!group service
53
53
  module Aws::KinesisVideoMedia
54
54
 
55
- GEM_VERSION = '1.38.0'
55
+ GEM_VERSION = '1.39.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kinesisvideomedia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.39.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