StopDeploymentOR와 함께 사용 AWS SDK CLI - AWS SDK코드 예제

AWS 문서 AWS SDK SDK 예제 GitHub 리포지토리에 더 많은 예제가 있습니다.

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

StopDeploymentOR와 함께 사용 AWS SDK CLI

다음 코드 예제는 StopDeployment의 사용 방법을 보여 줍니다.

CLI
AWS CLI

배포를 중단하려고 시도하려면

다음 stop-deployment 예시에서는 사용자 AWS 계정과 연결된 진행 중인 배포를 중지하려고 시도합니다.

aws deploy - 배포 중지 --deployment-id D-A1B2C3111

출력:

{ "status": "Succeeded", "statusMessage": "No more commands will be scheduled for execution in the deployment instances" }
  • API자세한 내용은 명령 참조를 참조하십시오 StopDeployment.AWS CLI

PowerShell
에 대한 도구 PowerShell

예 1: 이 예에서는 지정된 배포 ID로 배포를 중지하려고 시도합니다.

Stop-CDDeployment -DeploymentId d-LJQNREYEX

출력:

Status StatusMessage ------ ------------- Pending Stopping Pending. Stopping to schedule commands in the deployment instances
  • 자세한 API 내용은 AWS Tools for PowerShell Cmdlet 참조를 참조하십시오 StopDeployment.