@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:11.141Z") @Stability(value=Experimental) public enum BackupMode extends Enum<BackupMode>
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();
| Enum Constant and Description |
|---|
ALL
(experimental) All records are backed up.
|
FAILED
(experimental) Only records that failed to deliver or transform are backed up.
|
| Modifier and Type | Method and Description |
|---|---|
static BackupMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackupMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final BackupMode ALL
@Stability(value=Experimental) public static final BackupMode FAILED
public static BackupMode[] values()
for (BackupMode c : BackupMode.values()) System.out.println(c);
public static BackupMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.