Interface InventoryDestination

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
InventoryDestination.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:13.257Z") @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();
 
  • Method Details

    • getBucket

      @Stability(Stable) @NotNull IBucket getBucket()
      Bucket where all inventories will be saved in.
    • getBucketOwner

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String getPrefix()
      The prefix to be used when saving the inventory.

      Default: - No prefix.

    • builder

      @Stability(Stable) static InventoryDestination.Builder builder()
      Returns:
      a InventoryDestination.Builder of InventoryDestination