Show / Hide Table of Contents

Class InventoryDestination

The destination of the inventory.

Inheritance
System.Object
InventoryDestination
Implements
IInventoryDestination
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class InventoryDestination : Object, IInventoryDestination
Syntax (vb)
Public Class InventoryDestination
    Inherits Object
    Implements IInventoryDestination
Remarks

ExampleMetadata: infused

Examples
Bucket inventoryBucket = new Bucket(this, "InventoryBucket");

Bucket 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

IBucket

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.

Implements

IInventoryDestination
Back to top Generated by DocFX