@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.813Z") @Stability(value=Stable) public interface Inventory extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;
Bucket bucket;
Inventory inventory = Inventory.builder()
.destination(InventoryDestination.builder()
.bucket(bucket)
// the properties below are optional
.bucketOwner("bucketOwner")
.prefix("prefix")
.build())
// the properties below are optional
.enabled(false)
.format(InventoryFormat.CSV)
.frequency(InventoryFrequency.DAILY)
.includeObjectVersions(InventoryObjectVersion.ALL)
.inventoryId("inventoryId")
.objectsPrefix("objectsPrefix")
.optionalFields(List.of("optionalFields"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
Inventory.Builder
A builder for
Inventory |
static class |
Inventory.Jsii$Proxy
An implementation for
Inventory |
| Modifier and Type | Method and Description |
|---|---|
static Inventory.Builder |
builder() |
InventoryDestination |
getDestination()
The destination of the inventory.
|
default Boolean |
getEnabled()
Whether the inventory is enabled or disabled.
|
default InventoryFormat |
getFormat()
The format of the inventory.
|
default InventoryFrequency |
getFrequency()
Frequency at which the inventory should be generated.
|
default InventoryObjectVersion |
getIncludeObjectVersions()
If the inventory should contain all the object versions or only the current one.
|
default String |
getInventoryId()
The inventory configuration ID.
|
default String |
getObjectsPrefix()
The inventory will only include objects that meet the prefix filter criteria.
|
default List<String> |
getOptionalFields()
A list of optional fields to be included in the inventory result.
|
@Stability(value=Stable) @NotNull InventoryDestination getDestination()
@Stability(value=Stable) @Nullable default Boolean getEnabled()
Default: true
@Stability(value=Stable) @Nullable default InventoryFormat getFormat()
Default: InventoryFormat.CSV
@Stability(value=Stable) @Nullable default InventoryFrequency getFrequency()
Default: InventoryFrequency.WEEKLY
@Stability(value=Stable) @Nullable default InventoryObjectVersion getIncludeObjectVersions()
Default: InventoryObjectVersion.ALL
@Stability(value=Stable) @Nullable default String getInventoryId()
Default: - generated ID.
@Stability(value=Stable) @Nullable default String getObjectsPrefix()
Default: - No objects prefix
@Stability(value=Stable) @Nullable default List<String> getOptionalFields()
Default: - No optional fields.
@Stability(value=Stable) static Inventory.Builder builder()
Inventory.Builder of InventoryCopyright © 2022. All rights reserved.