aws-sdk-mediastore 1.22.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2624fafe3a883ab033b7ced94c8dd4fd7261393c
4
- data.tar.gz: 7479d173c5c4746434931727fd76193eb7faa8db
2
+ SHA256:
3
+ metadata.gz: 2dafeb886ed099f30111a5e2a5e4f839939047c4d3fb75c303acfe7abc998ec0
4
+ data.tar.gz: b6a134dad0d0dd2c99dc508bf0a4ac7761598cd5a794d9ae6c7dbdc5059c89c4
5
5
  SHA512:
6
- metadata.gz: 6ebb43b7d32208e954fd34f55fde38539a7e402c3c55606945d9a51b83ca65ab44ede4ccdfb47bc9281a709758e619f758cbab07b3543ee5332b4b169ee88c47
7
- data.tar.gz: 16477bfe8375f1f05ddfc7acd78da4cdab718c3fe9f19052fd01a277a0f6090cde2a074d4c9b10979394d5459001592942f196bb6bb431a27a33f7a5bfbecbc2
6
+ metadata.gz: 979ffd660a3b879a6a4dce43f5fee894268eed2951b3b13ea9ef8729ecb63404958bc172ca86d99706842c699ff95066a679055939311376e11b12bc7c1445b8
7
+ data.tar.gz: e3f3a547be2f7991003ffb18443893b5ee114e98ee22dde5201e662de5536eaa81df61298fdf94e20fdbe2ed99eb14bb2e066e8efbd82e4252b6e7073ba7bfe6
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-mediastore/customizations'
45
47
  # @service
46
48
  module Aws::MediaStore
47
49
 
48
- GEM_VERSION = '1.22.0'
50
+ GEM_VERSION = '1.27.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -32,11 +35,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:mediastore)
32
35
  module Aws::MediaStore
33
36
  # An API client for MediaStore. To construct a client, you need to configure a `:region` and `:credentials`.
34
37
  #
35
- # client = Aws::MediaStore::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
38
+ # client = Aws::MediaStore::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
40
43
  #
41
44
  # For details on configuring region and credentials see
42
45
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -69,6 +72,7 @@ module Aws::MediaStore
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -105,7 +109,7 @@ module Aws::MediaStore
105
109
  # @option options [required, String] :region
106
110
  # The AWS region to connect to. The configured `:region` is
107
111
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
109
113
  #
110
114
  # * `Aws.config[:region]`
111
115
  # * `ENV['AWS_REGION']`
@@ -161,7 +165,7 @@ module Aws::MediaStore
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::MediaStore
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -229,15 +233,19 @@ module Aws::MediaStore
229
233
  #
230
234
  # @option options [String] :retry_mode ("legacy")
231
235
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
241
249
  #
242
250
  # @option options [String] :secret_access_key
243
251
  #
@@ -275,8 +283,7 @@ module Aws::MediaStore
275
283
  #
276
284
  # @option options [Integer] :http_read_timeout (60) The default
277
285
  # number of seconds to wait for response data. This value can
278
- # safely be set
279
- # per-request on the session yielded by {#session_for}.
286
+ # safely be set per-request on the session.
280
287
  #
281
288
  # @option options [Float] :http_idle_timeout (5) The number of
282
289
  # seconds a connection is allowed to sit idle before it is
@@ -288,7 +295,7 @@ module Aws::MediaStore
288
295
  # request body. This option has no effect unless the request has
289
296
  # "Expect" header set to "100-continue". Defaults to `nil` which
290
297
  # disables this behaviour. This value can safely be set per
291
- # request on the session yielded by {#session_for}.
298
+ # request on the session.
292
299
  #
293
300
  # @option options [Boolean] :http_wire_trace (false) When `true`,
294
301
  # HTTP debug output will be sent to the `:logger`.
@@ -469,6 +476,31 @@ module Aws::MediaStore
469
476
  req.send_request(options)
470
477
  end
471
478
 
479
+ # Deletes the metric policy that is associated with the specified
480
+ # container. If there is no metric policy associated with the container,
481
+ # MediaStore doesn't send metrics to CloudWatch.
482
+ #
483
+ # @option params [required, String] :container_name
484
+ # The name of the container that is associated with the metric policy
485
+ # that you want to delete.
486
+ #
487
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
488
+ #
489
+ # @example Request syntax with placeholder values
490
+ #
491
+ # resp = client.delete_metric_policy({
492
+ # container_name: "ContainerName", # required
493
+ # })
494
+ #
495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteMetricPolicy AWS API Documentation
496
+ #
497
+ # @overload delete_metric_policy(params = {})
498
+ # @param [Hash] params ({})
499
+ def delete_metric_policy(params = {}, options = {})
500
+ req = build_request(:delete_metric_policy, params)
501
+ req.send_request(options)
502
+ end
503
+
472
504
  # Retrieves the properties of the requested container. This request is
