

Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh [SDK AWS Doc](https://github.com/awsdocs/aws-doc-sdk-examples). GitHub 

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Gunakan `StopAutomationExecution` dengan CLI
<a name="ssm_example_ssm_StopAutomationExecution_section"></a>

Contoh kode berikut menunjukkan cara menggunakan`StopAutomationExecution`.

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

**AWS CLI**  
**Untuk menghentikan eksekusi otomatisasi**  
`stop-automation-execution`Contoh berikut menghentikan dokumen Otomasi.  

```
aws ssm stop-automation-execution
    --automation-execution-id "4105a4fc-f944-11e6-9d32-0a1b2EXAMPLE"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Menjalankan Alur Kerja Otomasi Secara Manual](https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-working-executing-manually.html) di *Panduan Pengguna AWS Systems Manager*.  
+  Untuk detail API, lihat [StopAutomationExecution](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ssm/stop-automation-execution.html)di *Referensi AWS CLI Perintah*. 

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

**Alat untuk PowerShell V4**  
**Contoh 1: Contoh ini menghentikan Eksekusi Otomasi. Tidak ada output jika perintah berhasil.**  

```
Stop-SSMAutomationExecution -AutomationExecutionId "4105a4fc-f944-11e6-9d32-8fb2db27a909"
```
+  Untuk detail API, lihat [StopAutomationExecution](https://docs.aws.amazon.com/powershell/v4/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V4)*. 

**Alat untuk PowerShell V5**  
**Contoh 1: Contoh ini menghentikan Eksekusi Otomasi. Tidak ada output jika perintah berhasil.**  

```
Stop-SSMAutomationExecution -AutomationExecutionId "4105a4fc-f944-11e6-9d32-8fb2db27a909"
```
+  Untuk detail API, lihat [StopAutomationExecution](https://docs.aws.amazon.com/powershell/v5/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V5)*. 

------