@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:11.162Z") @Stability(value=Experimental) public interface DestinationS3BackupProps extends software.amazon.jsii.JsiiSerializable, CommonDestinationS3Props
S3 backup is available for all destinations, regardless of whether the final destination is S3 or not.
Example:
// Enable backup of all source records (to an S3 bucket created by CDK).
Bucket bucket;
// Explicitly provide an S3 bucket to which all source records will be backed up.
Bucket backupBucket;
DeliveryStream.Builder.create(this, "Delivery Stream Backup All")
.destinations(List.of(
S3Bucket.Builder.create(bucket)
.s3Backup(DestinationS3BackupProps.builder()
.mode(BackupMode.ALL)
.build())
.build()))
.build();
DeliveryStream.Builder.create(this, "Delivery Stream Backup All Explicit Bucket")
.destinations(List.of(
S3Bucket.Builder.create(bucket)
.s3Backup(DestinationS3BackupProps.builder()
.bucket(backupBucket)
.build())
.build()))
.build();
// Explicitly provide an S3 prefix under which all source records will be backed up.
// Explicitly provide an S3 prefix under which all source records will be backed up.
DeliveryStream.Builder.create(this, "Delivery Stream Backup All Explicit Prefix")
.destinations(List.of(
S3Bucket.Builder.create(bucket)
.s3Backup(DestinationS3BackupProps.builder()
.mode(BackupMode.ALL)
.dataOutputPrefix("mybackup")
.build())
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DestinationS3BackupProps.Builder
A builder for
DestinationS3BackupProps |
static class |
DestinationS3BackupProps.Jsii$Proxy
An implementation for
DestinationS3BackupProps |
| Modifier and Type | Method and Description |
|---|---|
static DestinationS3BackupProps.Builder |
builder() |
default IBucket |
getBucket()
(experimental) The S3 bucket that will store data and failed records.
|
default Boolean |
getLogging()
(experimental) If true, log errors when data transformation or data delivery fails.
|
default ILogGroup |
getLogGroup()
(experimental) The CloudWatch log group where log streams will be created to hold error logs.
|
default BackupMode |
getMode()
(experimental) Indicates the mode by which incoming records should be backed up to S3, if any.
|
getBufferingInterval, getBufferingSize, getCompression, getDataOutputPrefix, getEncryptionKey, getErrorOutputPrefix@Stability(value=Experimental) @Nullable default IBucket getBucket()
Default: - If `mode` is set to `BackupMode.ALL` or `BackupMode.FAILED`, a bucket will be created for you.
@Stability(value=Experimental) @Nullable default Boolean getLogging()
If logGroup is provided, this will be implicitly set to true.
Default: true - errors are logged.
@Stability(value=Experimental) @Nullable default ILogGroup getLogGroup()
Default: - if `logging` is set to `true`, a log group will be created for you.
@Stability(value=Experimental) @Nullable default BackupMode getMode()
If bucket is provided, this will be implicitly set to BackupMode.ALL.
Default: - If `bucket` is provided, the default will be `BackupMode.ALL`. Otherwise, source records are not backed up to S3.
@Stability(value=Experimental) static DestinationS3BackupProps.Builder builder()
builder in interface CommonDestinationS3PropsDestinationS3BackupProps.Builder of DestinationS3BackupPropsCopyright © 2022. All rights reserved.