DockerImageAsset

class aws_cdk.cloud_assembly_schema.DockerImageAsset(*, destinations, source)

Bases: object

A file asset.

Parameters:
  • destinations (Mapping[str, Union[DockerImageDestination, Dict[str, Any]]]) – Destinations for this file asset.

  • source (Union[DockerImageSource, Dict[str, Any]]) – Source description for file assets.

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

docker_image_asset = 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"
    )
)

Attributes

destinations

Destinations for this file asset.

source

Source description for file assets.