

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 `ModifyWorkspaceProperties` dengan CLI
<a name="workspaces_example_workspaces_ModifyWorkspaceProperties_section"></a>

Contoh kode berikut menunjukkan cara menggunakan`ModifyWorkspaceProperties`.

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

**AWS CLI**  
**Untuk memodifikasi mode berjalan WorkSpace**  
`modify-workspace-properties`Contoh berikut menetapkan mode berjalan dari yang ditentukan WorkSpace untuk`AUTO_STOP`.  

```
aws workspaces modify-workspace-properties \
    --workspace-id ws-dk1xzr417 \
    --workspace-properties RunningMode=AUTO_STOP
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Memodifikasi WorkSpace](https://docs.aws.amazon.com/workspaces/latest/adminguide/modify-workspaces.html) di *Panduan WorkSpaces Administrasi Amazon*.  
+  Untuk detail API, lihat [ModifyWorkspaceProperties](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/workspaces/modify-workspace-properties.html)di *Referensi AWS CLI Perintah*. 

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

**Alat untuk PowerShell V4**  
**Contoh 1: Contoh ini mengubah Properti Workspace Running Mode menjadi Auto Stop untuk Workspace yang ditentukan**  

```
Edit-WKSWorkspaceProperty -WorkspaceId ws-w361s100v -Region us-west-2 -WorkspaceProperties_RunningMode AUTO_STOP
```
+  Untuk detail API, lihat [ModifyWorkspaceProperties](https://docs.aws.amazon.com/powershell/v4/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V4)*. 

**Alat untuk PowerShell V5**  
**Contoh 1: Contoh ini mengubah Properti Workspace Running Mode menjadi Auto Stop untuk Workspace yang ditentukan**  

```
Edit-WKSWorkspaceProperty -WorkspaceId ws-w361s100v -Region us-west-2 -WorkspaceProperties_RunningMode AUTO_STOP
```
+  Untuk detail API, lihat [ModifyWorkspaceProperties](https://docs.aws.amazon.com/powershell/v5/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V5)*. 

------