@Stability(value=Stable)
public static interface CfnBucket.InventoryConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see GET Bucket inventory in the Amazon S3 API Reference .
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.*;
InventoryConfigurationProperty inventoryConfigurationProperty = InventoryConfigurationProperty.builder()
.destination(DestinationProperty.builder()
.bucketArn("bucketArn")
.format("format")
// the properties below are optional
.bucketAccountId("bucketAccountId")
.prefix("prefix")
.build())
.enabled(false)
.id("id")
.includedObjectVersions("includedObjectVersions")
.scheduleFrequency("scheduleFrequency")
// the properties below are optional
.optionalFields(List.of("optionalFields"))
.prefix("prefix")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.InventoryConfigurationProperty.Builder
A builder for
CfnBucket.InventoryConfigurationProperty |
static class |
CfnBucket.InventoryConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.InventoryConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.InventoryConfigurationProperty.Builder |
builder() |
Object |
getDestination()
Contains information about where to publish the inventory results.
|
Object |
getEnabled()
Specifies whether the inventory is enabled or disabled.
|
String |
getId()
The ID used to identify the inventory configuration.
|
String |
getIncludedObjectVersions()
Object versions to include in the inventory list.
|
default List<String> |
getOptionalFields()
Contains the optional fields that are included in the inventory results.
|
default String |
getPrefix()
Specifies the inventory filter prefix.
|
String |
getScheduleFrequency()
Specifies the schedule for generating inventory results.
|
@Stability(value=Stable) @NotNull Object getDestination()
@Stability(value=Stable) @NotNull Object getEnabled()
If set to True , an inventory list is generated. If set to False , no inventory list is generated.
@Stability(value=Stable) @NotNull String getId()
@Stability(value=Stable) @NotNull String getIncludedObjectVersions()
If set to All , the list includes all the object versions, which adds the version-related fields VersionId , IsLatest , and DeleteMarker to the list. If set to Current , the list does not contain these version-related fields.
@Stability(value=Stable) @NotNull String getScheduleFrequency()
Allowed values : Daily | Weekly
@Stability(value=Stable) @Nullable default List<String> getOptionalFields()
Valid values : Size | LastModifiedDate | StorageClass | ETag | IsMultipartUploaded | ReplicationStatus | EncryptionStatus | ObjectLockRetainUntilDate | ObjectLockMode | ObjectLockLegalHoldStatus | IntelligentTieringAccessTier | BucketKeyStatus
@Stability(value=Stable) @Nullable default String getPrefix()
@Stability(value=Stable) static CfnBucket.InventoryConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.