aws-sdk-mediastore 1.0.0 → 1.1.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
  SHA1:
3
- metadata.gz: b78fa3630b92b47303bd6e9f4c5886bfb8a4f44e
4
- data.tar.gz: f37dee0071c630b6d6f0c7dd4c301c2f4248063d
3
+ metadata.gz: 7000bcdbfd33730f609e15eda4175f5b1f187387
4
+ data.tar.gz: c9851cdd2d3cbe4f6b978852f6a576aac84a8acc
5
5
  SHA512:
6
- metadata.gz: 50660504429f73a477871447be0fad80d30a1fb8180422c4ab5ff13459b90d62ec69836f38994bb305a6b5fd01a52b3750dfe6c767302f4c3de719c04597bf2e
7
- data.tar.gz: 35e2e3c21506c75a6506ddb550db4e29d2de59e0ca762001ac2e8c2c7216f3e24bea3b71b75a69b908c4abbda60a0702283929a8ff830fe41f7968d30f8d83aa
6
+ metadata.gz: 3db63c9559eadeb1eeade1264b3fe02f16bcaeb1f93edf2bc6b0e3383da81c346294a0201e770842b3601c1f69e845c537bfeccd367d14af6a03b00459eede4b
7
+ data.tar.gz: 34078f7819ed4db3c44c99403dd22dbce93e6010095cfbade4c7fdca2ae208cb75faf418fdfc3d59ed0eefede1f62107e43daec009adcb072965107585115c49
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-mediastore/customizations'
42
42
  # @service
43
43
  module Aws::MediaStore
44
44
 
45
- GEM_VERSION = '1.0.0'
45
+ GEM_VERSION = '1.1.0'
46
46
 
47
47
  end
@@ -239,10 +239,40 @@ module Aws::MediaStore
239
239
  req.send_request(options)
240
240
  end
241
241
 
242
- # Retrieves the properties of the requested container. This returns a
243
- # single `Container` object based on `ContainerName`. To return all
244
- # `Container` objects that are associated with a specified AWS account,
245
- # use ListContainers.
242
+ # Deletes the cross-origin resource sharing (CORS) configuration
243
+ # information that is set for the container.
244
+ #
245
+ # To use this operation, you must have permission to perform the
246
+ # `MediaStore:DeleteCorsPolicy` action. The container owner has this
247
+ # permission by default and can grant this permission to others.
248
+ #
249
+ # @option params [required, String] :container_name
250
+ # The name of the container to remove the policy from.
251
+ #
252
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
253
+ #
254
+ # @example Request syntax with placeholder values
255
+ #
256
+ # resp = client.delete_cors_policy({
257
+ # container_name: "ContainerName", # required
258
+ # })
259
+ #
260
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicy AWS API Documentation
261
+ #
262
+ # @overload delete_cors_policy(params = {})
263
+ # @param [Hash] params ({})
264
+ def delete_cors_policy(params = {}, options = {})
265
+ req = build_request(:delete_cors_policy, params)
266
+ req.send_request(options)
267
+ end
268
+
269
+ # Retrieves the properties of the requested container. This request is
270
+ # commonly used to retrieve the endpoint of a container. An endpoint is
271
+ # a value assigned by the service when a new container is created. A
272
+ # container's endpoint does not change after it has been assigned. The
273
+ # `DescribeContainer` request returns a single `Container` object based
274
+ # on `ContainerName`. To return all `Container` objects that are
275
+ # associated with a specified AWS account, use ListContainers.
246
276
  #
247
277
  # @option params [String] :container_name
248
278
  # The name of the container to query.
@@ -308,6 +338,48 @@ module Aws::MediaStore
308
338
  req.send_request(options)
309
339
  end
310
340
 
