aws-sdk-mediastore 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: c5f763460dc384b1fbdee81a6a706549c2cc2c1de8a875509e4eb97ab1d643ba
4
- data.tar.gz: 874c6e9a48bc9e13cc3134c6c0e75c030d9596a18c256b4f35ac03ade28585ca
3
+ metadata.gz: b2cd46e11f7d041f309507bafe51a2fa62f6d7f0adce4ae5a11cca3990a1b75a
4
+ data.tar.gz: 76a9dafec076a18c4e97165d8ecb10b32aadb79503933537a40e799a9f10bbf2
5
5
  SHA512:
6
- metadata.gz: fc1348f9ff76af8530569e9d9ff422c573b4ea3520f64ff16434a44b7af8526b9a09543a8476eed595c7c77de84c1d6c99c7cd0a01fb293162dbc8816b691dbe
7
- data.tar.gz: b785843224803d670b9787f50b7bd02d0a7f8cddca18548918b443f22be0c8952d65eb1fc234a9d312eff6b9371ddc3a84cb6ee59eb5ca7a41b342957872c834
6
+ metadata.gz: 421cfea0d46fe458459ec462e95f725c1ba24d3d4ea1322e12a52771544555222268e3d0276cd96160190ec03d9338612836dad70c2bde773f5809ad138ce75f
7
+ data.tar.gz: e1d4ed52bc8cf94e1c5ebeda644a8aec697cbf5b59cc04849b7edd5c9dad5cd483b87c004ac188ff90260d766e34ddbb77824f346c27ce097ac432587f9ae75b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.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
+
11
+ 1.42.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.41.0 (2022-02-24)
5
17
  ------------------
6
18
 
@@ -215,4 +227,4 @@ Unreleased Changes
215
227
  1.0.0 (2017-11-27)
216
228
  ------------------
217
229
 
218
- * Feature - Initial release of `aws-sdk-mediastore`.
230
+ * Feature - Initial release of `aws-sdk-mediastore`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.41.0
1
+ 1.43.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:mediastore)
@@ -79,8 +79,9 @@ module Aws::MediaStore
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::MediaStore::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::MediaStore
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::MediaStore
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::MediaStore::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::MediaStore::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -1127,7 +1144,7 @@ module Aws::MediaStore
1127
1144
  params: params,
1128
1145
  config: config)
1129
1146
  context[:gem_name] = 'aws-sdk-mediastore'
1130
- context[:gem_version] = '1.41.0'
1147
+ context[:gem_version] = '1.43.0'
1131
1148
  Seahorse::Client::Request.new(handlers, context)
1132
1149
  end
