S3OutputDestination

class aws_cdk.aws_medialive_alpha.S3OutputDestination(*args: Any, **kwargs)

Bases: object

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

Stability:

experimental

ExampleMetadata:

infused

Example:

# bucket: s3.IBucket
# video: medialive.EncodeConfiguration
# audio: medialive.EncodeConfiguration


medialive.OutputGroupConfiguration.archive(
    name="archive",
    destinations=[medialive.S3OutputDestination.to_bucket(bucket, "archive/recording")],
    rollover_interval=Duration.seconds(600),
    outputs=[medialive.ArchiveOutputDefinition(encodes=[video, audio], output_name="archive_out")]
)

Static Methods

classmethod to_bucket(bucket, prefix=None)

(experimental) Deliver to an S3 bucket (auto-grants write to the channel role).

Parameters:
  • bucket (IBucket)

  • prefix (Optional[str])

Stability:

experimental

Return type:

S3OutputDestination

classmethod url(url)

(experimental) Deliver to a raw s3ssl:// path (escape hatch when you don’t have a bucket construct).

Parameters:

url (str)

Stability:

experimental

Return type:

S3OutputDestination