341
+ # Returns the cross-origin resource sharing (CORS) configuration
342
+ # information that is set for the container.
343
+ #
344
+ # To use this operation, you must have permission to perform the
345
+ # `MediaStore:GetCorsPolicy` action. By default, the container owner has
346
+ # this permission and can grant it to others.
347
+ #
348
+ # @option params [required, String] :container_name
349
+ # The name of the container that the policy is assigned to.
350
+ #
351
+ # @return [Types::GetCorsPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
352
+ #
353
+ # * {Types::GetCorsPolicyOutput#cors_policy #cors_policy} => Array<Types::CorsRule>
354
+ #
355
+ # @example Request syntax with placeholder values
356
+ #
357
+ # resp = client.get_cors_policy({
358
+ # container_name: "ContainerName", # required
359
+ # })
360
+ #
361
+ # @example Response structure
362
+ #
363
+ # resp.cors_policy #=> Array
364
+ # resp.cors_policy[0].allowed_origins #=> Array
365
+ # resp.cors_policy[0].allowed_origins[0] #=> String
366
+ # resp.cors_policy[0].allowed_methods #=> Array
367
+ # resp.cors_policy[0].allowed_methods[0] #=> String, one of "PUT", "GET", "DELETE", "HEAD"
368
+ # resp.cors_policy[0].allowed_headers #=> Array
369
+ # resp.cors_policy[0].allowed_headers[0] #=> String
370
+ # resp.cors_policy[0].max_age_seconds #=> Integer
371
+ # resp.cors_policy[0].expose_headers #=> Array
372
+ # resp.cors_policy[0].expose_headers[0] #=> String
373
+ #
374
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicy AWS API Documentation
375
+ #
376
+ # @overload get_cors_policy(params = {})
377
+ # @param [Hash] params ({})
378
+ def get_cors_policy(params = {}, options = {})
379
+ req = build_request(:get_cors_policy, params)
380
+ req.send_request(options)
381
+ end
382
+
311
383
  # Lists the properties of all containers in AWS Elemental MediaStore.
312
384
  #
313
385
  # You can query to receive all the containers in one response. Or you
@@ -403,6 +475,52 @@ module Aws::MediaStore
403
475
  req.send_request(options)
404
476
  end
405
477
 
478
+ # Sets the cross-origin resource sharing (CORS) configuration on a
479
+ # container so that the container can service cross-origin requests. For
480
+ # example, you might want to enable a request whose origin is
481
+ # http://www.example.com to access your AWS Elemental MediaStore
482
+ # container at my.example.container.com by using the browser's
483
+ # XMLHttpRequest capability.
484
+ #
485
+ # To enable CORS on a container, you attach a CORS policy to the
486
+ # container. In the CORS policy, you configure rules that identify
487
+ # origins and the HTTP methods that can be executed on your container.
488
+ # The policy can contain up to 398,000 characters. You can add up to 100
489
+ # rules to a CORS policy. If more than one rule applies, the service
490
+ # uses the first applicable rule listed.
491
+ #
492
+ # @option params [required, String] :container_name
493
+ # The name of the container that you want to assign the CORS policy to.
494
+ #
495
+ # @option params [required, Array<Types::CorsRule>] :cors_policy
496
+ # The CORS policy to apply to the container.
497
+ #
498
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
499
+ #
500
+ # @example Request syntax with placeholder values
501
+ #
502
+ # resp = client.put_cors_policy({
503
+ # container_name: "ContainerName", # required
504
+ # cors_policy: [ # required
505
+ # {
506
+ # allowed_origins: ["Origin"],
507
+ # allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
508
+ # allowed_headers: ["Header"],
509
+ # max_age_seconds: 1,
510
+ # expose_headers: ["Header"],
511
+ # },
512
+ # ],
513
+ # })
514
+ #
515
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutCorsPolicy AWS API Documentation
516
+ #
517
+ # @overload put_cors_policy(params = {})
518
+ # @param [Hash] params ({})
519
+ def put_cors_policy(params = {}, options = {})
520
+ req = build_request(:put_cors_policy, params)
521
+ req.send_request(options)
522
+ end
523
+
406
524
  # @!endgroup
