Class InventoryDestination
The destination of the inventory.
Inheritance
System.Object
InventoryDestination
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InventoryDestination : Object, IInventoryDestination
Syntax (vb)
Public Class InventoryDestination
Inherits Object
Implements 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
Constructors
InventoryDestination() |
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. |
Constructors
InventoryDestination()
public InventoryDestination()
Properties
Bucket
Bucket where all inventories will be saved in.
public IBucket Bucket { get; set; }
Property Value
BucketOwner
The account ID that owns the destination S3 bucket.
public string BucketOwner { get; set; }
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.
public string Prefix { get; set; }
Property Value
System.String
Remarks
Default: - No prefix.