BackupMode
- class aws_cdk.aws_kinesisfirehose_destinations_alpha.BackupMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
(deprecated) Options for S3 record backup of a delivery stream.
- Stability:
deprecated
- 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= destinations.S3Bucket(bucket, s3_backup=destinations.DestinationS3BackupProps( mode=destinations.BackupMode.ALL ) ) ) firehose.DeliveryStream(self, "Delivery Stream Backup All Explicit Bucket", destination= destinations.S3Bucket(bucket, s3_backup=destinations.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= destinations.S3Bucket(bucket, s3_backup=destinations.DestinationS3BackupProps( mode=destinations.BackupMode.ALL, data_output_prefix="mybackup" ) ) )
Attributes
- ALL
(deprecated) All records are backed up.
- Stability:
deprecated
- FAILED
(deprecated) Only records that failed to deliver or transform are backed up.
- Stability:
deprecated