407
525
 
408
526
  # @param params ({})
@@ -416,7 +534,7 @@ module Aws::MediaStore
416
534
  params: params,
417
535
  config: config)
418
536
  context[:gem_name] = 'aws-sdk-mediastore'
419
- context[:gem_version] = '1.0.0'
537
+ context[:gem_version] = '1.1.0'
420
538
  Seahorse::Client::Request.new(handlers, context)
421
539
  end
422
540
 
@@ -11,6 +11,9 @@ module Aws::MediaStore
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ AllowedHeaders = Shapes::ListShape.new(name: 'AllowedHeaders')
15
+ AllowedMethods = Shapes::ListShape.new(name: 'AllowedMethods')
16
+ AllowedOrigins = Shapes::ListShape.new(name: 'AllowedOrigins')
14
17
  Container = Shapes::StructureShape.new(name: 'Container')
15
18
  ContainerARN = Shapes::StringShape.new(name: 'ContainerARN')
16
19
  ContainerInUseException = Shapes::StructureShape.new(name: 'ContainerInUseException')
@@ -20,28 +23,48 @@ module Aws::MediaStore
20
23
  ContainerNotFoundException = Shapes::StructureShape.new(name: 'ContainerNotFoundException')
21
24
  ContainerPolicy = Shapes::StringShape.new(name: 'ContainerPolicy')
22
25
  ContainerStatus = Shapes::StringShape.new(name: 'ContainerStatus')
26
+ CorsPolicy = Shapes::ListShape.new(name: 'CorsPolicy')
27
+ CorsPolicyNotFoundException = Shapes::StructureShape.new(name: 'CorsPolicyNotFoundException')
28
+ CorsRule = Shapes::StructureShape.new(name: 'CorsRule')
23
29
  CreateContainerInput = Shapes::StructureShape.new(name: 'CreateContainerInput')
24
30
  CreateContainerOutput = Shapes::StructureShape.new(name: 'CreateContainerOutput')
25
31
  DeleteContainerInput = Shapes::StructureShape.new(name: 'DeleteContainerInput')
26
32
  DeleteContainerOutput = Shapes::StructureShape.new(name: 'DeleteContainerOutput')
27
33
  DeleteContainerPolicyInput = Shapes::StructureShape.new(name: 'DeleteContainerPolicyInput')
28
34
  DeleteContainerPolicyOutput = Shapes::StructureShape.new(name: 'DeleteContainerPolicyOutput')
35
+ DeleteCorsPolicyInput = Shapes::StructureShape.new(name: 'DeleteCorsPolicyInput')
36
+ DeleteCorsPolicyOutput = Shapes::StructureShape.new(name: 'DeleteCorsPolicyOutput')
29
37
  DescribeContainerInput = Shapes::StructureShape.new(name: 'DescribeContainerInput')
30
38
  DescribeContainerOutput = Shapes::StructureShape.new(name: 'DescribeContainerOutput')
31
39
  Endpoint = Shapes::StringShape.new(name: 'Endpoint')
32
40
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
41
+ ExposeHeaders = Shapes::ListShape.new(name: 'ExposeHeaders')
33
42
  GetContainerPolicyInput = Shapes::StructureShape.new(name: 'GetContainerPolicyInput')
34
43
  GetContainerPolicyOutput = Shapes::StructureShape.new(name: 'GetContainerPolicyOutput')
44
+ GetCorsPolicyInput = Shapes::StructureShape.new(name: 'GetCorsPolicyInput')
45
+ GetCorsPolicyOutput = Shapes::StructureShape.new(name: 'GetCorsPolicyOutput')
46
+ Header = Shapes::StringShape.new(name: 'Header')
35
47
  InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
36
48
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
37
49
  ListContainersInput = Shapes::StructureShape.new(name: 'ListContainersInput')
38
50
  ListContainersOutput = Shapes::StructureShape.new(name: 'ListContainersOutput')
