Package: aws-solutions-constructs.aws-events-rule-kinesis-firehose-s3
aws-events-rule-kinesisfirehose-s3 module---Some of our early constructs don’t meet the naming standards that evolved for the library. We are releasing completely feature compatible versions with corrected names. The underlying implementation code is the same regardless of whether you deploy the construct using the old or new name. We will support both names for all 1.x releases, but in 2.x we will only publish the correctly named constructs. This construct is being replaced by the functionally identical aws-eventbridge-kinesisfirehose-s3.Reference Documentation:https://docs.aws.amazon.com/solutions/latest/constructs/LanguagePackagePythonaws_solutions_constructs.aws_events_rule_kinesisfirehose_s3Typescript@aws-solutions-constructs/aws-events-rule-kinesisfirehose-s3Javasoftware.amazon.awsconstructs.services.eventsrulekinesisfirehoses3OverviewThis AWS Solutions Construct implements an Amazon CloudWatch Events 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:Typescript//aws-events-rule-kinesisfirehose-s3hasbeendeprecatedforCDKV2infavorofaws-eventbridge-kinesisfirehose-s3.//ThissampleusestheCDKV1syntaximport*ascdkfrom'@aws-cdk/core';import*aseventsfrom'@aws-cdk/aws-events';import{EventsRuleToKinesisFirehoseToS3Props,EventsRuleToKinesisFirehoseToS3}from'@aws-solutions-constructs/aws-events-rule-kinesisfirehose-s3';consteventsRuleToKinesisFirehoseToS3Props:EventsRuleToKinesisFirehoseToS3Props={eventRuleProps:{schedule:events.Schedule.rate(cdk.Duration.minutes(5))}};newEventsRuleToKinesisFirehoseToS3(this,'test-events-rule-firehose-s3',eventsRuleToKinesisFirehoseToS3Props);Python# aws-events-rule-kinesisfirehose-s3 has been deprecated for CDK V2 in favor of aws-eventbridge-kinesisfirehose-s3.# This sample uses the CDK V1 syntaxfromaws_solutions_constructs.aws_events_rule_kinesis_firehose_s3importEventsRuleToKinesisFirehoseToS3,EventsRuleToKinesisFirehoseToS3Propsfromaws_cdkimport(aws_eventsasevents,core)EventsRuleToKinesisFirehoseToS3(self,'test_events_rule_firehose_s3',event_rule_props=events.RuleProps(schedule=events.Schedule.rate(core.Duration.minutes(5))))Java// aws-events-rule-kinesisfirehose-s3 has been deprecated for CDK V2 in favor of aws-eventbridge-kinesisfirehose-s3.// This sample uses the CDK V1 syntaximportsoftware.constructs.Construct;importsoftware.amazon.awscdk.core.*;importsoftware.amazon.awscdk.services.events.*;importsoftware.amazon.awsconstructs.services.eventsrulekinesisfirehoses3.*;newEventsRuleToKinesisFirehoseToS3(this,"test-events-rule-firehose-s3",newEventsRuleToKinesisFirehoseToS3Props.Builder().eventRuleProps(newRuleProps.Builder().schedule(Schedule.rate(Duration.minutes(5))).build()).build());Pattern Construct PropsNameTypeDescriptionexistingEventBusInterface?events.IEventBusOptional user-provided custom EventBus for construct to use. Providing both this andeventBusPropsresults an error.eventBusProps?events.EventBusPropsOptional user-provided properties to override the default properties when creating a custom EventBus. Setting this value to{}will create a custom EventBus using all default properties. If neither this norexistingEventBusInterfaceis provided the construct will use thedefaultEventBus. Providing both this andexistingEventBusInterfaceresults an error.eventRulePropsevents.RulePropsUser provided eventRuleProps to override the defaults.kinesisFirehoseProps?kinesisfirehose.CfnDeliveryStreamPropsOptional user provided props to override the default props for Kinesis Firehose Delivery StreamexistingBucketObj?s3.IBucketExisting instance of S3 Bucket object. If this is provided, then also providing bucketProps is an error.bucketProps?s3.BucketPropsUser provided props to override the default props for the S3 Bucket.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 PropertiesNameTypeDescriptioneventBus?events.IEventBusReturns the instance of events.IEventBus used by the constructeventsRuleevents.RuleReturns an instance of events.Rule created by the construct.kinesisFirehosekinesisfirehose.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.eventsRoleiam.RoleReturns an instance of the iam.Role created by the construct for Events 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 CloudWatch Events RuleConfigure least privilege access IAM role for Events Rule to publish to the Kinesis Firehose Delivery Stream.Amazon 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 KeyTurn 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 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.