473
505
  # commonly used to retrieve the endpoint of a container. An endpoint is
474
506
  # a value assigned by the service when a new container is created. A
@@ -613,6 +645,37 @@ module Aws::MediaStore
613
645
  req.send_request(options)
614
646
  end
615
647
 
648
+ # Returns the metric policy for the specified container.
649
+ #
650
+ # @option params [required, String] :container_name
651
+ # The name of the container that is associated with the metric policy.
652
+ #
653
+ # @return [Types::GetMetricPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
654
+ #
655
+ # * {Types::GetMetricPolicyOutput#metric_policy #metric_policy} => Types::MetricPolicy
656
+ #
657
+ # @example Request syntax with placeholder values
658
+ #
659
+ # resp = client.get_metric_policy({
660
+ # container_name: "ContainerName", # required
661
+ # })
662
+ #
663
+ # @example Response structure
664
+ #
665
+ # resp.metric_policy.container_level_metrics #=> String, one of "ENABLED", "DISABLED"
666
+ # resp.metric_policy.metric_policy_rules #=> Array
667
+ # resp.metric_policy.metric_policy_rules[0].object_group #=> String
668
+ # resp.metric_policy.metric_policy_rules[0].object_group_name #=> String
669
+ #
670
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetMetricPolicy AWS API Documentation
671
+ #
672
+ # @overload get_metric_policy(params = {})
673
+ # @param [Hash] params ({})
674
+ def get_metric_policy(params = {}, options = {})
675
+ req = build_request(:get_metric_policy, params)
676
+ req.send_request(options)
677
+ end
678
+
616
679
  # Lists the properties of all containers in AWS Elemental MediaStore.
617
680
  #
618
681
  # You can query to receive all the containers in one response. Or you
@@ -641,6 +704,8 @@ module Aws::MediaStore
641
704
  # * {Types::ListContainersOutput#containers #containers} => Array<Types::Container>
642
705
  # * {Types::ListContainersOutput#next_token #next_token} => String
643
706
  #
707
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
708
+ #
644
709
  # @example Request syntax with placeholder values
645
710
  #
646
711
  # resp = client.list_containers({
@@ -829,6 +894,59 @@ module Aws::MediaStore
829
894
  req.send_request(options)
830
895
  end
831
896
 
897
+ # The metric policy that you want to add to the container. A metric
898
+ # policy allows AWS Elemental MediaStore to send metrics to Amazon
899
+ # CloudWatch. It takes up to 20 minutes for the new policy to take
900
+ # effect.
901
+ #
902
+ # @option params [required, String] :container_name
903
+ # The name of the container that you want to add the metric policy to.
904
+ #
905
+ # @option params [required, Types::MetricPolicy] :metric_policy
906
+ # The metric policy that you want to associate with the container. In
907
+ # the policy, you must indicate whether you want MediaStore to send
908
+ # container-level metrics. You can also include up to five rules to
909
+ # define groups of objects that you want MediaStore to send object-level
910
+ # metrics for. If you include rules in the policy, construct each rule
911
+ # with both of the following:
912
+ #
913
+ # * An object group that defines which objects to include in the group.
914
+ # The definition can be a path or a file name, but it can't have more
915
+ # than 900 characters. Valid characters are: a-z, A-Z, 0-9, \_
916
+ # (underscore), = (equal), : (colon), . (period), - (hyphen), ~
917
+ # (tilde), / (forward slash), and * (asterisk). Wildcards (*) are
918
+ # acceptable.
919
+ #
920
+ # * An object group name that allows you to refer to the object group.
921
+ # The name can't have more than 30 characters. Valid characters are:
922
+ # a-z, A-Z, 0-9, and \_ (underscore).
923
+ #
924
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
925
+ #
926
+ # @example Request syntax with placeholder values
927
+ #
928
+ # resp = client.put_metric_policy({
929
+ # container_name: "ContainerName", # required
930
+ # metric_policy: { # required
931
+ # container_level_metrics: "ENABLED", # required, accepts ENABLED, DISABLED
932
+ # metric_policy_rules: [
933
+ # {
934
+ # object_group: "ObjectGroup", # required
935
+ # object_group_name: "ObjectGroupName", # required
936
+ # },
937
+ # ],
938
+ # },
939
+ # })
940
+ #
941
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutMetricPolicy AWS API Documentation
942
+ #
943
+ # @overload put_metric_policy(params = {})
944
+ # @param [Hash] params ({})
945
+ def put_metric_policy(params = {}, options = {})
946
+ req = build_request(:put_metric_policy, params)
947
+ req.send_request(options)
948
+ end
949
+
832
950
  # Starts access logging on the specified container. When you enable