51
+ MaxAgeSeconds = Shapes::IntegerShape.new(name: 'MaxAgeSeconds')
52
+ MethodName = Shapes::StringShape.new(name: 'MethodName')
53
+ Origin = Shapes::StringShape.new(name: 'Origin')
39
54
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
40
55
  PolicyNotFoundException = Shapes::StructureShape.new(name: 'PolicyNotFoundException')
41
56
  PutContainerPolicyInput = Shapes::StructureShape.new(name: 'PutContainerPolicyInput')
42
57
  PutContainerPolicyOutput = Shapes::StructureShape.new(name: 'PutContainerPolicyOutput')
58
+ PutCorsPolicyInput = Shapes::StructureShape.new(name: 'PutCorsPolicyInput')
59
+ PutCorsPolicyOutput = Shapes::StructureShape.new(name: 'PutCorsPolicyOutput')
43
60
  TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
44
61
 
62
+ AllowedHeaders.member = Shapes::ShapeRef.new(shape: Header)
63
+
64
+ AllowedMethods.member = Shapes::ShapeRef.new(shape: MethodName)
65
+
66
+ AllowedOrigins.member = Shapes::ShapeRef.new(shape: Origin)
67
+
45
68
  Container.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, location_name: "Endpoint"))
46
69
  Container.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreationTime"))
47
70
  Container.add_member(:arn, Shapes::ShapeRef.new(shape: ContainerARN, location_name: "ARN"))
@@ -51,6 +74,15 @@ module Aws::MediaStore
51
74
 
52
75
  ContainerList.member = Shapes::ShapeRef.new(shape: Container)
53
76
 
77
+ CorsPolicy.member = Shapes::ShapeRef.new(shape: CorsRule)
78
+
79
+ CorsRule.add_member(:allowed_origins, Shapes::ShapeRef.new(shape: AllowedOrigins, location_name: "AllowedOrigins"))
80
+ 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"))
82
+ CorsRule.add_member(:max_age_seconds, Shapes::ShapeRef.new(shape: MaxAgeSeconds, location_name: "MaxAgeSeconds"))
83
+ CorsRule.add_member(:expose_headers, Shapes::ShapeRef.new(shape: ExposeHeaders, location_name: "ExposeHeaders"))
84
+ CorsRule.struct_class = Types::CorsRule
85
+
54
86
  CreateContainerInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
55
87
  CreateContainerInput.struct_class = Types::CreateContainerInput
56
88
 
@@ -67,18 +99,31 @@ module Aws::MediaStore
67
99
 
68
100
  DeleteContainerPolicyOutput.struct_class = Types::DeleteContainerPolicyOutput
69
101
 
102
+ DeleteCorsPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
103
+ DeleteCorsPolicyInput.struct_class = Types::DeleteCorsPolicyInput
104
+
105
+ DeleteCorsPolicyOutput.struct_class = Types::DeleteCorsPolicyOutput
106
+
70
107
  DescribeContainerInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, location_name: "ContainerName"))
71
108
  DescribeContainerInput.struct_class = Types::DescribeContainerInput
72
109
 
73
110
  DescribeContainerOutput.add_member(:container, Shapes::ShapeRef.new(shape: Container, location_name: "Container"))
74
111
  DescribeContainerOutput.struct_class = Types::DescribeContainerOutput
75
112
 
113
+ ExposeHeaders.member = Shapes::ShapeRef.new(shape: Header)
114
+
76
115
  GetContainerPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
77
116
  GetContainerPolicyInput.struct_class = Types::GetContainerPolicyInput
78
117
 
79
118
  GetContainerPolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: ContainerPolicy, required: true, location_name: "Policy"))
80
119
  GetContainerPolicyOutput.struct_class = Types::GetContainerPolicyOutput
81
120
 
