Interface InventoryDestination
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InventoryDestination.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:08.920Z")
@Stability(Stable)
public interface InventoryDestination
extends software.amazon.jsii.JsiiSerializable
The destination of the inventory.
Example:
Bucket inventoryBucket = new Bucket(this, "InventoryBucket"); Bucket dataBucket = Bucket.Builder.create(this, "DataBucket") .inventories(List.of(Inventory.builder() .frequency(InventoryFrequency.DAILY) .includeObjectVersions(InventoryObjectVersion.CURRENT) .destination(InventoryDestination.builder() .bucket(inventoryBucket) .build()) .build(), Inventory.builder() .frequency(InventoryFrequency.WEEKLY) .includeObjectVersions(InventoryObjectVersion.ALL) .destination(InventoryDestination.builder() .bucket(inventoryBucket) .prefix("with-all-versions") .build()) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forInventoryDestination
static final class
An implementation forInventoryDestination
-
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryDestination.Builder
builder()
Bucket where all inventories will be saved in.default String
The account ID that owns the destination S3 bucket.default String
The prefix to be used when saving the inventory.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBucket
Bucket where all inventories will be saved in. -
getBucketOwner
The account ID that owns the destination S3 bucket.If no account ID is provided, the owner is not validated before exporting data. It's recommended to set an account ID to prevent problems if the destination bucket ownership changes.
Default: - No account ID.
-
getPrefix
The prefix to be used when saving the inventory.Default: - No prefix.
-
builder
- Returns:
- a
InventoryDestination.Builder
ofInventoryDestination
-