aws-sdk-mediatailor 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-mediatailor.rb +47 -0
- data/lib/aws-sdk-mediatailor/client.rb +364 -0
- data/lib/aws-sdk-mediatailor/client_api.rb +138 -0
- data/lib/aws-sdk-mediatailor/customizations.rb +0 -0
- data/lib/aws-sdk-mediatailor/errors.rb +14 -0
- data/lib/aws-sdk-mediatailor/resource.rb +23 -0
- data/lib/aws-sdk-mediatailor/types.rb +329 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 729f4e6e25be94cf6d6c569c1a367229eccfaede
|
4
|
+
data.tar.gz: b901912f6132b1d0b27b45ce0442a02e174dfbfb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8d2cd16835e2a8813c46cab7863623f989839ffce1f8281b79457a66ec977763f9cdaf25912b2515f1d4cd2de72f56f9a153fe4b58ca2b55de8fef77ef92df7f
|
7
|
+
data.tar.gz: b6b86162df954b147336aa04f051b52c6e62d62960692bce85e80a70e24addfba907ad0c970e2adb9c38dc86a4d66056a5e47e9e42dbcb499d44631884b81819
|
@@ -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-mediatailor/types'
|
12
|
+
require_relative 'aws-sdk-mediatailor/client_api'
|
13
|
+
require_relative 'aws-sdk-mediatailor/client'
|
14
|
+
require_relative 'aws-sdk-mediatailor/errors'
|
15
|
+
require_relative 'aws-sdk-mediatailor/resource'
|
16
|
+
require_relative 'aws-sdk-mediatailor/customizations'
|
17
|
+
|
18
|
+
# This module provides support for AWS MediaTailor. This module is available in the
|
19
|
+
# `aws-sdk-mediatailor` 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 MediaTailor all
|
32
|
+
# extend {Errors::ServiceError}.
|
33
|
+
#
|
34
|
+
# begin
|
35
|
+
# # do stuff
|
36
|
+
# rescue Aws::MediaTailor::Errors::ServiceError
|
37
|
+
# # rescues all service API errors
|
38
|
+
# end
|
39
|
+
#
|
40
|
+
# See {Errors} for more information.
|
41
|
+
#
|
42
|
+
# @service
|
43
|
+
module Aws::MediaTailor
|
44
|
+
|
45
|
+
GEM_VERSION = '1.0.0'
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,364 @@
|
|
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/rest_json.rb'
|
24
|
+
|
25
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:mediatailor)
|
26
|
+
|
27
|
+
module Aws::MediaTailor
|
28
|
+
class Client < Seahorse::Client::Base
|
29
|
+
|
30
|
+
include Aws::ClientStubs
|
31
|
+
|
32
|
+
@identifier = :mediatailor
|
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::RestJson)
|
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] :stub_responses (false)
|
130
|
+
# Causes the client to return stubbed responses. By default
|
131
|
+
# fake responses are generated and returned. You can specify
|
132
|
+
# the response data to return or errors to raise by calling
|
133
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
134
|
+
#
|
135
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
136
|
+
# requests are made, and retries are disabled.
|
137
|
+
#
|
138
|
+
# @option options [Boolean] :validate_params (true)
|
139
|
+
# When `true`, request parameters are validated before
|
140
|
+
# sending the request.
|
141
|
+
#
|
142
|
+
def initialize(*args)
|
143
|
+
super
|
144
|
+
end
|
145
|
+
|
146
|
+
# @!group API Operations
|
147
|
+
|
148
|
+
# Deletes the configuration for the specified name.
|
149
|
+
#
|
150
|
+
# @option params [required, String] :name
|
151
|
+
#
|
152
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
153
|
+
#
|
154
|
+
# @example Request syntax with placeholder values
|
155
|
+
#
|
156
|
+
# resp = client.delete_playback_configuration({
|
157
|
+
# name: "__string", # required
|
158
|
+
# })
|
159
|
+
#
|
160
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/DeletePlaybackConfiguration AWS API Documentation
|
161
|
+
#
|
162
|
+
# @overload delete_playback_configuration(params = {})
|
163
|
+
# @param [Hash] params ({})
|
164
|
+
def delete_playback_configuration(params = {}, options = {})
|
165
|
+
req = build_request(:delete_playback_configuration, params)
|
166
|
+
req.send_request(options)
|
167
|
+
end
|
168
|
+
|
169
|
+
# Returns the configuration for the specified name.
|
170
|
+
#
|
171
|
+
# @option params [required, String] :name
|
172
|
+
#
|
173
|
+
# @return [Types::GetPlaybackConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
174
|
+
#
|
175
|
+
# * {Types::GetPlaybackConfigurationResponse#ad_decision_server_url #ad_decision_server_url} => String
|
176
|
+
# * {Types::GetPlaybackConfigurationResponse#cdn_configuration #cdn_configuration} => Types::CdnConfiguration
|
177
|
+
# * {Types::GetPlaybackConfigurationResponse#hls_configuration #hls_configuration} => Types::HlsConfiguration
|
178
|
+
# * {Types::GetPlaybackConfigurationResponse#name #name} => String
|
179
|
+
# * {Types::GetPlaybackConfigurationResponse#playback_endpoint_prefix #playback_endpoint_prefix} => String
|
180
|
+
# * {Types::GetPlaybackConfigurationResponse#session_initialization_endpoint_prefix #session_initialization_endpoint_prefix} => String
|
181
|
+
# * {Types::GetPlaybackConfigurationResponse#slate_ad_url #slate_ad_url} => String
|
182
|
+
# * {Types::GetPlaybackConfigurationResponse#video_content_source_url #video_content_source_url} => String
|
183
|
+
#
|
184
|
+
# @example Request syntax with placeholder values
|
185
|
+
#
|
186
|
+
# resp = client.get_playback_configuration({
|
187
|
+
# name: "__string", # required
|
188
|
+
# })
|
189
|
+
#
|
190
|
+
# @example Response structure
|
191
|
+
#
|
192
|
+
# resp.ad_decision_server_url #=> String
|
193
|
+
# resp.cdn_configuration.ad_segment_url_prefix #=> String
|
194
|
+
# resp.cdn_configuration.content_segment_url_prefix #=> String
|
195
|
+
# resp.hls_configuration.manifest_endpoint_prefix #=> String
|
196
|
+
# resp.name #=> String
|
197
|
+
# resp.playback_endpoint_prefix #=> String
|
198
|
+
# resp.session_initialization_endpoint_prefix #=> String
|
199
|
+
# resp.slate_ad_url #=> String
|
200
|
+
# resp.video_content_source_url #=> String
|
201
|
+
#
|
202
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/GetPlaybackConfiguration AWS API Documentation
|
203
|
+
#
|
204
|
+
# @overload get_playback_configuration(params = {})
|
205
|
+
# @param [Hash] params ({})
|
206
|
+
def get_playback_configuration(params = {}, options = {})
|
207
|
+
req = build_request(:get_playback_configuration, params)
|
208
|
+
req.send_request(options)
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns a list of the configurations defined in AWS Elemental
|
212
|
+
# MediaTailor. You can specify a max number of configurations to return
|
213
|
+
# at a time. The default max is 50. Results are returned in pagefuls. If
|
214
|
+
# AWS Elemental MediaTailor has more configurations than the specified
|
215
|
+
# max, it provides parameters in the response that you can use to
|
216
|
+
# retrieve the next pageful.
|
217
|
+
#
|
218
|
+
# @option params [Integer] :max_results
|
219
|
+
#
|
220
|
+
# @option params [String] :next_token
|
221
|
+
#
|
222
|
+
# @return [Types::ListPlaybackConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
223
|
+
#
|
224
|
+
# * {Types::ListPlaybackConfigurationsResponse#items #items} => Array<Types::PlaybackConfiguration>
|
225
|
+
# * {Types::ListPlaybackConfigurationsResponse#next_token #next_token} => String
|
226
|
+
#
|
227
|
+
# @example Request syntax with placeholder values
|
228
|
+
#
|
229
|
+
# resp = client.list_playback_configurations({
|
230
|
+
# max_results: 1,
|
231
|
+
# next_token: "__string",
|
232
|
+
# })
|
233
|
+
#
|
234
|
+
# @example Response structure
|
235
|
+
#
|
236
|
+
# resp.items #=> Array
|
237
|
+
# resp.items[0].ad_decision_server_url #=> String
|
238
|
+
# resp.items[0].cdn_configuration.ad_segment_url_prefix #=> String
|
239
|
+
# resp.items[0].cdn_configuration.content_segment_url_prefix #=> String
|
240
|
+
# resp.items[0].name #=> String
|
241
|
+
# resp.items[0].slate_ad_url #=> String
|
242
|
+
# resp.items[0].video_content_source_url #=> String
|
243
|
+
# resp.next_token #=> String
|
244
|
+
#
|
245
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListPlaybackConfigurations AWS API Documentation
|
246
|
+
#
|
247
|
+
# @overload list_playback_configurations(params = {})
|
248
|
+
# @param [Hash] params ({})
|
249
|
+
def list_playback_configurations(params = {}, options = {})
|
250
|
+
req = build_request(:list_playback_configurations, params)
|
251
|
+
req.send_request(options)
|
252
|
+
end
|
253
|
+
|
254
|
+
# Adds a new configuration to AWS Elemental MediaTailor.
|
255
|
+
#
|
256
|
+
# @option params [String] :ad_decision_server_url
|
257
|
+
# The URL for the ad decision server (ADS). This includes the
|
258
|
+
# specification of static parameters and placeholders for dynamic
|
259
|
+
# parameters. AWS Elemental MediaTailor substitutes player-specific and
|
260
|
+
# session-specific parameters as needed when calling the ADS.
|
261
|
+
# Alternately, for testing you can provide a static VAST URL. The
|
262
|
+
# maximum length is 25000 characters.
|
263
|
+
#
|
264
|
+
# @option params [Types::CdnConfiguration] :cdn_configuration
|
265
|
+
# The configuration for using a content delivery network (CDN), like
|
266
|
+
# Amazon CloudFront, for content and ad segment management.
|
267
|
+
#
|
268
|
+
# @option params [String] :name
|
269
|
+
# The identifier for the configuration.
|
270
|
+
#
|
271
|
+
# @option params [String] :slate_ad_url
|
272
|
+
# The URL for a high-quality video asset to transcode and use to fill in
|
273
|
+
# time that's not used by ads. AWS Elemental MediaTailor shows the
|
274
|
+
# slate to fill in gaps in media content. Configuring the slate is
|
275
|
+
# optional for non-VPAID configurations. For VPAID, the slate is
|
276
|
+
# required because AWS Elemental MediaTailor provides it in the slots
|
277
|
+
# that are designated for dynamic ad content. The slate must be a
|
278
|
+
# high-quality asset that contains both audio and video.
|
279
|
+
#
|
280
|
+
# @option params [String] :video_content_source_url
|
281
|
+
# The URL prefix for the master playlist for the stream, minus the asset
|
282
|
+
# ID. The maximum length is 512 characters.
|
283
|
+
#
|
284
|
+
# @return [Types::PutPlaybackConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
285
|
+
#
|
286
|
+
# * {Types::PutPlaybackConfigurationResponse#ad_decision_server_url #ad_decision_server_url} => String
|
287
|
+
# * {Types::PutPlaybackConfigurationResponse#cdn_configuration #cdn_configuration} => Types::CdnConfiguration
|
288
|
+
# * {Types::PutPlaybackConfigurationResponse#hls_configuration #hls_configuration} => Types::HlsConfiguration
|
289
|
+
# * {Types::PutPlaybackConfigurationResponse#name #name} => String
|
290
|
+
# * {Types::PutPlaybackConfigurationResponse#playback_endpoint_prefix #playback_endpoint_prefix} => String
|
291
|
+
# * {Types::PutPlaybackConfigurationResponse#session_initialization_endpoint_prefix #session_initialization_endpoint_prefix} => String
|
292
|
+
# * {Types::PutPlaybackConfigurationResponse#slate_ad_url #slate_ad_url} => String
|
293
|
+
# * {Types::PutPlaybackConfigurationResponse#video_content_source_url #video_content_source_url} => String
|
294
|
+
#
|
295
|
+
# @example Request syntax with placeholder values
|
296
|
+
#
|
297
|
+
# resp = client.put_playback_configuration({
|
298
|
+
# ad_decision_server_url: "__string",
|
299
|
+
# cdn_configuration: {
|
300
|
+
# ad_segment_url_prefix: "__string",
|
301
|
+
# content_segment_url_prefix: "__string",
|
302
|
+
# },
|
303
|
+
# name: "__string",
|
304
|
+
# slate_ad_url: "__string",
|
305
|
+
# video_content_source_url: "__string",
|
306
|
+
# })
|
307
|
+
#
|
308
|
+
# @example Response structure
|
309
|
+
#
|
310
|
+
# resp.ad_decision_server_url #=> String
|
311
|
+
# resp.cdn_configuration.ad_segment_url_prefix #=> String
|
312
|
+
# resp.cdn_configuration.content_segment_url_prefix #=> String
|
313
|
+
# resp.hls_configuration.manifest_endpoint_prefix #=> String
|
314
|
+
# resp.name #=> String
|
315
|
+
# resp.playback_endpoint_prefix #=> String
|
316
|
+
# resp.session_initialization_endpoint_prefix #=> String
|
317
|
+
# resp.slate_ad_url #=> String
|
318
|
+
# resp.video_content_source_url #=> String
|
319
|
+
#
|
320
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/PutPlaybackConfiguration AWS API Documentation
|
321
|
+
#
|
322
|
+
# @overload put_playback_configuration(params = {})
|
323
|
+
# @param [Hash] params ({})
|
324
|
+
def put_playback_configuration(params = {}, options = {})
|
325
|
+
req = build_request(:put_playback_configuration, params)
|
326
|
+
req.send_request(options)
|
327
|
+
end
|
328
|
+
|
329
|
+
# @!endgroup
|
330
|
+
|
331
|
+
# @param params ({})
|
332
|
+
# @api private
|
333
|
+
def build_request(operation_name, params = {})
|
334
|
+
handlers = @handlers.for(operation_name)
|
335
|
+
context = Seahorse::Client::RequestContext.new(
|
336
|
+
operation_name: operation_name,
|
337
|
+
operation: config.api.operation(operation_name),
|
338
|
+
client: self,
|
339
|
+
params: params,
|
340
|
+
config: config)
|
341
|
+
context[:gem_name] = 'aws-sdk-mediatailor'
|
342
|
+
context[:gem_version] = '1.0.0'
|
343
|
+
Seahorse::Client::Request.new(handlers, context)
|
344
|
+
end
|
345
|
+
|
346
|
+
# @api private
|
347
|
+
# @deprecated
|
348
|
+
def waiter_names
|
349
|
+
[]
|
350
|
+
end
|
351
|
+
|
352
|
+
class << self
|
353
|
+
|
354
|
+
# @api private
|
355
|
+
attr_reader :identifier
|
356
|
+
|
357
|
+
# @api private
|
358
|
+
def errors_module
|
359
|
+
Errors
|
360
|
+
end
|
361
|
+
|
362
|
+
end
|
363
|
+
end
|
364
|
+
end
|
@@ -0,0 +1,138 @@
|
|
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::MediaTailor
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
CdnConfiguration = Shapes::StructureShape.new(name: 'CdnConfiguration')
|
15
|
+
DeletePlaybackConfigurationRequest = Shapes::StructureShape.new(name: 'DeletePlaybackConfigurationRequest')
|
16
|
+
GetPlaybackConfigurationRequest = Shapes::StructureShape.new(name: 'GetPlaybackConfigurationRequest')
|
17
|
+
GetPlaybackConfigurationResponse = Shapes::StructureShape.new(name: 'GetPlaybackConfigurationResponse')
|
18
|
+
HlsConfiguration = Shapes::StructureShape.new(name: 'HlsConfiguration')
|
19
|
+
ListPlaybackConfigurationsRequest = Shapes::StructureShape.new(name: 'ListPlaybackConfigurationsRequest')
|
20
|
+
ListPlaybackConfigurationsResponse = Shapes::StructureShape.new(name: 'ListPlaybackConfigurationsResponse')
|
21
|
+
PlaybackConfiguration = Shapes::StructureShape.new(name: 'PlaybackConfiguration')
|
22
|
+
PutPlaybackConfigurationRequest = Shapes::StructureShape.new(name: 'PutPlaybackConfigurationRequest')
|
23
|
+
PutPlaybackConfigurationResponse = Shapes::StructureShape.new(name: 'PutPlaybackConfigurationResponse')
|
24
|
+
__boolean = Shapes::BooleanShape.new(name: '__boolean')
|
25
|
+
__double = Shapes::FloatShape.new(name: '__double')
|
26
|
+
__integer = Shapes::IntegerShape.new(name: '__integer')
|
27
|
+
__integerMin1Max100 = Shapes::IntegerShape.new(name: '__integerMin1Max100')
|
28
|
+
__listOfPlaybackConfigurations = Shapes::ListShape.new(name: '__listOfPlaybackConfigurations')
|
29
|
+
__long = Shapes::IntegerShape.new(name: '__long')
|
30
|
+
__string = Shapes::StringShape.new(name: '__string')
|
31
|
+
|
32
|
+
CdnConfiguration.add_member(:ad_segment_url_prefix, Shapes::ShapeRef.new(shape: __string, location_name: "AdSegmentUrlPrefix"))
|
33
|
+
CdnConfiguration.add_member(:content_segment_url_prefix, Shapes::ShapeRef.new(shape: __string, location_name: "ContentSegmentUrlPrefix"))
|
34
|
+
CdnConfiguration.struct_class = Types::CdnConfiguration
|
35
|
+
|
36
|
+
DeletePlaybackConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "Name"))
|
37
|
+
DeletePlaybackConfigurationRequest.struct_class = Types::DeletePlaybackConfigurationRequest
|
38
|
+
|
39
|
+
GetPlaybackConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "Name"))
|
40
|
+
GetPlaybackConfigurationRequest.struct_class = Types::GetPlaybackConfigurationRequest
|
41
|
+
|
42
|
+
GetPlaybackConfigurationResponse.add_member(:ad_decision_server_url, Shapes::ShapeRef.new(shape: __string, location_name: "AdDecisionServerUrl"))
|
43
|
+
GetPlaybackConfigurationResponse.add_member(:cdn_configuration, Shapes::ShapeRef.new(shape: CdnConfiguration, location_name: "CdnConfiguration"))
|
44
|
+
GetPlaybackConfigurationResponse.add_member(:hls_configuration, Shapes::ShapeRef.new(shape: HlsConfiguration, location_name: "HlsConfiguration"))
|
45
|
+
GetPlaybackConfigurationResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
|
46
|
+
GetPlaybackConfigurationResponse.add_member(:playback_endpoint_prefix, Shapes::ShapeRef.new(shape: __string, location_name: "PlaybackEndpointPrefix"))
|
47
|
+
GetPlaybackConfigurationResponse.add_member(:session_initialization_endpoint_prefix, Shapes::ShapeRef.new(shape: __string, location_name: "SessionInitializationEndpointPrefix"))
|
48
|
+
GetPlaybackConfigurationResponse.add_member(:slate_ad_url, Shapes::ShapeRef.new(shape: __string, location_name: "SlateAdUrl"))
|
49
|
+
GetPlaybackConfigurationResponse.add_member(:video_content_source_url, Shapes::ShapeRef.new(shape: __string, location_name: "VideoContentSourceUrl"))
|
50
|
+
GetPlaybackConfigurationResponse.struct_class = Types::GetPlaybackConfigurationResponse
|
51
|
+
|
52
|
+
HlsConfiguration.add_member(:manifest_endpoint_prefix, Shapes::ShapeRef.new(shape: __string, location_name: "ManifestEndpointPrefix"))
|
53
|
+
HlsConfiguration.struct_class = Types::HlsConfiguration
|
54
|
+
|
55
|
+
ListPlaybackConfigurationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: __integerMin1Max100, location: "querystring", location_name: "MaxResults"))
|
56
|
+
ListPlaybackConfigurationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "NextToken"))
|
57
|
+
ListPlaybackConfigurationsRequest.struct_class = Types::ListPlaybackConfigurationsRequest
|
58
|
+
|
59
|
+
ListPlaybackConfigurationsResponse.add_member(:items, Shapes::ShapeRef.new(shape: __listOfPlaybackConfigurations, location_name: "Items"))
|
60
|
+
ListPlaybackConfigurationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
|
61
|
+
ListPlaybackConfigurationsResponse.struct_class = Types::ListPlaybackConfigurationsResponse
|
62
|
+
|
63
|
+
PlaybackConfiguration.add_member(:ad_decision_server_url, Shapes::ShapeRef.new(shape: __string, location_name: "AdDecisionServerUrl"))
|
64
|
+
PlaybackConfiguration.add_member(:cdn_configuration, Shapes::ShapeRef.new(shape: CdnConfiguration, location_name: "CdnConfiguration"))
|
65
|
+
PlaybackConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
|
66
|
+
PlaybackConfiguration.add_member(:slate_ad_url, Shapes::ShapeRef.new(shape: __string, location_name: "SlateAdUrl"))
|
67
|
+
PlaybackConfiguration.add_member(:video_content_source_url, Shapes::ShapeRef.new(shape: __string, location_name: "VideoContentSourceUrl"))
|
68
|
+
PlaybackConfiguration.struct_class = Types::PlaybackConfiguration
|
69
|
+
|
70
|
+
PutPlaybackConfigurationRequest.add_member(:ad_decision_server_url, Shapes::ShapeRef.new(shape: __string, location_name: "AdDecisionServerUrl"))
|
71
|
+
PutPlaybackConfigurationRequest.add_member(:cdn_configuration, Shapes::ShapeRef.new(shape: CdnConfiguration, location_name: "CdnConfiguration"))
|
72
|
+
PutPlaybackConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
|
73
|
+
PutPlaybackConfigurationRequest.add_member(:slate_ad_url, Shapes::ShapeRef.new(shape: __string, location_name: "SlateAdUrl"))
|
74
|
+
PutPlaybackConfigurationRequest.add_member(:video_content_source_url, Shapes::ShapeRef.new(shape: __string, location_name: "VideoContentSourceUrl"))
|
75
|
+
PutPlaybackConfigurationRequest.struct_class = Types::PutPlaybackConfigurationRequest
|
76
|
+
|
77
|
+
PutPlaybackConfigurationResponse.add_member(:ad_decision_server_url, Shapes::ShapeRef.new(shape: __string, location_name: "AdDecisionServerUrl"))
|
78
|
+
PutPlaybackConfigurationResponse.add_member(:cdn_configuration, Shapes::ShapeRef.new(shape: CdnConfiguration, location_name: "CdnConfiguration"))
|
79
|
+
PutPlaybackConfigurationResponse.add_member(:hls_configuration, Shapes::ShapeRef.new(shape: HlsConfiguration, location_name: "HlsConfiguration"))
|
80
|
+
PutPlaybackConfigurationResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
|
81
|
+
PutPlaybackConfigurationResponse.add_member(:playback_endpoint_prefix, Shapes::ShapeRef.new(shape: __string, location_name: "PlaybackEndpointPrefix"))
|
82
|
+
PutPlaybackConfigurationResponse.add_member(:session_initialization_endpoint_prefix, Shapes::ShapeRef.new(shape: __string, location_name: "SessionInitializationEndpointPrefix"))
|
83
|
+
PutPlaybackConfigurationResponse.add_member(:slate_ad_url, Shapes::ShapeRef.new(shape: __string, location_name: "SlateAdUrl"))
|
84
|
+
PutPlaybackConfigurationResponse.add_member(:video_content_source_url, Shapes::ShapeRef.new(shape: __string, location_name: "VideoContentSourceUrl"))
|
85
|
+
PutPlaybackConfigurationResponse.struct_class = Types::PutPlaybackConfigurationResponse
|
86
|
+
|
87
|
+
__listOfPlaybackConfigurations.member = Shapes::ShapeRef.new(shape: PlaybackConfiguration)
|
88
|
+
|
89
|
+
|
90
|
+
# @api private
|
91
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
92
|
+
|
93
|
+
api.version = "2018-04-23"
|
94
|
+
|
95
|
+
api.metadata = {
|
96
|
+
"endpointPrefix" => "api.mediatailor",
|
97
|
+
"jsonVersion" => "1.1",
|
98
|
+
"protocol" => "rest-json",
|
99
|
+
"serviceFullName" => "AWS MediaTailor",
|
100
|
+
"signatureVersion" => "v4",
|
101
|
+
"signingName" => "mediatailor",
|
102
|
+
}
|
103
|
+
|
104
|
+
api.add_operation(:delete_playback_configuration, Seahorse::Model::Operation.new.tap do |o|
|
105
|
+
o.name = "DeletePlaybackConfiguration"
|
106
|
+
o.http_method = "DELETE"
|
107
|
+
o.http_request_uri = "/prod/playbackConfiguration/{Name}"
|
108
|
+
o.input = Shapes::ShapeRef.new(shape: DeletePlaybackConfigurationRequest)
|
109
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
110
|
+
end)
|
111
|
+
|
112
|
+
api.add_operation(:get_playback_configuration, Seahorse::Model::Operation.new.tap do |o|
|
113
|
+
o.name = "GetPlaybackConfiguration"
|
114
|
+
o.http_method = "GET"
|
115
|
+
o.http_request_uri = "/prod/playbackConfiguration/{Name}"
|
116
|
+
o.input = Shapes::ShapeRef.new(shape: GetPlaybackConfigurationRequest)
|
117
|
+
o.output = Shapes::ShapeRef.new(shape: GetPlaybackConfigurationResponse)
|
118
|
+
end)
|
119
|
+
|
120
|
+
api.add_operation(:list_playback_configurations, Seahorse::Model::Operation.new.tap do |o|
|
121
|
+
o.name = "ListPlaybackConfigurations"
|
122
|
+
o.http_method = "GET"
|
123
|
+
o.http_request_uri = "/prod/playbackConfigurations"
|
124
|
+
o.input = Shapes::ShapeRef.new(shape: ListPlaybackConfigurationsRequest)
|
125
|
+
o.output = Shapes::ShapeRef.new(shape: ListPlaybackConfigurationsResponse)
|
126
|
+
end)
|
127
|
+
|
128
|
+
api.add_operation(:put_playback_configuration, Seahorse::Model::Operation.new.tap do |o|
|
129
|
+
o.name = "PutPlaybackConfiguration"
|
130
|
+
o.http_method = "PUT"
|
131
|
+
o.http_request_uri = "/prod/playbackConfiguration"
|
132
|
+
o.input = Shapes::ShapeRef.new(shape: PutPlaybackConfigurationRequest)
|
133
|
+
o.output = Shapes::ShapeRef.new(shape: PutPlaybackConfigurationResponse)
|
134
|
+
end)
|
135
|
+
end
|
136
|
+
|
137
|
+
end
|
138
|
+
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::MediaTailor
|
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::MediaTailor
|
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,329 @@
|
|
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::MediaTailor
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# The configuration for using a content delivery network (CDN), like
|
12
|
+
# Amazon CloudFront, for content and ad segment management.
|
13
|
+
#
|
14
|
+
# @note When making an API call, you may pass CdnConfiguration
|
15
|
+
# data as a hash:
|
16
|
+
#
|
17
|
+
# {
|
18
|
+
# ad_segment_url_prefix: "__string",
|
19
|
+
# content_segment_url_prefix: "__string",
|
20
|
+
# }
|
21
|
+
#
|
22
|
+
# @!attribute [rw] ad_segment_url_prefix
|
23
|
+
# A non-default content delivery network (CDN) to serve ad segments.
|
24
|
+
# By default, AWS Elemental MediaTailor uses Amazon CloudFront with
|
25
|
+
# default cache settings as its CDN for ad segments. To set up an
|
26
|
+
# alternate CDN, create a rule in your CDN for the following origin:
|
27
|
+
# ads.mediatailor.<region>.amazonaws.com. Then specify the rule's
|
28
|
+
# name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor
|
29
|
+
# serves a manifest, it reports your CDN as the source for ad
|
30
|
+
# segments.
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
# @!attribute [rw] content_segment_url_prefix
|
34
|
+
# A content delivery network (CDN) to cache content segments, so that
|
35
|
+
# content requests don’t always have to go to the origin server.
|
36
|
+
# First, create a rule in your CDN for the content segment origin
|
37
|
+
# server. Then specify the rule's name in this
|
38
|
+
# ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a
|
39
|
+
# manifest, it reports your CDN as the source for content segments.
|
40
|
+
# @return [String]
|
41
|
+
#
|
42
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/CdnConfiguration AWS API Documentation
|
43
|
+
#
|
44
|
+
class CdnConfiguration < Struct.new(
|
45
|
+
:ad_segment_url_prefix,
|
46
|
+
:content_segment_url_prefix)
|
47
|
+
include Aws::Structure
|
48
|
+
end
|
49
|
+
|
50
|
+
# The configuration for HLS content.
|
51
|
+
#
|
52
|
+
# @!attribute [rw] manifest_endpoint_prefix
|
53
|
+
# The URL that is used to initiate a playback session for devices that
|
54
|
+
# support Apple HLS. The session uses server-side reporting.
|
55
|
+
# @return [String]
|
56
|
+
#
|
57
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/HlsConfiguration AWS API Documentation
|
58
|
+
#
|
59
|
+
class HlsConfiguration < Struct.new(
|
60
|
+
:manifest_endpoint_prefix)
|
61
|
+
include Aws::Structure
|
62
|
+
end
|
63
|
+
|
64
|
+
# @note When making an API call, you may pass DeletePlaybackConfigurationRequest
|
65
|
+
# data as a hash:
|
66
|
+
#
|
67
|
+
# {
|
68
|
+
# name: "__string", # required
|
69
|
+
# }
|
70
|
+
#
|
71
|
+
# @!attribute [rw] name
|
72
|
+
# @return [String]
|
73
|
+
#
|
74
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/DeletePlaybackConfigurationRequest AWS API Documentation
|
75
|
+
#
|
76
|
+
class DeletePlaybackConfigurationRequest < Struct.new(
|
77
|
+
:name)
|
78
|
+
include Aws::Structure
|
79
|
+
end
|
80
|
+
|
81
|
+
# @note When making an API call, you may pass GetPlaybackConfigurationRequest
|
82
|
+
# data as a hash:
|
83
|
+
#
|
84
|
+
# {
|
85
|
+
# name: "__string", # required
|
86
|
+
# }
|
87
|
+
#
|
88
|
+
# @!attribute [rw] name
|
89
|
+
# @return [String]
|
90
|
+
#
|
91
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/GetPlaybackConfigurationRequest AWS API Documentation
|
92
|
+
#
|
93
|
+
class GetPlaybackConfigurationRequest < Struct.new(
|
94
|
+
:name)
|
95
|
+
include Aws::Structure
|
96
|
+
end
|
97
|
+
|
98
|
+
# @!attribute [rw] ad_decision_server_url
|
99
|
+
# The URL for the ad decision server (ADS). This includes the
|
100
|
+
# specification of static parameters and placeholders for dynamic
|
101
|
+
# parameters. AWS Elemental MediaTailor substitutes player-specific
|
102
|
+
# and session-specific parameters as needed when calling the ADS.
|
103
|
+
# Alternately, for testing, you can provide a static VAST URL. The
|
104
|
+
# maximum length is 25000 characters.
|
105
|
+
# @return [String]
|
106
|
+
#
|
107
|
+
# @!attribute [rw] cdn_configuration
|
108
|
+
# The configuration for using a content delivery network (CDN), like
|
109
|
+
# Amazon CloudFront, for content and ad segment management.
|
110
|
+
# @return [Types::CdnConfiguration]
|
111
|
+
#
|
112
|
+
# @!attribute [rw] hls_configuration
|
113
|
+
# The configuration for HLS content.
|
114
|
+
# @return [Types::HlsConfiguration]
|
115
|
+
#
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# The identifier for the configuration.
|
118
|
+
# @return [String]
|
119
|
+
#
|
120
|
+
# @!attribute [rw] playback_endpoint_prefix
|
121
|
+
# The URL that the player accesses to get a manifest from AWS
|
122
|
+
# Elemental MediaTailor. This session will use server-side reporting.
|
123
|
+
# @return [String]
|
124
|
+
#
|
125
|
+
# @!attribute [rw] session_initialization_endpoint_prefix
|
126
|
+
# The URL that the player uses to initialize a session that uses
|
127
|
+
# client-side reporting.
|
128
|
+
# @return [String]
|
129
|
+
#
|
130
|
+
# @!attribute [rw] slate_ad_url
|
131
|
+
# URL for a high-quality video asset to transcode and use to fill in
|
132
|
+
# time that's not used by ads. AWS Elemental MediaTailor shows the
|
133
|
+
# slate to fill in gaps in media content. Configuring the slate is
|
134
|
+
# optional for non-VPAID configurations. For VPAID, the slate is
|
135
|
+
# required because AWS Elemental MediaTailor provides it in the slots
|
136
|
+
# designated for dynamic ad content. The slate must be a high-quality
|
137
|
+
# asset that contains both audio and video.
|
138
|
+
# @return [String]
|
139
|
+
#
|
140
|
+
# @!attribute [rw] video_content_source_url
|
141
|
+
# The URL prefix for the master playlist for the stream, minus the
|
142
|
+
# asset ID. The maximum length is 512 characters.
|
143
|
+
# @return [String]
|
144
|
+
#
|
145
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/GetPlaybackConfigurationResponse AWS API Documentation
|
146
|
+
#
|
147
|
+
class GetPlaybackConfigurationResponse < Struct.new(
|
148
|
+
:ad_decision_server_url,
|
149
|
+
:cdn_configuration,
|
150
|
+
:hls_configuration,
|
151
|
+
:name,
|
152
|
+
:playback_endpoint_prefix,
|
153
|
+
:session_initialization_endpoint_prefix,
|
154
|
+
:slate_ad_url,
|
155
|
+
:video_content_source_url)
|
156
|
+
include Aws::Structure
|
157
|
+
end
|
158
|
+
|
159
|
+
# @!attribute [rw] ad_decision_server_url
|
160
|
+
# @return [String]
|
161
|
+
#
|
162
|
+
# @!attribute [rw] cdn_configuration
|
163
|
+
# The configuration for using a content delivery network (CDN), like
|
164
|
+
# Amazon CloudFront, for content and ad segment management.
|
165
|
+
# @return [Types::CdnConfiguration]
|
166
|
+
#
|
167
|
+
# @!attribute [rw] name
|
168
|
+
# @return [String]
|
169
|
+
#
|
170
|
+
# @!attribute [rw] slate_ad_url
|
171
|
+
# @return [String]
|
172
|
+
#
|
173
|
+
# @!attribute [rw] video_content_source_url
|
174
|
+
# @return [String]
|
175
|
+
#
|
176
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/PlaybackConfiguration AWS API Documentation
|
177
|
+
#
|
178
|
+
class PlaybackConfiguration < Struct.new(
|
179
|
+
:ad_decision_server_url,
|
180
|
+
:cdn_configuration,
|
181
|
+
:name,
|
182
|
+
:slate_ad_url,
|
183
|
+
:video_content_source_url)
|
184
|
+
include Aws::Structure
|
185
|
+
end
|
186
|
+
|
187
|
+
# @note When making an API call, you may pass ListPlaybackConfigurationsRequest
|
188
|
+
# data as a hash:
|
189
|
+
#
|
190
|
+
# {
|
191
|
+
# max_results: 1,
|
192
|
+
# next_token: "__string",
|
193
|
+
# }
|
194
|
+
#
|
195
|
+
# @!attribute [rw] max_results
|
196
|
+
# @return [Integer]
|
197
|
+
#
|
198
|
+
# @!attribute [rw] next_token
|
199
|
+
# @return [String]
|
200
|
+
#
|
201
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListPlaybackConfigurationsRequest AWS API Documentation
|
202
|
+
#
|
203
|
+
class ListPlaybackConfigurationsRequest < Struct.new(
|
204
|
+
:max_results,
|
205
|
+
:next_token)
|
206
|
+
include Aws::Structure
|
207
|
+
end
|
208
|
+
|
209
|
+
# @!attribute [rw] items
|
210
|
+
# Array of playback configurations. This may be all of the available
|
211
|
+
# configurations or a subset, depending on the settings you provide
|
212
|
+
# and on the total number of configurations stored.
|
213
|
+
# @return [Array<Types::PlaybackConfiguration>]
|
214
|
+
#
|
215
|
+
# @!attribute [rw] next_token
|
216
|
+
# Pagination token returned by the GET list request when results
|
217
|
+
# overrun the meximum allowed. Use the token to fetch the next page of
|
218
|
+
# results.
|
219
|
+
# @return [String]
|
220
|
+
#
|
221
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListPlaybackConfigurationsResponse AWS API Documentation
|
222
|
+
#
|
223
|
+
class ListPlaybackConfigurationsResponse < Struct.new(
|
224
|
+
:items,
|
225
|
+
:next_token)
|
226
|
+
include Aws::Structure
|
227
|
+
end
|
228
|
+
|
229
|
+
# @note When making an API call, you may pass PutPlaybackConfigurationRequest
|
230
|
+
# data as a hash:
|
231
|
+
#
|
232
|
+
# {
|
233
|
+
# ad_decision_server_url: "__string",
|
234
|
+
# cdn_configuration: {
|
235
|
+
# ad_segment_url_prefix: "__string",
|
236
|
+
# content_segment_url_prefix: "__string",
|
237
|
+
# },
|
238
|
+
# name: "__string",
|
239
|
+
# slate_ad_url: "__string",
|
240
|
+
# video_content_source_url: "__string",
|
241
|
+
# }
|
242
|
+
#
|
243
|
+
# @!attribute [rw] ad_decision_server_url
|
244
|
+
# The URL for the ad decision server (ADS). This includes the
|
245
|
+
# specification of static parameters and placeholders for dynamic
|
246
|
+
# parameters. AWS Elemental MediaTailor substitutes player-specific
|
247
|
+
# and session-specific parameters as needed when calling the ADS.
|
248
|
+
# Alternately, for testing you can provide a static VAST URL. The
|
249
|
+
# maximum length is 25000 characters.
|
250
|
+
# @return [String]
|
251
|
+
#
|
252
|
+
# @!attribute [rw] cdn_configuration
|
253
|
+
# The configuration for using a content delivery network (CDN), like
|
254
|
+
# Amazon CloudFront, for content and ad segment management.
|
255
|
+
# @return [Types::CdnConfiguration]
|
256
|
+
#
|
257
|
+
# @!attribute [rw] name
|
258
|
+
# The identifier for the configuration.
|
259
|
+
# @return [String]
|
260
|
+
#
|
261
|
+
# @!attribute [rw] slate_ad_url
|
262
|
+
# The URL for a high-quality video asset to transcode and use to fill
|
263
|
+
# in time that's not used by ads. AWS Elemental MediaTailor shows the
|
264
|
+
# slate to fill in gaps in media content. Configuring the slate is
|
265
|
+
# optional for non-VPAID configurations. For VPAID, the slate is
|
266
|
+
# required because AWS Elemental MediaTailor provides it in the slots
|
267
|
+
# that are designated for dynamic ad content. The slate must be a
|
268
|
+
# high-quality asset that contains both audio and video.
|
269
|
+
# @return [String]
|
270
|
+
#
|
271
|
+
# @!attribute [rw] video_content_source_url
|
272
|
+
# The URL prefix for the master playlist for the stream, minus the
|
273
|
+
# asset ID. The maximum length is 512 characters.
|
274
|
+
# @return [String]
|
275
|
+
#
|
276
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/PutPlaybackConfigurationRequest AWS API Documentation
|
277
|
+
#
|
278
|
+
class PutPlaybackConfigurationRequest < Struct.new(
|
279
|
+
:ad_decision_server_url,
|
280
|
+
:cdn_configuration,
|
281
|
+
:name,
|
282
|
+
:slate_ad_url,
|
283
|
+
:video_content_source_url)
|
284
|
+
include Aws::Structure
|
285
|
+
end
|
286
|
+
|
287
|
+
# @!attribute [rw] ad_decision_server_url
|
288
|
+
# @return [String]
|
289
|
+
#
|
290
|
+
# @!attribute [rw] cdn_configuration
|
291
|
+
# The configuration for using a content delivery network (CDN), like
|
292
|
+
# Amazon CloudFront, for content and ad segment management.
|
293
|
+
# @return [Types::CdnConfiguration]
|
294
|
+
#
|
295
|
+
# @!attribute [rw] hls_configuration
|
296
|
+
# The configuration for HLS content.
|
297
|
+
# @return [Types::HlsConfiguration]
|
298
|
+
#
|
299
|
+
# @!attribute [rw] name
|
300
|
+
# @return [String]
|
301
|
+
#
|
302
|
+
# @!attribute [rw] playback_endpoint_prefix
|
303
|
+
# @return [String]
|
304
|
+
#
|
305
|
+
# @!attribute [rw] session_initialization_endpoint_prefix
|
306
|
+
# @return [String]
|
307
|
+
#
|
308
|
+
# @!attribute [rw] slate_ad_url
|
309
|
+
# @return [String]
|
310
|
+
#
|
311
|
+
# @!attribute [rw] video_content_source_url
|
312
|
+
# @return [String]
|
313
|
+
#
|
314
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/PutPlaybackConfigurationResponse AWS API Documentation
|
315
|
+
#
|
316
|
+
class PutPlaybackConfigurationResponse < Struct.new(
|
317
|
+
:ad_decision_server_url,
|
318
|
+
:cdn_configuration,
|
319
|
+
:hls_configuration,
|
320
|
+
:name,
|
321
|
+
:playback_endpoint_prefix,
|
322
|
+
:session_initialization_endpoint_prefix,
|
323
|
+
:slate_ad_url,
|
324
|
+
:video_content_source_url)
|
325
|
+
include Aws::Structure
|
326
|
+
end
|
327
|
+
|
328
|
+
end
|
329
|
+
end
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-mediatailor
|
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: 2018-06-01 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 MediaTailor (MediaTailor). This gem is
|
42
|
+
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-mediatailor.rb
|
50
|
+
- lib/aws-sdk-mediatailor/client.rb
|
51
|
+
- lib/aws-sdk-mediatailor/client_api.rb
|
52
|
+
- lib/aws-sdk-mediatailor/customizations.rb
|
53
|
+
- lib/aws-sdk-mediatailor/errors.rb
|
54
|
+
- lib/aws-sdk-mediatailor/resource.rb
|
55
|
+
- lib/aws-sdk-mediatailor/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-mediatailor
|
61
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-mediatailor/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.2.3
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: AWS SDK for Ruby - MediaTailor
|
82
|
+
test_files: []
|