CloudAssemblyBuilder

class aws_cdk.cx_api.CloudAssemblyBuilder(outdir=None)

Bases: object

Can be used to build a cloud assembly.

stability :stability: experimental

__init__(outdir=None)

Initializes a cloud assembly builder.

Parameters

outdir (Optional[str]) – The output directory, uses temporary directory if undefined.

stability :stability: experimental

Return type

None

Methods

add_artifact(id, *, type, dependencies=None, environment=None, metadata=None, properties=None)

Adds an artifact into the cloud assembly.

Parameters
  • id (str) – The ID of the artifact.

  • type (ArtifactType) – The type of artifact.

  • dependencies (Optional[List[str]]) – IDs of artifacts that must be deployed before this artifact. Default: - no dependencies.

  • environment (Optional[str]) – The environment into which this artifact is deployed. Default: - no envrionment.

  • metadata (Optional[Mapping[str, List[MetadataEntry]]]) – Associated metadata. Default: - no metadata.

  • properties (Union[AwsCloudFormationStackProperties, None, AssetManifestProperties, TreeArtifactProperties]) – The set of properties for this artifact (depends on type). Default: - no properties.

stability :stability: experimental

Return type

None

add_missing(*, key, props, provider)

Reports that some context is missing in order for this cloud assembly to be fully synthesized.

Parameters

stability :stability: experimental

Return type

None

build_assembly(*, runtime_info=None)

Finalizes the cloud assembly into the output directory returns a CloudAssembly object that can be used to inspect the assembly.

Parameters

runtime_info (Optional[RuntimeInfo]) – Include the specified runtime information (module versions) in manifest. Default: - if this option is not specified, runtime info will not be included

stability :stability: experimental

Return type

CloudAssembly

Attributes

outdir

The root directory of the resulting cloud assembly.

stability :stability: experimental

Return type

str