833
951
  # access logging on a container, MediaStore delivers access logs for
834
952
  # objects stored in that container to Amazon CloudWatch Logs.
@@ -970,7 +1088,7 @@ module Aws::MediaStore
970
1088
  params: params,
971
1089
  config: config)
972
1090
  context[:gem_name] = 'aws-sdk-mediastore'
973
- context[:gem_version] = '1.22.0'
1091
+ context[:gem_version] = '1.27.0'
974
1092
  Seahorse::Client::Request.new(handlers, context)
975
1093
  end
976
1094
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -18,6 +20,7 @@ module Aws::MediaStore
18
20
  ContainerARN = Shapes::StringShape.new(name: 'ContainerARN')
19
21
  ContainerAccessLoggingEnabled = Shapes::BooleanShape.new(name: 'ContainerAccessLoggingEnabled')
20
22
  ContainerInUseException = Shapes::StructureShape.new(name: 'ContainerInUseException')
23
+ ContainerLevelMetrics = Shapes::StringShape.new(name: 'ContainerLevelMetrics')
21
24
  ContainerList = Shapes::ListShape.new(name: 'ContainerList')
22
25
  ContainerListLimit = Shapes::IntegerShape.new(name: 'ContainerListLimit')
23
26
  ContainerName = Shapes::StringShape.new(name: 'ContainerName')
@@ -37,6 +40,8 @@ module Aws::MediaStore
37
40
  DeleteCorsPolicyOutput = Shapes::StructureShape.new(name: 'DeleteCorsPolicyOutput')
38
41
  DeleteLifecyclePolicyInput = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyInput')
39
42
  DeleteLifecyclePolicyOutput = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyOutput')
43
+ DeleteMetricPolicyInput = Shapes::StructureShape.new(name: 'DeleteMetricPolicyInput')
44
+ DeleteMetricPolicyOutput = Shapes::StructureShape.new(name: 'DeleteMetricPolicyOutput')
40
45
  DescribeContainerInput = Shapes::StructureShape.new(name: 'DescribeContainerInput')
41
46
  DescribeContainerOutput = Shapes::StructureShape.new(name: 'DescribeContainerOutput')
42
47
  Endpoint = Shapes::StringShape.new(name: 'Endpoint')
@@ -48,6 +53,8 @@ module Aws::MediaStore
48
53
  GetCorsPolicyOutput = Shapes::StructureShape.new(name: 'GetCorsPolicyOutput')
49
54
  GetLifecyclePolicyInput = Shapes::StructureShape.new(name: 'GetLifecyclePolicyInput')
50
55
  GetLifecyclePolicyOutput = Shapes::StructureShape.new(name: 'GetLifecyclePolicyOutput')
56
+ GetMetricPolicyInput = Shapes::StructureShape.new(name: 'GetMetricPolicyInput')
57
+ GetMetricPolicyOutput = Shapes::StructureShape.new(name: 'GetMetricPolicyOutput')
51
58
  Header = Shapes::StringShape.new(name: 'Header')
52
59
  InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
53
60
  LifecyclePolicy = Shapes::StringShape.new(name: 'LifecyclePolicy')
@@ -58,6 +65,11 @@ module Aws::MediaStore
58
65
  ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
59
66
  MaxAgeSeconds = Shapes::IntegerShape.new(name: 'MaxAgeSeconds')
60
67
  MethodName = Shapes::StringShape.new(name: 'MethodName')
68
+ MetricPolicy = Shapes::StructureShape.new(name: 'MetricPolicy')
69
+ MetricPolicyRule = Shapes::StructureShape.new(name: 'MetricPolicyRule')
70
+ MetricPolicyRules = Shapes::ListShape.new(name: 'MetricPolicyRules')
71
+ ObjectGroup = Shapes::StringShape.new(name: 'ObjectGroup')
72
+ ObjectGroupName = Shapes::StringShape.new(name: 'ObjectGroupName')
61
73
  Origin = Shapes::StringShape.new(name: 'Origin')
62
74
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
63
75
  PolicyNotFoundException = Shapes::StructureShape.new(name: 'PolicyNotFoundException')
@@ -67,6 +79,8 @@ module Aws::MediaStore
67
79
  PutCorsPolicyOutput = Shapes::StructureShape.new(name: 'PutCorsPolicyOutput')
68
80
  PutLifecyclePolicyInput = Shapes::StructureShape.new(name: 'PutLifecyclePolicyInput')
