# ImagePullPolicy

Determines when the image is pulled from the registry to launch a container.

- Source: [`aws-batch/lib/eks-container-definition.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-batch/lib/eks-container-definition.ts#L260)
- Type last changed: v2.96.0 · 13 Sep 2023

## Members

| Member | Description |
| --- | --- |
| `ALWAYS` | Every time the kubelet launches a container, the kubelet queries the container image registry to resolve the name to an image digest. |
| `IF_NOT_PRESENT` | The image is pulled only if it is not already present locally. |
| `NEVER` | The kubelet does not try fetching the image. |

## Referenced by

- [`EksContainerDefinition`](/v2/docs/aws-cdk-lib.aws_batch.EksContainerDefinition).imagePullPolicy
- [`EksContainerDefinitionProps`](/v2/docs/aws-cdk-lib.aws_batch.EksContainerDefinitionProps).imagePullPolicy
- [`IEksContainerDefinition`](/v2/docs/aws-cdk-lib.aws_batch.IEksContainerDefinition).imagePullPolicy
