Show / Hide Table of Contents

Class BucketDeployment

BucketDeployment populates an S3 bucket with the contents of .zip files from other S3 buckets or from local disk.

Inheritance
System.Object
Construct
BucketDeployment
Implements
IConstruct
Constructs.IConstruct
IDependable
Inherited Members
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.S3.Deployment
Assembly: Amazon.CDK.AWS.S3.Deployment.dll
Syntax (csharp)
public class BucketDeployment : Construct, IConstruct, IDependable
Syntax (vb)
Public Class BucketDeployment
    Inherits Construct
    Implements IConstruct, IDependable
Remarks

ExampleMetadata: infused

Examples
Bucket websiteBucket;


var deployment = new BucketDeployment(this, "DeployWebsite", new BucketDeploymentProps {
    Sources = new [] { Source.Asset(Join(__dirname, "my-website")) },
    DestinationBucket = websiteBucket
});

new ConstructThatReadsFromTheBucket(this, "Consumer", new Dictionary<string, IBucket> {
    // Use 'deployment.deployedBucket' instead of 'websiteBucket' here
    { "bucket", deployment.DeployedBucket }
});

Synopsis

Constructors

BucketDeployment(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

BucketDeployment(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

BucketDeployment(Construct, String, IBucketDeploymentProps)

Properties

DeployedBucket

The bucket after the deployment.

Constructors

BucketDeployment(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected BucketDeployment(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

BucketDeployment(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected BucketDeployment(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

BucketDeployment(Construct, String, IBucketDeploymentProps)

public BucketDeployment(Construct scope, string id, IBucketDeploymentProps props)
Parameters
scope Constructs.Construct
id System.String
props IBucketDeploymentProps

Properties

DeployedBucket

The bucket after the deployment.

public virtual IBucket DeployedBucket { get; }
Property Value

IBucket

Remarks

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).

Implements

IConstruct
Constructs.IConstruct
IDependable
Back to top Generated by DocFX