Class StorageClass
Storage class used for storing the object.
Inheritance
Namespace: Amazon.CDK.AWS.S3.Deployment
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class StorageClass : Enum
Syntax (vb)
Public NotInheritable Class StorageClass
Inherits
Enum
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'. |
value__ |
Fields
DEEP_ARCHIVE
GLACIER
INTELLIGENT_TIERING
'INTELLIGENT_TIERING'.
public const StorageClass INTELLIGENT_TIERING
Field Value
Type | Description |
---|---|
Storage |
ONEZONE_IA
REDUCED_REDUNDANCY
'REDUCED_REDUNDANCY'.
public const StorageClass REDUCED_REDUNDANCY
Field Value
Type | Description |
---|---|
Storage |
STANDARD
STANDARD_IA
value__
public int value__
Field Value
Type | Description |
---|---|
System. |