Show / Hide Table of Contents

Enum StorageClass

Storage class used for storing the object.

Namespace: Amazon.CDK.AWS.S3.Deployment
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum StorageClass
Syntax (vb)
Public Enum StorageClass
Remarks

See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#SysMetadata

ExampleMetadata: infused

Examples
var websiteBucket = new Bucket(this, "WebsiteBucket", new BucketProps {
                 WebsiteIndexDocument = "index.html",
                 PublicReadAccess = true
             });

             new BucketDeployment(this, "DeployWebsite", new BucketDeploymentProps {
                 Sources = new [] { Source.Asset("./website-dist") },
                 DestinationBucket = websiteBucket,
                 DestinationKeyPrefix = "web/static",  // optional prefix in destination bucket
                 Metadata = new Dictionary<string, string> { { "A", "1" }, { "b", "2" } },  // user-defined metadata

                 // system-defined metadata
                 ContentType = "text/html",
                 ContentLanguage = "en",
                 StorageClass = StorageClass.INTELLIGENT_TIERING,
                 ServerSideEncryption = ServerSideEncryption.AES_256,
                 CacheControl = new [] { CacheControl.SetPublic(), CacheControl.MaxAge(Duration.Hours(1)) },
                 AccessControl = BucketAccessControl.BUCKET_OWNER_FULL_CONTROL
             });

Synopsis

Fields

DEEP_ARCHIVE

'DEEP_ARCHIVE'.

GLACIER

'GLACIER'.

INTELLIGENT_TIERING

'INTELLIGENT_TIERING'.

ONEZONE_IA

'ONEZONE_IA'.

REDUCED_REDUNDANCY

'REDUCED_REDUNDANCY'.

STANDARD

'STANDARD'.

STANDARD_IA

'STANDARD_IA'.

Fields

Name Description
DEEP_ARCHIVE

'DEEP_ARCHIVE'.

GLACIER

'GLACIER'.

INTELLIGENT_TIERING

'INTELLIGENT_TIERING'.

ONEZONE_IA

'ONEZONE_IA'.

REDUCED_REDUNDANCY

'REDUCED_REDUNDANCY'.

STANDARD

'STANDARD'.

STANDARD_IA

'STANDARD_IA'.

Back to top Generated by DocFX