Skip to content

Stop Service Deployment

ecs_stop_service_deployment R Documentation

Stops an ongoing service deployment

Description

Stops an ongoing service deployment.

The following stop types are avaiable:

  • ROLLBACK - This option rolls back the service deployment to the previous service revision.

You can use this option even if you didn't configure the service deployment for the rollback option.

For more information, see Stopping Amazon ECS service deployments in the Amazon Elastic Container Service Developer Guide.

Usage

ecs_stop_service_deployment(serviceDeploymentArn, stopType)

Arguments

serviceDeploymentArn

[required] The ARN of the service deployment that you want to stop.

stopType

How you want Amazon ECS to stop the service.

The valid values are ROLLBACK.

Value

A list with the following syntax:

list(
  serviceDeploymentArn = "string"
)

Request syntax

svc$stop_service_deployment(
  serviceDeploymentArn = "string",
  stopType = "ABORT"|"ROLLBACK"
)