121
+ GetCorsPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
122
+ GetCorsPolicyInput.struct_class = Types::GetCorsPolicyInput
123
+
124
+ GetCorsPolicyOutput.add_member(:cors_policy, Shapes::ShapeRef.new(shape: CorsPolicy, required: true, location_name: "CorsPolicy"))
125
+ GetCorsPolicyOutput.struct_class = Types::GetCorsPolicyOutput
126
+
82
127
  ListContainersInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
83
128
  ListContainersInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ContainerListLimit, location_name: "MaxResults"))
84
129
  ListContainersInput.struct_class = Types::ListContainersInput
@@ -93,6 +138,12 @@ module Aws::MediaStore
93
138
 
94
139
  PutContainerPolicyOutput.struct_class = Types::PutContainerPolicyOutput
95
140
 
141
+ PutCorsPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
142
+ PutCorsPolicyInput.add_member(:cors_policy, Shapes::ShapeRef.new(shape: CorsPolicy, required: true, location_name: "CorsPolicy"))
143
+ PutCorsPolicyInput.struct_class = Types::PutCorsPolicyInput
144
+
145
+ PutCorsPolicyOutput.struct_class = Types::PutCorsPolicyOutput
146
+
96
147
 
97
148
  # @api private
98
149
  API = Seahorse::Model::Api.new.tap do |api|
@@ -143,6 +194,18 @@ module Aws::MediaStore
143
194
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
144
195
  end)
145
196
 
197
+ api.add_operation(:delete_cors_policy, Seahorse::Model::Operation.new.tap do |o|
198
+ o.name = "DeleteCorsPolicy"
199
+ o.http_method = "POST"
200
+ o.http_request_uri = "/"
201
+ o.input = Shapes::ShapeRef.new(shape: DeleteCorsPolicyInput)
202
+ o.output = Shapes::ShapeRef.new(shape: DeleteCorsPolicyOutput)
203
+ o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
204
+ o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
205
+ o.errors << Shapes::ShapeRef.new(shape: CorsPolicyNotFoundException)
206
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
207
+ end)
208
+
146
209
  api.add_operation(:describe_container, Seahorse::Model::Operation.new.tap do |o|
147
210
  o.name = "DescribeContainer"
148
211
  o.http_method = "POST"
@@ -165,6 +228,18 @@ module Aws::MediaStore
165
228
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
166
229
  end)
167
230
 
231
+ api.add_operation(:get_cors_policy, Seahorse::Model::Operation.new.tap do |o|
232
+ o.name = "GetCorsPolicy"
233
+ o.http_method = "POST"
234
+ o.http_request_uri = "/"
235
+ o.input = Shapes::ShapeRef.new(shape: GetCorsPolicyInput)
236
+ o.output = Shapes::ShapeRef.new(shape: GetCorsPolicyOutput)
237
+ o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
238
+ o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
239
+ o.errors << Shapes::ShapeRef.new(shape: CorsPolicyNotFoundException)
240
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
241
+ end)
242
+
168
243
  api.add_operation(:list_containers, Seahorse::Model::Operation.new.tap do |o|
169
244
  o.name = "ListContainers"
170
245
  o.http_method = "POST"
@@ -184,6 +259,17 @@ module Aws::MediaStore
184
259
  o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
185
260
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
186
261
  end)
262
+
263
+ api.add_operation(:put_cors_policy, Seahorse::Model::Operation.new.tap do |o|
264
+ o.name = "PutCorsPolicy"
265
+ o.http_method = "POST"
266
+ o.http_request_uri = "/"
267
+ o.input = Shapes::ShapeRef.new(shape: PutCorsPolicyInput)
268
+ o.output = Shapes::ShapeRef.new(shape: PutCorsPolicyOutput)
269
+ o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
270
+ o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
271
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
272
+ end)
187
273
  end
188
274
 
189
275
  end
@@ -12,9 +12,10 @@ module Aws::MediaStore
12
12
  # Elemental MediaStore container.
13
13
  #
14
14
  # @!attribute [rw] endpoint
