class S3Bucket
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.KinesisFirehose.Destinations.S3Bucket |
Java | software.amazon.awscdk.services.kinesisfirehose.destinations.S3Bucket |
Python | aws_cdk.aws_kinesisfirehose_destinations.S3Bucket |
TypeScript (source) | @aws-cdk/aws-kinesisfirehose-destinations » S3Bucket |
Implements
IDestination
An S3 bucket destination for data from a Kinesis Data Firehose delivery stream.
Example
// Provide a Lambda function that will transform records before delivery, with custom
// buffering and retry configuration
const lambdaFunction = new lambda.Function(this, 'Processor', {
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(path.join(__dirname, 'process-records')),
});
const lambdaProcessor = new firehose.LambdaFunctionProcessor(lambdaFunction, {
bufferInterval: Duration.minutes(5),
bufferSize: Size.mebibytes(5),
retries: 5,
});
declare const bucket: s3.Bucket;
const s3Destination = new destinations.S3Bucket(bucket, {
processor: lambdaProcessor,
});
new firehose.DeliveryStream(this, 'Delivery Stream', {
destinations: [s3Destination],
});
Initializer
new S3Bucket(bucket: IBucket, props?: S3BucketProps)
Parameters
- bucket
IBucket - props
S3Bucket Props
Methods
| Name | Description |
|---|---|
| bind(scope, _options) | Binds this destination to the Kinesis Data Firehose delivery stream. |
bind(scope, _options)
public bind(scope: Construct, _options: DestinationBindOptions): DestinationConfig
Parameters
- scope
Construct - _options
DestinationBind Options
Returns
Binds this destination to the Kinesis Data Firehose delivery stream.
Implementers should use this method to bind resources to the stack and initialize values using the provided stream.

.NET
Java
Python
TypeScript (