restartPolicy

@JvmName(name = "gxijwnoaoikynget")
suspend fun restartPolicy(value: Output<TaskDefinitionRestartPolicyArgs>)
@JvmName(name = "ruafvkotswimphhc")
suspend fun restartPolicy(value: TaskDefinitionRestartPolicyArgs?)

Parameters

value

The restart policy for a container. When you set up a restart policy, Amazon ECS can restart the container without needing to replace the task. For more information, see Restart individual containers in Amazon ECS tasks with container restart policies in the Amazon Elastic Container Service Developer Guide.


@JvmName(name = "cnsrvxslsahpfmtc")
suspend fun restartPolicy(argument: suspend TaskDefinitionRestartPolicyArgsBuilder.() -> Unit)

Parameters

argument

The restart policy for a container. When you set up a restart policy, Amazon ECS can restart the container without needing to replace the task. For more information, see Restart individual containers in Amazon ECS tasks with container restart policies in the Amazon Elastic Container Service Developer Guide.