69
81
  PutLifecyclePolicyOutput = Shapes::StructureShape.new(name: 'PutLifecyclePolicyOutput')
82
+ PutMetricPolicyInput = Shapes::StructureShape.new(name: 'PutMetricPolicyInput')
83
+ PutMetricPolicyOutput = Shapes::StructureShape.new(name: 'PutMetricPolicyOutput')
70
84
  StartAccessLoggingInput = Shapes::StructureShape.new(name: 'StartAccessLoggingInput')
71
85
  StartAccessLoggingOutput = Shapes::StructureShape.new(name: 'StartAccessLoggingOutput')
72
86
  StopAccessLoggingInput = Shapes::StructureShape.new(name: 'StopAccessLoggingInput')
@@ -143,6 +157,11 @@ module Aws::MediaStore
143
157
 
144
158
  DeleteLifecyclePolicyOutput.struct_class = Types::DeleteLifecyclePolicyOutput
145
159
 
160
+ DeleteMetricPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
161
+ DeleteMetricPolicyInput.struct_class = Types::DeleteMetricPolicyInput
162
+
163
+ DeleteMetricPolicyOutput.struct_class = Types::DeleteMetricPolicyOutput
164
+
146
165
  DescribeContainerInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, location_name: "ContainerName"))
147
166
  DescribeContainerInput.struct_class = Types::DescribeContainerInput
148
167
 
@@ -169,6 +188,12 @@ module Aws::MediaStore
169
188
  GetLifecyclePolicyOutput.add_member(:lifecycle_policy, Shapes::ShapeRef.new(shape: LifecyclePolicy, required: true, location_name: "LifecyclePolicy"))
170
189
  GetLifecyclePolicyOutput.struct_class = Types::GetLifecyclePolicyOutput
171
190
 
191
+ GetMetricPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
192
+ GetMetricPolicyInput.struct_class = Types::GetMetricPolicyInput
193
+
194
+ GetMetricPolicyOutput.add_member(:metric_policy, Shapes::ShapeRef.new(shape: MetricPolicy, required: true, location_name: "MetricPolicy"))
195
+ GetMetricPolicyOutput.struct_class = Types::GetMetricPolicyOutput
196
+
172
197
  InternalServerError.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
173
198
  InternalServerError.struct_class = Types::InternalServerError
174
199
 
@@ -189,6 +214,16 @@ module Aws::MediaStore
189
214
  ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
190
215
  ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
191
216
 
217
+ MetricPolicy.add_member(:container_level_metrics, Shapes::ShapeRef.new(shape: ContainerLevelMetrics, required: true, location_name: "ContainerLevelMetrics"))
218
+ MetricPolicy.add_member(:metric_policy_rules, Shapes::ShapeRef.new(shape: MetricPolicyRules, location_name: "MetricPolicyRules"))
219
+ MetricPolicy.struct_class = Types::MetricPolicy
220
+
221
+ MetricPolicyRule.add_member(:object_group, Shapes::ShapeRef.new(shape: ObjectGroup, required: true, location_name: "ObjectGroup"))
222
+ MetricPolicyRule.add_member(:object_group_name, Shapes::ShapeRef.new(shape: ObjectGroupName, required: true, location_name: "ObjectGroupName"))
223
+ MetricPolicyRule.struct_class = Types::MetricPolicyRule
224
+
225
+ MetricPolicyRules.member = Shapes::ShapeRef.new(shape: MetricPolicyRule)
226
+
192
227
  PolicyNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
193
228
  PolicyNotFoundException.struct_class = Types::PolicyNotFoundException
194
229
 
@@ -210,6 +245,12 @@ module Aws::MediaStore
210
245
 
211
246
  PutLifecyclePolicyOutput.struct_class = Types::PutLifecyclePolicyOutput
212
247
 
248
+ PutMetricPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
249
+ PutMetricPolicyInput.add_member(:metric_policy, Shapes::ShapeRef.new(shape: MetricPolicy, required: true, location_name: "MetricPolicy"))
250
+ PutMetricPolicyInput.struct_class = Types::PutMetricPolicyInput
251
+
252
+ PutMetricPolicyOutput.struct_class = Types::PutMetricPolicyOutput
253
+
213
254
  StartAccessLoggingInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
214
255
  StartAccessLoggingInput.struct_class = Types::StartAccessLoggingInput
215
256
 
@@ -318,6 +359,18 @@ module Aws::MediaStore
318
359
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
319
360
  end)
320
361
 