15
- # The DNS endpoint of the container. Use from 1 to 255 characters. Use
16
- # this endpoint to identify this container when sending requests to
17
- # the data plane.
15
+ # The DNS endpoint of the container. Use the endpoint to identify the
16
+ # specific container when sending requests to the data plane. The
17
+ # service assigns this value when the container is created. Once the
18
+ # value has been assigned, it does not change.
18
19
  # @return [String]
19
20
  #
20
21
  # @!attribute [rw] creation_time
@@ -54,6 +55,76 @@ module Aws::MediaStore
54
55
  include Aws::Structure
55
56
  end
56
57
 
58
+ # A rule for a CORS policy. You can add up to 100 rules to a CORS
59
+ # policy. If more than one rule applies, the service uses the first
60
+ # applicable rule listed.
61
+ #
62
+ # @note When making an API call, you may pass CorsRule
63
+ # data as a hash:
64
+ #
65
+ # {
66
+ # allowed_origins: ["Origin"],
67
+ # allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
68
+ # allowed_headers: ["Header"],
69
+ # max_age_seconds: 1,
70
+ # expose_headers: ["Header"],
71
+ # }
72
+ #
73
+ # @!attribute [rw] allowed_origins
74
+ # One or more response headers that you want users to be able to
75
+ # access from their applications (for example, from a JavaScript
76
+ # `XMLHttpRequest` object).
77
+ #
78
+ # Each CORS rule must have at least one `AllowedOrigin` element. The
79
+ # string value can include only one wildcard character (*), for
80
+ # example, http://*.example.com. Additionally, you can specify only
81
+ # one wildcard character to allow cross-origin access for all origins.
82
+ # @return [Array<String>]
83
+ #
84
+ # @!attribute [rw] allowed_methods
85
+ # Identifies an HTTP method that the origin that is specified in the
86
+ # rule is allowed to execute.
87
+ #
88
+ # Each CORS rule must contain at least one `AllowedMethod` and one
89
+ # `AllowedOrigin` element.
90
+ # @return [Array<String>]
91
+ #
92
+ # @!attribute [rw] allowed_headers
93
+ # Specifies which headers are allowed in a preflight `OPTIONS` request
94
+ # through the `Access-Control-Request-Headers` header. Each header
95
+ # name that is specified in `Access-Control-Request-Headers` must have
96
+ # a corresponding entry in the rule. Only the headers that were
97
+ # requested are sent back.
98
+ #
99
+ # This element can contain only one wildcard character (*).
100
+ # @return [Array<String>]
101
+ #
102
+ # @!attribute [rw] max_age_seconds
103
+ # The time in seconds that your browser caches the preflight response
104
+ # for the specified resource.
105
+ #
106
+ # A CORS rule can have only one `MaxAgeSeconds` element.
107
+ # @return [Integer]
108
+ #
109
+ # @!attribute [rw] expose_headers
110
+ # One or more headers in the response that you want users to be able
111
+ # to access from their applications (for example, from a JavaScript
112
+ # `XMLHttpRequest` object).
113
+ #
114
+ # This element is optional for each rule.
115
+ # @return [Array<String>]
116
+ #
117
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CorsRule AWS API Documentation
118
+ #
119
+ class CorsRule < Struct.new(
120
+ :allowed_origins,
121
+ :allowed_methods,
122
+ :allowed_headers,
123
+ :max_age_seconds,
124
+ :expose_headers)
125
+ include Aws::Structure
126
+ end
127
+
57
128
  # @note When making an API call, you may pass CreateContainerInput
58
129
  # data as a hash:
59
130
  #
@@ -85,7 +156,7 @@ module Aws::MediaStore
85
156
  #
86
157
  # ContainerName: The container name as specified in the request.
87
158
  #
88
- # CreationTime: Unix timestamp.
159
+ # CreationTime: Unix time stamp.
89
160
  #
90
161
  # Status: The status of container creation or deletion. The status is
