aws-sdk-mediastore 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-mediastore.rb +1 -1
- data/lib/aws-sdk-mediastore/client.rb +71 -3
- data/lib/aws-sdk-mediastore/client_api.rb +38 -0
- data/lib/aws-sdk-mediastore/types.rb +55 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6774b3f10176d59250e2b288029f4b12254be593
|
4
|
+
data.tar.gz: 9a3a70ec1d4e0b1b69b7e84e2a5bbd8ed0b8c296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ebaae66e56d6a8e6723cbdec45500dbbdc19bdc306c8688598492a0678eedbf40d65b11c6f7268b98ed59c1383437dab9d7706d8801db4dec2af4c227ab52c4
|
7
|
+
data.tar.gz: 70f51469d2b827ba80b17185383de3e7dd72241861fe7351ff41ca3c77875a87877ed400bde84de0fc043580eff4bad785bd38362a840f744a8aabf8a8f0ab44
|
data/lib/aws-sdk-mediastore.rb
CHANGED
@@ -242,6 +242,7 @@ module Aws::MediaStore
|
|
242
242
|
# resp.container.arn #=> String
|
243
243
|
# resp.container.name #=> String
|
244
244
|
# resp.container.status #=> String, one of "ACTIVE", "CREATING", "DELETING"
|
245
|
+
# resp.container.access_logging_enabled #=> Boolean
|
245
246
|
#
|
246
247
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainer AWS API Documentation
|
247
248
|
#
|
@@ -326,7 +327,8 @@ module Aws::MediaStore
|
|
326
327
|
req.send_request(options)
|
327
328
|
end
|
328
329
|
|
329
|
-
# Removes an object lifecycle policy from a container.
|
330
|
+
# Removes an object lifecycle policy from a container. It takes up to 20
|
331
|
+
# minutes for the change to take effect.
|
330
332
|
#
|
331
333
|
# @option params [required, String] :container_name
|
332
334
|
# The name of the container that holds the object lifecycle policy.
|
@@ -376,6 +378,7 @@ module Aws::MediaStore
|
|
376
378
|
# resp.container.arn #=> String
|
377
379
|
# resp.container.name #=> String
|
378
380
|
# resp.container.status #=> String, one of "ACTIVE", "CREATING", "DELETING"
|
381
|
+
# resp.container.access_logging_enabled #=> Boolean
|
379
382
|
#
|
380
383
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainer AWS API Documentation
|
381
384
|
#
|
@@ -534,6 +537,7 @@ module Aws::MediaStore
|
|
534
537
|
# resp.containers[0].arn #=> String
|
535
538
|
# resp.containers[0].name #=> String
|
536
539
|
# resp.containers[0].status #=> String, one of "ACTIVE", "CREATING", "DELETING"
|
540
|
+
# resp.containers[0].access_logging_enabled #=> Boolean
|
537
541
|
# resp.next_token #=> String
|
538
542
|
#
|
539
543
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainers AWS API Documentation
|
@@ -600,6 +604,13 @@ module Aws::MediaStore
|
|
600
604
|
# rules to a CORS policy. If more than one rule applies, the service
|
601
605
|
# uses the first applicable rule listed.
|
602
606
|
#
|
607
|
+
# To learn more about CORS, see [Cross-Origin Resource Sharing (CORS) in
|
608
|
+
# AWS Elemental MediaStore][1].
|
609
|
+
#
|
610
|
+
#
|
611
|
+
#
|
612
|
+
# [1]: https://docs.aws.amazon.com/mediastore/latest/ug/cors-policy.html
|
613
|
+
#
|
603
614
|
# @option params [required, String] :container_name
|
604
615
|
# The name of the container that you want to assign the CORS policy to.
|
605
616
|
#
|
@@ -634,7 +645,15 @@ module Aws::MediaStore
|
|
634
645
|
|
635
646
|
# Writes an object lifecycle policy to a container. If the container
|
636
647
|
# already has an object lifecycle policy, the service replaces the
|
637
|
-
# existing policy with the new policy.
|
648
|
+
# existing policy with the new policy. It takes up to 20 minutes for the
|
649
|
+
# change to take effect.
|
650
|
+
#
|
651
|
+
# For information about how to construct an object lifecycle policy, see
|
652
|
+
# [Components of an Object Lifecycle Policy][1].
|
653
|
+
#
|
654
|
+
#
|
655
|
+
#
|
656
|
+
# [1]: https://docs.aws.amazon.com/mediastore/latest/ug/policies-object-lifecycle-components.html
|
638
657
|
#
|
639
658
|
# @option params [required, String] :container_name
|
640
659
|
# The name of the container that you want to assign the object lifecycle
|
@@ -661,6 +680,55 @@ module Aws::MediaStore
|
|
661
680
|
req.send_request(options)
|
662
681
|
end
|
663
682
|
|
683
|
+
# Starts access logging on the specified container. When you enable
|
684
|
+
# access logging on a container, MediaStore delivers access logs for
|
685
|
+
# objects stored in that container to Amazon CloudWatch Logs.
|
686
|
+
#
|
687
|
+
# @option params [required, String] :container_name
|
688
|
+
# The name of the container that you want to start access logging on.
|
689
|
+
#
|
690
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
691
|
+
#
|
692
|
+
# @example Request syntax with placeholder values
|
693
|
+
#
|
694
|
+
# resp = client.start_access_logging({
|
695
|
+
# container_name: "ContainerName", # required
|
696
|
+
# })
|
697
|
+
#
|
698
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLogging AWS API Documentation
|
699
|
+
#
|
700
|
+
# @overload start_access_logging(params = {})
|
701
|
+
# @param [Hash] params ({})
|
702
|
+
def start_access_logging(params = {}, options = {})
|
703
|
+
req = build_request(:start_access_logging, params)
|
704
|
+
req.send_request(options)
|
705
|
+
end
|
706
|
+
|
707
|
+
# Stops access logging on the specified container. When you stop access
|
708
|
+
# logging on a container, MediaStore stops sending access logs to Amazon
|
709
|
+
# CloudWatch Logs. These access logs are not saved and are not
|
710
|
+
# retrievable.
|
711
|
+
#
|
712
|
+
# @option params [required, String] :container_name
|
713
|
+
# The name of the container that you want to stop access logging on.
|
714
|
+
#
|
715
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
716
|
+
#
|
717
|
+
# @example Request syntax with placeholder values
|
718
|
+
#
|
719
|
+
# resp = client.stop_access_logging({
|
720
|
+
# container_name: "ContainerName", # required
|
721
|
+
# })
|
722
|
+
#
|
723
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StopAccessLogging AWS API Documentation
|
724
|
+
#
|
725
|
+
# @overload stop_access_logging(params = {})
|
726
|
+
# @param [Hash] params ({})
|
727
|
+
def stop_access_logging(params = {}, options = {})
|
728
|
+
req = build_request(:stop_access_logging, params)
|
729
|
+
req.send_request(options)
|
730
|
+
end
|
731
|
+
|
664
732
|
# @!endgroup
|
665
733
|
|
666
734
|
# @param params ({})
|
@@ -674,7 +742,7 @@ module Aws::MediaStore
|
|
674
742
|
params: params,
|
675
743
|
config: config)
|
676
744
|
context[:gem_name] = 'aws-sdk-mediastore'
|
677
|
-
context[:gem_version] = '1.
|
745
|
+
context[:gem_version] = '1.9.0'
|
678
746
|
Seahorse::Client::Request.new(handlers, context)
|
679
747
|
end
|
680
748
|
|
@@ -16,6 +16,7 @@ module Aws::MediaStore
|
|
16
16
|
AllowedOrigins = Shapes::ListShape.new(name: 'AllowedOrigins')
|
17
17
|
Container = Shapes::StructureShape.new(name: 'Container')
|
18
18
|
ContainerARN = Shapes::StringShape.new(name: 'ContainerARN')
|
19
|
+
ContainerAccessLoggingEnabled = Shapes::BooleanShape.new(name: 'ContainerAccessLoggingEnabled')
|
19
20
|
ContainerInUseException = Shapes::StructureShape.new(name: 'ContainerInUseException')
|
20
21
|
ContainerList = Shapes::ListShape.new(name: 'ContainerList')
|
21
22
|
ContainerListLimit = Shapes::IntegerShape.new(name: 'ContainerListLimit')
|
@@ -64,6 +65,10 @@ module Aws::MediaStore
|
|
64
65
|
PutCorsPolicyOutput = Shapes::StructureShape.new(name: 'PutCorsPolicyOutput')
|
65
66
|
PutLifecyclePolicyInput = Shapes::StructureShape.new(name: 'PutLifecyclePolicyInput')
|
66
67
|
PutLifecyclePolicyOutput = Shapes::StructureShape.new(name: 'PutLifecyclePolicyOutput')
|
68
|
+
StartAccessLoggingInput = Shapes::StructureShape.new(name: 'StartAccessLoggingInput')
|
69
|
+
StartAccessLoggingOutput = Shapes::StructureShape.new(name: 'StartAccessLoggingOutput')
|
70
|
+
StopAccessLoggingInput = Shapes::StructureShape.new(name: 'StopAccessLoggingInput')
|
71
|
+
StopAccessLoggingOutput = Shapes::StructureShape.new(name: 'StopAccessLoggingOutput')
|
67
72
|
TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
|
68
73
|
|
69
74
|
AllowedHeaders.member = Shapes::ShapeRef.new(shape: Header)
|
@@ -77,6 +82,7 @@ module Aws::MediaStore
|
|
77
82
|
Container.add_member(:arn, Shapes::ShapeRef.new(shape: ContainerARN, location_name: "ARN"))
|
78
83
|
Container.add_member(:name, Shapes::ShapeRef.new(shape: ContainerName, location_name: "Name"))
|
79
84
|
Container.add_member(:status, Shapes::ShapeRef.new(shape: ContainerStatus, location_name: "Status"))
|
85
|
+
Container.add_member(:access_logging_enabled, Shapes::ShapeRef.new(shape: ContainerAccessLoggingEnabled, location_name: "AccessLoggingEnabled"))
|
80
86
|
Container.struct_class = Types::Container
|
81
87
|
|
82
88
|
ContainerList.member = Shapes::ShapeRef.new(shape: Container)
|
@@ -168,6 +174,16 @@ module Aws::MediaStore
|
|
168
174
|
|
169
175
|
PutLifecyclePolicyOutput.struct_class = Types::PutLifecyclePolicyOutput
|
170
176
|
|
177
|
+
StartAccessLoggingInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
178
|
+
StartAccessLoggingInput.struct_class = Types::StartAccessLoggingInput
|
179
|
+
|
180
|
+
StartAccessLoggingOutput.struct_class = Types::StartAccessLoggingOutput
|
181
|
+
|
182
|
+
StopAccessLoggingInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
183
|
+
StopAccessLoggingInput.struct_class = Types::StopAccessLoggingInput
|
184
|
+
|
185
|
+
StopAccessLoggingOutput.struct_class = Types::StopAccessLoggingOutput
|
186
|
+
|
171
187
|
|
172
188
|
# @api private
|
173
189
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -333,6 +349,28 @@ module Aws::MediaStore
|
|
333
349
|
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
334
350
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
335
351
|
end)
|
352
|
+
|
353
|
+
api.add_operation(:start_access_logging, Seahorse::Model::Operation.new.tap do |o|
|
354
|
+
o.name = "StartAccessLogging"
|
355
|
+
o.http_method = "POST"
|
356
|
+
o.http_request_uri = "/"
|
357
|
+
o.input = Shapes::ShapeRef.new(shape: StartAccessLoggingInput)
|
358
|
+
o.output = Shapes::ShapeRef.new(shape: StartAccessLoggingOutput)
|
359
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
360
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
361
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
362
|
+
end)
|
363
|
+
|
364
|
+
api.add_operation(:stop_access_logging, Seahorse::Model::Operation.new.tap do |o|
|
365
|
+
o.name = "StopAccessLogging"
|
366
|
+
o.http_method = "POST"
|
367
|
+
o.http_request_uri = "/"
|
368
|
+
o.input = Shapes::ShapeRef.new(shape: StopAccessLoggingInput)
|
369
|
+
o.output = Shapes::ShapeRef.new(shape: StopAccessLoggingOutput)
|
370
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
371
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
372
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
373
|
+
end)
|
336
374
|
end
|
337
375
|
|
338
376
|
end
|
@@ -44,6 +44,15 @@ module Aws::MediaStore
|
|
44
44
|
# the endpoint is available, the status changes to `ACTIVE`.
|
45
45
|
# @return [String]
|
46
46
|
#
|
47
|
+
# @!attribute [rw] access_logging_enabled
|
48
|
+
# The state of access logging on the container. This value is `false`
|
49
|
+
# by default, indicating that AWS Elemental MediaStore does not send
|
50
|
+
# access logs to Amazon CloudWatch Logs. When you enable access
|
51
|
+
# logging on the container, MediaStore changes this value to `true`,
|
52
|
+
# indicating that the service delivers access logs for objects stored
|
53
|
+
# in that container to CloudWatch Logs.
|
54
|
+
# @return [Boolean]
|
55
|
+
#
|
47
56
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/Container AWS API Documentation
|
48
57
|
#
|
49
58
|
class Container < Struct.new(
|
@@ -51,7 +60,8 @@ module Aws::MediaStore
|
|
51
60
|
:creation_time,
|
52
61
|
:arn,
|
53
62
|
:name,
|
54
|
-
:status
|
63
|
+
:status,
|
64
|
+
:access_logging_enabled)
|
55
65
|
include Aws::Structure
|
56
66
|
end
|
57
67
|
|
@@ -526,5 +536,49 @@ module Aws::MediaStore
|
|
526
536
|
#
|
527
537
|
class PutLifecyclePolicyOutput < Aws::EmptyStructure; end
|
528
538
|
|
539
|
+
# @note When making an API call, you may pass StartAccessLoggingInput
|
540
|
+
# data as a hash:
|
541
|
+
#
|
542
|
+
# {
|
543
|
+
# container_name: "ContainerName", # required
|
544
|
+
# }
|
545
|
+
#
|
546
|
+
# @!attribute [rw] container_name
|
547
|
+
# The name of the container that you want to start access logging on.
|
548
|
+
# @return [String]
|
549
|
+
#
|
550
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLoggingInput AWS API Documentation
|
551
|
+
#
|
552
|
+
class StartAccessLoggingInput < Struct.new(
|
553
|
+
:container_name)
|
554
|
+
include Aws::Structure
|
555
|
+
end
|
556
|
+
|
557
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLoggingOutput AWS API Documentation
|
558
|
+
#
|
559
|
+
class StartAccessLoggingOutput < Aws::EmptyStructure; end
|
560
|
+
|
561
|
+
# @note When making an API call, you may pass StopAccessLoggingInput
|
562
|
+
# data as a hash:
|
563
|
+
#
|
564
|
+
# {
|
565
|
+
# container_name: "ContainerName", # required
|
566
|
+
# }
|
567
|
+
#
|
568
|
+
# @!attribute [rw] container_name
|
569
|
+
# The name of the container that you want to stop access logging on.
|
570
|
+
# @return [String]
|
571
|
+
#
|
572
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StopAccessLoggingInput AWS API Documentation
|
573
|
+
#
|
574
|
+
class StopAccessLoggingInput < Struct.new(
|
575
|
+
:container_name)
|
576
|
+
include Aws::Structure
|
577
|
+
end
|
578
|
+
|
579
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StopAccessLoggingOutput AWS API Documentation
|
580
|
+
#
|
581
|
+
class StopAccessLoggingOutput < Aws::EmptyStructure; end
|
582
|
+
|
529
583
|
end
|
530
584
|
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.
|
4
|
+
version: 1.9.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:
|
11
|
+
date: 2019-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|