aws-sdk-mediastore 1.0.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 +7 -0
- data/lib/aws-sdk-mediastore.rb +47 -0
- data/lib/aws-sdk-mediastore/client.rb +441 -0
- data/lib/aws-sdk-mediastore/client_api.rb +190 -0
- data/lib/aws-sdk-mediastore/customizations.rb +0 -0
- data/lib/aws-sdk-mediastore/errors.rb +14 -0
- data/lib/aws-sdk-mediastore/resource.rb +23 -0
- data/lib/aws-sdk-mediastore/types.rb +290 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b78fa3630b92b47303bd6e9f4c5886bfb8a4f44e
|
4
|
+
data.tar.gz: f37dee0071c630b6d6f0c7dd4c301c2f4248063d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 50660504429f73a477871447be0fad80d30a1fb8180422c4ab5ff13459b90d62ec69836f38994bb305a6b5fd01a52b3750dfe6c767302f4c3de719c04597bf2e
|
7
|
+
data.tar.gz: 35e2e3c21506c75a6506ddb550db4e29d2de59e0ca762001ac2e8c2c7216f3e24bea3b71b75a69b908c4abbda60a0702283929a8ff830fe41f7968d30f8d83aa
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'aws-sdk-core'
|
9
|
+
require 'aws-sigv4'
|
10
|
+
|
11
|
+
require_relative 'aws-sdk-mediastore/types'
|
12
|
+
require_relative 'aws-sdk-mediastore/client_api'
|
13
|
+
require_relative 'aws-sdk-mediastore/client'
|
14
|
+
require_relative 'aws-sdk-mediastore/errors'
|
15
|
+
require_relative 'aws-sdk-mediastore/resource'
|
16
|
+
require_relative 'aws-sdk-mediastore/customizations'
|
17
|
+
|
18
|
+
# This module provides support for AWS Elemental MediaStore. This module is available in the
|
19
|
+
# `aws-sdk-mediastore` gem.
|
20
|
+
#
|
21
|
+
# # Client
|
22
|
+
#
|
23
|
+
# The {Client} class provides one method for each API operation. Operation
|
24
|
+
# methods each accept a hash of request parameters and return a response
|
25
|
+
# structure.
|
26
|
+
#
|
27
|
+
# See {Client} for more information.
|
28
|
+
#
|
29
|
+
# # Errors
|
30
|
+
#
|
31
|
+
# Errors returned from AWS Elemental MediaStore all
|
32
|
+
# extend {Errors::ServiceError}.
|
33
|
+
#
|
34
|
+
# begin
|
35
|
+
# # do stuff
|
36
|
+
# rescue Aws::MediaStore::Errors::ServiceError
|
37
|
+
# # rescues all service API errors
|
38
|
+
# end
|
39
|
+
#
|
40
|
+
# See {Errors} for more information.
|
41
|
+
#
|
42
|
+
# @service
|
43
|
+
module Aws::MediaStore
|
44
|
+
|
45
|
+
GEM_VERSION = '1.0.0'
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,441 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'seahorse/client/plugins/content_length.rb'
|
9
|
+
require 'aws-sdk-core/plugins/credentials_configuration.rb'
|
10
|
+
require 'aws-sdk-core/plugins/logging.rb'
|
11
|
+
require 'aws-sdk-core/plugins/param_converter.rb'
|
12
|
+
require 'aws-sdk-core/plugins/param_validator.rb'
|
13
|
+
require 'aws-sdk-core/plugins/user_agent.rb'
|
14
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
15
|
+
require 'aws-sdk-core/plugins/retry_errors.rb'
|
16
|
+
require 'aws-sdk-core/plugins/global_configuration.rb'
|
17
|
+
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
18
|
+
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
|
+
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
|
+
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
22
|
+
require 'aws-sdk-core/plugins/signature_v4.rb'
|
23
|
+
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
24
|
+
|
25
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:mediastore)
|
26
|
+
|
27
|
+
module Aws::MediaStore
|
28
|
+
class Client < Seahorse::Client::Base
|
29
|
+
|
30
|
+
include Aws::ClientStubs
|
31
|
+
|
32
|
+
@identifier = :mediastore
|
33
|
+
|
34
|
+
set_api(ClientApi::API)
|
35
|
+
|
36
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
37
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
38
|
+
add_plugin(Aws::Plugins::Logging)
|
39
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
40
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
41
|
+
add_plugin(Aws::Plugins::UserAgent)
|
42
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
43
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
44
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
45
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
46
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
47
|
+
add_plugin(Aws::Plugins::StubResponses)
|
48
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
49
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
50
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
51
|
+
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
52
|
+
|
53
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
54
|
+
# Your AWS credentials. This can be an instance of any one of the
|
55
|
+
# following classes:
|
56
|
+
#
|
57
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
58
|
+
# credentials.
|
59
|
+
#
|
60
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
61
|
+
# from an EC2 IMDS on an EC2 instance.
|
62
|
+
#
|
63
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
64
|
+
# shared file, such as `~/.aws/config`.
|
65
|
+
#
|
66
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
67
|
+
#
|
68
|
+
# When `:credentials` are not configured directly, the following
|
69
|
+
# locations will be searched for credentials:
|
70
|
+
#
|
71
|
+
# * `Aws.config[:credentials]`
|
72
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
73
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
74
|
+
# * `~/.aws/credentials`
|
75
|
+
# * `~/.aws/config`
|
76
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
77
|
+
# very aggressive. Construct and pass an instance of
|
78
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
79
|
+
# timeouts.
|
80
|
+
#
|
81
|
+
# @option options [required, String] :region
|
82
|
+
# The AWS region to connect to. The configured `:region` is
|
83
|
+
# used to determine the service `:endpoint`. When not passed,
|
84
|
+
# a default `:region` is search for in the following locations:
|
85
|
+
#
|
86
|
+
# * `Aws.config[:region]`
|
87
|
+
# * `ENV['AWS_REGION']`
|
88
|
+
# * `ENV['AMAZON_REGION']`
|
89
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
90
|
+
# * `~/.aws/credentials`
|
91
|
+
# * `~/.aws/config`
|
92
|
+
#
|
93
|
+
# @option options [String] :access_key_id
|
94
|
+
#
|
95
|
+
# @option options [Boolean] :convert_params (true)
|
96
|
+
# When `true`, an attempt is made to coerce request parameters into
|
97
|
+
# the required types.
|
98
|
+
#
|
99
|
+
# @option options [String] :endpoint
|
100
|
+
# The client endpoint is normally constructed from the `:region`
|
101
|
+
# option. You should only configure an `:endpoint` when connecting
|
102
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
103
|
+
#
|
104
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
105
|
+
# The log formatter.
|
106
|
+
#
|
107
|
+
# @option options [Symbol] :log_level (:info)
|
108
|
+
# The log level to send messages to the `:logger` at.
|
109
|
+
#
|
110
|
+
# @option options [Logger] :logger
|
111
|
+
# The Logger instance to send log messages to. If this option
|
112
|
+
# is not set, logging will be disabled.
|
113
|
+
#
|
114
|
+
# @option options [String] :profile ("default")
|
115
|
+
# Used when loading credentials from the shared credentials file
|
116
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
117
|
+
#
|
118
|
+
# @option options [Integer] :retry_limit (3)
|
119
|
+
# The maximum number of times to retry failed requests. Only
|
120
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
121
|
+
# are retried. Generally, these are throttling errors, data
|
122
|
+
# checksum errors, networking errors, timeout errors and auth
|
123
|
+
# errors from expired credentials.
|
124
|
+
#
|
125
|
+
# @option options [String] :secret_access_key
|
126
|
+
#
|
127
|
+
# @option options [String] :session_token
|
128
|
+
#
|
129
|
+
# @option options [Boolean] :simple_json (false)
|
130
|
+
# Disables request parameter conversion, validation, and formatting.
|
131
|
+
# Also disable response data type conversions. This option is useful
|
132
|
+
# when you want to ensure the highest level of performance by
|
133
|
+
# avoiding overhead of walking request parameters and response data
|
134
|
+
# structures.
|
135
|
+
#
|
136
|
+
# When `:simple_json` is enabled, the request parameters hash must
|
137
|
+
# be formatted exactly as the DynamoDB API expects.
|
138
|
+
#
|
139
|
+
# @option options [Boolean] :stub_responses (false)
|
140
|
+
# Causes the client to return stubbed responses. By default
|
141
|
+
# fake responses are generated and returned. You can specify
|
142
|
+
# the response data to return or errors to raise by calling
|
143
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
144
|
+
#
|
145
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
146
|
+
# requests are made, and retries are disabled.
|
147
|
+
#
|
148
|
+
# @option options [Boolean] :validate_params (true)
|
149
|
+
# When `true`, request parameters are validated before
|
150
|
+
# sending the request.
|
151
|
+
#
|
152
|
+
def initialize(*args)
|
153
|
+
super
|
154
|
+
end
|
155
|
+
|
156
|
+
# @!group API Operations
|
157
|
+
|
158
|
+
# Creates a storage container to hold objects. A container is similar to
|
159
|
+
# a bucket in the Amazon S3 service.
|
160
|
+
#
|
161
|
+
# @option params [required, String] :container_name
|
162
|
+
# The name for the container. The name must be from 1 to 255 characters.
|
163
|
+
# Container names must be unique to your AWS account within a specific
|
164
|
+
# region. As an example, you could create a container named `movies` in
|
165
|
+
# every region, as long as you don’t have an existing container with
|
166
|
+
# that name.
|
167
|
+
#
|
168
|
+
# @return [Types::CreateContainerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
169
|
+
#
|
170
|
+
# * {Types::CreateContainerOutput#container #container} => Types::Container
|
171
|
+
#
|
172
|
+
# @example Request syntax with placeholder values
|
173
|
+
#
|
174
|
+
# resp = client.create_container({
|
175
|
+
# container_name: "ContainerName", # required
|
176
|
+
# })
|
177
|
+
#
|
178
|
+
# @example Response structure
|
179
|
+
#
|
180
|
+
# resp.container.endpoint #=> String
|
181
|
+
# resp.container.creation_time #=> Time
|
182
|
+
# resp.container.arn #=> String
|
183
|
+
# resp.container.name #=> String
|
184
|
+
# resp.container.status #=> String, one of "ACTIVE", "CREATING", "DELETING"
|
185
|
+
#
|
186
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainer AWS API Documentation
|
187
|
+
#
|
188
|
+
# @overload create_container(params = {})
|
189
|
+
# @param [Hash] params ({})
|
190
|
+
def create_container(params = {}, options = {})
|
191
|
+
req = build_request(:create_container, params)
|
192
|
+
req.send_request(options)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Deletes the specified container. Before you make a `DeleteContainer`
|
196
|
+
# request, delete any objects in the container or in any folders in the
|
197
|
+
# container. You can delete only empty containers.
|
198
|
+
#
|
199
|
+
# @option params [required, String] :container_name
|
200
|
+
# The name of the container to delete.
|
201
|
+
#
|
202
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
203
|
+
#
|
204
|
+
# @example Request syntax with placeholder values
|
205
|
+
#
|
206
|
+
# resp = client.delete_container({
|
207
|
+
# container_name: "ContainerName", # required
|
208
|
+
# })
|
209
|
+
#
|
210
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainer AWS API Documentation
|
211
|
+
#
|
212
|
+
# @overload delete_container(params = {})
|
213
|
+
# @param [Hash] params ({})
|
214
|
+
def delete_container(params = {}, options = {})
|
215
|
+
req = build_request(:delete_container, params)
|
216
|
+
req.send_request(options)
|
217
|
+
end
|
218
|
+
|
219
|
+
# Deletes the access policy that is associated with the specified
|
220
|
+
# container.
|
221
|
+
#
|
222
|
+
# @option params [required, String] :container_name
|
223
|
+
# The name of the container that holds the policy.
|
224
|
+
#
|
225
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
226
|
+
#
|
227
|
+
# @example Request syntax with placeholder values
|
228
|
+
#
|
229
|
+
# resp = client.delete_container_policy({
|
230
|
+
# container_name: "ContainerName", # required
|
231
|
+
# })
|
232
|
+
#
|
233
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerPolicy AWS API Documentation
|
234
|
+
#
|
235
|
+
# @overload delete_container_policy(params = {})
|
236
|
+
# @param [Hash] params ({})
|
237
|
+
def delete_container_policy(params = {}, options = {})
|
238
|
+
req = build_request(:delete_container_policy, params)
|
239
|
+
req.send_request(options)
|
240
|
+
end
|
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.
|
246
|
+
#
|
247
|
+
# @option params [String] :container_name
|
248
|
+
# The name of the container to query.
|
249
|
+
#
|
250
|
+
# @return [Types::DescribeContainerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
251
|
+
#
|
252
|
+
# * {Types::DescribeContainerOutput#container #container} => Types::Container
|
253
|
+
#
|
254
|
+
# @example Request syntax with placeholder values
|
255
|
+
#
|
256
|
+
# resp = client.describe_container({
|
257
|
+
# container_name: "ContainerName",
|
258
|
+
# })
|
259
|
+
#
|
260
|
+
# @example Response structure
|
261
|
+
#
|
262
|
+
# resp.container.endpoint #=> String
|
263
|
+
# resp.container.creation_time #=> Time
|
264
|
+
# resp.container.arn #=> String
|
265
|
+
# resp.container.name #=> String
|
266
|
+
# resp.container.status #=> String, one of "ACTIVE", "CREATING", "DELETING"
|
267
|
+
#
|
268
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainer AWS API Documentation
|
269
|
+
#
|
270
|
+
# @overload describe_container(params = {})
|
271
|
+
# @param [Hash] params ({})
|
272
|
+
def describe_container(params = {}, options = {})
|
273
|
+
req = build_request(:describe_container, params)
|
274
|
+
req.send_request(options)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Retrieves the access policy for the specified container. For
|
278
|
+
# information about the data that is included in an access policy, see
|
279
|
+
# the [AWS Identity and Access Management User Guide][1].
|
280
|
+
#
|
281
|
+
#
|
282
|
+
#
|
283
|
+
# [1]: https://aws.amazon.com/documentation/iam/
|
284
|
+
#
|
285
|
+
# @option params [required, String] :container_name
|
286
|
+
# The name of the container.
|
287
|
+
#
|
288
|
+
# @return [Types::GetContainerPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
289
|
+
#
|
290
|
+
# * {Types::GetContainerPolicyOutput#policy #policy} => String
|
291
|
+
#
|
292
|
+
# @example Request syntax with placeholder values
|
293
|
+
#
|
294
|
+
# resp = client.get_container_policy({
|
295
|
+
# container_name: "ContainerName", # required
|
296
|
+
# })
|
297
|
+
#
|
298
|
+
# @example Response structure
|
299
|
+
#
|
300
|
+
# resp.policy #=> String
|
301
|
+
#
|
302
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetContainerPolicy AWS API Documentation
|
303
|
+
#
|
304
|
+
# @overload get_container_policy(params = {})
|
305
|
+
# @param [Hash] params ({})
|
306
|
+
def get_container_policy(params = {}, options = {})
|
307
|
+
req = build_request(:get_container_policy, params)
|
308
|
+
req.send_request(options)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Lists the properties of all containers in AWS Elemental MediaStore.
|
312
|
+
#
|
313
|
+
# You can query to receive all the containers in one response. Or you
|
314
|
+
# can include the `MaxResults` parameter to receive a limited number of
|
315
|
+
# containers in each response. In this case, the response includes a
|
316
|
+
# token. To get the next set of containers, send the command again, this
|
317
|
+
# time with the `NextToken` parameter (with the returned token as its
|
318
|
+
# value). The next set of responses appears, with a token if there are
|
319
|
+
# still more containers to receive.
|
320
|
+
#
|
321
|
+
# See also DescribeContainer, which gets the properties of one
|
322
|
+
# container.
|
323
|
+
#
|
324
|
+
# @option params [String] :next_token
|
325
|
+
# Only if you used `MaxResults` in the first command, enter the token
|
326
|
+
# (which was included in the previous response) to obtain the next set
|
327
|
+
# of containers. This token is included in a response only if there
|
328
|
+
# actually are more containers to list.
|
329
|
+
#
|
330
|
+
# @option params [Integer] :max_results
|
331
|
+
# Enter the maximum number of containers in the response. Use from 1 to
|
332
|
+
# 255 characters.
|
333
|
+
#
|
334
|
+
# @return [Types::ListContainersOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
335
|
+
#
|
336
|
+
# * {Types::ListContainersOutput#containers #containers} => Array<Types::Container>
|
337
|
+
# * {Types::ListContainersOutput#next_token #next_token} => String
|
338
|
+
#
|
339
|
+
# @example Request syntax with placeholder values
|
340
|
+
#
|
341
|
+
# resp = client.list_containers({
|
342
|
+
# next_token: "PaginationToken",
|
343
|
+
# max_results: 1,
|
344
|
+
# })
|
345
|
+
#
|
346
|
+
# @example Response structure
|
347
|
+
#
|
348
|
+
# resp.containers #=> Array
|
349
|
+
# resp.containers[0].endpoint #=> String
|
350
|
+
# resp.containers[0].creation_time #=> Time
|
351
|
+
# resp.containers[0].arn #=> String
|
352
|
+
# resp.containers[0].name #=> String
|
353
|
+
# resp.containers[0].status #=> String, one of "ACTIVE", "CREATING", "DELETING"
|
354
|
+
# resp.next_token #=> String
|
355
|
+
#
|
356
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainers AWS API Documentation
|
357
|
+
#
|
358
|
+
# @overload list_containers(params = {})
|
359
|
+
# @param [Hash] params ({})
|
360
|
+
def list_containers(params = {}, options = {})
|
361
|
+
req = build_request(:list_containers, params)
|
362
|
+
req.send_request(options)
|
363
|
+
end
|
364
|
+
|
365
|
+
# Creates an access policy for the specified container to restrict the
|
366
|
+
# users and clients that can access it. For information about the data
|
367
|
+
# that is included in an access policy, see the [AWS Identity and Access
|
368
|
+
# Management User Guide][1].
|
369
|
+
#
|
370
|
+
# For this release of the REST API, you can create only one policy for a
|
371
|
+
# container. If you enter `PutContainerPolicy` twice, the second command
|
372
|
+
# modifies the existing policy.
|
373
|
+
#
|
374
|
+
#
|
375
|
+
#
|
376
|
+
# [1]: https://aws.amazon.com/documentation/iam/
|
377
|
+
#
|
378
|
+
# @option params [required, String] :container_name
|
379
|
+
# The name of the container.
|
380
|
+
#
|
381
|
+
# @option params [required, String] :policy
|
382
|
+
# The contents of the policy, which includes the following:
|
383
|
+
#
|
384
|
+
# * One `Version` tag
|
385
|
+
#
|
386
|
+
# * One `Statement` tag that contains the standard tags for the policy.
|
387
|
+
#
|
388
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
389
|
+
#
|
390
|
+
# @example Request syntax with placeholder values
|
391
|
+
#
|
392
|
+
# resp = client.put_container_policy({
|
393
|
+
# container_name: "ContainerName", # required
|
394
|
+
# policy: "ContainerPolicy", # required
|
395
|
+
# })
|
396
|
+
#
|
397
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutContainerPolicy AWS API Documentation
|
398
|
+
#
|
399
|
+
# @overload put_container_policy(params = {})
|
400
|
+
# @param [Hash] params ({})
|
401
|
+
def put_container_policy(params = {}, options = {})
|
402
|
+
req = build_request(:put_container_policy, params)
|
403
|
+
req.send_request(options)
|
404
|
+
end
|
405
|
+
|
406
|
+
# @!endgroup
|
407
|
+
|
408
|
+
# @param params ({})
|
409
|
+
# @api private
|
410
|
+
def build_request(operation_name, params = {})
|
411
|
+
handlers = @handlers.for(operation_name)
|
412
|
+
context = Seahorse::Client::RequestContext.new(
|
413
|
+
operation_name: operation_name,
|
414
|
+
operation: config.api.operation(operation_name),
|
415
|
+
client: self,
|
416
|
+
params: params,
|
417
|
+
config: config)
|
418
|
+
context[:gem_name] = 'aws-sdk-mediastore'
|
419
|
+
context[:gem_version] = '1.0.0'
|
420
|
+
Seahorse::Client::Request.new(handlers, context)
|
421
|
+
end
|
422
|
+
|
423
|
+
# @api private
|
424
|
+
# @deprecated
|
425
|
+
def waiter_names
|
426
|
+
[]
|
427
|
+
end
|
428
|
+
|
429
|
+
class << self
|
430
|
+
|
431
|
+
# @api private
|
432
|
+
attr_reader :identifier
|
433
|
+
|
434
|
+
# @api private
|
435
|
+
def errors_module
|
436
|
+
Errors
|
437
|
+
end
|
438
|
+
|
439
|
+
end
|
440
|
+
end
|
441
|
+
end
|
@@ -0,0 +1,190 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::MediaStore
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
Container = Shapes::StructureShape.new(name: 'Container')
|
15
|
+
ContainerARN = Shapes::StringShape.new(name: 'ContainerARN')
|
16
|
+
ContainerInUseException = Shapes::StructureShape.new(name: 'ContainerInUseException')
|
17
|
+
ContainerList = Shapes::ListShape.new(name: 'ContainerList')
|
18
|
+
ContainerListLimit = Shapes::IntegerShape.new(name: 'ContainerListLimit')
|
19
|
+
ContainerName = Shapes::StringShape.new(name: 'ContainerName')
|
20
|
+
ContainerNotFoundException = Shapes::StructureShape.new(name: 'ContainerNotFoundException')
|
21
|
+
ContainerPolicy = Shapes::StringShape.new(name: 'ContainerPolicy')
|
22
|
+
ContainerStatus = Shapes::StringShape.new(name: 'ContainerStatus')
|
23
|
+
CreateContainerInput = Shapes::StructureShape.new(name: 'CreateContainerInput')
|
24
|
+
CreateContainerOutput = Shapes::StructureShape.new(name: 'CreateContainerOutput')
|
25
|
+
DeleteContainerInput = Shapes::StructureShape.new(name: 'DeleteContainerInput')
|
26
|
+
DeleteContainerOutput = Shapes::StructureShape.new(name: 'DeleteContainerOutput')
|
27
|
+
DeleteContainerPolicyInput = Shapes::StructureShape.new(name: 'DeleteContainerPolicyInput')
|
28
|
+
DeleteContainerPolicyOutput = Shapes::StructureShape.new(name: 'DeleteContainerPolicyOutput')
|
29
|
+
DescribeContainerInput = Shapes::StructureShape.new(name: 'DescribeContainerInput')
|
30
|
+
DescribeContainerOutput = Shapes::StructureShape.new(name: 'DescribeContainerOutput')
|
31
|
+
Endpoint = Shapes::StringShape.new(name: 'Endpoint')
|
32
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
33
|
+
GetContainerPolicyInput = Shapes::StructureShape.new(name: 'GetContainerPolicyInput')
|
34
|
+
GetContainerPolicyOutput = Shapes::StructureShape.new(name: 'GetContainerPolicyOutput')
|
35
|
+
InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
|
36
|
+
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
37
|
+
ListContainersInput = Shapes::StructureShape.new(name: 'ListContainersInput')
|
38
|
+
ListContainersOutput = Shapes::StructureShape.new(name: 'ListContainersOutput')
|
39
|
+
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
40
|
+
PolicyNotFoundException = Shapes::StructureShape.new(name: 'PolicyNotFoundException')
|
41
|
+
PutContainerPolicyInput = Shapes::StructureShape.new(name: 'PutContainerPolicyInput')
|
42
|
+
PutContainerPolicyOutput = Shapes::StructureShape.new(name: 'PutContainerPolicyOutput')
|
43
|
+
TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
|
44
|
+
|
45
|
+
Container.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, location_name: "Endpoint"))
|
46
|
+
Container.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreationTime"))
|
47
|
+
Container.add_member(:arn, Shapes::ShapeRef.new(shape: ContainerARN, location_name: "ARN"))
|
48
|
+
Container.add_member(:name, Shapes::ShapeRef.new(shape: ContainerName, location_name: "Name"))
|
49
|
+
Container.add_member(:status, Shapes::ShapeRef.new(shape: ContainerStatus, location_name: "Status"))
|
50
|
+
Container.struct_class = Types::Container
|
51
|
+
|
52
|
+
ContainerList.member = Shapes::ShapeRef.new(shape: Container)
|
53
|
+
|
54
|
+
CreateContainerInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
55
|
+
CreateContainerInput.struct_class = Types::CreateContainerInput
|
56
|
+
|
57
|
+
CreateContainerOutput.add_member(:container, Shapes::ShapeRef.new(shape: Container, required: true, location_name: "Container"))
|
58
|
+
CreateContainerOutput.struct_class = Types::CreateContainerOutput
|
59
|
+
|
60
|
+
DeleteContainerInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
61
|
+
DeleteContainerInput.struct_class = Types::DeleteContainerInput
|
62
|
+
|
63
|
+
DeleteContainerOutput.struct_class = Types::DeleteContainerOutput
|
64
|
+
|
65
|
+
DeleteContainerPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
66
|
+
DeleteContainerPolicyInput.struct_class = Types::DeleteContainerPolicyInput
|
67
|
+
|
68
|
+
DeleteContainerPolicyOutput.struct_class = Types::DeleteContainerPolicyOutput
|
69
|
+
|
70
|
+
DescribeContainerInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, location_name: "ContainerName"))
|
71
|
+
DescribeContainerInput.struct_class = Types::DescribeContainerInput
|
72
|
+
|
73
|
+
DescribeContainerOutput.add_member(:container, Shapes::ShapeRef.new(shape: Container, location_name: "Container"))
|
74
|
+
DescribeContainerOutput.struct_class = Types::DescribeContainerOutput
|
75
|
+
|
76
|
+
GetContainerPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
77
|
+
GetContainerPolicyInput.struct_class = Types::GetContainerPolicyInput
|
78
|
+
|
79
|
+
GetContainerPolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: ContainerPolicy, required: true, location_name: "Policy"))
|
80
|
+
GetContainerPolicyOutput.struct_class = Types::GetContainerPolicyOutput
|
81
|
+
|
82
|
+
ListContainersInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
83
|
+
ListContainersInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ContainerListLimit, location_name: "MaxResults"))
|
84
|
+
ListContainersInput.struct_class = Types::ListContainersInput
|
85
|
+
|
86
|
+
ListContainersOutput.add_member(:containers, Shapes::ShapeRef.new(shape: ContainerList, required: true, location_name: "Containers"))
|
87
|
+
ListContainersOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
88
|
+
ListContainersOutput.struct_class = Types::ListContainersOutput
|
89
|
+
|
90
|
+
PutContainerPolicyInput.add_member(:container_name, Shapes::ShapeRef.new(shape: ContainerName, required: true, location_name: "ContainerName"))
|
91
|
+
PutContainerPolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: ContainerPolicy, required: true, location_name: "Policy"))
|
92
|
+
PutContainerPolicyInput.struct_class = Types::PutContainerPolicyInput
|
93
|
+
|
94
|
+
PutContainerPolicyOutput.struct_class = Types::PutContainerPolicyOutput
|
95
|
+
|
96
|
+
|
97
|
+
# @api private
|
98
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
99
|
+
|
100
|
+
api.version = "2017-09-01"
|
101
|
+
|
102
|
+
api.metadata = {
|
103
|
+
"endpointPrefix" => "mediastore",
|
104
|
+
"jsonVersion" => "1.1",
|
105
|
+
"protocol" => "json",
|
106
|
+
"serviceFullName" => "AWS Elemental MediaStore",
|
107
|
+
"signatureVersion" => "v4",
|
108
|
+
"signingName" => "mediastore",
|
109
|
+
"targetPrefix" => "MediaStore_20170901",
|
110
|
+
}
|
111
|
+
|
112
|
+
api.add_operation(:create_container, Seahorse::Model::Operation.new.tap do |o|
|
113
|
+
o.name = "CreateContainer"
|
114
|
+
o.http_method = "POST"
|
115
|
+
o.http_request_uri = "/"
|
116
|
+
o.input = Shapes::ShapeRef.new(shape: CreateContainerInput)
|
117
|
+
o.output = Shapes::ShapeRef.new(shape: CreateContainerOutput)
|
118
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
119
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
120
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
121
|
+
end)
|
122
|
+
|
123
|
+
api.add_operation(:delete_container, Seahorse::Model::Operation.new.tap do |o|
|
124
|
+
o.name = "DeleteContainer"
|
125
|
+
o.http_method = "POST"
|
126
|
+
o.http_request_uri = "/"
|
127
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteContainerInput)
|
128
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteContainerOutput)
|
129
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
130
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
131
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
132
|
+
end)
|
133
|
+
|
134
|
+
api.add_operation(:delete_container_policy, Seahorse::Model::Operation.new.tap do |o|
|
135
|
+
o.name = "DeleteContainerPolicy"
|
136
|
+
o.http_method = "POST"
|
137
|
+
o.http_request_uri = "/"
|
138
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteContainerPolicyInput)
|
139
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteContainerPolicyOutput)
|
140
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
141
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
142
|
+
o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
|
143
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
144
|
+
end)
|
145
|
+
|
146
|
+
api.add_operation(:describe_container, Seahorse::Model::Operation.new.tap do |o|
|
147
|
+
o.name = "DescribeContainer"
|
148
|
+
o.http_method = "POST"
|
149
|
+
o.http_request_uri = "/"
|
150
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeContainerInput)
|
151
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeContainerOutput)
|
152
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
153
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
154
|
+
end)
|
155
|
+
|
156
|
+
api.add_operation(:get_container_policy, Seahorse::Model::Operation.new.tap do |o|
|
157
|
+
o.name = "GetContainerPolicy"
|
158
|
+
o.http_method = "POST"
|
159
|
+
o.http_request_uri = "/"
|
160
|
+
o.input = Shapes::ShapeRef.new(shape: GetContainerPolicyInput)
|
161
|
+
o.output = Shapes::ShapeRef.new(shape: GetContainerPolicyOutput)
|
162
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
163
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
164
|
+
o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
|
165
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
166
|
+
end)
|
167
|
+
|
168
|
+
api.add_operation(:list_containers, Seahorse::Model::Operation.new.tap do |o|
|
169
|
+
o.name = "ListContainers"
|
170
|
+
o.http_method = "POST"
|
171
|
+
o.http_request_uri = "/"
|
172
|
+
o.input = Shapes::ShapeRef.new(shape: ListContainersInput)
|
173
|
+
o.output = Shapes::ShapeRef.new(shape: ListContainersOutput)
|
174
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
175
|
+
end)
|
176
|
+
|
177
|
+
api.add_operation(:put_container_policy, Seahorse::Model::Operation.new.tap do |o|
|
178
|
+
o.name = "PutContainerPolicy"
|
179
|
+
o.http_method = "POST"
|
180
|
+
o.http_request_uri = "/"
|
181
|
+
o.input = Shapes::ShapeRef.new(shape: PutContainerPolicyInput)
|
182
|
+
o.output = Shapes::ShapeRef.new(shape: PutContainerPolicyOutput)
|
183
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerNotFoundException)
|
184
|
+
o.errors << Shapes::ShapeRef.new(shape: ContainerInUseException)
|
185
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
186
|
+
end)
|
187
|
+
end
|
188
|
+
|
189
|
+
end
|
190
|
+
end
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::MediaStore
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::MediaStore
|
9
|
+
class Resource
|
10
|
+
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,290 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::MediaStore
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# This section describes operations that you can perform on an AWS
|
12
|
+
# Elemental MediaStore container.
|
13
|
+
#
|
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.
|
18
|
+
# @return [String]
|
19
|
+
#
|
20
|
+
# @!attribute [rw] creation_time
|
21
|
+
# Unix timestamp.
|
22
|
+
# @return [Time]
|
23
|
+
#
|
24
|
+
# @!attribute [rw] arn
|
25
|
+
# The Amazon Resource Name (ARN) of the container. The ARN has the
|
26
|
+
# following format:
|
27
|
+
#
|
28
|
+
# arn:aws:<region>\:<account that owns this
|
29
|
+
# container>\:container/<name of container>
|
30
|
+
#
|
31
|
+
# For example:
|
32
|
+
# arn:aws:mediastore:us-west-2:111122223333:container/movies
|
33
|
+
# @return [String]
|
34
|
+
#
|
35
|
+
# @!attribute [rw] name
|
36
|
+
# The name of the container.
|
37
|
+
# @return [String]
|
38
|
+
#
|
39
|
+
# @!attribute [rw] status
|
40
|
+
# The status of container creation or deletion. The status is one of
|
41
|
+
# the following: `CREATING`, `ACTIVE`, or `DELETING`. While the
|
42
|
+
# service is creating the container, the status is `CREATING`. When
|
43
|
+
# the endpoint is available, the status changes to `ACTIVE`.
|
44
|
+
# @return [String]
|
45
|
+
#
|
46
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/Container AWS API Documentation
|
47
|
+
#
|
48
|
+
class Container < Struct.new(
|
49
|
+
:endpoint,
|
50
|
+
:creation_time,
|
51
|
+
:arn,
|
52
|
+
:name,
|
53
|
+
:status)
|
54
|
+
include Aws::Structure
|
55
|
+
end
|
56
|
+
|
57
|
+
# @note When making an API call, you may pass CreateContainerInput
|
58
|
+
# data as a hash:
|
59
|
+
#
|
60
|
+
# {
|
61
|
+
# container_name: "ContainerName", # required
|
62
|
+
# }
|
63
|
+
#
|
64
|
+
# @!attribute [rw] container_name
|
65
|
+
# The name for the container. The name must be from 1 to 255
|
66
|
+
# characters. Container names must be unique to your AWS account
|
67
|
+
# within a specific region. As an example, you could create a
|
68
|
+
# container named `movies` in every region, as long as you don’t have
|
69
|
+
# an existing container with that name.
|
70
|
+
# @return [String]
|
71
|
+
#
|
72
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainerInput AWS API Documentation
|
73
|
+
#
|
74
|
+
class CreateContainerInput < Struct.new(
|
75
|
+
:container_name)
|
76
|
+
include Aws::Structure
|
77
|
+
end
|
78
|
+
|
79
|
+
# @!attribute [rw] container
|
80
|
+
# ContainerARN: The Amazon Resource Name (ARN) of the newly created
|
81
|
+
# container. The ARN has the following format:
|
82
|
+
# arn:aws:<region>\:<account that owns this
|
83
|
+
# container>\:container/<name of container>. For example:
|
84
|
+
# arn:aws:mediastore:us-west-2:111122223333:container/movies
|
85
|
+
#
|
86
|
+
# ContainerName: The container name as specified in the request.
|
87
|
+
#
|
88
|
+
# CreationTime: Unix timestamp.
|
89
|
+
#
|
90
|
+
# Status: The status of container creation or deletion. The status is
|
91
|
+
# one of the following: `CREATING`, `ACTIVE`, or `DELETING`. While the
|
92
|
+
# service is creating the container, the status is `CREATING`. When an
|
93
|
+
# endpoint is available, the status changes to `ACTIVE`.
|
94
|
+
#
|
95
|
+
# The return value does not include the container's endpoint. To make
|
96
|
+
# downstream requests, you must obtain this value by using
|
97
|
+
# DescribeContainer or ListContainers.
|
98
|
+
# @return [Types::Container]
|
99
|
+
#
|
100
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainerOutput AWS API Documentation
|
101
|
+
#
|
102
|
+
class CreateContainerOutput < Struct.new(
|
103
|
+
:container)
|
104
|
+
include Aws::Structure
|
105
|
+
end
|
106
|
+
|
107
|
+
# @note When making an API call, you may pass DeleteContainerInput
|
108
|
+
# data as a hash:
|
109
|
+
#
|
110
|
+
# {
|
111
|
+
# container_name: "ContainerName", # required
|
112
|
+
# }
|
113
|
+
#
|
114
|
+
# @!attribute [rw] container_name
|
115
|
+
# The name of the container to delete.
|
116
|
+
# @return [String]
|
117
|
+
#
|
118
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerInput AWS API Documentation
|
119
|
+
#
|
120
|
+
class DeleteContainerInput < Struct.new(
|
121
|
+
:container_name)
|
122
|
+
include Aws::Structure
|
123
|
+
end
|
124
|
+
|
125
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerOutput AWS API Documentation
|
126
|
+
#
|
127
|
+
class DeleteContainerOutput < Aws::EmptyStructure; end
|
128
|
+
|
129
|
+
# @note When making an API call, you may pass DeleteContainerPolicyInput
|
130
|
+
# data as a hash:
|
131
|
+
#
|
132
|
+
# {
|
133
|
+
# container_name: "ContainerName", # required
|
134
|
+
# }
|
135
|
+
#
|
136
|
+
# @!attribute [rw] container_name
|
137
|
+
# The name of the container that holds the policy.
|
138
|
+
# @return [String]
|
139
|
+
#
|
140
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerPolicyInput AWS API Documentation
|
141
|
+
#
|
142
|
+
class DeleteContainerPolicyInput < Struct.new(
|
143
|
+
:container_name)
|
144
|
+
include Aws::Structure
|
145
|
+
end
|
146
|
+
|
147
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerPolicyOutput AWS API Documentation
|
148
|
+
#
|
149
|
+
class DeleteContainerPolicyOutput < Aws::EmptyStructure; end
|
150
|
+
|
151
|
+
# @note When making an API call, you may pass DescribeContainerInput
|
152
|
+
# data as a hash:
|
153
|
+
#
|
154
|
+
# {
|
155
|
+
# container_name: "ContainerName",
|
156
|
+
# }
|
157
|
+
#
|
158
|
+
# @!attribute [rw] container_name
|
159
|
+
# The name of the container to query.
|
160
|
+
# @return [String]
|
161
|
+
#
|
162
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainerInput AWS API Documentation
|
163
|
+
#
|
164
|
+
class DescribeContainerInput < Struct.new(
|
165
|
+
:container_name)
|
166
|
+
include Aws::Structure
|
167
|
+
end
|
168
|
+
|
169
|
+
# @!attribute [rw] container
|
170
|
+
# The name of the queried container.
|
171
|
+
# @return [Types::Container]
|
172
|
+
#
|
173
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainerOutput AWS API Documentation
|
174
|
+
#
|
175
|
+
class DescribeContainerOutput < Struct.new(
|
176
|
+
:container)
|
177
|
+
include Aws::Structure
|
178
|
+
end
|
179
|
+
|
180
|
+
# @note When making an API call, you may pass GetContainerPolicyInput
|
181
|
+
# data as a hash:
|
182
|
+
#
|
183
|
+
# {
|
184
|
+
# container_name: "ContainerName", # required
|
185
|
+
# }
|
186
|
+
#
|
187
|
+
# @!attribute [rw] container_name
|
188
|
+
# The name of the container.
|
189
|
+
# @return [String]
|
190
|
+
#
|
191
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetContainerPolicyInput AWS API Documentation
|
192
|
+
#
|
193
|
+
class GetContainerPolicyInput < Struct.new(
|
194
|
+
:container_name)
|
195
|
+
include Aws::Structure
|
196
|
+
end
|
197
|
+
|
198
|
+
# @!attribute [rw] policy
|
199
|
+
# The contents of the access policy.
|
200
|
+
# @return [String]
|
201
|
+
#
|
202
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetContainerPolicyOutput AWS API Documentation
|
203
|
+
#
|
204
|
+
class GetContainerPolicyOutput < Struct.new(
|
205
|
+
:policy)
|
206
|
+
include Aws::Structure
|
207
|
+
end
|
208
|
+
|
209
|
+
# @note When making an API call, you may pass ListContainersInput
|
210
|
+
# data as a hash:
|
211
|
+
#
|
212
|
+
# {
|
213
|
+
# next_token: "PaginationToken",
|
214
|
+
# max_results: 1,
|
215
|
+
# }
|
216
|
+
#
|
217
|
+
# @!attribute [rw] next_token
|
218
|
+
# Only if you used `MaxResults` in the first command, enter the token
|
219
|
+
# (which was included in the previous response) to obtain the next set
|
220
|
+
# of containers. This token is included in a response only if there
|
221
|
+
# actually are more containers to list.
|
222
|
+
# @return [String]
|
223
|
+
#
|
224
|
+
# @!attribute [rw] max_results
|
225
|
+
# Enter the maximum number of containers in the response. Use from 1
|
226
|
+
# to 255 characters.
|
227
|
+
# @return [Integer]
|
228
|
+
#
|
229
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainersInput AWS API Documentation
|
230
|
+
#
|
231
|
+
class ListContainersInput < Struct.new(
|
232
|
+
:next_token,
|
233
|
+
:max_results)
|
234
|
+
include Aws::Structure
|
235
|
+
end
|
236
|
+
|
237
|
+
# @!attribute [rw] containers
|
238
|
+
# The names of the containers.
|
239
|
+
# @return [Array<Types::Container>]
|
240
|
+
#
|
241
|
+
# @!attribute [rw] next_token
|
242
|
+
# `NextToken` is the token to use in the next call to
|
243
|
+
# `ListContainers`. This token is returned only if you included the
|
244
|
+
# `MaxResults` tag in the original command, and only if there are
|
245
|
+
# still containers to return.
|
246
|
+
# @return [String]
|
247
|
+
#
|
248
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainersOutput AWS API Documentation
|
249
|
+
#
|
250
|
+
class ListContainersOutput < Struct.new(
|
251
|
+
:containers,
|
252
|
+
:next_token)
|
253
|
+
include Aws::Structure
|
254
|
+
end
|
255
|
+
|
256
|
+
# @note When making an API call, you may pass PutContainerPolicyInput
|
257
|
+
# data as a hash:
|
258
|
+
#
|
259
|
+
# {
|
260
|
+
# container_name: "ContainerName", # required
|
261
|
+
# policy: "ContainerPolicy", # required
|
262
|
+
# }
|
263
|
+
#
|
264
|
+
# @!attribute [rw] container_name
|
265
|
+
# The name of the container.
|
266
|
+
# @return [String]
|
267
|
+
#
|
268
|
+
# @!attribute [rw] policy
|
269
|
+
# The contents of the policy, which includes the following:
|
270
|
+
#
|
271
|
+
# * One `Version` tag
|
272
|
+
#
|
273
|
+
# * One `Statement` tag that contains the standard tags for the
|
274
|
+
# policy.
|
275
|
+
# @return [String]
|
276
|
+
#
|
277
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutContainerPolicyInput AWS API Documentation
|
278
|
+
#
|
279
|
+
class PutContainerPolicyInput < Struct.new(
|
280
|
+
:container_name,
|
281
|
+
:policy)
|
282
|
+
include Aws::Structure
|
283
|
+
end
|
284
|
+
|
285
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutContainerPolicyOutput AWS API Documentation
|
286
|
+
#
|
287
|
+
class PutContainerPolicyOutput < Aws::EmptyStructure; end
|
288
|
+
|
289
|
+
end
|
290
|
+
end
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-mediastore
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws-sigv4
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
description: Official AWS Ruby gem for AWS Elemental MediaStore (MediaStore). This
|
42
|
+
gem is part of the AWS SDK for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-mediastore.rb
|
50
|
+
- lib/aws-sdk-mediastore/client.rb
|
51
|
+
- lib/aws-sdk-mediastore/client_api.rb
|
52
|
+
- lib/aws-sdk-mediastore/customizations.rb
|
53
|
+
- lib/aws-sdk-mediastore/errors.rb
|
54
|
+
- lib/aws-sdk-mediastore/resource.rb
|
55
|
+
- lib/aws-sdk-mediastore/types.rb
|
56
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
57
|
+
licenses:
|
58
|
+
- Apache-2.0
|
59
|
+
metadata:
|
60
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-mediastore
|
61
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-mediastore/CHANGELOG.md
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 2.5.1
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: AWS SDK for Ruby - MediaStore
|
82
|
+
test_files: []
|