> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# S3OutputDestination

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

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/destinations.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-medialive-alpha/lib/destinations.ts#L87)

## 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` (static) — Deliver to an S3 bucket (auto-grants write to the channel role).

- `url(url: string): S3OutputDestination // chainable` (static) — Deliver to a raw `s3ssl://` path (escape hatch when you don't have a bucket construct).
