Interface IInventoryDestination
The destination of the inventory.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IInventoryDestination
Syntax (vb)
Public Interface IInventoryDestination
Remarks
ExampleMetadata: infused
Examples
var inventoryBucket = new Bucket(this, "InventoryBucket");
var dataBucket = new Bucket(this, "DataBucket", new BucketProps {
Inventories = new [] { new Inventory {
Frequency = InventoryFrequency.DAILY,
IncludeObjectVersions = InventoryObjectVersion.CURRENT,
Destination = new InventoryDestination {
Bucket = inventoryBucket
}
}, new Inventory {
Frequency = InventoryFrequency.WEEKLY,
IncludeObjectVersions = InventoryObjectVersion.ALL,
Destination = new InventoryDestination {
Bucket = inventoryBucket,
Prefix = "with-all-versions"
}
} }
});
Synopsis
Properties
Bucket | Bucket where all inventories will be saved in. |
BucketOwner | The account ID that owns the destination S3 bucket. |
Prefix | The prefix to be used when saving the inventory. |
Properties
Bucket
BucketOwner
The account ID that owns the destination S3 bucket.
virtual string BucketOwner { get; }
Property Value
System.String
Remarks
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.
Prefix
The prefix to be used when saving the inventory.
virtual string Prefix { get; }
Property Value
System.String
Remarks
Default: - No prefix.