Describe the feature
The RestartPolicy L1 construct is now available https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnTaskDefinition.RestartPolicyProperty.html, but it cannot be conveniently set up using L2 ContainerDefinition.
Use Case
I use L2 constructs for setting up ECS services and need to set the restart policy for a container.
Proposed Solution
Add restartPolicy field to ContainerDefinition.
Other Information
No response
Acknowledgements
CDK version used
2.158.0
Environment details (OS name and version, etc.)
Typescript
Describe the feature
The RestartPolicy L1 construct is now available https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnTaskDefinition.RestartPolicyProperty.html, but it cannot be conveniently set up using L2 ContainerDefinition.
Use Case
I use L2 constructs for setting up ECS services and need to set the restart policy for a container.
Proposed Solution
Add
restartPolicyfield to ContainerDefinition.Other Information
No response
Acknowledgements
CDK version used
2.158.0
Environment details (OS name and version, etc.)
Typescript