@aws-cdk_aws-kinesisfirehose-destinations-alpha.S3Bucket

class S3Bucket 🔹

LanguageType name
.NETAmazon.CDK.AWS.KinesisFirehose.Destinations.Alpha.S3Bucket
Gogithub.com/aws/aws-cdk-go/awscdkkinesisfirehosedestinationsalpha/v2#S3Bucket
Javasoftware.amazon.awscdk.services.kinesisfirehose.destinations.alpha.S3Bucket
Pythonaws_cdk.aws_kinesisfirehose_destinations_alpha.S3Bucket
TypeScript (source)@aws-cdk/aws-kinesisfirehose-destinations-alpha » S3Bucket

Implements IDestination

An S3 bucket destination for data from a Kinesis Data Firehose delivery stream.

Example

import * as firehose from '@aws-cdk/aws-kinesisfirehose-alpha';
import * as destinations from '@aws-cdk/aws-kinesisfirehose-destinations-alpha';

const bucket = new s3.Bucket(this, 'MyBucket');
const stream = new firehose.DeliveryStream(this, 'MyStream', {
  destinations: [new destinations.S3Bucket(bucket)],
});

const topicRule = new iot.TopicRule(this, 'TopicRule', {
  sql: iot.IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'"),
  actions: [
    new actions.FirehosePutRecordAction(stream, {
      batchMode: true,
      recordSeparator: actions.FirehoseRecordSeparator.NEWLINE,
    }),
  ],
});

Initializer

new S3Bucket(bucket: IBucket, props?: S3BucketProps)

Parameters

  • bucket IBucket
  • props S3BucketProps

Methods

NameDescription
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 DestinationBindOptions

Returns

  • DestinationConfig

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.