BackupMode
- class aws_cdk.aws_kinesisfirehose.BackupMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Options for S3 record backup of a delivery stream.
- ExampleMetadata:
infused
Example:
# Enable backup of all source records (to an S3 bucket created by CDK). # bucket: s3.Bucket # Explicitly provide an S3 bucket to which all source records will be backed up. # backup_bucket: s3.Bucket firehose.DeliveryStream(self, "Delivery Stream Backup All", destination= firehose.S3Bucket(bucket, s3_backup=firehose.DestinationS3BackupProps( mode=firehose.BackupMode.ALL ) ) ) firehose.DeliveryStream(self, "Delivery Stream Backup All Explicit Bucket", destination= firehose.S3Bucket(bucket, s3_backup=firehose.DestinationS3BackupProps( bucket=backup_bucket ) ) ) # Explicitly provide an S3 prefix under which all source records will be backed up. firehose.DeliveryStream(self, "Delivery Stream Backup All Explicit Prefix", destination= firehose.S3Bucket(bucket, s3_backup=firehose.DestinationS3BackupProps( mode=firehose.BackupMode.ALL, data_output_prefix="mybackup" ) ) )
Attributes
- ALL
All records are backed up.
- FAILED
Only records that failed to deliver or transform are backed up.