@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:19:52.886Z") public class BootstraplessSynthesizer extends DefaultStackSynthesizer
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.
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.*; BootstraplessSynthesizer bootstraplessSynthesizer = BootstraplessSynthesizer.Builder.create() .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn") .deployRoleArn("deployRoleArn") .build();
Modifier and Type | Class and Description |
---|---|
static class |
BootstraplessSynthesizer.Builder
A fluent builder for
BootstraplessSynthesizer . |
IStackSynthesizer.Jsii$Default
DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER, DEFAULT_CLOUDFORMATION_ROLE_ARN, DEFAULT_DEPLOY_ROLE_ARN, DEFAULT_DOCKER_ASSET_PREFIX, DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME, DEFAULT_FILE_ASSET_PREFIX, DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN, DEFAULT_FILE_ASSETS_BUCKET_NAME, DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN, DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME, DEFAULT_LOOKUP_ROLE_ARN, DEFAULT_QUALIFIER
Modifier | Constructor and Description |
---|---|
protected |
BootstraplessSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BootstraplessSynthesizer(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
DockerImageAssetLocation |
addDockerImageAsset(DockerImageAssetSource _asset)
Register a Docker Image Asset.
|
FileAssetLocation |
addFileAsset(FileAssetSource _asset)
Register a File Asset.
|
void |
synthesize(ISynthesisSession session)
Synthesize the associated stack to the session.
|
bind, getCloudFormationExecutionRoleArn, getDeployRoleArn, getStack, synthesizeStackTemplate
emitStackArtifact, emitStackArtifact
protected BootstraplessSynthesizer(software.amazon.jsii.JsiiObjectRef objRef)
protected BootstraplessSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public DockerImageAssetLocation addDockerImageAsset(DockerImageAssetSource _asset)
Returns the parameters that can be used to refer to the asset inside the template.
addDockerImageAsset
in interface IStackSynthesizer
addDockerImageAsset
in class DefaultStackSynthesizer
_asset
- This parameter is required.public FileAssetLocation addFileAsset(FileAssetSource _asset)
Returns the parameters that can be used to refer to the asset inside the template.
addFileAsset
in interface IStackSynthesizer
addFileAsset
in class DefaultStackSynthesizer
_asset
- This parameter is required.public void synthesize(ISynthesisSession session)
synthesize
in interface IStackSynthesizer
synthesize
in class DefaultStackSynthesizer
session
- This parameter is required.