# S3Destination

Use a S3 bucket as a Lambda destination.

Extends: S3Destination
Implements: IDestination

- Source: [`aws-lambda-destinations/lib/s3.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0/packages/aws-cdk-lib/aws-lambda-destinations/lib/s3.ts#L8)
- Type last changed: v2.168.0 · 20 Nov 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda_destinations as lambda_destinations } from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
const s3Destination = new lambda_destinations.S3Destination(bucket);
```

## Initializer

```ts
new S3Destination(bucket: IBucket)
```

## Methods

- `bind(_scope: Construct, fn: IFunction, _options?: DestinationOptions): DestinationConfig` — Returns a destination configuration.
