UNPKG

43.9 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 MediaConnect extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: MediaConnect.Types.ClientConfiguration)
13 config: Config & MediaConnect.Types.ClientConfiguration;
14 /**
15 * Adds outputs to an existing flow. You can create up to 50 outputs per flow.
16 */
17 addFlowOutputs(params: MediaConnect.Types.AddFlowOutputsRequest, callback?: (err: AWSError, data: MediaConnect.Types.AddFlowOutputsResponse) => void): Request<MediaConnect.Types.AddFlowOutputsResponse, AWSError>;
18 /**
19 * Adds outputs to an existing flow. You can create up to 50 outputs per flow.
20 */
21 addFlowOutputs(callback?: (err: AWSError, data: MediaConnect.Types.AddFlowOutputsResponse) => void): Request<MediaConnect.Types.AddFlowOutputsResponse, AWSError>;
22 /**
23 * Adds Sources to flow
24 */
25 addFlowSources(params: MediaConnect.Types.AddFlowSourcesRequest, callback?: (err: AWSError, data: MediaConnect.Types.AddFlowSourcesResponse) => void): Request<MediaConnect.Types.AddFlowSourcesResponse, AWSError>;
26 /**
27 * Adds Sources to flow
28 */
29 addFlowSources(callback?: (err: AWSError, data: MediaConnect.Types.AddFlowSourcesResponse) => void): Request<MediaConnect.Types.AddFlowSourcesResponse, AWSError>;
30 /**
31 * Creates a new flow. The request must include one source. The request optionally can include outputs (up to 50) and entitlements (up to 50).
32 */
33 createFlow(params: MediaConnect.Types.CreateFlowRequest, callback?: (err: AWSError, data: MediaConnect.Types.CreateFlowResponse) => void): Request<MediaConnect.Types.CreateFlowResponse, AWSError>;
34 /**
35 * Creates a new flow. The request must include one source. The request optionally can include outputs (up to 50) and entitlements (up to 50).
36 */
37 createFlow(callback?: (err: AWSError, data: MediaConnect.Types.CreateFlowResponse) => void): Request<MediaConnect.Types.CreateFlowResponse, AWSError>;
38 /**
39 * Deletes a flow. Before you can delete a flow, you must stop the flow.
40 */
41 deleteFlow(params: MediaConnect.Types.DeleteFlowRequest, callback?: (err: AWSError, data: MediaConnect.Types.DeleteFlowResponse) => void): Request<MediaConnect.Types.DeleteFlowResponse, AWSError>;
42 /**
43 * Deletes a flow. Before you can delete a flow, you must stop the flow.
44 */
45 deleteFlow(callback?: (err: AWSError, data: MediaConnect.Types.DeleteFlowResponse) => void): Request<MediaConnect.Types.DeleteFlowResponse, AWSError>;
46 /**
47 * Displays the details of a flow. The response includes the flow ARN, name, and Availability Zone, as well as details about the source, outputs, and entitlements.
48 */
49 describeFlow(params: MediaConnect.Types.DescribeFlowRequest, callback?: (err: AWSError, data: MediaConnect.Types.DescribeFlowResponse) => void): Request<MediaConnect.Types.DescribeFlowResponse, AWSError>;
50 /**
51 * Displays the details of a flow. The response includes the flow ARN, name, and Availability Zone, as well as details about the source, outputs, and entitlements.
52 */
53 describeFlow(callback?: (err: AWSError, data: MediaConnect.Types.DescribeFlowResponse) => void): Request<MediaConnect.Types.DescribeFlowResponse, AWSError>;
54 /**
55 * Grants entitlements to an existing flow.
56 */
57 grantFlowEntitlements(params: MediaConnect.Types.GrantFlowEntitlementsRequest, callback?: (err: AWSError, data: MediaConnect.Types.GrantFlowEntitlementsResponse) => void): Request<MediaConnect.Types.GrantFlowEntitlementsResponse, AWSError>;
58 /**
59 * Grants entitlements to an existing flow.
60 */
61 grantFlowEntitlements(callback?: (err: AWSError, data: MediaConnect.Types.GrantFlowEntitlementsResponse) => void): Request<MediaConnect.Types.GrantFlowEntitlementsResponse, AWSError>;
62 /**
63 * Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.
64 */
65 listEntitlements(params: MediaConnect.Types.ListEntitlementsRequest, callback?: (err: AWSError, data: MediaConnect.Types.ListEntitlementsResponse) => void): Request<MediaConnect.Types.ListEntitlementsResponse, AWSError>;
66 /**
67 * Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.
68 */
69 listEntitlements(callback?: (err: AWSError, data: MediaConnect.Types.ListEntitlementsResponse) => void): Request<MediaConnect.Types.ListEntitlementsResponse, AWSError>;
70 /**
71 * Displays a list of flows that are associated with this account. This request returns a paginated result.
72 */
73 listFlows(params: MediaConnect.Types.ListFlowsRequest, callback?: (err: AWSError, data: MediaConnect.Types.ListFlowsResponse) => void): Request<MediaConnect.Types.ListFlowsResponse, AWSError>;
74 /**
75 * Displays a list of flows that are associated with this account. This request returns a paginated result.
76 */
77 listFlows(callback?: (err: AWSError, data: MediaConnect.Types.ListFlowsResponse) => void): Request<MediaConnect.Types.ListFlowsResponse, AWSError>;
78 /**
79 * List all tags on an AWS Elemental MediaConnect resource
80 */
81 listTagsForResource(params: MediaConnect.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: MediaConnect.Types.ListTagsForResourceResponse) => void): Request<MediaConnect.Types.ListTagsForResourceResponse, AWSError>;
82 /**
83 * List all tags on an AWS Elemental MediaConnect resource
84 */
85 listTagsForResource(callback?: (err: AWSError, data: MediaConnect.Types.ListTagsForResourceResponse) => void): Request<MediaConnect.Types.ListTagsForResourceResponse, AWSError>;
86 /**
87 * Removes an output from an existing flow. This request can be made only on an output that does not have an entitlement associated with it. If the output has an entitlement, you must revoke the entitlement instead. When an entitlement is revoked from a flow, the service automatically removes the associated output.
88 */
89 removeFlowOutput(params: MediaConnect.Types.RemoveFlowOutputRequest, callback?: (err: AWSError, data: MediaConnect.Types.RemoveFlowOutputResponse) => void): Request<MediaConnect.Types.RemoveFlowOutputResponse, AWSError>;
90 /**
91 * Removes an output from an existing flow. This request can be made only on an output that does not have an entitlement associated with it. If the output has an entitlement, you must revoke the entitlement instead. When an entitlement is revoked from a flow, the service automatically removes the associated output.
92 */
93 removeFlowOutput(callback?: (err: AWSError, data: MediaConnect.Types.RemoveFlowOutputResponse) => void): Request<MediaConnect.Types.RemoveFlowOutputResponse, AWSError>;
94 /**
95 * Removes a source from an existing flow. This request can be made only if there is more than one source on the flow.
96 */
97 removeFlowSource(params: MediaConnect.Types.RemoveFlowSourceRequest, callback?: (err: AWSError, data: MediaConnect.Types.RemoveFlowSourceResponse) => void): Request<MediaConnect.Types.RemoveFlowSourceResponse, AWSError>;
98 /**
99 * Removes a source from an existing flow. This request can be made only if there is more than one source on the flow.
100 */
101 removeFlowSource(callback?: (err: AWSError, data: MediaConnect.Types.RemoveFlowSourceResponse) => void): Request<MediaConnect.Types.RemoveFlowSourceResponse, AWSError>;
102 /**
103 * Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.
104 */
105 revokeFlowEntitlement(params: MediaConnect.Types.RevokeFlowEntitlementRequest, callback?: (err: AWSError, data: MediaConnect.Types.RevokeFlowEntitlementResponse) => void): Request<MediaConnect.Types.RevokeFlowEntitlementResponse, AWSError>;
106 /**
107 * Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.
108 */
109 revokeFlowEntitlement(callback?: (err: AWSError, data: MediaConnect.Types.RevokeFlowEntitlementResponse) => void): Request<MediaConnect.Types.RevokeFlowEntitlementResponse, AWSError>;
110 /**
111 * Starts a flow.
112 */
113 startFlow(params: MediaConnect.Types.StartFlowRequest, callback?: (err: AWSError, data: MediaConnect.Types.StartFlowResponse) => void): Request<MediaConnect.Types.StartFlowResponse, AWSError>;
114 /**
115 * Starts a flow.
116 */
117 startFlow(callback?: (err: AWSError, data: MediaConnect.Types.StartFlowResponse) => void): Request<MediaConnect.Types.StartFlowResponse, AWSError>;
118 /**
119 * Stops a flow.
120 */
121 stopFlow(params: MediaConnect.Types.StopFlowRequest, callback?: (err: AWSError, data: MediaConnect.Types.StopFlowResponse) => void): Request<MediaConnect.Types.StopFlowResponse, AWSError>;
122 /**
123 * Stops a flow.
124 */
125 stopFlow(callback?: (err: AWSError, data: MediaConnect.Types.StopFlowResponse) => void): Request<MediaConnect.Types.StopFlowResponse, AWSError>;
126 /**
127 * Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.
128 */
129 tagResource(params: MediaConnect.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
130 /**
131 * Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.
132 */
133 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
134 /**
135 * Deletes specified tags from a resource.
136 */
137 untagResource(params: MediaConnect.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
138 /**
139 * Deletes specified tags from a resource.
140 */
141 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
142 /**
143 * Updates flow
144 */
145 updateFlow(params: MediaConnect.Types.UpdateFlowRequest, callback?: (err: AWSError, data: MediaConnect.Types.UpdateFlowResponse) => void): Request<MediaConnect.Types.UpdateFlowResponse, AWSError>;
146 /**
147 * Updates flow
148 */
149 updateFlow(callback?: (err: AWSError, data: MediaConnect.Types.UpdateFlowResponse) => void): Request<MediaConnect.Types.UpdateFlowResponse, AWSError>;
150 /**
151 * You can change an entitlement's description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed.
152 */
153 updateFlowEntitlement(params: MediaConnect.Types.UpdateFlowEntitlementRequest, callback?: (err: AWSError, data: MediaConnect.Types.UpdateFlowEntitlementResponse) => void): Request<MediaConnect.Types.UpdateFlowEntitlementResponse, AWSError>;
154 /**
155 * You can change an entitlement's description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed.
156 */
157 updateFlowEntitlement(callback?: (err: AWSError, data: MediaConnect.Types.UpdateFlowEntitlementResponse) => void): Request<MediaConnect.Types.UpdateFlowEntitlementResponse, AWSError>;
158 /**
159 * Updates an existing flow output.
160 */
161 updateFlowOutput(params: MediaConnect.Types.UpdateFlowOutputRequest, callback?: (err: AWSError, data: MediaConnect.Types.UpdateFlowOutputResponse) => void): Request<MediaConnect.Types.UpdateFlowOutputResponse, AWSError>;
162 /**
163 * Updates an existing flow output.
164 */
165 updateFlowOutput(callback?: (err: AWSError, data: MediaConnect.Types.UpdateFlowOutputResponse) => void): Request<MediaConnect.Types.UpdateFlowOutputResponse, AWSError>;
166 /**
167 * Updates the source of a flow.
168 */
169 updateFlowSource(params: MediaConnect.Types.UpdateFlowSourceRequest, callback?: (err: AWSError, data: MediaConnect.Types.UpdateFlowSourceResponse) => void): Request<MediaConnect.Types.UpdateFlowSourceResponse, AWSError>;
170 /**
171 * Updates the source of a flow.
172 */
173 updateFlowSource(callback?: (err: AWSError, data: MediaConnect.Types.UpdateFlowSourceResponse) => void): Request<MediaConnect.Types.UpdateFlowSourceResponse, AWSError>;
174}
175declare namespace MediaConnect {
176 export interface AddFlowOutputsRequest {
177 /**
178 * The flow that you want to add outputs to.
179 */
180 FlowArn: __string;
181 /**
182 * A list of outputs that you want to add.
183 */
184 Outputs: __listOfAddOutputRequest;
185 }
186 export interface AddFlowOutputsResponse {
187 /**
188 * The ARN of the flow that these outputs were added to.
189 */
190 FlowArn?: __string;
191 /**
192 * The details of the newly added outputs.
193 */
194 Outputs?: __listOfOutput;
195 }
196 export interface AddFlowSourcesRequest {
197 /**
198 * The flow that you want to mutate.
199 */
200 FlowArn: __string;
201 /**
202 * A list of sources that you want to add.
203 */
204 Sources: __listOfSetSourceRequest;
205 }
206 export interface AddFlowSourcesResponse {
207 /**
208 * The ARN of the flow that these sources were added to.
209 */
210 FlowArn?: __string;
211 /**
212 * The details of the newly added sources.
213 */
214 Sources?: __listOfSource;
215 }
216 export interface AddOutputRequest {
217 /**
218 * The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
219 */
220 CidrAllowList?: __listOf__string;
221 /**
222 * A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
223 */
224 Description?: __string;
225 /**
226 * The IP address from which video will be sent to output destinations.
227 */
228 Destination?: __string;
229 /**
230 * The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
231 */
232 Encryption?: Encryption;
233 /**
234 * The maximum latency in milliseconds for Zixi-based streams.
235 */
236 MaxLatency?: __integer;
237 /**
238 * The name of the output. This value must be unique within the current flow.
239 */
240 Name?: __string;
241 /**
242 * The port to use when content is distributed to this output.
243 */
244 Port?: __integer;
245 /**
246 * The protocol to use for the output.
247 */
248 Protocol: Protocol;
249 /**
250 * The remote ID for the Zixi-pull output stream.
251 */
252 RemoteId?: __string;
253 /**
254 * The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
255 */
256 SmoothingLatency?: __integer;
257 /**
258 * The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
259 */
260 StreamId?: __string;
261 }
262 export type Algorithm = "aes128"|"aes192"|"aes256"|string;
263 export interface CreateFlowRequest {
264 /**
265 * The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS Region.
266 */
267 AvailabilityZone?: __string;
268 /**
269 * The entitlements that you want to grant on a flow.
270 */
271 Entitlements?: __listOfGrantEntitlementRequest;
272 /**
273 * The name of the flow.
274 */
275 Name: __string;
276 /**
277 * The outputs that you want to add to this flow.
278 */
279 Outputs?: __listOfAddOutputRequest;
280 Source?: SetSourceRequest;
281 SourceFailoverConfig?: FailoverConfig;
282 Sources?: __listOfSetSourceRequest;
283 }
284 export interface CreateFlowResponse {
285 Flow?: Flow;
286 }
287 export interface DeleteFlowRequest {
288 /**
289 * The ARN of the flow that you want to delete.
290 */
291 FlowArn: __string;
292 }
293 export interface DeleteFlowResponse {
294 /**
295 * The ARN of the flow that was deleted.
296 */
297 FlowArn?: __string;
298 /**
299 * The status of the flow when the DeleteFlow process begins.
300 */
301 Status?: Status;
302 }
303 export interface DescribeFlowRequest {
304 /**
305 * The ARN of the flow that you want to describe.
306 */
307 FlowArn: __string;
308 }
309 export interface DescribeFlowResponse {
310 Flow?: Flow;
311 Messages?: Messages;
312 }
313 export interface Encryption {
314 /**
315 * The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
316 */
317 Algorithm: Algorithm;
318 /**
319 * A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.
320 */
321 ConstantInitializationVector?: __string;
322 /**
323 * The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.
324 */
325 DeviceId?: __string;
326 /**
327 * The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
328 */
329 KeyType?: KeyType;
330 /**
331 * The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.
332 */
333 Region?: __string;
334 /**
335 * An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.
336 */
337 ResourceId?: __string;
338 /**
339 * The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
340 */
341 RoleArn: __string;
342 /**
343 * The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.
344 */
345 SecretArn?: __string;
346 /**
347 * The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.
348 */
349 Url?: __string;
350 }
351 export interface Entitlement {
352 /**
353 * Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
354 */
355 DataTransferSubscriberFeePercent?: __integer;
356 /**
357 * A description of the entitlement.
358 */
359 Description?: __string;
360 /**
361 * The type of encryption that will be used on the output that is associated with this entitlement.
362 */
363 Encryption?: Encryption;
364 /**
365 * The ARN of the entitlement.
366 */
367 EntitlementArn: __string;
368 /**
369 * The name of the entitlement.
370 */
371 Name: __string;
372 /**
373 * The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
374 */
375 Subscribers: __listOf__string;
376 }
377 export interface FailoverConfig {
378 /**
379 * Search window time to look for dash-7 packets
380 */
381 RecoveryWindow?: __integer;
382 State?: State;
383 }
384 export interface Flow {
385 /**
386 * The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.
387 */
388 AvailabilityZone: __string;
389 /**
390 * A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
391 */
392 Description?: __string;
393 /**
394 * The IP address from which video will be sent to output destinations.
395 */
396 EgressIp?: __string;
397 /**
398 * The entitlements in this flow.
399 */
400 Entitlements: __listOfEntitlement;
401 /**
402 * The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow.
403 */
404 FlowArn: __string;
405 /**
406 * The name of the flow.
407 */
408 Name: __string;
409 /**
410 * The outputs in this flow.
411 */
412 Outputs: __listOfOutput;
413 Source: Source;
414 SourceFailoverConfig?: FailoverConfig;
415 Sources?: __listOfSource;
416 /**
417 * The current status of the flow.
418 */
419 Status: Status;
420 }
421 export interface GrantEntitlementRequest {
422 /**
423 * Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
424 */
425 DataTransferSubscriberFeePercent?: __integer;
426 /**
427 * A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
428 */
429 Description?: __string;
430 /**
431 * The type of encryption that will be used on the output that is associated with this entitlement.
432 */
433 Encryption?: Encryption;
434 /**
435 * The name of the entitlement. This value must be unique within the current flow.
436 */
437 Name?: __string;
438 /**
439 * The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.
440 */
441 Subscribers: __listOf__string;
442 }
443 export interface GrantFlowEntitlementsRequest {
444 /**
445 * The list of entitlements that you want to grant.
446 */
447 Entitlements: __listOfGrantEntitlementRequest;
448 /**
449 * The flow that you want to grant entitlements on.
450 */
451 FlowArn: __string;
452 }
453 export interface GrantFlowEntitlementsResponse {
454 /**
455 * The entitlements that were just granted.
456 */
457 Entitlements?: __listOfEntitlement;
458 /**
459 * The ARN of the flow that these entitlements were granted to.
460 */
461 FlowArn?: __string;
462 }
463 export type KeyType = "speke"|"static-key"|string;
464 export interface ListEntitlementsRequest {
465 /**
466 * The maximum number of results to return per API request. For example, you submit a ListEntitlements request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 20 results per page.
467 */
468 MaxResults?: MaxResults;
469 /**
470 * The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value.
471 */
472 NextToken?: __string;
473 }
474 export interface ListEntitlementsResponse {
475 /**
476 * A list of entitlements that have been granted to you from other AWS accounts.
477 */
478 Entitlements?: __listOfListedEntitlement;
479 /**
480 * The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value.
481 */
482 NextToken?: __string;
483 }
484 export interface ListFlowsRequest {
485 /**
486 * The maximum number of results to return per API request. For example, you submit a ListFlows request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.
487 */
488 MaxResults?: MaxResults;
489 /**
490 * The token that identifies which batch of results that you want to see. For example, you submit a ListFlows request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value.
491 */
492 NextToken?: __string;
493 }
494 export interface ListFlowsResponse {
495 /**
496 * A list of flow summaries.
497 */
498 Flows?: __listOfListedFlow;
499 /**
500 * The token that identifies which batch of results that you want to see. For example, you submit a ListFlows request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value.
501 */
502 NextToken?: __string;
503 }
504 export interface ListTagsForResourceRequest {
505 /**
506 * The Amazon Resource Name (ARN) that identifies the AWS Elemental MediaConnect resource for which to list the tags.
507 */
508 ResourceArn: __string;
509 }
510 export interface ListTagsForResourceResponse {
511 /**
512 * A map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
513 */
514 Tags?: __mapOf__string;
515 }
516 export interface ListedEntitlement {
517 /**
518 * Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
519 */
520 DataTransferSubscriberFeePercent?: __integer;
521 /**
522 * The ARN of the entitlement.
523 */
524 EntitlementArn: __string;
525 /**
526 * The name of the entitlement.
527 */
528 EntitlementName: __string;
529 }
530 export interface ListedFlow {
531 /**
532 * The Availability Zone that the flow was created in.
533 */
534 AvailabilityZone: __string;
535 /**
536 * A description of the flow.
537 */
538 Description: __string;
539 /**
540 * The ARN of the flow.
541 */
542 FlowArn: __string;
543 /**
544 * The name of the flow.
545 */
546 Name: __string;
547 /**
548 * The type of source. This value is either owned (originated somewhere other than an AWS Elemental MediaConnect flow owned by another AWS account) or entitled (originated at an AWS Elemental MediaConnect flow owned by another AWS account).
549 */
550 SourceType: SourceType;
551 /**
552 * The current status of the flow.
553 */
554 Status: Status;
555 }
556 export type MaxResults = number;
557 export interface Messages {
558 /**
559 * A list of errors that might have been generated from processes on this flow.
560 */
561 Errors: __listOf__string;
562 }
563 export interface Output {
564 /**
565 * Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
566 */
567 DataTransferSubscriberFeePercent?: __integer;
568 /**
569 * A description of the output.
570 */
571 Description?: __string;
572 /**
573 * The address where you want to send the output.
574 */
575 Destination?: __string;
576 /**
577 * The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
578 */
579 Encryption?: Encryption;
580 /**
581 * The ARN of the entitlement on the originator''s flow. This value is relevant only on entitled flows.
582 */
583 EntitlementArn?: __string;
584 /**
585 * The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input.
586 */
587 MediaLiveInputArn?: __string;
588 /**
589 * The name of the output. This value must be unique within the current flow.
590 */
591 Name: __string;
592 /**
593 * The ARN of the output.
594 */
595 OutputArn: __string;
596 /**
597 * The port to use when content is distributed to this output.
598 */
599 Port?: __integer;
600 /**
601 * Attributes related to the transport stream that are used in the output.
602 */
603 Transport?: Transport;
604 }
605 export type Protocol = "zixi-push"|"rtp-fec"|"rtp"|"zixi-pull"|"rist"|string;
606 export interface RemoveFlowOutputRequest {
607 /**
608 * The flow that you want to remove an output from.
609 */
610 FlowArn: __string;
611 /**
612 * The ARN of the output that you want to remove.
613 */
614 OutputArn: __string;
615 }
616 export interface RemoveFlowOutputResponse {
617 /**
618 * The ARN of the flow that is associated with the output you removed.
619 */
620 FlowArn?: __string;
621 /**
622 * The ARN of the output that was removed.
623 */
624 OutputArn?: __string;
625 }
626 export interface RemoveFlowSourceRequest {
627 /**
628 * The flow that you want to remove a source from.
629 */
630 FlowArn: __string;
631 /**
632 * The ARN of the source that you want to remove.
633 */
634 SourceArn: __string;
635 }
636 export interface RemoveFlowSourceResponse {
637 /**
638 * The ARN of the flow that is associated with the source you removed.
639 */
640 FlowArn?: __string;
641 /**
642 * The ARN of the source that was removed.
643 */
644 SourceArn?: __string;
645 }
646 export interface RevokeFlowEntitlementRequest {
647 /**
648 * The ARN of the entitlement that you want to revoke.
649 */
650 EntitlementArn: __string;
651 /**
652 * The flow that you want to revoke an entitlement from.
653 */
654 FlowArn: __string;
655 }
656 export interface RevokeFlowEntitlementResponse {
657 /**
658 * The ARN of the entitlement that was revoked.
659 */
660 EntitlementArn?: __string;
661 /**
662 * The ARN of the flow that the entitlement was revoked from.
663 */
664 FlowArn?: __string;
665 }
666 export interface SetSourceRequest {
667 /**
668 * The type of encryption that is used on the content ingested from this source.
669 */
670 Decryption?: Encryption;
671 /**
672 * A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
673 */
674 Description?: __string;
675 /**
676 * The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow.
677 */
678 EntitlementArn?: __string;
679 /**
680 * The port that the flow will be listening on for incoming content.
681 */
682 IngestPort?: __integer;
683 /**
684 * The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.
685 */
686 MaxBitrate?: __integer;
687 /**
688 * The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.
689 */
690 MaxLatency?: __integer;
691 /**
692 * The name of the source.
693 */
694 Name?: __string;
695 /**
696 * The protocol that is used by the source.
697 */
698 Protocol?: Protocol;
699 /**
700 * The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
701 */
702 StreamId?: __string;
703 /**
704 * The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
705 */
706 WhitelistCidr?: __string;
707 }
708 export interface Source {
709 /**
710 * Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
711 */
712 DataTransferSubscriberFeePercent?: __integer;
713 /**
714 * The type of encryption that is used on the content ingested from this source.
715 */
716 Decryption?: Encryption;
717 /**
718 * A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
719 */
720 Description?: __string;
721 /**
722 * The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.
723 */
724 EntitlementArn?: __string;
725 /**
726 * The IP address that the flow will be listening on for incoming content.
727 */
728 IngestIp?: __string;
729 /**
730 * The port that the flow will be listening on for incoming content.
731 */
732 IngestPort?: __integer;
733 /**
734 * The name of the source.
735 */
736 Name: __string;
737 /**
738 * The ARN of the source.
739 */
740 SourceArn: __string;
741 /**
742 * Attributes related to the transport stream that are used in the source.
743 */
744 Transport?: Transport;
745 /**
746 * The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
747 */
748 WhitelistCidr?: __string;
749 }
750 export type SourceType = "OWNED"|"ENTITLED"|string;
751 export interface StartFlowRequest {
752 /**
753 * The ARN of the flow that you want to start.
754 */
755 FlowArn: __string;
756 }
757 export interface StartFlowResponse {
758 /**
759 * The ARN of the flow that you started.
760 */
761 FlowArn?: __string;
762 /**
763 * The status of the flow when the StartFlow process begins.
764 */
765 Status?: Status;
766 }
767 export type State = "ENABLED"|"DISABLED"|string;
768 export type Status = "STANDBY"|"ACTIVE"|"UPDATING"|"DELETING"|"STARTING"|"STOPPING"|"ERROR"|string;
769 export interface StopFlowRequest {
770 /**
771 * The ARN of the flow that you want to stop.
772 */
773 FlowArn: __string;
774 }
775 export interface StopFlowResponse {
776 /**
777 * The ARN of the flow that you stopped.
778 */
779 FlowArn?: __string;
780 /**
781 * The status of the flow when the StopFlow process begins.
782 */
783 Status?: Status;
784 }
785 export interface TagResourceRequest {
786 /**
787 * The Amazon Resource Name (ARN) that identifies the AWS Elemental MediaConnect resource to which to add tags.
788 */
789 ResourceArn: __string;
790 /**
791 * A map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
792 */
793 Tags: __mapOf__string;
794 }
795 export interface Transport {
796 /**
797 * The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
798 */
799 CidrAllowList?: __listOf__string;
800 /**
801 * The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.
802 */
803 MaxBitrate?: __integer;
804 /**
805 * The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.
806 */
807 MaxLatency?: __integer;
808 /**
809 * The protocol that is used by the source or output.
810 */
811 Protocol: Protocol;
812 /**
813 * The remote ID for the Zixi-pull stream.
814 */
815 RemoteId?: __string;
816 /**
817 * The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
818 */
819 SmoothingLatency?: __integer;
820 /**
821 * The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
822 */
823 StreamId?: __string;
824 }
825 export interface UntagResourceRequest {
826 /**
827 * The Amazon Resource Name (ARN) that identifies the AWS Elemental MediaConnect resource from which to delete tags.
828 */
829 ResourceArn: __string;
830 /**
831 * The keys of the tags to be removed.
832 */
833 TagKeys: __listOf__string;
834 }
835 export interface UpdateEncryption {
836 /**
837 * The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
838 */
839 Algorithm?: Algorithm;
840 /**
841 * A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.
842 */
843 ConstantInitializationVector?: __string;
844 /**
845 * The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.
846 */
847 DeviceId?: __string;
848 /**
849 * The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
850 */
851 KeyType?: KeyType;
852 /**
853 * The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.
854 */
855 Region?: __string;
856 /**
857 * An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.
858 */
859 ResourceId?: __string;
860 /**
861 * The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
862 */
863 RoleArn?: __string;
864 /**
865 * The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.
866 */
867 SecretArn?: __string;
868 /**
869 * The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.
870 */
871 Url?: __string;
872 }
873 export interface UpdateFailoverConfig {
874 /**
875 * Recovery window time to look for dash-7 packets
876 */
877 RecoveryWindow?: __integer;
878 State?: State;
879 }
880 export interface UpdateFlowEntitlementRequest {
881 /**
882 * A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
883 */
884 Description?: __string;
885 /**
886 * The type of encryption that will be used on the output associated with this entitlement.
887 */
888 Encryption?: UpdateEncryption;
889 /**
890 * The ARN of the entitlement that you want to update.
891 */
892 EntitlementArn: __string;
893 /**
894 * The flow that is associated with the entitlement that you want to update.
895 */
896 FlowArn: __string;
897 /**
898 * The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
899 */
900 Subscribers?: __listOf__string;
901 }
902 export interface UpdateFlowEntitlementResponse {
903 Entitlement?: Entitlement;
904 /**
905 * The ARN of the flow that this entitlement was granted on.
906 */
907 FlowArn?: __string;
908 }
909 export interface UpdateFlowOutputRequest {
910 /**
911 * The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
912 */
913 CidrAllowList?: __listOf__string;
914 /**
915 * A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
916 */
917 Description?: __string;
918 /**
919 * The IP address where you want to send the output.
920 */
921 Destination?: __string;
922 /**
923 * The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
924 */
925 Encryption?: UpdateEncryption;
926 /**
927 * The flow that is associated with the output that you want to update.
928 */
929 FlowArn: __string;
930 /**
931 * The maximum latency in milliseconds for Zixi-based streams.
932 */
933 MaxLatency?: __integer;
934 /**
935 * The ARN of the output that you want to update.
936 */
937 OutputArn: __string;
938 /**
939 * The port to use when content is distributed to this output.
940 */
941 Port?: __integer;
942 /**
943 * The protocol to use for the output.
944 */
945 Protocol?: Protocol;
946 /**
947 * The remote ID for the Zixi-pull stream.
948 */
949 RemoteId?: __string;
950 /**
951 * The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
952 */
953 SmoothingLatency?: __integer;
954 /**
955 * The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
956 */
957 StreamId?: __string;
958 }
959 export interface UpdateFlowOutputResponse {
960 /**
961 * The ARN of the flow that is associated with the updated output.
962 */
963 FlowArn?: __string;
964 Output?: Output;
965 }
966 export interface UpdateFlowRequest {
967 /**
968 * The flow that you want to update.
969 */
970 FlowArn: __string;
971 SourceFailoverConfig?: UpdateFailoverConfig;
972 }
973 export interface UpdateFlowResponse {
974 Flow?: Flow;
975 }
976 export interface UpdateFlowSourceRequest {
977 /**
978 * The type of encryption used on the content ingested from this source.
979 */
980 Decryption?: UpdateEncryption;
981 /**
982 * A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
983 */
984 Description?: __string;
985 /**
986 * The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow.
987 */
988 EntitlementArn?: __string;
989 /**
990 * The flow that is associated with the source that you want to update.
991 */
992 FlowArn: __string;
993 /**
994 * The port that the flow will be listening on for incoming content.
995 */
996 IngestPort?: __integer;
997 /**
998 * The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.
999 */
1000 MaxBitrate?: __integer;
1001 /**
1002 * The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.
1003 */
1004 MaxLatency?: __integer;
1005 /**
1006 * The protocol that is used by the source.
1007 */
1008 Protocol?: Protocol;
1009 /**
1010 * The ARN of the source that you want to update.
1011 */
1012 SourceArn: __string;
1013 /**
1014 * The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
1015 */
1016 StreamId?: __string;
1017 /**
1018 * The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
1019 */
1020 WhitelistCidr?: __string;
1021 }
1022 export interface UpdateFlowSourceResponse {
1023 /**
1024 * The ARN of the flow that you want to update.
1025 */
1026 FlowArn?: __string;
1027 /**
1028 * The settings for the source of the flow.
1029 */
1030 Source?: Source;
1031 }
1032 export type __integer = number;
1033 export type __listOfAddOutputRequest = AddOutputRequest[];
1034 export type __listOfEntitlement = Entitlement[];
1035 export type __listOfGrantEntitlementRequest = GrantEntitlementRequest[];
1036 export type __listOfListedEntitlement = ListedEntitlement[];
1037 export type __listOfListedFlow = ListedFlow[];
1038 export type __listOfOutput = Output[];
1039 export type __listOfSetSourceRequest = SetSourceRequest[];
1040 export type __listOfSource = Source[];
1041 export type __listOf__string = __string[];
1042 export type __mapOf__string = {[key: string]: __string};
1043 export type __string = string;
1044 /**
1045 * 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.
1046 */
1047 export type apiVersion = "2018-11-14"|"latest"|string;
1048 export interface ClientApiVersions {
1049 /**
1050 * 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.
1051 */
1052 apiVersion?: apiVersion;
1053 }
1054 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1055 /**
1056 * Contains interfaces for use with the MediaConnect client.
1057 */
1058 export import Types = MediaConnect;
1059}
1060export = MediaConnect;