Skip to content
v2.275.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

S3OutputDestination Class ​

A destination for an Archive or Frame Capture output group — always an S3 bucket.

Example ​

ts
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;

medialive.OutputGroupConfiguration.archive({
  name: 'archive',
  destinations: [medialive.S3OutputDestination.toBucket(bucket, 'archive/recording')],
  rolloverInterval: Duration.seconds(600),
  outputs: [{ encodes: [video, audio], outputName: 'archive_out' }],
});

Methods ​

toBucket(bucket: IBucket, prefix?: string): S3OutputDestination // chainable@staticmethod def to_bucket(bucket: IBucket, prefix: typing.Optional[str] = None) -> S3OutputDestinationpublic static S3OutputDestination toBucket(IBucket bucket, String prefix)public static S3OutputDestination ToBucket(IBucket bucket, string? prefix = null)func ToBucket(Bucket IBucket, Prefix *string) S3OutputDestinationstatic#
Deliver to an S3 bucket (auto-grants write to the channel role).
url(url: string): S3OutputDestination // chainable@staticmethod def url(url: str) -> S3OutputDestinationpublic static S3OutputDestination url(String url)public static S3OutputDestination Url(string url)func Url(Url *string) S3OutputDestinationstatic#
Deliver to a raw `s3ssl://` path (escape hatch when you don't have a bucket construct).