# ContainerImageAssetCacheOption

Options for configuring the Docker cache backend.

- Source: [`node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.d.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/metadata-schema.d.ts#L75)
- Type last changed: v2.69.0 · 14 Mar 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
const containerImageAssetCacheOption: cloud_assembly_schema.ContainerImageAssetCacheOption = {
  type: 'type',

  // the properties below are optional
  params: {
    paramsKey: 'params',
  },
};
```

## Properties

- `params`: { [key: string]: string } = {} No options provided — Any parameters to pass into the docker cache backend configuration.

  Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.

  ```ts
  declare const branch: string;

  const params = {
    ref: `12345678.dkr.ecr.us-west-2.amazonaws.com/cache:${branch}`,
    mode: "max",
  };
  ```

- `type`: string (required) = unspecified — The type of cache to use.

  Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.

  ```ts
  'registry'
  ```
