AssetManifest

class aws_cdk.cloud_assembly_schema.AssetManifest(*, version, docker_images=None, files=None)

Bases: object

Definitions for the asset manifest.

Parameters
  • version (str) – Version of the manifest.

  • docker_images (Optional[Mapping[str, DockerImageAsset]]) – The Docker image assets in this manifest. Default: - No Docker images

  • files (Optional[Mapping[str, FileAsset]]) – The file assets in this manifest. Default: - No files

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.cloud_assembly_schema as cloud_assembly_schema

asset_manifest = cloud_assembly_schema.AssetManifest(
    version="version",

    # the properties below are optional
    docker_images={
        "docker_images_key": cloud_assembly_schema.DockerImageAsset(
            destinations={
                "destinations_key": cloud_assembly_schema.DockerImageDestination(
                    image_tag="imageTag",
                    repository_name="repositoryName",

                    # the properties below are optional
                    assume_role_arn="assumeRoleArn",
                    assume_role_external_id="assumeRoleExternalId",
                    region="region"
                )
            },
            source=cloud_assembly_schema.DockerImageSource(
                directory="directory",
                docker_build_args={
                    "docker_build_args_key": "dockerBuildArgs"
                },
                docker_build_target="dockerBuildTarget",
                docker_file="dockerFile",
                executable=["executable"],
                network_mode="networkMode",
                platform="platform"
            )
        )
    },
    files={
        "files_key": cloud_assembly_schema.FileAsset(
            destinations={
                "destinations_key": cloud_assembly_schema.FileDestination(
                    bucket_name="bucketName",
                    object_key="objectKey",

                    # the properties below are optional
                    assume_role_arn="assumeRoleArn",
                    assume_role_external_id="assumeRoleExternalId",
                    region="region"
                )
            },
            source=cloud_assembly_schema.FileSource(
                executable=["executable"],
                packaging=cloud_assembly_schema.FileAssetPackaging.FILE,
                path="path"
            )
        )
    }
)

Attributes

docker_images

The Docker image assets in this manifest.

Default
  • No Docker images

Return type

Optional[Mapping[str, DockerImageAsset]]

files

The file assets in this manifest.

Default
  • No files

Return type

Optional[Mapping[str, FileAsset]]

version

Version of the manifest.

Return type

str