class OutputDestination
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.OutputDestination |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#OutputDestination |
Java | software.amazon.awscdk.services.medialive.alpha.OutputDestination |
Python | aws_cdk.aws_medialive_alpha.OutputDestination |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป OutputDestination |
A general URL-based output destination โ an S3 bucket or an HTTP(S) endpoint.
Used by HLS, MS Smooth, and CMAF Ingest output groups. Each output group's destinations
prop is typed to the destination valid for its protocol, so an invalid pairing (e.g. a UDP
destination on an HLS group) is a compile-time error rather than a deploy-time failure.
Example
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;
new medialive.Channel(stack, 'Channel', {
inputs: [{ input }],
availBlanking: {
state: medialive.AvailBlankingState.ENABLED,
image: medialive.FileLocation.fromBucket(bucket, 'slates/avail.png'),
},
blackoutSlate: {
state: medialive.BlackoutSlateState.ENABLED,
image: medialive.FileLocation.fromBucket(bucket, 'slates/blackout.png'),
},
outputGroups: [
medialive.OutputGroupConfiguration.hls({
name: 'hls',
destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
outputs: [{ encodes: [video], outputName: 'hls_out' }],
}),
],
});
Methods
| Name | Description |
|---|---|
| static to | Deliver to an S3 bucket (auto-grants write to the channel role). |
| static url(url, options?) | Deliver to a raw URL โ typically an https:// origin (or an s3ssl:// path). |
static toBucket(bucket, prefix?)
public static toBucket(bucket: IBucket, prefix?: string): OutputDestination
Parameters
- bucket
IBucket - prefix
string
Returns
Deliver to an S3 bucket (auto-grants write to the channel role).
static url(url, options?)
public static url(url: string, options?: OutputDestinationOptions): OutputDestination
Parameters
- url
string - options
OutputDestination Options
Returns
Deliver to a raw URL โ typically an https:// origin (or an s3ssl:// path).

.NET
Go
Java
Python
TypeScript (