362
+ api.add_operation(:delete_metric_policy, Seahorse::Model::Operation.new.tap do |o|
363
+ o.name = "DeleteMetricPolicy"
364
+ o.http_method = "POST"
365
+ o.http_request_uri = "/"
366
+ o.input = Shapes::ShapeRef.new(shape: DeleteMetricPolicyInput)
367
+ o.output = Shapes::ShapeRef.new(shape: DeleteMetricPolicyOutput)
368
+ o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
369
+ o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
370
+ o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
371
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
372
+ end)
373
+
321
374
  api.add_operation(:describe_container, Seahorse::Model::Operation.new.tap do |o|
322
375
  o.name = "DescribeContainer"
323
376
  o.http_method = "POST"
@@ -364,6 +417,18 @@ module Aws::MediaStore
364
417
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
365
418
  end)
366
419
 
420
+ api.add_operation(:get_metric_policy, Seahorse::Model::Operation.new.tap do |o|
421
+ o.name = "GetMetricPolicy"
422
+ o.http_method = "POST"
423
+ o.http_request_uri = "/"
424
+ o.input = Shapes::ShapeRef.new(shape: GetMetricPolicyInput)
425
+ o.output = Shapes::ShapeRef.new(shape: GetMetricPolicyOutput)
426
+ o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
427
+ o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
428
+ o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
429
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
430
+ end)
431
+
367
432
  api.add_operation(:list_containers, Seahorse::Model::Operation.new.tap do |o|
368
433
  o.name = "ListContainers"
369
434
  o.http_method = "POST"
@@ -423,6 +488,17 @@ module Aws::MediaStore
423
488
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
424
489
  end)
425
490
 
491
+ api.add_operation(:put_metric_policy, Seahorse::Model::Operation.new.tap do |o|
492
+ o.name = "PutMetricPolicy"
493
+ o.http_method = "POST"
494
+ o.http_request_uri = "/"
495
+ o.input = Shapes::ShapeRef.new(shape: PutMetricPolicyInput)
496
+ o.output = Shapes::ShapeRef.new(shape: PutMetricPolicyOutput)
497
+ o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
498
+ o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
499
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
500
+ end)
501
+
426
502
  api.add_operation(:start_access_logging, Seahorse::Model::Operation.new.tap do |o|
427
503
  o.name = "StartAccessLogging"
428
504
  o.http_method = "POST"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,13 +8,7 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::MediaStore
9
- # This class provides a resource oriented interface for MediaStore.
10
- # To create a resource object:
11
- # resource = Aws::MediaStore::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::MediaStore::Client.new(region: 'us-west-2')
15
- # resource = Aws::MediaStore::Resource.new(client: client)
11
+
16
12
  class Resource
17
13
 
18
14
  # @param options ({})
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -62,6 +64,7 @@ module Aws::MediaStore
62
64
  :name,
63
65
  :status,
64
66
  :access_logging_enabled)
67
+ SENSITIVE = []
65
68
  include Aws::Structure
66
69
  end
67
70
 
@@ -75,6 +78,7 @@ module Aws::MediaStore
75
78
  #
76
79
  class ContainerInUseException < Struct.new(
77
80
  :message)
81
+ SENSITIVE = []
78
82
  include Aws::Structure
79
83
  end
80
84
 
@@ -87,6 +91,7 @@ module Aws::MediaStore
87
91
  #
88
92
  class ContainerNotFoundException < Struct.new(
89
93
  :message)
94
+ SENSITIVE = []
90
95
  include Aws::Structure
91
96
  end
92
97
 
@@ -99,6 +104,7 @@ module Aws::MediaStore
99
104
  #
100
105
  class CorsPolicyNotFoundException < Struct.new(
101
106
  :message)
107
+ SENSITIVE = []
102
108
  include Aws::Structure
103
109
  end
104
110
 
@@ -169,6 +175,7 @@ module Aws::MediaStore
169
175
  :allowed_headers,
170
176
  :max_age_seconds,
171
177
  :expose_headers)
178
+ SENSITIVE = []
172
179
  include Aws::Structure
173
180
  end
174
181
 
@@ -212,6 +219,7 @@ module Aws::MediaStore
212
219
  class CreateContainerInput < Struct.new(
213
220
  :container_name,
214
221
  :tags)
222
+ SENSITIVE = []
215
223
  include Aws::Structure
216
224
  end
217
225
 
@@ -240,6 +248,7 @@ module Aws::MediaStore
240
248
  #
241
249
  class CreateContainerOutput < Struct.new(
242
250
  :container)
251
+ SENSITIVE = []
243
252
  include Aws::Structure
244
253
  end
245
254
 
@@ -258,6 +267,7 @@ module Aws::MediaStore
258
267
  #
259
268
  class DeleteContainerInput < Struct.new(
260
269
  :container_name)
