@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:14.236Z") @Stability(value=Experimental) 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();
https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html| 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()
(experimental) The destination of the inventory.
|
default Boolean |
getEnabled()
(experimental) Whether the inventory is enabled or disabled.
|
default InventoryFormat |
getFormat()
(experimental) The format of the inventory.
|
default InventoryFrequency |
getFrequency()
(experimental) Frequency at which the inventory should be generated.
|
default InventoryObjectVersion |
getIncludeObjectVersions()
(experimental) If the inventory should contain all the object versions or only the current one.
|
default String |
getInventoryId()
(experimental) The inventory configuration ID.
|
default String |
getObjectsPrefix()
(experimental) The inventory will only include objects that meet the prefix filter criteria.
|
default List<String> |
getOptionalFields()
(experimental) A list of optional fields to be included in the inventory result.
|
@Stability(value=Experimental) @NotNull InventoryDestination getDestination()
@Stability(value=Experimental) @Nullable default Boolean getEnabled()
Default: true
@Stability(value=Experimental) @Nullable default InventoryFormat getFormat()
Default: InventoryFormat.CSV
@Stability(value=Experimental) @Nullable default InventoryFrequency getFrequency()
Default: InventoryFrequency.WEEKLY
@Stability(value=Experimental) @Nullable default InventoryObjectVersion getIncludeObjectVersions()
Default: InventoryObjectVersion.ALL
@Stability(value=Experimental) @Nullable default String getInventoryId()
Default: - generated ID.
@Stability(value=Experimental) @Nullable default String getObjectsPrefix()
Default: - No objects prefix
@Stability(value=Experimental) @Nullable default List<String> getOptionalFields()
Default: - No optional fields.
@Stability(value=Experimental) static Inventory.Builder builder()
Inventory.Builder of InventoryCopyright © 2022. All rights reserved.