1133
1150
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::MediaStore
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::MediaStore
11
+ class EndpointProvider
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://mediastore-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://mediastore-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://mediastore.#{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://mediastore.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, 'No endpoint could be resolved'
48
+
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,309 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::MediaStore
12
+ module Endpoints
13
+
14
+ class CreateContainer
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::MediaStore::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class DeleteContainer
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::MediaStore::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DeleteContainerPolicy
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::MediaStore::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DeleteCorsPolicy
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::MediaStore::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DeleteLifecyclePolicy
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::MediaStore::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DeleteMetricPolicy
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::MediaStore::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class DescribeContainer
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::MediaStore::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class GetContainerPolicy
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::MediaStore::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class GetCorsPolicy
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::MediaStore::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class GetLifecyclePolicy
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::MediaStore::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class GetMetricPolicy
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::MediaStore::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class ListContainers
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::MediaStore::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class ListTagsForResource
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::MediaStore::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class PutContainerPolicy
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::MediaStore::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class PutCorsPolicy
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::MediaStore::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class PutLifecyclePolicy
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::MediaStore::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class PutMetricPolicy
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::MediaStore::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class StartAccessLogging
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::MediaStore::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ class StopAccessLogging
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::MediaStore::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
280
+ class TagResource
281
+ def self.build(context)
282
+ unless context.config.regional_endpoint
283
+ endpoint = context.config.endpoint.to_s
284
+ end
285
+ Aws::MediaStore::EndpointParameters.new(
286
+ region: context.config.region,
287
+ use_dual_stack: context.config.use_dualstack_endpoint,
288
+ use_fips: context.config.use_fips_endpoint,
289
+ endpoint: endpoint,
290
+ )
291
+ end
292
+ end
293
+
294
+ class UntagResource
295
+ def self.build(context)
296
+ unless context.config.regional_endpoint
297
+ endpoint = context.config.endpoint.to_s
298
+ end
299
+ Aws::MediaStore::EndpointParameters.new(
300
+ region: context.config.region,
301
+ use_dual_stack: context.config.use_dualstack_endpoint,
302
+ use_fips: context.config.use_fips_endpoint,
303
+ endpoint: endpoint,
304
+ )
305
+ end
306
+ end
307
+
308
+ end
309
+ end
@@ -0,0 +1,110 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::MediaStore
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::MediaStore::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::MediaStore::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::MediaStore::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_container
60
+ Aws::MediaStore::Endpoints::CreateContainer.build(context)
61
+ when :delete_container
62
+ Aws::MediaStore::Endpoints::DeleteContainer.build(context)
63
+ when :delete_container_policy
64
+ Aws::MediaStore::Endpoints::DeleteContainerPolicy.build(context)
65
+ when :delete_cors_policy
66
+ Aws::MediaStore::Endpoints::DeleteCorsPolicy.build(context)
67
+ when :delete_lifecycle_policy
68
+ Aws::MediaStore::Endpoints::DeleteLifecyclePolicy.build(context)
69
+ when :delete_metric_policy
70
+ Aws::MediaStore::Endpoints::DeleteMetricPolicy.build(context)
71
+ when :describe_container
72
+ Aws::MediaStore::Endpoints::DescribeContainer.build(context)
73
+ when :get_container_policy
74
+ Aws::MediaStore::Endpoints::GetContainerPolicy.build(context)
75
+ when :get_cors_policy
76
+ Aws::MediaStore::Endpoints::GetCorsPolicy.build(context)
77
+ when :get_lifecycle_policy
78
+ Aws::MediaStore::Endpoints::GetLifecyclePolicy.build(context)
79
+ when :get_metric_policy
80
+ Aws::MediaStore::Endpoints::GetMetricPolicy.build(context)
81
+ when :list_containers
82
+ Aws::MediaStore::Endpoints::ListContainers.build(context)
83
+ when :list_tags_for_resource
84
+ Aws::MediaStore::Endpoints::ListTagsForResource.build(context)
85
+ when :put_container_policy
86
+ Aws::MediaStore::Endpoints::PutContainerPolicy.build(context)
87
+ when :put_cors_policy
88
+ Aws::MediaStore::Endpoints::PutCorsPolicy.build(context)
89
+ when :put_lifecycle_policy
90
+ Aws::MediaStore::Endpoints::PutLifecyclePolicy.build(context)
91
+ when :put_metric_policy
92
+ Aws::MediaStore::Endpoints::PutMetricPolicy.build(context)
93
+ when :start_access_logging
94
+ Aws::MediaStore::Endpoints::StartAccessLogging.build(context)
95
+ when :stop_access_logging
96
+ Aws::MediaStore::Endpoints::StopAccessLogging.build(context)
97
+ when :tag_resource
98
+ Aws::MediaStore::Endpoints::TagResource.build(context)
99
+ when :untag_resource
100
+ Aws::MediaStore::Endpoints::UntagResource.build(context)
101
+ end
102
+ end
103
+ end
104
+
105
+ def add_handlers(handlers, _config)
106
+ handlers.add(Handler, step: :build, priority: 75)
107
+ end
108
+ end
109
+ end
110
+ end
@@ -112,17 +112,6 @@ module Aws::MediaStore
112
112
  # policy. If more than one rule applies, the service uses the first
