Table of Contents

Class BootstraplessSynthesizer

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

Synthesizer that reuses bootstrap roles from a different region.

public class BootstraplessSynthesizer : DefaultStackSynthesizer, IStackSynthesizer
Inheritance
BootstraplessSynthesizer
Implements
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK;
             var bootstraplessSynthesizer = new BootstraplessSynthesizer(new BootstraplessSynthesizerProps {
                 CloudFormationExecutionRoleArn = "cloudFormationExecutionRoleArn",
                 DeployRoleArn = "deployRoleArn"
             });

Remarks

A special synthesizer that behaves similarly to DefaultStackSynthesizer, but doesn't require bootstrapping the environment it operates in. Instead, it will re-use the Roles that were created for a different region (which is possible because IAM is a global service).

However, it will not assume asset buckets or repositories have been created, and therefore does not support assets.

Used by the CodePipeline construct for the support stacks needed for cross-region replication S3 buckets. App builders do not need to use this synthesizer directly.

ExampleMetadata: fixture=_generated

Constructors

BootstraplessSynthesizer(IBootstraplessSynthesizerProps)

public BootstraplessSynthesizer(IBootstraplessSynthesizerProps props)

Parameters

props IBootstraplessSynthesizerProps

Methods

AddDockerImageAsset(IDockerImageAssetSource)

Register a Docker Image Asset.

public override IDockerImageAssetLocation AddDockerImageAsset(IDockerImageAssetSource asset)

Parameters

asset IDockerImageAssetSource

Returns

IDockerImageAssetLocation

Remarks

Returns the parameters that can be used to refer to the asset inside the template.

AddFileAsset(IFileAssetSource)

Register a File Asset.

public override IFileAssetLocation AddFileAsset(IFileAssetSource asset)

Parameters

asset IFileAssetSource

Returns

IFileAssetLocation

Remarks

Returns the parameters that can be used to refer to the asset inside the template.

Synthesize(ISynthesisSession)

Synthesize the associated stack to the session.

public override void Synthesize(ISynthesisSession session)

Parameters

session ISynthesisSession