# ContainerImageConfig

The configuration for creating a container image.

- Source: [`aws-ecs/lib/container-image.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ecs/lib/container-image.ts#L89)

## Example

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

  // the properties below are optional
  repositoryCredentials: {
    credentialsParameter: 'credentialsParameter',
  },
};
```

## Properties

- `imageName`: string (required) — Specifies the name of the container image.

- `repositoryCredentials`: [CfnTaskDefinition.RepositoryCredentialsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnTaskDefinition.RepositoryCredentialsProperty.html) — Specifies the credentials used to access the image repository.