270
+ SENSITIVE = []
261
271
  include Aws::Structure
262
272
  end
263
273
 
@@ -280,6 +290,7 @@ module Aws::MediaStore
280
290
  #
281
291
  class DeleteContainerPolicyInput < Struct.new(
282
292
  :container_name)
293
+ SENSITIVE = []
283
294
  include Aws::Structure
284
295
  end
285
296
 
@@ -302,6 +313,7 @@ module Aws::MediaStore
302
313
  #
303
314
  class DeleteCorsPolicyInput < Struct.new(
304
315
  :container_name)
316
+ SENSITIVE = []
305
317
  include Aws::Structure
306
318
  end
307
319
 
@@ -324,6 +336,7 @@ module Aws::MediaStore
324
336
  #
325
337
  class DeleteLifecyclePolicyInput < Struct.new(
326
338
  :container_name)
339
+ SENSITIVE = []
327
340
  include Aws::Structure
328
341
  end
329
342
 
@@ -331,6 +344,30 @@ module Aws::MediaStore
331
344
  #
332
345
  class DeleteLifecyclePolicyOutput < Aws::EmptyStructure; end
333
346
 
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
+ # @!attribute [rw] container_name
355
+ # The name of the container that is associated with the metric policy
356
+ # that you want to delete.
357
+ # @return [String]
358
+ #
359
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteMetricPolicyInput AWS API Documentation
360
+ #
361
+ class DeleteMetricPolicyInput < Struct.new(
362
+ :container_name)
363
+ SENSITIVE = []
364
+ include Aws::Structure
365
+ end
366
+
367
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteMetricPolicyOutput AWS API Documentation
368
+ #
369
+ class DeleteMetricPolicyOutput < Aws::EmptyStructure; end
370
+
334
371
  # @note When making an API call, you may pass DescribeContainerInput
335
372
  # data as a hash:
336
373
  #
@@ -346,6 +383,7 @@ module Aws::MediaStore
346
383
  #
347
384
  class DescribeContainerInput < Struct.new(
348
385
  :container_name)
386
+ SENSITIVE = []
349
387
  include Aws::Structure
350
388
  end
351
389
 
@@ -357,6 +395,7 @@ module Aws::MediaStore
357
395
  #
358
396
  class DescribeContainerOutput < Struct.new(
359
397
  :container)
398
+ SENSITIVE = []
360
399
  include Aws::Structure
361
400
  end
362
401
 
@@ -375,6 +414,7 @@ module Aws::MediaStore
375
414
  #
376
415
  class GetContainerPolicyInput < Struct.new(
377
416
  :container_name)
417
+ SENSITIVE = []
378
418
  include Aws::Structure
379
419
  end
380
420
 
@@ -386,6 +426,7 @@ module Aws::MediaStore
386
426
  #
387
427
  class GetContainerPolicyOutput < Struct.new(
388
428
  :policy)
429
+ SENSITIVE = []
389
430
  include Aws::Structure
390
431
  end
391
432
 
@@ -404,6 +445,7 @@ module Aws::MediaStore
404
445
  #
405
446
  class GetCorsPolicyInput < Struct.new(
406
447
  :container_name)
448
+ SENSITIVE = []
407
449
  include Aws::Structure
408
450
  end
409
451
 
@@ -415,6 +457,7 @@ module Aws::MediaStore
415
457
  #
416
458
  class GetCorsPolicyOutput < Struct.new(
417
459
  :cors_policy)
460
+ SENSITIVE = []
418
461
  include Aws::Structure
419
462
  end
420
463
 
@@ -434,6 +477,7 @@ module Aws::MediaStore
434
477
  #
435
478
  class GetLifecyclePolicyInput < Struct.new(
436
479
  :container_name)
480
+ SENSITIVE = []
437
481
  include Aws::Structure
438
482
  end
439
483
 
@@ -445,6 +489,38 @@ module Aws::MediaStore
445
489
  #
446
490
  class GetLifecyclePolicyOutput < Struct.new(
447
491
  :lifecycle_policy)
492
+ SENSITIVE = []
493
+ include Aws::Structure
494
+ end
495
+
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
+ # @!attribute [rw] container_name
504
+ # The name of the container that is associated with the metric policy.
505
+ # @return [String]
506
+ #
507
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetMetricPolicyInput AWS API Documentation
508
+ #
509
+ class GetMetricPolicyInput < Struct.new(
510
+ :container_name)
511
+ SENSITIVE = []
512
+ include Aws::Structure
513
+ end
514
+
515
+ # @!attribute [rw] metric_policy
516
+ # The metric policy that is associated with the specific container.
517
+ # @return [Types::MetricPolicy]
518
+ #
519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetMetricPolicyOutput AWS API Documentation
520
+ #
521
+ class GetMetricPolicyOutput < Struct.new(
522
+ :metric_policy)
523
+ SENSITIVE = []
448
524
  include Aws::Structure
