# RestartPolicyProperty

- Source: Generated code
- Type last changed: v2.249.0 · 13 Apr 2026

## 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 restartPolicyProperty: ecs.CfnDaemonTaskDefinition.RestartPolicyProperty = {
  enabled: false,
  ignoredExitCodes: [123],
  restartAttemptPeriod: 123,
};
```

## Properties

- `enabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html)

- `ignoredExitCodes`: number[] | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html)

- `restartAttemptPeriod`: number
