

Doc AWS SDK 예제 GitHub 리포지토리에서 더 많은 SDK 예제를 사용할 수 있습니다. [AWS](https://github.com/awsdocs/aws-doc-sdk-examples) 

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

# CLI로 `StopDeployment` 사용
<a name="codedeploy_example_codedeploy_StopDeployment_section"></a>

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

------
#### [ CLI ]

**AWS CLI**  
**배포 중지를 시도하는 방법**  
다음 `stop-deployment` 예시에서는 사용자 AWS 계정과 연결된 진행 중인 배포를 중지하려고 시도합니다.  
aws deploy stop-deployment --deployment-id d-A1B2C3111  
출력:  

```
{
    "status": "Succeeded",
    "statusMessage": "No more commands will be scheduled for execution in the deployment instances"
}
```
+  API 세부 정보는 *AWS CLI 명령 참조*의 [StopDeployment](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/deploy/stop-deployment.html) 섹션을 참조하세요.

------
#### [ PowerShell ]

**Tools for PowerShell V4**  
**예제 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 참조(V4)*의 [StopDeployment](https://docs.aws.amazon.com/powershell/v4/reference)를 참조하세요.

**Tools for PowerShell V5**  
**예제 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 참조(V5)*의 [StopDeployment](https://docs.aws.amazon.com/powershell/v5/reference)를 참조하세요.

------