UNPKG

20.7 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class MediaTailor extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: MediaTailor.Types.ClientConfiguration)
13 config: Config & MediaTailor.Types.ClientConfiguration;
14 /**
15 * Deletes the playback configuration for the specified name.
16 */
17 deletePlaybackConfiguration(params: MediaTailor.Types.DeletePlaybackConfigurationRequest, callback?: (err: AWSError, data: MediaTailor.Types.DeletePlaybackConfigurationResponse) => void): Request<MediaTailor.Types.DeletePlaybackConfigurationResponse, AWSError>;
18 /**
19 * Deletes the playback configuration for the specified name.
20 */
21 deletePlaybackConfiguration(callback?: (err: AWSError, data: MediaTailor.Types.DeletePlaybackConfigurationResponse) => void): Request<MediaTailor.Types.DeletePlaybackConfigurationResponse, AWSError>;
22 /**
23 * Returns the playback configuration for the specified name.
24 */
25 getPlaybackConfiguration(params: MediaTailor.Types.GetPlaybackConfigurationRequest, callback?: (err: AWSError, data: MediaTailor.Types.GetPlaybackConfigurationResponse) => void): Request<MediaTailor.Types.GetPlaybackConfigurationResponse, AWSError>;
26 /**
27 * Returns the playback configuration for the specified name.
28 */
29 getPlaybackConfiguration(callback?: (err: AWSError, data: MediaTailor.Types.GetPlaybackConfigurationResponse) => void): Request<MediaTailor.Types.GetPlaybackConfigurationResponse, AWSError>;
30 /**
31 * Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful.
32 */
33 listPlaybackConfigurations(params: MediaTailor.Types.ListPlaybackConfigurationsRequest, callback?: (err: AWSError, data: MediaTailor.Types.ListPlaybackConfigurationsResponse) => void): Request<MediaTailor.Types.ListPlaybackConfigurationsResponse, AWSError>;
34 /**
35 * Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful.
36 */
37 listPlaybackConfigurations(callback?: (err: AWSError, data: MediaTailor.Types.ListPlaybackConfigurationsResponse) => void): Request<MediaTailor.Types.ListPlaybackConfigurationsResponse, AWSError>;
38 /**
39 * Returns a list of the tags assigned to the specified playback configuration resource.
40 */
41 listTagsForResource(params: MediaTailor.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: MediaTailor.Types.ListTagsForResourceResponse) => void): Request<MediaTailor.Types.ListTagsForResourceResponse, AWSError>;
42 /**
43 * Returns a list of the tags assigned to the specified playback configuration resource.
44 */
45 listTagsForResource(callback?: (err: AWSError, data: MediaTailor.Types.ListTagsForResourceResponse) => void): Request<MediaTailor.Types.ListTagsForResourceResponse, AWSError>;
46 /**
47 * Adds a new playback configuration to AWS Elemental MediaTailor.
48 */
49 putPlaybackConfiguration(params: MediaTailor.Types.PutPlaybackConfigurationRequest, callback?: (err: AWSError, data: MediaTailor.Types.PutPlaybackConfigurationResponse) => void): Request<MediaTailor.Types.PutPlaybackConfigurationResponse, AWSError>;
50 /**
51 * Adds a new playback configuration to AWS Elemental MediaTailor.
52 */
53 putPlaybackConfiguration(callback?: (err: AWSError, data: MediaTailor.Types.PutPlaybackConfigurationResponse) => void): Request<MediaTailor.Types.PutPlaybackConfigurationResponse, AWSError>;
54 /**
55 * Adds tags to the specified playback configuration resource. You can specify one or more tags to add.
56 */
57 tagResource(params: MediaTailor.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
58 /**
59 * Adds tags to the specified playback configuration resource. You can specify one or more tags to add.
60 */
61 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
62 /**
63 * Removes tags from the specified playback configuration resource. You can specify one or more tags to remove.
64 */
65 untagResource(params: MediaTailor.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
66 /**
67 * Removes tags from the specified playback configuration resource. You can specify one or more tags to remove.
68 */
69 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
70}
71declare namespace MediaTailor {
72 export interface CdnConfiguration {
73 /**
74 * A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the following origin: ads.mediatailor.&lt;region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.
75 */
76 AdSegmentUrlPrefix?: __string;
77 /**
78 * A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.
79 */
80 ContentSegmentUrlPrefix?: __string;
81 }
82 export interface HlsConfiguration {
83 /**
84 * The URL that is used to initiate a playback session for devices that support Apple HLS. The session uses server-side reporting.
85 */
86 ManifestEndpointPrefix?: __string;
87 }
88 export interface DashConfiguration {
89 /**
90 * The URL generated by MediaTailor to initiate a playback session. The session uses server-side reporting. This setting is ignored in PUT operations.
91 */
92 ManifestEndpointPrefix?: __string;
93 /**
94 * The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.
95 */
96 MpdLocation?: __string;
97 }
98 export interface DashConfigurationForPut {
99 /**
100 * The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.
101 */
102 MpdLocation?: __string;
103 }
104 export interface DeletePlaybackConfigurationRequest {
105 /**
106 * The identifier for the playback configuration.
107 */
108 Name: __string;
109 }
110 export interface DeletePlaybackConfigurationResponse {
111 }
112 export interface GetPlaybackConfigurationRequest {
113 /**
114 * The identifier for the playback configuration.
115 */
116 Name: __string;
117 }
118 export interface GetPlaybackConfigurationResponse {
119 /**
120 * The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
121 */
122 AdDecisionServerUrl?: __string;
123 /**
124 * The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
125 */
126 CdnConfiguration?: CdnConfiguration;
127 /**
128 * The configuration for DASH content.
129 */
130 DashConfiguration?: DashConfiguration;
131 /**
132 * The configuration for HLS content.
133 */
134 HlsConfiguration?: HlsConfiguration;
135 /**
136 * The identifier for the playback configuration.
137 */
138 Name?: __string;
139 /**
140 * The Amazon Resource Name (ARN) for the playback configuration.
141 */
142 PlaybackConfigurationArn?: __string;
143 /**
144 * The URL that the player accesses to get a manifest from AWS Elemental MediaTailor. This session will use server-side reporting.
145 */
146 PlaybackEndpointPrefix?: __string;
147 /**
148 * The URL that the player uses to initialize a session that uses client-side reporting.
149 */
150 SessionInitializationEndpointPrefix?: __string;
151 /**
152 * The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
153 */
154 SlateAdUrl?: __string;
155 /**
156 * The tags assigned to the playback configuration.
157 */
158 Tags?: __mapOf__string;
159 /**
160 * The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
161 */
162 TranscodeProfileName?: __string;
163 /**
164 * The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters.
165 */
166 VideoContentSourceUrl?: __string;
167 }
168 export interface PlaybackConfiguration {
169 /**
170 * The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
171 */
172 AdDecisionServerUrl?: __string;
173 /**
174 * The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
175 */
176 CdnConfiguration?: CdnConfiguration;
177 /**
178 * The configuration for DASH content.
179 */
180 DashConfiguration?: DashConfiguration;
181 /**
182 * The configuration for HLS content.
183 */
184 HlsConfiguration?: HlsConfiguration;
185 /**
186 * The identifier for the playback configuration.
187 */
188 Name?: __string;
189 /**
190 * The Amazon Resource Name (ARN) for the playback configuration.
191 */
192 PlaybackConfigurationArn?: __string;
193 /**
194 * The URL that the player accesses to get a manifest from AWS Elemental MediaTailor. This session will use server-side reporting.
195 */
196 PlaybackEndpointPrefix?: __string;
197 /**
198 * The URL that the player uses to initialize a session that uses client-side reporting.
199 */
200 SessionInitializationEndpointPrefix?: __string;
201 /**
202 * The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
203 */
204 SlateAdUrl?: __string;
205 /**
206 * The tags assigned to the playback configuration.
207 */
208 Tags?: __mapOf__string;
209 /**
210 * The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
211 */
212 TranscodeProfileName?: __string;
213 /**
214 * The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters.
215 */
216 VideoContentSourceUrl?: __string;
217 }
218 export interface ListPlaybackConfigurationsRequest {
219 /**
220 * Maximum number of records to return.
221 */
222 MaxResults?: __integerMin1Max100;
223 /**
224 * Pagination token returned by the GET list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
225 */
226 NextToken?: __string;
227 }
228 export interface ListPlaybackConfigurationsResponse {
229 /**
230 * Array of playback configurations. This might be all the available configurations or a subset, depending on the settings that you provide and the total number of configurations stored.
231 */
232 Items?: __listOfPlaybackConfigurations;
233 /**
234 * Pagination token returned by the GET list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
235 */
236 NextToken?: __string;
237 }
238 export interface ListTagsForResourceRequest {
239 /**
240 * The Amazon Resource Name (ARN) for the playback configuration. You can get this from the response to any playback configuration request.
241 */
242 ResourceArn: __string;
243 }
244 export interface ListTagsForResourceResponse {
245 /**
246 * A comma-separated list of tag key:value pairs. For example:
247 {
248 "Key1": "Value1",
249 "Key2": "Value2"
250 }
251
252 */
253 Tags?: __mapOf__string;
254 }
255 export interface PutPlaybackConfigurationRequest {
256 /**
257 * The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.
258 */
259 AdDecisionServerUrl?: __string;
260 /**
261 * The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
262 */
263 CdnConfiguration?: CdnConfiguration;
264 /**
265 * The configuration for DASH content.
266 */
267 DashConfiguration?: DashConfigurationForPut;
268 /**
269 * The identifier for the playback configuration.
270 */
271 Name?: __string;
272 /**
273 * The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because MediaTailor provides it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
274 */
275 SlateAdUrl?: __string;
276 /**
277 * The tags to assign to the playback configuration.
278 */
279 Tags?: __mapOf__string;
280 /**
281 * The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
282 */
283 TranscodeProfileName?: __string;
284 /**
285 * The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters.
286 */
287 VideoContentSourceUrl?: __string;
288 }
289 export interface PutPlaybackConfigurationResponse {
290 /**
291 * The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
292 */
293 AdDecisionServerUrl?: __string;
294 /**
295 * The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
296 */
297 CdnConfiguration?: CdnConfiguration;
298 /**
299 * The configuration for DASH content.
300 */
301 DashConfiguration?: DashConfiguration;
302 /**
303 * The configuration for HLS content.
304 */
305 HlsConfiguration?: HlsConfiguration;
306 /**
307 * The identifier for the playback configuration.
308 */
309 Name?: __string;
310 /**
311 * The Amazon Resource Name (ARN) for the playback configuration.
312 */
313 PlaybackConfigurationArn?: __string;
314 /**
315 * The URL that the player accesses to get a manifest from AWS Elemental MediaTailor. This session will use server-side reporting.
316 */
317 PlaybackEndpointPrefix?: __string;
318 /**
319 * The URL that the player uses to initialize a session that uses client-side reporting.
320 */
321 SessionInitializationEndpointPrefix?: __string;
322 /**
323 * The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.
324 */
325 SlateAdUrl?: __string;
326 /**
327 * The tags assigned to the playback configuration.
328 */
329 Tags?: __mapOf__string;
330 /**
331 * The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.
332 */
333 TranscodeProfileName?: __string;
334 /**
335 * The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters.
336 */
337 VideoContentSourceUrl?: __string;
338 }
339 export interface TagResourceRequest {
340 /**
341 * The Amazon Resource Name (ARN) for the playback configuration. You can get this from the response to any playback configuration request.
342 */
343 ResourceArn: __string;
344 /**
345 * A comma-separated list of tag key:value pairs. For example:
346 {
347 "Key1": "Value1",
348 "Key2": "Value2"
349 }
350
351 */
352 Tags: __mapOf__string;
353 }
354 export interface UntagResourceRequest {
355 /**
356 * The Amazon Resource Name (ARN) for the playback configuration. You can get this from the response to any playback configuration request.
357 */
358 ResourceArn: __string;
359 /**
360 * A comma-separated list of the tag keys to remove from the playback configuration.
361 */
362 TagKeys: __listOf__string;
363 }
364 export type __listOfPlaybackConfigurations = PlaybackConfiguration[];
365 export type __listOf__string = __string[];
366 export type __mapOf__string = {[key: string]: __string};
367 export type __string = string;
368 export type __integerMin1Max100 = number;
369 /**
370 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
371 */
372 export type apiVersion = "2018-04-23"|"latest"|string;
373 export interface ClientApiVersions {
374 /**
375 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
376 */
377 apiVersion?: apiVersion;
378 }
379 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
380 /**
381 * Contains interfaces for use with the MediaTailor client.
382 */
383 export import Types = MediaTailor;
384}
385export = MediaTailor;