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, Union[DockerImageAsset, Dict[str, Any]]]]) – The Docker image assets in this manifest. Default: - No Docker images

  • files (Optional[Mapping[str, Union[FileAsset, Dict[str, Any]]]]) – 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(
                cache_disabled=False,
                cache_from=[cloud_assembly_schema.DockerCacheOption(
                    type="type",

                    # the properties below are optional
                    params={
                        "params_key": "params"
                    }
                )],
                cache_to=cloud_assembly_schema.DockerCacheOption(
                    type="type",

                    # the properties below are optional
                    params={
                        "params_key": "params"
                    }
                ),
                directory="directory",
                docker_build_args={
                    "docker_build_args_key": "dockerBuildArgs"
                },
                docker_build_secrets={
                    "docker_build_secrets_key": "dockerBuildSecrets"
                },
                docker_build_ssh="dockerBuildSsh",
                docker_build_target="dockerBuildTarget",
                docker_file="dockerFile",
                docker_outputs=["dockerOutputs"],
                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

files

The file assets in this manifest.

Default:
  • No files

version

Version of the manifest.