@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:48.148Z") public class BucketDeployment extends Construct
Example:
Bucket websiteBucket; BucketDeployment deployment = BucketDeployment.Builder.create(this, "DeployWebsite") .sources(List.of(Source.asset(join(__dirname, "my-website")))) .destinationBucket(websiteBucket) .build(); new ConstructThatReadsFromTheBucket(this, "Consumer", Map.of( // Use 'deployment.deployedBucket' instead of 'websiteBucket' here "bucket", deployment.getDeployedBucket()));
Modifier and Type | Class and Description |
---|---|
static class |
BucketDeployment.Builder
A fluent builder for
BucketDeployment . |
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
BucketDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BucketDeployment(software.amazon.jsii.JsiiObjectRef objRef) |
|
BucketDeployment(software.constructs.Construct scope,
java.lang.String id,
BucketDeploymentProps props) |
Modifier and Type | Method and Description |
---|---|
IBucket |
getDeployedBucket()
The bucket after the deployment.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected BucketDeployment(software.amazon.jsii.JsiiObjectRef objRef)
protected BucketDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public BucketDeployment(software.constructs.Construct scope, java.lang.String id, BucketDeploymentProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public IBucket getDeployedBucket()
If you want to reference the destination bucket in another construct and make sure the
bucket deployment has happened before the next operation is started, pass the other construct
a reference to deployment.deployedBucket
.
Doing this replaces calling otherResource.node.addDependency(deployment)
.