449
525
  end
450
526
 
@@ -457,6 +533,7 @@ module Aws::MediaStore
457
533
  #
458
534
  class InternalServerError < Struct.new(
459
535
  :message)
536
+ SENSITIVE = []
460
537
  include Aws::Structure
461
538
  end
462
539
 
@@ -469,6 +546,7 @@ module Aws::MediaStore
469
546
  #
470
547
  class LimitExceededException < Struct.new(
471
548
  :message)
549
+ SENSITIVE = []
472
550
  include Aws::Structure
473
551
  end
474
552
 
@@ -497,6 +575,7 @@ module Aws::MediaStore
497
575
  class ListContainersInput < Struct.new(
498
576
  :next_token,
499
577
  :max_results)
578
+ SENSITIVE = []
500
579
  include Aws::Structure
501
580
  end
502
581
 
@@ -516,6 +595,7 @@ module Aws::MediaStore
516
595
  class ListContainersOutput < Struct.new(
517
596
  :containers,
518
597
  :next_token)
598
+ SENSITIVE = []
519
599
  include Aws::Structure
520
600
  end
521
601
 
@@ -534,6 +614,7 @@ module Aws::MediaStore
534
614
  #
535
615
  class ListTagsForResourceInput < Struct.new(
536
616
  :resource)
617
+ SENSITIVE = []
537
618
  include Aws::Structure
538
619
  end
539
620
 
@@ -545,6 +626,95 @@ module Aws::MediaStore
545
626
  #
546
627
  class ListTagsForResourceOutput < Struct.new(
547
628
  :tags)
629
+ SENSITIVE = []
630
+ include Aws::Structure
631
+ end
632
+
633
+ # The metric policy that is associated with the container. A metric
634
+ # policy allows AWS Elemental MediaStore to send metrics to Amazon
635
+ # CloudWatch. In the policy, you must indicate whether you want
636
+ # MediaStore to send container-level metrics. You can also include rules
637
+ # to define groups of objects that you want MediaStore to send
638
+ # object-level metrics for.
639
+ #
640
+ # To view examples of how to construct a metric policy for your use
641
+ # case, see [Example Metric Policies][1].
642
+ #
643
+ #
644
+ #
645
+ # [1]: https://docs.aws.amazon.com/mediastore/latest/ug/policies-metric-examples.html
646
+ #
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
+ # @!attribute [rw] container_level_metrics
661
+ # A setting to enable or disable metrics at the container level.
662
+ # @return [String]
663
+ #
664
+ # @!attribute [rw] metric_policy_rules
665
+ # A parameter that holds an array of rules that enable metrics at the
666
+ # object level. This parameter is optional, but if you choose to
667
+ # include it, you must also include at least one rule. By default, you
668
+ # can include up to five rules. You can also [request a quota
669
+ # increase][1] to allow up to 300 rules per policy.
670
+ #
671
+ #
672
+ #
673
+ # [1]: https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas
674
+ # @return [Array<Types::MetricPolicyRule>]
675
+ #
676
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/MetricPolicy AWS API Documentation
677
+ #
678
+ class MetricPolicy < Struct.new(
679
+ :container_level_metrics,
680
+ :metric_policy_rules)
681
+ SENSITIVE = []
682
+ include Aws::Structure
683
+ end
684
+
685
+ # A setting that enables metrics at the object level. Each rule contains
686
+ # an object group and an object group name. If the policy includes the
687
+ # MetricPolicyRules parameter, you must include at least one rule. Each
688
+ # metric policy can include up to five rules by default. You can also
689
+ # [request a quota increase][1] to allow up to 300 rules per policy.
690
+ #
691
+ #
692
+ #
693
+ # [1]: https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas
694
+ #
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
+ # @!attribute [rw] object_group
704
+ # A path or file name that defines which objects to include in the
705
+ # group. Wildcards (*) are acceptable.
706
+ # @return [String]
707
+ #
708
+ # @!attribute [rw] object_group_name
709
+ # A name that allows you to refer to the object group.
710
+ # @return [String]
711
+ #
712
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/MetricPolicyRule AWS API Documentation
713
+ #
714
+ class MetricPolicyRule < Struct.new(
715
+ :object_group,
716
+ :object_group_name)
717
+ SENSITIVE = []
548
718
  include Aws::Structure
549
719
  end
550
720
 
@@ -557,6 +727,7 @@ module Aws::MediaStore
557
727
  #
