DockerCacheOption
- class aws_cdk.DockerCacheOption(*, type, params=None)
Bases:
object
Options for configuring the Docker cache backend.
- Parameters:
type (
str
) – The type of cache to use. Refer to https://docs.docker.com/build/cache/backends/ for full list of backends. Default: - unspecifiedparams (
Optional
[Mapping
[str
,str
]]) – Any parameters to pass into the docker cache backend configuration. Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration. Default: {} No options provided
- 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 as cdk docker_cache_option = cdk.DockerCacheOption( type="type", # the properties below are optional params={ "params_key": "params" } )
Attributes
- params
Any parameters to pass into the docker cache backend configuration.
Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.
- Default:
{} No options provided
Example:
# branch: str params = { "ref": f"12345678.dkr.ecr.us-west-2.amazonaws.com/cache:{branch}", "mode": "max" }
- type
The type of cache to use.
Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.
- Default:
unspecified
Example:
"registry"