113
113
  # applicable rule listed.
114
114
  #
115
- # @note When making an API call, you may pass CorsRule
116
- # data as a hash:
117
- #
118
- # {
119
- # allowed_origins: ["Origin"], # required
120
- # allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
121
- # allowed_headers: ["Header"], # required
122
- # max_age_seconds: 1,
123
- # expose_headers: ["Header"],
124
- # }
125
- #
126
115
  # @!attribute [rw] allowed_origins
127
116
  # One or more response headers that you want users to be able to
128
117
  # access from their applications (for example, from a JavaScript
@@ -179,19 +168,6 @@ module Aws::MediaStore
179
168
  include Aws::Structure
180
169
  end
181
170
 
182
- # @note When making an API call, you may pass CreateContainerInput
183
- # data as a hash:
184
- #
185
- # {
186
- # container_name: "ContainerName", # required
187
- # tags: [
188
- # {
189
- # key: "TagKey", # required
190
- # value: "TagValue",
191
- # },
192
- # ],
193
- # }
194
- #
195
171
  # @!attribute [rw] container_name
196
172
  # The name for the container. The name must be from 1 to 255
197
173
  # characters. Container names must be unique to your AWS account
@@ -252,13 +228,6 @@ module Aws::MediaStore
252
228
  include Aws::Structure
253
229
  end
254
230
 
255
- # @note When making an API call, you may pass DeleteContainerInput
256
- # data as a hash:
257
- #
258
- # {
259
- # container_name: "ContainerName", # required
260
- # }
261
- #
262
231
  # @!attribute [rw] container_name
263
232
  # The name of the container to delete.
264
233
  # @return [String]
@@ -275,13 +244,6 @@ module Aws::MediaStore
275
244
  #
276
245
  class DeleteContainerOutput < Aws::EmptyStructure; end
277
246
 
278
- # @note When making an API call, you may pass DeleteContainerPolicyInput
279
- # data as a hash:
280
- #
281
- # {
282
- # container_name: "ContainerName", # required
283
- # }
284
- #
285
247
  # @!attribute [rw] container_name
286
248
  # The name of the container that holds the policy.
287
249
  # @return [String]
@@ -298,13 +260,6 @@ module Aws::MediaStore
298
260
  #
299
261
  class DeleteContainerPolicyOutput < Aws::EmptyStructure; end
300
262
 
301
- # @note When making an API call, you may pass DeleteCorsPolicyInput
302
- # data as a hash:
303
- #
304
- # {
305
- # container_name: "ContainerName", # required
306
- # }
307
- #
308
263
  # @!attribute [rw] container_name
309
264
  # The name of the container to remove the policy from.
310
265
  # @return [String]
@@ -321,13 +276,6 @@ module Aws::MediaStore
321
276
  #
322
277
  class DeleteCorsPolicyOutput < Aws::EmptyStructure; end
323
278
 
324
- # @note When making an API call, you may pass DeleteLifecyclePolicyInput
325
- # data as a hash:
326
- #
327
- # {
328
- # container_name: "ContainerName", # required
329
- # }
330
- #
331
279
  # @!attribute [rw] container_name
332
280
  # The name of the container that holds the object lifecycle policy.
333
281
  # @return [String]
@@ -344,13 +292,6 @@ module Aws::MediaStore
344
292
  #
345
293
  class DeleteLifecyclePolicyOutput < Aws::EmptyStructure; end
346
294
 
347
- # @note When making an API call, you may pass DeleteMetricPolicyInput
348
- # data as a hash:
349
- #
350
- # {
351
- # container_name: "ContainerName", # required
352
- # }
353
- #
354
295
  # @!attribute [rw] container_name
355
296
  # The name of the container that is associated with the metric policy
356
297
  # that you want to delete.
@@ -368,13 +309,6 @@ module Aws::MediaStore
368
309
  #