558
728
  class PolicyNotFoundException < Struct.new(
559
729
  :message)
730
+ SENSITIVE = []
560
731
  include Aws::Structure
561
732
  end
562
733
 
@@ -586,6 +757,7 @@ module Aws::MediaStore
586
757
  class PutContainerPolicyInput < Struct.new(
587
758
  :container_name,
588
759
  :policy)
760
+ SENSITIVE = []
589
761
  include Aws::Structure
590
762
  end
591
763
 
@@ -623,6 +795,7 @@ module Aws::MediaStore
623
795
  class PutCorsPolicyInput < Struct.new(
624
796
  :container_name,
625
797
  :cors_policy)
798
+ SENSITIVE = []
626
799
  include Aws::Structure
627
800
  end
628
801
 
@@ -652,6 +825,7 @@ module Aws::MediaStore
652
825
  class PutLifecyclePolicyInput < Struct.new(
653
826
  :container_name,
654
827
  :lifecycle_policy)
828
+ SENSITIVE = []
655
829
  include Aws::Structure
656
830
  end
657
831
 
@@ -659,6 +833,59 @@ module Aws::MediaStore
659
833
  #
660
834
  class PutLifecyclePolicyOutput < Aws::EmptyStructure; end
661
835
 
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
+ # @!attribute [rw] container_name
853
+ # The name of the container that you want to add the metric policy to.
854
+ # @return [String]
855
+ #
856
+ # @!attribute [rw] metric_policy
857
+ # The metric policy that you want to associate with the container. In
858
+ # the policy, you must indicate whether you want MediaStore to send
859
+ # container-level metrics. You can also include up to five rules to
860
+ # define groups of objects that you want MediaStore to send
861
+ # object-level metrics for. If you include rules in the policy,
862
+ # construct each rule with both of the following:
863
+ #
864
+ # * An object group that defines which objects to include in the
865
+ # group. The definition can be a path or a file name, but it can't
866
+ # have more than 900 characters. Valid characters are: a-z, A-Z,
867
+ # 0-9, \_ (underscore), = (equal), : (colon), . (period), -
868
+ # (hyphen), ~ (tilde), / (forward slash), and * (asterisk).
869
+ # Wildcards (*) are acceptable.
870
+ #
871
+ # * An object group name that allows you to refer to the object group.
872
+ # The name can't have more than 30 characters. Valid characters
873
+ # are: a-z, A-Z, 0-9, and \_ (underscore).
874
+ # @return [Types::MetricPolicy]
875
+ #
876
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutMetricPolicyInput AWS API Documentation
877
+ #
878
+ class PutMetricPolicyInput < Struct.new(
879
+ :container_name,
880
+ :metric_policy)
881
+ SENSITIVE = []
882
+ include Aws::Structure
883
+ end
884
+
885
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutMetricPolicyOutput AWS API Documentation
886
+ #
887
+ class PutMetricPolicyOutput < Aws::EmptyStructure; end
888
+
662
889
  # @note When making an API call, you may pass StartAccessLoggingInput
663
890
  # data as a hash:
664
891
  #
@@ -674,6 +901,7 @@ module Aws::MediaStore
674
901
  #
675
902
  class StartAccessLoggingInput < Struct.new(
676
903
  :container_name)
904
+ SENSITIVE = []
677
905
  include Aws::Structure
678
906
  end
679
907
 
@@ -696,6 +924,7 @@ module Aws::MediaStore
696
924
  #
697
925
  class StopAccessLoggingInput < Struct.new(
698
926
  :container_name)
927
+ SENSITIVE = []
699
928
  include Aws::Structure
700
929
  end
701
930
 
@@ -740,6 +969,7 @@ module Aws::MediaStore
740
969
  class Tag < Struct.new(
741
970
  :key,
742
971
  :value)
972
+ SENSITIVE = []
743
973
  include Aws::Structure
744
974
  end
745
975
 
@@ -776,6 +1006,7 @@ module Aws::MediaStore
776
1006
  class TagResourceInput < Struct.new(
777
1007
  :resource,
778
1008
  :tags)
1009
+ SENSITIVE = []
779
1010
  include Aws::Structure
780
1011
  end
781
1012
 
@@ -808,6 +1039,7 @@ module Aws::MediaStore
808
1039
  class UntagResourceInput < Struct.new(
809
1040
  :resource,
810
1041
  :tag_keys)
1042
+ SENSITIVE = []
811
1043
  include Aws::Structure
812
1044
  end
813
1045
 
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.22.0
4
+ version: 1.27.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: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-06-23 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.71.0
22
+ version: 3.99.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.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - MediaStore