@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:14.287Z") @Stability(value=Experimental) public class BucketDeployment extends Construct
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.cloudfront.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.logs.*;
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.services.s3.deployment.*;
Bucket bucket;
CacheControl cacheControl;
Distribution distribution;
Expiration expiration;
Role role;
ISource source;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
BucketDeployment bucketDeployment = BucketDeployment.Builder.create(this, "MyBucketDeployment")
.destinationBucket(bucket)
.sources(List.of(source))
// the properties below are optional
.accessControl(BucketAccessControl.PRIVATE)
.cacheControl(List.of(cacheControl))
.contentDisposition("contentDisposition")
.contentEncoding("contentEncoding")
.contentLanguage("contentLanguage")
.contentType("contentType")
.destinationKeyPrefix("destinationKeyPrefix")
.distribution(distribution)
.distributionPaths(List.of("distributionPaths"))
.exclude(List.of("exclude"))
.expires(expiration)
.include(List.of("include"))
.logRetention(RetentionDays.ONE_DAY)
.memoryLimit(123)
.metadata(UserDefinedObjectMetadata.builder().build())
.prune(false)
.retainOnDelete(false)
.role(role)
.serverSideEncryption(ServerSideEncryption.AES_256)
.serverSideEncryptionAwsKmsKeyId("serverSideEncryptionAwsKmsKeyId")
.serverSideEncryptionCustomerAlgorithm("serverSideEncryptionCustomerAlgorithm")
.storageClass(StorageClass.STANDARD)
.useEfs(false)
.vpc(vpc)
.vpcSubnets(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnetName("subnetName")
.subnets(List.of(subnet))
.subnetType(SubnetType.ISOLATED)
.build())
.websiteRedirectLocation("websiteRedirectLocation")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
BucketDeployment.Builder
(experimental) A fluent builder for
BucketDeployment. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
BucketDeployment(software.constructs.Construct scope,
String id,
BucketDeploymentProps props) |
protected |
BucketDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BucketDeployment(software.amazon.jsii.JsiiObjectRef objRef) |
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected BucketDeployment(software.amazon.jsii.JsiiObjectRef objRef)
protected BucketDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public BucketDeployment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
BucketDeploymentProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.Copyright © 2022. All rights reserved.