369
310
  class DeleteMetricPolicyOutput < Aws::EmptyStructure; end
370
311
 
371
- # @note When making an API call, you may pass DescribeContainerInput
372
- # data as a hash:
373
- #
374
- # {
375
- # container_name: "ContainerName",
376
- # }
377
- #
378
312
  # @!attribute [rw] container_name
379
313
  # The name of the container to query.
380
314
  # @return [String]
@@ -399,13 +333,6 @@ module Aws::MediaStore
399
333
  include Aws::Structure
400
334
  end
401
335
 
402
- # @note When making an API call, you may pass GetContainerPolicyInput
403
- # data as a hash:
404
- #
405
- # {
406
- # container_name: "ContainerName", # required
407
- # }
408
- #
409
336
  # @!attribute [rw] container_name
410
337
  # The name of the container.
411
338
  # @return [String]
@@ -430,13 +357,6 @@ module Aws::MediaStore
430
357
  include Aws::Structure
431
358
  end
432
359
 
433
- # @note When making an API call, you may pass GetCorsPolicyInput
434
- # data as a hash:
435
- #
436
- # {
437
- # container_name: "ContainerName", # required
438
- # }
439
- #
440
360
  # @!attribute [rw] container_name
441
361
  # The name of the container that the policy is assigned to.
442
362
  # @return [String]
@@ -461,13 +381,6 @@ module Aws::MediaStore
461
381
  include Aws::Structure
462
382
  end
463
383
 
464
- # @note When making an API call, you may pass GetLifecyclePolicyInput
465
- # data as a hash:
466
- #
467
- # {
468
- # container_name: "ContainerName", # required
469
- # }
470
- #
471
384
  # @!attribute [rw] container_name
472
385
  # The name of the container that the object lifecycle policy is
473
386
  # assigned to.
@@ -493,13 +406,6 @@ module Aws::MediaStore
493
406
  include Aws::Structure
494
407
  end
495
408
 
496
- # @note When making an API call, you may pass GetMetricPolicyInput
497
- # data as a hash:
498
- #
499
- # {
500
- # container_name: "ContainerName", # required
501
- # }
502
- #
503
409
  # @!attribute [rw] container_name
504
410
  # The name of the container that is associated with the metric policy.
505
411
  # @return [String]
@@ -550,14 +456,6 @@ module Aws::MediaStore
550
456
  include Aws::Structure
551
457
  end
552
458
 
553
- # @note When making an API call, you may pass ListContainersInput
554
- # data as a hash:
555
- #
556
- # {
557
- # next_token: "PaginationToken",
558
- # max_results: 1,
559
- # }
560
- #
561
459
  # @!attribute [rw] next_token
562
460
  # Only if you used `MaxResults` in the first command, enter the token
563
461
  # (which was included in the previous response) to obtain the next set
@@ -599,13 +497,6 @@ module Aws::MediaStore
599
497
  include Aws::Structure
600
498
  end
601
499
 
602
- # @note When making an API call, you may pass ListTagsForResourceInput
603
- # data as a hash:
604
- #
605
- # {
606
- # resource: "ContainerARN", # required
607
- # }
608
- #
609
500
  # @!attribute [rw] resource
610
501
  # The Amazon Resource Name (ARN) for the container.
611
502
  # @return [String]
@@ -644,19 +535,6 @@ module Aws::MediaStore
644
535
  #
645
536
  # [1]: https://docs.aws.amazon.com/mediastore/latest/ug/policies-metric-examples.html
646
537
  #
647
- # @note When making an API call, you may pass MetricPolicy
648
- # data as a hash:
649
- #
650
- # {
651
- # container_level_metrics: "ENABLED", # required, accepts ENABLED, DISABLED
652
- # metric_policy_rules: [
653
- # {
654
- # object_group: "ObjectGroup", # required
655
- # object_group_name: "ObjectGroupName", # required
656
- # },
657
- # ],
658
- # }
659
- #
660
538
  # @!attribute [rw] container_level_metrics
