Package: aws-solutions-constructs.aws-iot-kinesisfirehose-s3
aws-iot-kinesisfirehose-s3 module---All classes are under active development and subject to non-backward compatible changes or removal in any
future version. These are not subject to theSemantic Versioningmodel.
This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.Reference Documentation:https://docs.aws.amazon.com/solutions/latest/constructs/LanguagePackagePythonaws_solutions_constructs.aws_iot_kinesisfirehose_s3Typescript@aws-solutions-constructs/aws-iot-kinesisfirehose-s3Javasoftware.amazon.awsconstructs.services.iotkinesisfirehoses3OverviewThis AWS Solutions Construct implements an AWS IoT MQTT topic rule to send data to an Amazon Kinesis Data Firehose delivery stream connected to an Amazon S3 bucket.Here is a minimal deployable pattern definition:Typescriptimport{Construct}from'constructs';import{Stack,StackProps}from'aws-cdk-lib';import{IotToKinesisFirehoseToS3Props,IotToKinesisFirehoseToS3}from'@aws-solutions-constructs/aws-iot-kinesisfirehose-s3';constconstructProps:IotToKinesisFirehoseToS3Props={iotTopicRuleProps:{topicRulePayload:{ruleDisabled:false,description:"Persistent storage of connected vehicle telematics data",sql:"SELECT * FROM 'connectedcar/telemetry/#'",actions:[]}}};newIotToKinesisFirehoseToS3(this,'test-iot-firehose-s3',constructProps);Pythonfromaws_solutions_constructs.aws_iot_kinesisfirehose_s3importIotToKinesisFirehoseToS3Props,IotToKinesisFirehoseToS3fromaws_cdkimport(aws_iotasiot,Stack)fromconstructsimportConstructIotToKinesisFirehoseToS3(self,'test_iot_firehose_s3',iot_topic_rule_props=iot.CfnTopicRuleProps(topic_rule_payload=iot.CfnTopicRule.TopicRulePayloadProperty(rule_disabled=False,description="Persistent storage of connected vehicle telematics data",sql="SELECT * FROM 'connectedcar/telemetry/#'",actions=[])))Javaimportsoftware.constructs.Construct;importjava.util.List;importsoftware.amazon.awscdk.Stack;importsoftware.amazon.awscdk.StackProps;importsoftware.amazon.awscdk.services.iot.*;importsoftware.amazon.awscdk.services.iot.CfnTopicRule.TopicRulePayloadProperty;importsoftware.amazon.awsconstructs.services.iotkinesisfirehoses3.*;newIotToKinesisFirehoseToS3(this,"test-iot-firehose-s3",newIotToKinesisFirehoseToS3Props.Builder().iotTopicRuleProps(newCfnTopicRuleProps.Builder().topicRulePayload(newTopicRulePayloadProperty.Builder().ruleDisabled(false).description("Persistent storage of connected vehicle telematics data").sql("SELECT * FROM 'connectedcar/telemetry/#'").actions(List.of()).build()).build()).build());Pattern Construct PropsNameTypeDescriptioniotTopicRulePropsiot.CfnTopicRulePropsUser provided CfnTopicRuleProps to override the defaultskinesisFirehoseProps?kinesisfirehose.CfnDeliveryStreamPropsOptional user provided props to override the default props for Kinesis Firehose Delivery StreamexistingBucketObj?s3.IBucketExisting instance of S3 Bucket object, providing both this andbucketPropswill cause an error.bucketProps?s3.BucketPropsUser provided props to override the default props for the S3 Bucket. If this is provided, then also providing bucketProps is an error.logGroupProps?logs.LogGroupPropsUser provided props to override the default props for for the CloudWatchLogs LogGroup.loggingBucketProps?s3.BucketPropsOptional user provided props to override the default props for the S3 Logging Bucket.logS3AccessLogs?booleanWhether to turn on Access Logging for the S3 bucket. Creates an S3 bucket with associated storage costs for the logs. Enabling Access Logging is a best practice. default - truePattern PropertiesNameTypeDescriptionkinesisFirehosekinesisfirehose.CfnDeliveryStreamReturns an instance of kinesisfirehose.CfnDeliveryStream created by the constructs3Bucket?s3.BucketReturns an instance of s3.Bucket created by the constructs3LoggingBucket?s3.BucketReturns an instance of s3.Bucket created by the construct as the logging bucket for the primary bucket.iotTopicRuleiot.CfnTopicRuleReturns an instance of iot.CfnTopicRule created by the constructiotActionsRoleiam.RoleReturns an instance of the iam.Role created by the construct for IoT RulekinesisFirehoseRoleiam.RoleReturns an instance of the iam.Role created by the construct for Kinesis Data Firehose delivery streamkinesisFirehoseLogGrouplogs.LogGroupReturns an instance of the LogGroup created by the construct for Kinesis Data Firehose delivery streams3BucketInterfaces3.IBucketReturns an instance of s3.IBucket created by the constructDefault settingsOut of the box implementation of the Construct without any override will set the following defaults:Amazon IoT RuleConfigure least privilege access IAM role for Amazon IoTAmazon Kinesis FirehoseEnable CloudWatch logging for Kinesis FirehoseConfigure least privilege access IAM role for Amazon Kinesis FirehoseAmazon S3 BucketConfigure Access logging for S3 BucketEnable server-side encryption for S3 Bucket using AWS managed KMS KeyEnforce encryption of data in transitTurn on the versioning for S3 BucketDon't allow public access for S3 BucketRetain the S3 Bucket when deleting the CloudFormation stackApplies Lifecycle rule to move noncurrent object versions to Glacier storage after 90 daysArchitecture© Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.