@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.830Z") @Stability(value=Stable) public interface UserDefinedObjectMetadata extends software.amazon.jsii.JsiiSerializable
Example:
Bucket websiteBucket = Bucket.Builder.create(this, "WebsiteBucket")
.websiteIndexDocument("index.html")
.publicReadAccess(true)
.build();
BucketDeployment.Builder.create(this, "DeployWebsite")
.sources(List.of(Source.asset("./website-dist")))
.destinationBucket(websiteBucket)
.destinationKeyPrefix("web/static") // optional prefix in destination bucket
.metadata(UserDefinedObjectMetadata.builder().A("1").b("2").build()) // user-defined metadata
// system-defined metadata
.contentType("text/html")
.contentLanguage("en")
.storageClass(StorageClass.INTELLIGENT_TIERING)
.serverSideEncryption(ServerSideEncryption.AES_256)
.cacheControl(List.of(CacheControl.setPublic(), CacheControl.maxAge(Duration.hours(1))))
.accessControl(BucketAccessControl.BUCKET_OWNER_FULL_CONTROL)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserDefinedObjectMetadata.Builder
A builder for
UserDefinedObjectMetadata |
static class |
UserDefinedObjectMetadata.Jsii$Proxy
An implementation for
UserDefinedObjectMetadata |
| Modifier and Type | Method and Description |
|---|---|
static UserDefinedObjectMetadata.Builder |
builder() |
@Stability(value=Stable) static UserDefinedObjectMetadata.Builder builder()
UserDefinedObjectMetadata.Builder of UserDefinedObjectMetadataCopyright © 2022. All rights reserved.