661
539
  # A setting to enable or disable metrics at the container level.
662
540
  # @return [String]
@@ -692,14 +570,6 @@ module Aws::MediaStore
692
570
  #
693
571
  # [1]: https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas
694
572
  #
695
- # @note When making an API call, you may pass MetricPolicyRule
696
- # data as a hash:
697
- #
698
- # {
699
- # object_group: "ObjectGroup", # required
700
- # object_group_name: "ObjectGroupName", # required
701
- # }
702
- #
703
573
  # @!attribute [rw] object_group
704
574
  # A path or file name that defines which objects to include in the
705
575
  # group. Wildcards (*) are acceptable.
@@ -731,14 +601,6 @@ module Aws::MediaStore
731
601
  include Aws::Structure
732
602
  end
733
603
 
734
- # @note When making an API call, you may pass PutContainerPolicyInput
735
- # data as a hash:
736
- #
737
- # {
738
- # container_name: "ContainerName", # required
739
- # policy: "ContainerPolicy", # required
740
- # }
741
- #
742
604
  # @!attribute [rw] container_name
743
605
  # The name of the container.
744
606
  # @return [String]
@@ -765,22 +627,6 @@ module Aws::MediaStore
765
627
  #
766
628
  class PutContainerPolicyOutput < Aws::EmptyStructure; end
767
629
 
768
- # @note When making an API call, you may pass PutCorsPolicyInput
769
- # data as a hash:
770
- #
771
- # {
772
- # container_name: "ContainerName", # required
773
- # cors_policy: [ # required
774
- # {
775
- # allowed_origins: ["Origin"], # required
776
- # allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
777
- # allowed_headers: ["Header"], # required
778
- # max_age_seconds: 1,
779
- # expose_headers: ["Header"],
780
- # },
781
- # ],
782
- # }
783
- #
784
630
  # @!attribute [rw] container_name
785
631
  # The name of the container that you want to assign the CORS policy
786
632
  # to.
@@ -803,14 +649,6 @@ module Aws::MediaStore
803
649
  #
804
650
  class PutCorsPolicyOutput < Aws::EmptyStructure; end
805
651
 
806
- # @note When making an API call, you may pass PutLifecyclePolicyInput
807
- # data as a hash:
808
- #
809
- # {
810
- # container_name: "ContainerName", # required
811
- # lifecycle_policy: "LifecyclePolicy", # required
812
- # }
813
- #
814
652
  # @!attribute [rw] container_name
815
653
  # The name of the container that you want to assign the object
816
654
  # lifecycle policy to.
@@ -833,22 +671,6 @@ module Aws::MediaStore
833
671
  #
834
672
  class PutLifecyclePolicyOutput < Aws::EmptyStructure; end
835
673
 
836
- # @note When making an API call, you may pass PutMetricPolicyInput
837
- # data as a hash:
838
- #
839
- # {
840
- # container_name: "ContainerName", # required
841
- # metric_policy: { # required
842
- # container_level_metrics: "ENABLED", # required, accepts ENABLED, DISABLED
843
- # metric_policy_rules: [
844
- # {
845
- # object_group: "ObjectGroup", # required
846
- # object_group_name: "ObjectGroupName", # required
847
- # },
848
- # ],
849
- # },
850
- # }
851
- #
852
674
  # @!attribute [rw] container_name
853
675
  # The name of the container that you want to add the metric policy to.
854
676
  # @return [String]
@@ -886,13 +708,6 @@ module Aws::MediaStore
886
708
  #
887
709
  class PutMetricPolicyOutput < Aws::EmptyStructure; end
888
710
 
889
- # @note When making an API call, you may pass StartAccessLoggingInput
890
- # data as a hash:
891
- #
892
- # {
893
- # container_name: "ContainerName", # required
894
- # }
895
- #
896
711
  # @!attribute [rw] container_name
897
712
  # The name of the container that you want to start access logging on.