91
162
  # one of the following: `CREATING`, `ACTIVE`, or `DELETING`. While the
@@ -148,6 +219,28 @@ module Aws::MediaStore
148
219
  #
149
220
  class DeleteContainerPolicyOutput < Aws::EmptyStructure; end
150
221
 
222
+ # @note When making an API call, you may pass DeleteCorsPolicyInput
223
+ # data as a hash:
224
+ #
225
+ # {
226
+ # container_name: "ContainerName", # required
227
+ # }
228
+ #
229
+ # @!attribute [rw] container_name
230
+ # The name of the container to remove the policy from.
231
+ # @return [String]
232
+ #
233
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicyInput AWS API Documentation
234
+ #
235
+ class DeleteCorsPolicyInput < Struct.new(
236
+ :container_name)
237
+ include Aws::Structure
238
+ end
239
+
240
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicyOutput AWS API Documentation
241
+ #
242
+ class DeleteCorsPolicyOutput < Aws::EmptyStructure; end
243
+
151
244
  # @note When making an API call, you may pass DescribeContainerInput
152
245
  # data as a hash:
153
246
  #
@@ -206,6 +299,35 @@ module Aws::MediaStore
206
299
  include Aws::Structure
207
300
  end
208
301
 
302
+ # @note When making an API call, you may pass GetCorsPolicyInput
303
+ # data as a hash:
304
+ #
305
+ # {
306
+ # container_name: "ContainerName", # required
307
+ # }
308
+ #
309
+ # @!attribute [rw] container_name
310
+ # The name of the container that the policy is assigned to.
311
+ # @return [String]
312
+ #
313
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicyInput AWS API Documentation
314
+ #
315
+ class GetCorsPolicyInput < Struct.new(
316
+ :container_name)
317
+ include Aws::Structure
318
+ end
319
+
320
+ # @!attribute [rw] cors_policy
321
+ # The CORS policy of the container.
322
+ # @return [Array<Types::CorsRule>]
323
+ #
324
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicyOutput AWS API Documentation
325
+ #
326
+ class GetCorsPolicyOutput < Struct.new(
327
+ :cors_policy)
328
+ include Aws::Structure
329
+ end
330
+
209
331
  # @note When making an API call, you may pass ListContainersInput
210
332
  # data as a hash:
211
333
  #
@@ -286,5 +408,42 @@ module Aws::MediaStore
286
408
  #
287
409
  class PutContainerPolicyOutput < Aws::EmptyStructure; end
288
410
 
411
+ # @note When making an API call, you may pass PutCorsPolicyInput
412
+ # data as a hash:
413
+ #
414
+ # {
415
+ # container_name: "ContainerName", # required
416
+ # cors_policy: [ # required
417
+ # {
418
+ # allowed_origins: ["Origin"],
419
+ # allowed_methods: ["PUT"], # accepts PUT, GET, DELETE, HEAD
420
+ # allowed_headers: ["Header"],
421
+ # max_age_seconds: 1,
422
+ # expose_headers: ["Header"],
423
+ # },
424
+ # ],
425
+ # }
426
+ #
427
+ # @!attribute [rw] container_name
428
+ # The name of the container that you want to assign the CORS policy
429
+ # to.
430
+ # @return [String]
431
+ #
432
+ # @!attribute [rw] cors_policy
433
+ # The CORS policy to apply to the container.
434
+ # @return [Array<Types::CorsRule>]
435
+ #
436
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutCorsPolicyInput AWS API Documentation
437
+ #
438
+ class PutCorsPolicyInput < Struct.new(
439
+ :container_name,
440
+ :cors_policy)
441
+ include Aws::Structure
442
+ end
443
+
444
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutCorsPolicyOutput AWS API Documentation
445
+ #
446
+ class PutCorsPolicyOutput < Aws::EmptyStructure; end
447
+
289
448
  end
290
449
  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.0.0
4
+ version: 1.1.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: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2018-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core