aws-sdk-mediastore 1.7.0 → 1.8.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 +83 -3
- data/lib/aws-sdk-mediastore/client_api.rb +61 -2
- data/lib/aws-sdk-mediastore/types.rb +89 -8
- 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: 52cab2e0710c7c23fbb606532914c380895c3d90
|
4
|
+
data.tar.gz: b5934442bcdaacc11ec4c3608b676c0187838fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 789ced7b3e3c109dda5f79c90c2a32984ccfcfb7321278f8a7ef71b21e92a810d4dcc263eeed03972006533e0dc258da69f49f7613f6ba38fbd8f2b8389257d5
|
7
|
+
data.tar.gz: 98482804900ed3d02057b37189043db56b54913bfa8ad3bfc2f48a8ad4894f6dd523ea7dd15d920f994dd4607bf17adf812ceda2f395b97fc7ba37f3389b2ca9
|
data/lib/aws-sdk-mediastore.rb
CHANGED
@@ -326,6 +326,28 @@ module Aws::MediaStore
|
|
326
326
|
req.send_request(options)
|
327
327
|
end
|
328
328
|
|
329
|
+
# Removes an object lifecycle policy from a container.
|
330
|
+
#
|
331
|
+
# @option params [required, String] :container_name
|
332
|
+
# The name of the container that holds the object lifecycle policy.
|
333
|
+
#
|
334
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
335
|
+
#
|
336
|
+
# @example Request syntax with placeholder values
|
337
|
+
#
|
338
|
+
# resp = client.delete_lifecycle_policy({
|
339
|
+
# container_name: "ContainerName", # required
|
340
|
+
# })
|
341
|
+
#
|
342
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicy AWS API Documentation
|
343
|
+
#
|
344
|
+
# @overload delete_lifecycle_policy(params = {})
|
345
|
+
# @param [Hash] params ({})
|
346
|
+
def delete_lifecycle_policy(params = {}, options = {})
|
347
|
+
req = build_request(:delete_lifecycle_policy, params)
|
348
|
+
req.send_request(options)
|
349
|
+
end
|
350
|
+
|
329
351
|
# Retrieves the properties of the requested container. This request is
|
330
352
|
# commonly used to retrieve the endpoint of a container. An endpoint is
|
331
353
|
# a value assigned by the service when a new container is created. A
|
@@ -440,6 +462,35 @@ module Aws::MediaStore
|
|
440
462
|
req.send_request(options)
|
441
463
|
end
|
442
464
|
|
465
|
+
# Retrieves the object lifecycle policy that is assigned to a container.
|
466
|
+
#
|
467
|
+
# @option params [required, String] :container_name
|
468
|
+
# The name of the container that the object lifecycle policy is assigned
|
469
|
+
# to.
|
470
|
+
#
|
471
|
+
# @return [Types::GetLifecyclePolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
472
|
+
#
|
473
|
+
# * {Types::GetLifecyclePolicyOutput#lifecycle_policy #lifecycle_policy} => String
|
474
|
+
#
|
475
|
+
# @example Request syntax with placeholder values
|
476
|
+
#
|
477
|
+
# resp = client.get_lifecycle_policy({
|
478
|
+
# container_name: "ContainerName", # required
|
479
|
+
# })
|
480
|
+
#
|
481
|
+
# @example Response structure
|
482
|
+
#
|
483
|
+
# resp.lifecycle_policy #=> String
|
484
|
+
#
|
485
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicy AWS API Documentation
|
486
|
+
#
|
487
|
+
# @overload get_lifecycle_policy(params = {})
|
488
|
+
# @param [Hash] params ({})
|
489
|
+
def get_lifecycle_policy(params = {}, options = {})
|
490
|
+
req = build_request(:get_lifecycle_policy, params)
|
491
|
+
req.send_request(options)
|
492
|
+
end
|
493
|
+
|
443
494
|
# Lists the properties of all containers in AWS Elemental MediaStore.
|
444
495
|
#
|
445
496
|
# You can query to receive all the containers in one response. Or you
|
@@ -563,9 +614,9 @@ module Aws::MediaStore
|
|
563
614
|
# container_name: "ContainerName", # required
|
564
615
|
# cors_policy: [ # required
|
565
616
|
# {
|
566
|
-
# allowed_origins: ["Origin"],
|
617
|
+
# allowed_origins: ["Origin"], # required
|
567
618
|
# allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
|
568
|
-
# allowed_headers: ["Header"],
|
619
|
+
# allowed_headers: ["Header"], # required
|
569
620
|
# max_age_seconds: 1,
|
570
621
|
# expose_headers: ["Header"],
|
571
622
|
# },
|
@@ -581,6 +632,35 @@ module Aws::MediaStore
|
|
581
632
|
req.send_request(options)
|
582
633
|
end
|
583
634
|
|
635
|
+
# Writes an object lifecycle policy to a container. If the container
|
636
|
+
# already has an object lifecycle policy, the service replaces the
|
637
|
+
# existing policy with the new policy.
|
638
|
+
#
|
639
|
+
# @option params [required, String] :container_name
|
640
|
+
# The name of the container that you want to assign the object lifecycle
|
641
|
+
# policy to.
|
642
|
+
#
|
643
|
+
# @option params [required, String] :lifecycle_policy
|
644
|
+
# The object lifecycle policy to apply to the container.
|
645
|
+
#
|
646
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
647
|
+
#
|
648
|
+
# @example Request syntax with placeholder values
|
649
|
+
#
|
650
|
+
# resp = client.put_lifecycle_policy({
|
651
|
+
# container_name: "ContainerName", # required
|
652
|
+
# lifecycle_policy: "LifecyclePolicy", # required
|
653
|
+
# })
|
654
|
+
#
|
655
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutLifecyclePolicy AWS API Documentation
|
656
|
+
#
|
657
|
+
# @overload put_lifecycle_policy(params = {})
|
658
|
+
# @param [Hash] params ({})
|
659
|
+
def put_lifecycle_policy(params = {}, options = {})
|
660
|
+
req = build_request(:put_lifecycle_policy, params)
|
661
|
+
req.send_request(options)
|
662
|
+
end
|
663
|
+
|
584
664
|
# @!endgroup
|
585
665
|
|
586
666
|
# @param params ({})
|
@@ -594,7 +674,7 @@ module Aws::MediaStore
|
|
594
674
|
params: params,
|
595
675
|
config: config)
|
596
676
|
context[:gem_name] = 'aws-sdk-mediastore'
|
597
|
-
context[:gem_version] = '1.
|
677
|
+
context[:gem_version] = '1.8.0'
|
598
678
|
Seahorse::Client::Request.new(handlers, context)
|
599
679
|
end
|
600
680
|
|
@@ -34,6 +34,8 @@ module Aws::MediaStore
|
|
34
34
|
DeleteContainerPolicyOutput = Shapes::StructureShape.new(name: 'DeleteContainerPolicyOutput')
|
35
35
|
DeleteCorsPolicyInput = Shapes::StructureShape.new(name: 'DeleteCorsPolicyInput')
|
36
36
|
DeleteCorsPolicyOutput = Shapes::StructureShape.new(name: 'DeleteCorsPolicyOutput')
|
37
|
+
DeleteLifecyclePolicyInput = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyInput')
|
38
|
+
DeleteLifecyclePolicyOutput = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyOutput')
|
37
39
|
DescribeContainerInput = Shapes::StructureShape.new(name: 'DescribeContainerInput')
|
38
40
|
DescribeContainerOutput = Shapes::StructureShape.new(name: 'DescribeContainerOutput')
|
39
41
|
Endpoint = Shapes::StringShape.new(name: 'Endpoint')
|
@@ -43,8 +45,11 @@ module Aws::MediaStore
|
|
43
45
|
GetContainerPolicyOutput = Shapes::StructureShape.new(name: 'GetContainerPolicyOutput')
|
44
46
|
GetCorsPolicyInput = Shapes::StructureShape.new(name: 'GetCorsPolicyInput')
|
45
47
|
GetCorsPolicyOutput = Shapes::StructureShape.new(name: 'GetCorsPolicyOutput')
|
48
|
+
GetLifecyclePolicyInput = Shapes::StructureShape.new(name: 'GetLifecyclePolicyInput')
|
49
|
+
GetLifecyclePolicyOutput = Shapes::StructureShape.new(name: 'GetLifecyclePolicyOutput')
|
46
50
|
Header = Shapes::StringShape.new(name: 'Header')
|
47
51
|
InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
|
52
|
+
LifecyclePolicy = Shapes::StringShape.new(name: 'LifecyclePolicy')
|
48
53
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
49
54
|
ListContainersInput = Shapes::StructureShape.new(name: 'ListContainersInput')
|
50
55
|
ListContainersOutput = Shapes::StructureShape.new(name: 'ListContainersOutput')
|
@@ -57,6 +62,8 @@ module Aws::MediaStore
|
|
57
62
|
PutContainerPolicyOutput = Shapes::StructureShape.new(name: 'PutContainerPolicyOutput')
|
58
63
|
PutCorsPolicyInput = Shapes::StructureShape.new(name: 'PutCorsPolicyInput')
|
59
64
|
PutCorsPolicyOutput = Shapes::StructureShape.new(name: 'PutCorsPolicyOutput')
|
65
|
+
PutLifecyclePolicyInput = Shapes::StructureShape.new(name: 'PutLifecyclePolicyInput')
|
66
|
+
PutLifecyclePolicyOutput = Shapes::StructureShape.new(name: 'PutLifecyclePolicyOutput')
|
60
67
|
TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
|
61
68
|
|
62
69
|
AllowedHeaders.member = Shapes::ShapeRef.new(shape: Header)
|
@@ -76,9 +83,9 @@ module Aws::MediaStore
|
|
76
83
|
|
77
84
|
CorsPolicy.member = Shapes::ShapeRef.new(shape: CorsRule)
|
78
85
|
|
79
|
-
CorsRule.add_member(:allowed_origins, Shapes::ShapeRef.new(shape: AllowedOrigins, location_name: "AllowedOrigins"))
|
86
|
+
CorsRule.add_member(:allowed_origins, Shapes::ShapeRef.new(shape: AllowedOrigins, required: true, location_name: "AllowedOrigins"))
|
80
87
|
CorsRule.add_member(:allowed_methods, Shapes::ShapeRef.new(shape: AllowedMethods, location_name: "AllowedMethods"))
|
81
|
-
CorsRule.add_member(:allowed_headers, Shapes::ShapeRef.new(shape: AllowedHeaders, location_name: "AllowedHeaders"))
|
88
|
+
CorsRule.add_member(:allowed_headers, Shapes::ShapeRef.new(shape: AllowedHeaders, required: true, location_name: "AllowedHeaders"))
|
82
89
|
CorsRule.add_member(:max_age_seconds, Shapes::ShapeRef.new(shape: MaxAgeSeconds, location_name: "MaxAgeSeconds"))
|
83
90
|
CorsRule.add_member(:expose_headers, Shapes::ShapeRef.new(shape: ExposeHeaders, location_name: "ExposeHeaders"))
|
84
91
|
CorsRule.struct_class = Types::CorsRule
|
@@ -104,6 +111,11 @@ module Aws::MediaStore
|
|
104
111
|
|
105
112
|
DeleteCorsPolicyOutput.struct_class = Types::DeleteCorsPolicyOutput
|
106
113
|
|
114
|
+
DeleteLifecyclePolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
115
|
+
DeleteLifecyclePolicyInput.struct_class = Types::DeleteLifecyclePolicyInput
|
116
|
+
|
117
|
+
DeleteLifecyclePolicyOutput.struct_class = Types::DeleteLifecyclePolicyOutput
|
118
|
+
|
107
119
|
DescribeContainerInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, location_name: "ContainerName"))
|
108
120
|
DescribeContainerInput.struct_class = Types::DescribeContainerInput
|
109
121
|
|
@@ -124,6 +136,12 @@ module Aws::MediaStore
|
|
124
136
|
GetCorsPolicyOutput.add_member(:cors_policy, Shapes::ShapeRef.new(shape: CorsPolicy, required: true, location_name: "CorsPolicy"))
|
125
137
|
GetCorsPolicyOutput.struct_class = Types::GetCorsPolicyOutput
|
126
138
|
|
139
|
+
GetLifecyclePolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
140
|
+
GetLifecyclePolicyInput.struct_class = Types::GetLifecyclePolicyInput
|
141
|
+
|
142
|
+
GetLifecyclePolicyOutput.add_member(:lifecycle_policy, Shapes::ShapeRef.new(shape: LifecyclePolicy, required: true, location_name: "LifecyclePolicy"))
|
143
|
+
GetLifecyclePolicyOutput.struct_class = Types::GetLifecyclePolicyOutput
|
144
|
+
|
127
145
|
ListContainersInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
128
146
|
ListContainersInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ContainerListLimit, location_name: "MaxResults"))
|
129
147
|
ListContainersInput.struct_class = Types::ListContainersInput
|
@@ -144,6 +162,12 @@ module Aws::MediaStore
|
|
144
162
|
|
145
163
|
PutCorsPolicyOutput.struct_class = Types::PutCorsPolicyOutput
|
146
164
|
|
165
|
+
PutLifecyclePolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
166
|
+
PutLifecyclePolicyInput.add_member(:lifecycle_policy, Shapes::ShapeRef.new(shape: LifecyclePolicy, required: true, location_name: "LifecyclePolicy"))
|
167
|
+
PutLifecyclePolicyInput.struct_class = Types::PutLifecyclePolicyInput
|
168
|
+
|
169
|
+
PutLifecyclePolicyOutput.struct_class = Types::PutLifecyclePolicyOutput
|
170
|
+
|
147
171
|
|
148
172
|
# @api private
|
149
173
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -210,6 +234,18 @@ module Aws::MediaStore
|
|
210
234
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
211
235
|
end)
|
212
236
|
|
237
|
+
api.add_operation(:delete_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
|
238
|
+
o.name = "DeleteLifecyclePolicy"
|
239
|
+
o.http_method = "POST"
|
240
|
+
o.http_request_uri = "/"
|
241
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteLifecyclePolicyInput)
|
242
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteLifecyclePolicyOutput)
|
243
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
244
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
245
|
+
o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
|
246
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
247
|
+
end)
|
248
|
+
|
213
249
|
api.add_operation(:describe_container, Seahorse::Model::Operation.new.tap do |o|
|
214
250
|
o.name = "DescribeContainer"
|
215
251
|
o.http_method = "POST"
|
@@ -244,6 +280,18 @@ module Aws::MediaStore
|
|
244
280
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
245
281
|
end)
|
246
282
|
|
283
|
+
api.add_operation(:get_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
|
284
|
+
o.name = "GetLifecyclePolicy"
|
285
|
+
o.http_method = "POST"
|
286
|
+
o.http_request_uri = "/"
|
287
|
+
o.input = Shapes::ShapeRef.new(shape: GetLifecyclePolicyInput)
|
288
|
+
o.output = Shapes::ShapeRef.new(shape: GetLifecyclePolicyOutput)
|
289
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
290
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
291
|
+
o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
|
292
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
293
|
+
end)
|
294
|
+
|
247
295
|
api.add_operation(:list_containers, Seahorse::Model::Operation.new.tap do |o|
|
248
296
|
o.name = "ListContainers"
|
249
297
|
o.http_method = "POST"
|
@@ -274,6 +322,17 @@ module Aws::MediaStore
|
|
274
322
|
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
275
323
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
276
324
|
end)
|
325
|
+
|
326
|
+
api.add_operation(:put_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
|
327
|
+
o.name = "PutLifecyclePolicy"
|
328
|
+
o.http_method = "POST"
|
329
|
+
o.http_request_uri = "/"
|
330
|
+
o.input = Shapes::ShapeRef.new(shape: PutLifecyclePolicyInput)
|
331
|
+
o.output = Shapes::ShapeRef.new(shape: PutLifecyclePolicyOutput)
|
332
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
333
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
334
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
335
|
+
end)
|
277
336
|
end
|
278
337
|
|
279
338
|
end
|
@@ -63,9 +63,9 @@ module Aws::MediaStore
|
|
63
63
|
# data as a hash:
|
64
64
|
#
|
65
65
|
# {
|
66
|
-
# allowed_origins: ["Origin"],
|
66
|
+
# allowed_origins: ["Origin"], # required
|
67
67
|
# allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
|
68
|
-
# allowed_headers: ["Header"],
|
68
|
+
# allowed_headers: ["Header"], # required
|
69
69
|
# max_age_seconds: 1,
|
70
70
|
# expose_headers: ["Header"],
|
71
71
|
# }
|
@@ -75,7 +75,7 @@ module Aws::MediaStore
|
|
75
75
|
# access from their applications (for example, from a JavaScript
|
76
76
|
# `XMLHttpRequest` object).
|
77
77
|
#
|
78
|
-
# Each CORS rule must have at least one `
|
78
|
+
# Each CORS rule must have at least one `AllowedOrigins` element. The
|
79
79
|
# string value can include only one wildcard character (*), for
|
80
80
|
# example, http://*.example.com. Additionally, you can specify only
|
81
81
|
# one wildcard character to allow cross-origin access for all origins.
|
@@ -85,8 +85,8 @@ module Aws::MediaStore
|
|
85
85
|
# Identifies an HTTP method that the origin that is specified in the
|
86
86
|
# rule is allowed to execute.
|
87
87
|
#
|
88
|
-
# Each CORS rule must contain at least one `
|
89
|
-
# `
|
88
|
+
# Each CORS rule must contain at least one `AllowedMethods` and one
|
89
|
+
# `AllowedOrigins` element.
|
90
90
|
# @return [Array<String>]
|
91
91
|
#
|
92
92
|
# @!attribute [rw] allowed_headers
|
@@ -241,6 +241,28 @@ module Aws::MediaStore
|
|
241
241
|
#
|
242
242
|
class DeleteCorsPolicyOutput < Aws::EmptyStructure; end
|
243
243
|
|
244
|
+
# @note When making an API call, you may pass DeleteLifecyclePolicyInput
|
245
|
+
# data as a hash:
|
246
|
+
#
|
247
|
+
# {
|
248
|
+
# container_name: "ContainerName", # required
|
249
|
+
# }
|
250
|
+
#
|
251
|
+
# @!attribute [rw] container_name
|
252
|
+
# The name of the container that holds the object lifecycle policy.
|
253
|
+
# @return [String]
|
254
|
+
#
|
255
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicyInput AWS API Documentation
|
256
|
+
#
|
257
|
+
class DeleteLifecyclePolicyInput < Struct.new(
|
258
|
+
:container_name)
|
259
|
+
include Aws::Structure
|
260
|
+
end
|
261
|
+
|
262
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicyOutput AWS API Documentation
|
263
|
+
#
|
264
|
+
class DeleteLifecyclePolicyOutput < Aws::EmptyStructure; end
|
265
|
+
|
244
266
|
# @note When making an API call, you may pass DescribeContainerInput
|
245
267
|
# data as a hash:
|
246
268
|
#
|
@@ -318,7 +340,7 @@ module Aws::MediaStore
|
|
318
340
|
end
|
319
341
|
|
320
342
|
# @!attribute [rw] cors_policy
|
321
|
-
# The CORS policy
|
343
|
+
# The CORS policy assigned to the container.
|
322
344
|
# @return [Array<Types::CorsRule>]
|
323
345
|
#
|
324
346
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicyOutput AWS API Documentation
|
@@ -328,6 +350,36 @@ module Aws::MediaStore
|
|
328
350
|
include Aws::Structure
|
329
351
|
end
|
330
352
|
|
353
|
+
# @note When making an API call, you may pass GetLifecyclePolicyInput
|
354
|
+
# data as a hash:
|
355
|
+
#
|
356
|
+
# {
|
357
|
+
# container_name: "ContainerName", # required
|
358
|
+
# }
|
359
|
+
#
|
360
|
+
# @!attribute [rw] container_name
|
361
|
+
# The name of the container that the object lifecycle policy is
|
362
|
+
# assigned to.
|
363
|
+
# @return [String]
|
364
|
+
#
|
365
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicyInput AWS API Documentation
|
366
|
+
#
|
367
|
+
class GetLifecyclePolicyInput < Struct.new(
|
368
|
+
:container_name)
|
369
|
+
include Aws::Structure
|
370
|
+
end
|
371
|
+
|
372
|
+
# @!attribute [rw] lifecycle_policy
|
373
|
+
# The object lifecycle policy that is assigned to the container.
|
374
|
+
# @return [String]
|
375
|
+
#
|
376
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicyOutput AWS API Documentation
|
377
|
+
#
|
378
|
+
class GetLifecyclePolicyOutput < Struct.new(
|
379
|
+
:lifecycle_policy)
|
380
|
+
include Aws::Structure
|
381
|
+
end
|
382
|
+
|
331
383
|
# @note When making an API call, you may pass ListContainersInput
|
332
384
|
# data as a hash:
|
333
385
|
#
|
@@ -415,9 +467,9 @@ module Aws::MediaStore
|
|
415
467
|
# container_name: "ContainerName", # required
|
416
468
|
# cors_policy: [ # required
|
417
469
|
# {
|
418
|
-
# allowed_origins: ["Origin"],
|
470
|
+
# allowed_origins: ["Origin"], # required
|
419
471
|
# allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
|
420
|
-
# allowed_headers: ["Header"],
|
472
|
+
# allowed_headers: ["Header"], # required
|
421
473
|
# max_age_seconds: 1,
|
422
474
|
# expose_headers: ["Header"],
|
423
475
|
# },
|
@@ -445,5 +497,34 @@ module Aws::MediaStore
|
|
445
497
|
#
|
446
498
|
class PutCorsPolicyOutput < Aws::EmptyStructure; end
|
447
499
|
|
500
|
+
# @note When making an API call, you may pass PutLifecyclePolicyInput
|
501
|
+
# data as a hash:
|
502
|
+
#
|
503
|
+
# {
|
504
|
+
# container_name: "ContainerName", # required
|
505
|
+
# lifecycle_policy: "LifecyclePolicy", # required
|
506
|
+
# }
|
507
|
+
#
|
508
|
+
# @!attribute [rw] container_name
|
509
|
+
# The name of the container that you want to assign the object
|
510
|
+
# lifecycle policy to.
|
511
|
+
# @return [String]
|
512
|
+
#
|
513
|
+
# @!attribute [rw] lifecycle_policy
|
514
|
+
# The object lifecycle policy to apply to the container.
|
515
|
+
# @return [String]
|
516
|
+
#
|
517
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutLifecyclePolicyInput AWS API Documentation
|
518
|
+
#
|
519
|
+
class PutLifecyclePolicyInput < Struct.new(
|
520
|
+
:container_name,
|
521
|
+
:lifecycle_policy)
|
522
|
+
include Aws::Structure
|
523
|
+
end
|
524
|
+
|
525
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutLifecyclePolicyOutput AWS API Documentation
|
526
|
+
#
|
527
|
+
class PutLifecyclePolicyOutput < Aws::EmptyStructure; end
|
528
|
+
|
448
529
|
end
|
449
530
|
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.8.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: 2018-11
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|