898
713
  # @return [String]
@@ -909,13 +724,6 @@ module Aws::MediaStore
909
724
  #
910
725
  class StartAccessLoggingOutput < Aws::EmptyStructure; end
911
726
 
912
- # @note When making an API call, you may pass StopAccessLoggingInput
913
- # data as a hash:
914
- #
915
- # {
916
- # container_name: "ContainerName", # required
917
- # }
918
- #
919
727
  # @!attribute [rw] container_name
920
728
  # The name of the container that you want to stop access logging on.
921
729
  # @return [String]
@@ -944,14 +752,6 @@ module Aws::MediaStore
944
752
  #
945
753
  # [1]: https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html
946
754
  #
947
- # @note When making an API call, you may pass Tag
948
- # data as a hash:
949
- #
950
- # {
951
- # key: "TagKey", # required
952
- # value: "TagValue",
953
- # }
954
- #
955
755
  # @!attribute [rw] key
956
756
  # Part of the key:value pair that defines a tag. You can use a tag key
957
757
  # to describe a category of information, such as "customer." Tag
@@ -973,19 +773,6 @@ module Aws::MediaStore
973
773
  include Aws::Structure
974
774
  end
975
775
 
976
- # @note When making an API call, you may pass TagResourceInput
977
- # data as a hash:
978
- #
979
- # {
980
- # resource: "ContainerARN", # required
981
- # tags: [ # required
982
- # {
983
- # key: "TagKey", # required
984
- # value: "TagValue",
985
- # },
986
- # ],
987
- # }
988
- #
989
776
  # @!attribute [rw] resource
990
777
  # The Amazon Resource Name (ARN) for the container.
991
778
  # @return [String]
@@ -1014,14 +801,6 @@ module Aws::MediaStore
1014
801
  #
1015
802
  class TagResourceOutput < Aws::EmptyStructure; end
1016
803
 
1017
- # @note When making an API call, you may pass UntagResourceInput
1018
- # data as a hash:
1019
- #
1020
- # {
1021
- # resource: "ContainerARN", # required
1022
- # tag_keys: ["TagKey"], # required
1023
- # }
1024
- #
1025
804
  # @!attribute [rw] resource
1026
805
  # The Amazon Resource Name (ARN) for the container.
1027
806
  # @return [String]
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-mediastore/types'
15
15
  require_relative 'aws-sdk-mediastore/client_api'
16
+ require_relative 'aws-sdk-mediastore/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-mediastore/client'
17
18
  require_relative 'aws-sdk-mediastore/errors'
18
19
  require_relative 'aws-sdk-mediastore/resource'
20
+ require_relative 'aws-sdk-mediastore/endpoint_parameters'
21
+ require_relative 'aws-sdk-mediastore/endpoint_provider'
22
+ require_relative 'aws-sdk-mediastore/endpoints'
19
23
  require_relative 'aws-sdk-mediastore/customizations'
20
24
 
21
25
  # This module provides support for AWS Elemental MediaStore. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-mediastore/customizations'
48
52
  # @!group service
49
53
  module Aws::MediaStore
50
54
 
51
- GEM_VERSION = '1.41.0'
55
+ GEM_VERSION = '1.43.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-mediastore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.41.0
4
+ version: 1.43.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-02-24 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-mediastore/client.rb
60
60
  - lib/aws-sdk-mediastore/client_api.rb
61
61
  - lib/aws-sdk-mediastore/customizations.rb
62
+ - lib/aws-sdk-mediastore/endpoint_parameters.rb
63
+ - lib/aws-sdk-mediastore/endpoint_provider.rb
64
+ - lib/aws-sdk-mediastore/endpoints.rb
62
65
  - lib/aws-sdk-mediastore/errors.rb
66
+ - lib/aws-sdk-mediastore/plugins/endpoints.rb
63
67
  - lib/aws-sdk-mediastore/resource.rb
64
68
  - lib/aws-sdk-mediastore/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby