@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.825Z") @Stability(value=Stable) public class BucketDeployment extends software.constructs.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. |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
IBucket |
getDeployedBucket()
The bucket after the deployment.
|
jsiiAsyncCall, 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=Stable)
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.@Stability(value=Stable) @NotNull 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).
Copyright © 2022. All rights reserved.