View source: R/ecs_operations.R
ecs_update_task_protection | R Documentation |
Updates the protection status of a task. You can set protectionEnabled
to true
to protect your task from termination during scale-in events from Service Autoscaling or deployments.
See https://www.paws-r-sdk.com/docs/ecs_update_task_protection/ for full documentation.
ecs_update_task_protection(
cluster,
tasks,
protectionEnabled,
expiresInMinutes = NULL
)
cluster |
[required] The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist in. |
tasks |
[required] A list of up to 10 task IDs or full ARN entries. |
protectionEnabled |
[required] Specify |
expiresInMinutes |
If you set If you don’t specify the time, then the task is automatically protected for 120 minutes (2 hours). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.