

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

# Contoh Amazon Chime menggunakan AWS CLI
<a name="cli_chime_code_examples"></a>

Contoh kode berikut menunjukkan cara melakukan tindakan dan mengimplementasikan skenario umum dengan menggunakan AWS Command Line Interface With Amazon Chime.

*Tindakan* merupakan kutipan kode dari program yang lebih besar dan harus dijalankan dalam konteks. Sementara tindakan menunjukkan cara memanggil fungsi layanan individual, Anda dapat melihat tindakan dalam konteks dalam skenario terkait.

Setiap contoh menyertakan tautan ke kode sumber lengkap, di mana Anda dapat menemukan instruksi tentang cara mengatur dan menjalankan kode dalam konteks.

**Topics**
+ [Tindakan](#actions)

## Tindakan
<a name="actions"></a>

### `associate-phone-number-with-user`
<a name="chime_AssociatePhoneNumberWithUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`associate-phone-number-with-user`.

**AWS CLI**  
**Untuk mengaitkan nomor telepon dengan pengguna**  
`associate-phone-number-with-user`Contoh berikut mengaitkan nomor telepon yang ditentukan dengan pengguna.  

```
aws chime associate-phone-number-with-user \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --user-id 1ab2345c-67de-8901-f23g-45h678901j2k \
    --e164-phone-number "+12065550100"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Mengelola Nomor Telepon Pengguna](https://docs.aws.amazon.com/chime/latest/ag/user-phone.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [AssociatePhoneNumberWithUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/associate-phone-number-with-user.html)di *Referensi AWS CLI Perintah*. 

### `associate-signin-delegate-groups-with-account`
<a name="chime_AssociateSigninDelegateGroupsWithAccount_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`associate-signin-delegate-groups-with-account`.

**AWS CLI**  
**Untuk mengaitkan grup delegasi masuk**  
`associate-signin-delegate-groups-with-account`Contoh berikut mengaitkan grup delegasi login yang ditentukan dengan akun Amazon Chime yang ditentukan.  

```
aws chime associate-signin-delegate-groups-with-account \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --signin-delegate-groups GroupName=my_users
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Mengelola Akses Pengguna dan Izin](https://docs.aws.amazon.com/chime/latest/ag/manage-access.html) di Panduan Administrasi *Amazon Chime*.  
+  Untuk detail API, lihat [AssociateSigninDelegateGroupsWithAccount](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/associate-signin-delegate-groups-with-account.html)di *Referensi AWS CLI Perintah*. 

### `batch-create-room-membership`
<a name="chime_BatchCreateRoomMembership_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`batch-create-room-membership`.

**AWS CLI**  
**Untuk membuat beberapa keanggotaan kamar**  
`batch-create-room-membership`Contoh berikut menambahkan beberapa pengguna ke ruang obrolan sebagai anggota ruang obrolan. Ini juga memberikan peran administrator dan anggota kepada pengguna.  

```
aws chime batch-create-room-membership \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j \
    --membership-item-list "MemberId=1ab2345c-67de-8901-f23g-45h678901j2k,Role=Administrator" "MemberId=2ab2345c-67de-8901-f23g-45h678901j2k,Role=Member"
```
Output:  

```
{
    "ResponseMetadata": {
        "RequestId": "169ba401-d886-475f-8b3f-e01eac6fadfb",
        "HTTPStatusCode": 201,
        "HTTPHeaders": {
            "x-amzn-requestid": "169ba401-d886-475f-8b3f-e01eac6fadfb",
            "content-type": "application/json",
            "content-length": "13",
            "date": "Mon, 02 Dec 2019 22:46:58 GMT",
            "connection": "keep-alive"
        },
        "RetryAttempts": 0
    },
    "Errors": []
}
```
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [BatchCreateRoomMembership](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/batch-create-room-membership.html)di *Referensi AWS CLI Perintah*. 

### `batch-delete-phone-number`
<a name="chime_BatchDeletePhoneNumber_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`batch-delete-phone-number`.

**AWS CLI**  
**Untuk menghapus beberapa nomor telepon**  
`batch-delete-phone-number`Contoh berikut menghapus semua nomor telepon yang ditentukan.  

```
aws chime batch-delete-phone-number \
    --phone-number-ids "%2B12065550100" "%2B12065550101"
```
Perintah ini tidak menghasilkan output. Output:  

```
{
    "PhoneNumberErrors": []
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [BatchDeletePhoneNumber](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/batch-delete-phone-number.html)di *Referensi AWS CLI Perintah*. 

### `batch-suspend-user`
<a name="chime_BatchSuspendUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`batch-suspend-user`.

**AWS CLI**  
**Untuk menangguhkan beberapa pengguna**  
`batch-suspend-user`Contoh berikut menangguhkan pengguna yang terdaftar dari akun Amazon Chime yang ditentukan.  

```
aws chime batch-suspend-user \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --user-id-list "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE" "a1b2c3d4-5678-90ab-cdef-33333EXAMPLE" "a1b2c3d4-5678-90ab-cdef-44444EXAMPLE"
```
Output:  

```
{
    "UserErrors": []
}
```
+  Untuk detail API, lihat [BatchSuspendUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/batch-suspend-user.html)di *Referensi AWS CLI Perintah*. 

### `batch-unsuspend-user`
<a name="chime_BatchUnsuspendUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`batch-unsuspend-user`.

**AWS CLI**  
**Untuk membatalkan penangguhan beberapa pengguna**  
`batch-unsuspend-user`Contoh berikut menghapus penangguhan sebelumnya untuk pengguna yang terdaftar di akun Amazon Chime yang ditentukan.  

```
aws chime batch-unsuspend-user \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --user-id-list "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE" "a1b2c3d4-5678-90ab-cdef-33333EXAMPLE" "a1b2c3d4-5678-90ab-cdef-44444EXAMPLE"
```
Output:  

```
{
    "UserErrors": []
}
```
+  Untuk detail API, lihat [BatchUnsuspendUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/batch-unsuspend-user.html)di *Referensi AWS CLI Perintah*. 

### `batch-update-phone-number`
<a name="chime_BatchUpdatePhoneNumber_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`batch-update-phone-number`.

**AWS CLI**  
**Untuk memperbarui beberapa jenis produk nomor telepon secara bersamaan**  
`batch-update-phone-number`Contoh berikut memperbarui jenis produk untuk semua nomor telepon yang ditentukan.  

```
aws chime batch-update-phone-number \
    --update-phone-number-request-items PhoneNumberId=%2B12065550100,ProductType=BusinessCalling PhoneNumberId=%2B12065550101,ProductType=BusinessCalling
```
Output:  

```
{
    "PhoneNumberErrors": []
}
```
**Untuk memperbarui beberapa nama panggilan nomor telepon secara bersamaan**  
`batch-update-phone-number`Contoh berikut memperbarui nama panggilan untuk semua nomor telepon yang ditentukan.  

```
aws chime batch-update-phone-number \
    --update-phone-number-request-items PhoneNumberId=%2B14013143874,CallingName=phonenumber1 PhoneNumberId=%2B14013144061,CallingName=phonenumber2
```
Output:  

```
{
    "PhoneNumberErrors": []
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [BatchUpdatePhoneNumber](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/batch-update-phone-number.html)di *Referensi AWS CLI Perintah*. 

### `batch-update-user`
<a name="chime_BatchUpdateUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`batch-update-user`.

**AWS CLI**  
**Untuk memperbarui beberapa pengguna dalam satu perintah**  
`batch-update-user`Contoh berikut memperbarui `LicenseType` untuk setiap pengguna yang terdaftar di akun Amazon Chime yang ditentukan.  

```
aws chime batch-update-user \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE
    --update-user-request-items "UserId=a1b2c3d4-5678-90ab-cdef-22222EXAMPLE,LicenseType=Basic" "UserId=a1b2c3d4-5678-90ab-cdef-33333EXAMPLE,LicenseType=Basic"
```
Output:  

```
{
    "UserErrors": []
}
```
+  Untuk detail API, lihat [BatchUpdateUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/batch-update-user.html)di *Referensi AWS CLI Perintah*. 

### `create-account`
<a name="chime_CreateAccount_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-account`.

**AWS CLI**  
**Untuk membuat akun**  
`create-account`Contoh berikut membuat akun Amazon Chime di bawah akun administrator. AWS   

```
aws chime create-account \
    --name MyChimeAccount
```
Output:  

```
{
    "Account": {
        "AwsAccountId": "111122223333",
        "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
        "Name": "MyChimeAccount",
        "AccountType": "Team",
        "CreatedTimestamp": "2019-01-04T17:11:22.003Z",
        "DefaultLicense": "Pro",
        "SupportedLicenses": [
            "Basic",
            "Pro"
        ],
        "SigninDelegateGroups": [
            {
                "GroupName": "myGroup"
            },
        ]
    }
}
```
Untuk informasi selengkapnya, lihat [Memulai](https://docs.aws.amazon.com/chime/latest/ag/getting-started.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [CreateAccount](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/create-account.html)di *Referensi AWS CLI Perintah*. 

### `create-bot`
<a name="chime_CreateBot_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-bot`.

**AWS CLI**  
**Untuk membuat bot Amazon Chime**  
`create-bot`Contoh berikut membuat bot untuk akun Amazon Chime Enterprise yang ditentukan.  

```
aws chime create-bot \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --display-name "myBot" \
    --domain "example.com"
```
Output:  

```
{
    "Bot": {
        "BotId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "UserId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "DisplayName": "myBot (Bot)",
        "BotType": "ChatBot",
        "Disabled": false,
        "CreatedTimestamp": "2019-09-09T18:05:56.749Z",
        "UpdatedTimestamp": "2019-09-09T18:05:56.749Z",
        "BotEmail": "myBot-chimebot@example.com",
        "SecurityToken": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
    }
}
```
Untuk informasi selengkapnya, lihat [Mengintegrasikan Bot Obrolan dengan Amazon Chime](https://docs.aws.amazon.com/chime/latest/dg/integrate-bots.html) di Panduan Pengembang *Amazon Chime*.  
+  Untuk detail API, lihat [CreateBot](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/create-bot.html)di *Referensi AWS CLI Perintah*. 

### `create-phone-number-order`
<a name="chime_CreatePhoneNumberOrder_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-phone-number-order`.

**AWS CLI**  
**Untuk membuat pesanan nomor telepon**  
`create-phone-number-order`Contoh berikut membuat urutan nomor telepon untuk nomor telepon yang ditentukan.  

```
aws chime create-phone-number-order \
    --product-type VoiceConnector \
    --e164-phone-numbers "+12065550100" "+12065550101" "+12065550102"
```
Output:  

```
{
    "PhoneNumberOrder": {
        "PhoneNumberOrderId": "abc12345-de67-89f0-123g-h45i678j9012",
        "ProductType": "VoiceConnector",
        "Status": "Processing",
        "OrderedPhoneNumbers": [
            {
                "E164PhoneNumber": "+12065550100",
                "Status": "Processing"
            },
            {
               "E164PhoneNumber": "+12065550101",
               "Status": "Processing"
            },
            {
              "E164PhoneNumber": "+12065550102",
              "Status": "Processing"
            }
        ],
        "CreatedTimestamp": "2019-08-09T21:35:21.427Z",
        "UpdatedTimestamp": "2019-08-09T21:35:22.408Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [CreatePhoneNumberOrder](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/create-phone-number-order.html)di *Referensi AWS CLI Perintah*. 

### `create-room-membership`
<a name="chime_CreateRoomMembership_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-room-membership`.

**AWS CLI**  
**Untuk membuat keanggotaan kamar**  
`create-room-membership`Contoh berikut menambahkan pengguna yang ditentukan ke ruang obrolan sebagai anggota ruang obrolan.  

```
aws chime create-room-membership \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j \
    --member-id 1ab2345c-67de-8901-f23g-45h678901j2k
```
Output:  

```
{
    "RoomMembership": {
        "RoomId": "abcd1e2d-3e45-6789-01f2-3g45h67i890j",
        "Member": {
            "MemberId": "1ab2345c-67de-8901-f23g-45h678901j2k",
            "MemberType": "User",
            "Email": "janed@example.com",
            "FullName": "Jane Doe",
            "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45"
        },
        "Role": "Member",
        "InvitedBy": "arn:aws:iam::111122223333:user/alejandro",
        "UpdatedTimestamp": "2019-12-02T22:36:41.969Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [CreateRoomMembership](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/create-room-membership.html)di *Referensi AWS CLI Perintah*. 

### `create-room`
<a name="chime_CreateRoom_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-room`.

**AWS CLI**  
**Untuk membuat ruang obrolan**  
`create-room`Contoh berikut membuat ruang obrolan untuk akun Amazon Chime yang ditentukan.  

```
aws chime create-room \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --name chatRoom
```
Output:  

```
{
    "Room": {
        "RoomId": "abcd1e2d-3e45-6789-01f2-3g45h67i890j",
        "Name": "chatRoom",
        "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45",
        "CreatedBy": "arn:aws:iam::111122223333:user/alejandro",
        "CreatedTimestamp": "2019-12-02T22:29:31.549Z",
        "UpdatedTimestamp": "2019-12-02T22:29:31.549Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [CreateRoom](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/create-room.html)di *Referensi AWS CLI Perintah*. 

### `create-user`
<a name="chime_CreateUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-user`.

**AWS CLI**  
**Untuk membuat profil pengguna untuk perangkat bersama**  
`create-user`Contoh berikut membuat profil perangkat bersama untuk alamat email yang ditentukan.  

```
aws chime create-user \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --email roomdevice@example.com \
    --user-type SharedDevice
```
Output:  

```
{
    "User": {
        "UserId": "1ab2345c-67de-8901-f23g-45h678901j2k",
        "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45",
        "PrimaryEmail": "roomdevice@example.com",
        "DisplayName": "Room Device",
        "LicenseType": "Pro",
        "UserType": "SharedDevice",
        "UserRegistrationStatus": "Registered",
        "RegisteredOn": "2020-01-15T22:38:09.806Z",
        "AlexaForBusinessMetadata": {
            "IsAlexaForBusinessEnabled": false
        }
    }
}
```
Untuk informasi selengkapnya, lihat [Mempersiapkan Pengaturan](https://docs.aws.amazon.com/chime/latest/ag/prepare-setup.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [CreateUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/create-user.html)di *Referensi AWS CLI Perintah*. 

### `delete-account`
<a name="chime_DeleteAccount_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-account`.

**AWS CLI**  
**Untuk menghapus akun**  
`delete-account`Contoh berikut menghapus akun yang ditentukan.  

```
aws chime delete-account --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Menghapus Akun Anda](https://docs.aws.amazon.com/chime/latest/ag/enterprise-account.html) di Panduan Administrasi *Amazon Chime*.  
+  Untuk detail API, lihat [DeleteAccount](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/delete-account.html)di *Referensi AWS CLI Perintah*. 

### `delete-phone-number`
<a name="chime_DeletePhoneNumber_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-phone-number`.

**AWS CLI**  
**Untuk menghapus nomor telepon**  
`delete-phone-number`Contoh berikut memindahkan nomor telepon yang ditentukan ke dalam antrian penghapusan.  

```
aws chime delete-phone-number \
    --phone-number-id "+12065550100"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [DeletePhoneNumber](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/delete-phone-number.html)di *Referensi AWS CLI Perintah*. 

### `delete-room-membership`
<a name="chime_DeleteRoomMembership_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-room-membership`.

**AWS CLI**  
**Untuk menghapus pengguna sebagai anggota ruang obrolan**  
`delete-room-membership`Contoh berikut menghapus anggota yang ditentukan dari ruang obrolan yang ditentukan.  

```
aws chime delete-room-membership \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j \
    --member-id 1ab2345c-67de-8901-f23g-45h678901j2k
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [DeleteRoomMembership](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/delete-room-membership.html)di *Referensi AWS CLI Perintah*. 

### `delete-room`
<a name="chime_DeleteRoom_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-room`.

**AWS CLI**  
**Untuk menghapus ruang obrolan**  
`delete-room`Contoh berikut menghapus ruang obrolan yang ditentukan dan menghapus keanggotaan ruang obrolan.  

```
aws chime delete-room \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [DeleteRoom](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/delete-room.html)di *Referensi AWS CLI Perintah*. 

### `disassociate-phone-number-from-user`
<a name="chime_DisassociatePhoneNumberFromUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`disassociate-phone-number-from-user`.

**AWS CLI**  
**Untuk memisahkan nomor telepon dari pengguna**  
`disassociate-phone-number-from-user`Contoh berikut memisahkan nomor telepon dari pengguna yang ditentukan.  

```
aws chime disassociate-phone-number-from-user \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --user-id 1ab2345c-67de-8901-f23g-45h678901j2k
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Mengelola Nomor Telepon Pengguna](https://docs.aws.amazon.com/chime/latest/ag/user-phone.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [DisassociatePhoneNumberFromUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/disassociate-phone-number-from-user.html)di *Referensi AWS CLI Perintah*. 

### `disassociate-signin-delegate-groups-from-account`
<a name="chime_DisassociateSigninDelegateGroupsFromAccount_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`disassociate-signin-delegate-groups-from-account`.

**AWS CLI**  
**Untuk memisahkan grup delegasi masuk**  
`disassociate-signin-delegate-groups-from-account`Contoh berikut memisahkan grup delegasi login yang ditentukan dari akun Amazon Chime yang ditentukan.  

```
aws chime disassociate-signin-delegate-groups-from-account \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --group-names "my_users"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Mengelola Akses Pengguna dan Izin](https://docs.aws.amazon.com/chime/latest/ag/manage-access.html) di Panduan Administrasi *Amazon Chime*.  
+  Untuk detail API, lihat [DisassociateSigninDelegateGroupsFromAccount](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/disassociate-signin-delegate-groups-from-account.html)di *Referensi AWS CLI Perintah*. 

### `get-account-settings`
<a name="chime_GetAccountSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-account-settings`.

**AWS CLI**  
**Untuk mengambil pengaturan untuk akun**  
`get-account-settings`Contoh berikut mengambil pengaturan akun untuk akun yang ditentukan.  

```
aws chime get-account-settings --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE
```
Output:  

```
{
    "AccountSettings": {
        "DisableRemoteControl": false,
        "EnableDialOut": false
    }
}
```
Untuk informasi selengkapnya, lihat [Mengelola Akun Amazon Chime](https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) Anda di Panduan Administrasi *Amazon Chime*.  
+  Untuk detail API, lihat [GetAccountSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-account-settings.html)di *Referensi AWS CLI Perintah*. 

### `get-account`
<a name="chime_GetAccount_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-account`.

**AWS CLI**  
**Untuk mengambil detail untuk akun**  
`get-account`Contoh berikut mengambil detail untuk akun Amazon Chime yang ditentukan.  

```
aws chime get-account \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE
```
Output:  

```
{
    "Account": {
        "AwsAccountId": "111122223333",
        "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
        "Name": "EnterpriseDirectory",
        "AccountType": "EnterpriseDirectory",
        "CreatedTimestamp": "2018-12-20T18:38:02.181Z",
        "DefaultLicense": "Pro",
        "SupportedLicenses": [
            "Basic",
            "Pro"
        ],
        "SigninDelegateGroups": [
            {
                "GroupName": "myGroup"
            },
        ]
    }
}
```
Untuk informasi selengkapnya, lihat [Mengelola Akun Amazon Chime](https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) Anda di Panduan Administrasi *Amazon Chime*.  
+  Untuk detail API, lihat [GetAccount](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-account.html)di *Referensi AWS CLI Perintah*. 

### `get-bot`
<a name="chime_GetBot_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-bot`.

**AWS CLI**  
**Untuk mengambil detail tentang bot**  
`get-bot`Contoh berikut menampilkan rincian untuk bot yang ditentukan.  

```
aws chime get-bot \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --bot-id 123abcd4-5ef6-789g-0h12-34j56789012k
```
Output:  

```
{
    "Bot": {
        "BotId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "UserId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "DisplayName": "myBot (Bot)",
        "BotType": "ChatBot",
        "Disabled": false,
        "CreatedTimestamp": "2019-09-09T18:05:56.749Z",
        "UpdatedTimestamp": "2019-09-09T18:05:56.749Z",
        "BotEmail": "myBot-chimebot@example.com",
        "SecurityToken": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
    }
}
```
Untuk informasi selengkapnya, lihat [Memperbarui Bot Obrolan](https://docs.aws.amazon.com/chime/latest/dg/update-bots.html) di Panduan *Pengembang Amazon Chime*.  
+  Untuk detail API, lihat [GetBot](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-bot.html)di *Referensi AWS CLI Perintah*. 

### `get-global-settings`
<a name="chime_GetGlobalSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-global-settings`.

**AWS CLI**  
**Untuk mendapatkan pengaturan global**  
`get-global-settings`Contoh berikut mengambil nama bucket S3 yang digunakan untuk menyimpan catatan detail panggilan untuk Amazon Chime Business Calling dan Amazon Chime Voice Connectors yang terkait dengan akun administrator. AWS   

```
aws chime get-global-settings
```
Output:  

```
{
    "BusinessCalling": {
        "CdrBucket": "s3bucket"
    },
    "VoiceConnector": {
        "CdrBucket": "s3bucket"
    }
}
```
Untuk informasi selengkapnya, lihat [Mengelola Pengaturan Global](https://docs.aws.amazon.com/chime/latest/ag/manage-global.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [GetGlobalSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-global-settings.html)di *Referensi AWS CLI Perintah*. 

### `get-phone-number-order`
<a name="chime_GetPhoneNumberOrder_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-phone-number-order`.

**AWS CLI**  
**Untuk mendapatkan detail untuk pesanan nomor telepon**  
`get-phone-number-order`Contoh berikut menampilkan rincian urutan nomor telepon yang ditentukan.  

```
aws chime get-phone-number-order \
    --phone-number-order-id abc12345-de67-89f0-123g-h45i678j9012
```
Output:  

```
{
    "PhoneNumberOrder": {
        "PhoneNumberOrderId": "abc12345-de67-89f0-123g-h45i678j9012",
        "ProductType": "VoiceConnector",
        "Status": "Partial",
        "OrderedPhoneNumbers": [
            {
              "E164PhoneNumber": "+12065550100",
              "Status": "Acquired"
            },
            {
                "E164PhoneNumber": "+12065550101",
                "Status": "Acquired"
            },
            {
                "E164PhoneNumber": "+12065550102",
                "Status": "Failed"
            }
        ],
        "CreatedTimestamp": "2019-08-09T21:35:21.427Z",
        "UpdatedTimestamp": "2019-08-09T21:35:31.926Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [GetPhoneNumberOrder](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-phone-number-order.html)di *Referensi AWS CLI Perintah*. 

### `get-phone-number-settings`
<a name="chime_GetPhoneNumberSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-phone-number-settings`.

**AWS CLI**  
**Untuk mengambil nama panggilan keluar**  
`get-phone-number-settings`Contoh berikut mengambil nama panggilan keluar default untuk akun pengguna panggilan. AWS   

```
aws chime get-phone-number-settings
```
Perintah ini tidak menghasilkan output. Output:  

```
{
    "CallingName": "myName",
    "CallingNameUpdatedTimestamp": "2019-10-28T18:56:42.911Z"
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [GetPhoneNumberSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-phone-number-settings.html)di *Referensi AWS CLI Perintah*. 

### `get-phone-number`
<a name="chime_GetPhoneNumber_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-phone-number`.

**AWS CLI**  
**Untuk mendapatkan detail nomor telepon**  
`get-phone-number`Contoh berikut menampilkan rincian nomor telepon yang ditentukan.  

```
aws chime get-phone-number \
    --phone-number-id +12065550100
```
Output:  

```
{
    "PhoneNumber": {
        "PhoneNumberId": "%2B12065550100",
        "E164PhoneNumber": "+12065550100",
        "Type": "Local",
        "ProductType": "VoiceConnector",
        "Status": "Unassigned",
        "Capabilities": {
            "InboundCall": true,
            "OutboundCall": true,
            "InboundSMS": true,
            "OutboundSMS": true,
            "InboundMMS": true,
            "OutboundMMS": true
        },
       "Associations": [
            {
                "Value": "abcdef1ghij2klmno3pqr4",
                "Name": "VoiceConnectorId",
                "AssociatedTimestamp": "2019-10-28T18:40:37.453Z"
            }
        ],
        "CallingNameStatus": "UpdateInProgress",
        "CreatedTimestamp": "2019-08-09T21:35:21.445Z",
        "UpdatedTimestamp": "2019-08-09T21:35:31.745Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [GetPhoneNumber](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-phone-number.html)di *Referensi AWS CLI Perintah*. 

### `get-room`
<a name="chime_GetRoom_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-room`.

**AWS CLI**  
**Untuk mendapatkan detail tentang ruang obrolan**  
`get-room`Contoh berikut menampilkan rincian tentang ruang obrolan yang ditentukan.  

```
aws chime get-room \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j
```
Output:  

```
{
    "Room": {
        "RoomId": "abcd1e2d-3e45-6789-01f2-3g45h67i890j",
        "Name": "chatRoom",
        "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45",
        "CreatedBy": "arn:aws:iam::111122223333:user/alejandro",
        "CreatedTimestamp": "2019-12-02T22:29:31.549Z",
        "UpdatedTimestamp": "2019-12-02T22:29:31.549Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [GetRoom](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-room.html)di *Referensi AWS CLI Perintah*. 

### `get-user-settings`
<a name="chime_GetUserSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-user-settings`.

**AWS CLI**  
**Untuk mengambil pengaturan pengguna**  
`get-user-settings`Contoh berikut menampilkan pengaturan pengguna yang ditentukan.  

```
aws chime get-user-settings \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --user-id 1ab2345c-67de-8901-f23g-45h678901j2k
```
Output:  

```
{
    "UserSettings": {
        "Telephony": {
            "InboundCalling": true,
            "OutboundCalling": true,
            "SMS": true
        }
    }
}
```
Untuk informasi selengkapnya, lihat [Mengelola Nomor Telepon Pengguna](https://docs.aws.amazon.com/chime/latest/ag/user-phone.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [GetUserSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-user-settings.html)di *Referensi AWS CLI Perintah*. 

### `get-user`
<a name="chime_GetUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-user`.

**AWS CLI**  
**Untuk mendapatkan detail tentang pengguna**  
`get-user`Contoh berikut mengambil rincian untuk pengguna tertentu.  

```
aws chime get-user \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --user-id a1b2c3d4-5678-90ab-cdef-22222EXAMPLE
```
Output:  

```
{
    "User": {
        "UserId": "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE",
        "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
        "PrimaryEmail": "marthar@example.com",
        "DisplayName": "Martha Rivera",
        "LicenseType": "Pro",
        "UserRegistrationStatus": "Registered",
        "RegisteredOn": "2018-12-20T18:45:25.231Z",
        "InvitedOn": "2018-12-20T18:45:25.231Z",
        "AlexaForBusinessMetadata": {
            "IsAlexaForBusinessEnabled": False,
            "AlexaForBusinessRoomArn": "null"
        },
        "PersonalPIN": "XXXXXXXXXX"
    }
}
```
Untuk informasi selengkapnya, lihat [Mengelola Pengguna](https://docs.aws.amazon.com/chime/latest/ag/manage-users.html) di *Panduan Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [GetUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/get-user.html)di *Referensi AWS CLI Perintah*. 

### `invite-users`
<a name="chime_InviteUsers_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`invite-users`.

**AWS CLI**  
**Untuk mengundang pengguna untuk bergabung dengan Amazon Chime**  
`invite-users`Contoh berikut mengirimkan email untuk mengundang pengguna ke akun Amazon Chime yang ditentukan.  

```
aws chime invite-users \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --user-email-list "alejandror@example.com" "janed@example.com"
```
Output:  

```
{
    "Invites": [
        {
            "InviteId": "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE",
            "Status": "Pending",
            "EmailAddress": "alejandror@example.com",
            "EmailStatus": "Sent"
        }
        {
            "InviteId": "a1b2c3d4-5678-90ab-cdef-33333EXAMPLE",
            "Status": "Pending",
            "EmailAddress": "janed@example.com",
            "EmailStatus": "Sent"
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Mengundang dan Menangguhkan Pengguna](https://docs.aws.amazon.com/chime/latest/ag/manage-access.html#invite-users-team) di Panduan Administrasi *Amazon Chime*.  
+  Untuk detail API, lihat [InviteUsers](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/invite-users.html)di *Referensi AWS CLI Perintah*. 

### `list-accounts`
<a name="chime_ListAccounts_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-accounts`.

**AWS CLI**  
**Untuk mendapatkan daftar akun**  
`list-accounts`Contoh berikut mengambil daftar akun Amazon Chime di akun administrator AWS .  

```
aws chime list-accounts
```
Output:  

```
{
    "Accounts": [
        {
            "AwsAccountId": "111122223333",
            "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
            "Name": "First Chime Account",
            "AccountType": "EnterpriseDirectory",
            "CreatedTimestamp": "2018-12-20T18:38:02.181Z",
            "DefaultLicense": "Pro",
            "SupportedLicenses": [
                "Basic",
                "Pro"
            ],
            "SigninDelegateGroups": [
                {
                    "GroupName": "myGroup"
                },
            ]
        },
        {
            "AwsAccountId": "111122223333",
            "AccountId": "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE",
            "Name": "Second Chime Account",
            "AccountType": "Team",
            "CreatedTimestamp": "2018-09-04T21:44:22.292Z",
            "DefaultLicense": "Pro",
            "SupportedLicenses": [
                "Basic",
                "Pro"
            ],
            "SigninDelegateGroups": [
                {
                    "GroupName": "myGroup"
                },
            ]
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Mengelola Akun Amazon Chime](https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) Anda di Panduan Administrasi *Amazon Chime*.  
+  Untuk detail API, lihat [ListAccounts](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/list-accounts.html)di *Referensi AWS CLI Perintah*. 

### `list-bots`
<a name="chime_ListBots_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-bots`.

**AWS CLI**  
**Untuk mengambil daftar bot**  
`list-bots`Contoh berikut mencantumkan bot yang terkait dengan akun Amazon Chime Enterprise yang ditentukan.  

```
aws chime list-bots \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45
```
Output:  

```
{
    "Bot": {
        "BotId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "UserId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "DisplayName": "myBot (Bot)",
        "BotType": "ChatBot",
        "Disabled": false,
        "CreatedTimestamp": "2019-09-09T18:05:56.749Z",
        "UpdatedTimestamp": "2019-09-09T18:05:56.749Z",
        "BotEmail": "myBot-chimebot@example.com",
        "SecurityToken": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
    }
}
```
Untuk informasi selengkapnya, lihat [Menggunakan Bot Obrolan dengan Amazon](https://docs.aws.amazon.com/chime/latest/dg/use-bots.html) Chime di Panduan Pengembang *Amazon Chime*.  
+  Untuk detail API, lihat [ListBots](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/list-bots.html)di *Referensi AWS CLI Perintah*. 

### `list-phone-number-orders`
<a name="chime_ListPhoneNumberOrders_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-phone-number-orders`.

**AWS CLI**  
**Untuk membuat daftar pesanan nomor telepon**  
`list-phone-number-orders`Contoh berikut mencantumkan urutan nomor telepon yang terkait dengan akun administrator Amazon Chime.  

```
aws chime list-phone-number-orders
```
Output:  

```
{
    "PhoneNumberOrders": [
        {
            "PhoneNumberOrderId": "abc12345-de67-89f0-123g-h45i678j9012",
            "ProductType": "VoiceConnector",
            "Status": "Partial",
            "OrderedPhoneNumbers": [
                {
                    "E164PhoneNumber": "+12065550100",
                    "Status": "Acquired"
                },
                {
                    "E164PhoneNumber": "+12065550101",
                    "Status": "Acquired"
                },
                {
                    "E164PhoneNumber": "+12065550102",
                    "Status": "Failed"
                }
            ],
            "CreatedTimestamp": "2019-08-09T21:35:21.427Z",
            "UpdatedTimestamp": "2019-08-09T21:35:31.926Z"
        }
        {
            "PhoneNumberOrderId": "cba54321-ed76-09f5-321g-h54i876j2109",
            "ProductType": "BusinessCalling",
            "Status": "Partial",
            "OrderedPhoneNumbers": [
                {
                    "E164PhoneNumber": "+12065550103",
                    "Status": "Acquired"
                },
                {
                    "E164PhoneNumber": "+12065550104",
                    "Status": "Acquired"
                },
                {
                    "E164PhoneNumber": "+12065550105",
                    "Status": "Failed"
                }
            ],
            "CreatedTimestamp": "2019-08-09T21:35:21.427Z",
            "UpdatedTimestamp": "2019-08-09T21:35:31.926Z"
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [ListPhoneNumberOrders](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/list-phone-number-orders.html)di *Referensi AWS CLI Perintah*. 

### `list-phone-numbers`
<a name="chime_ListPhoneNumbers_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-phone-numbers`.

**AWS CLI**  
**Untuk mencantumkan nomor telepon untuk akun Amazon Chime**  
`list-phone-numbers`Contoh berikut mencantumkan nomor telepon yang terkait dengan akun Amazon Chime administrator.  

```
aws chime list-phone-numbers
```
Perintah ini tidak menghasilkan output. Output:  

```
{
    "PhoneNumbers": [
        {
            "PhoneNumberId": "%2B12065550100",
            "E164PhoneNumber": "+12065550100",
            "Type": "Local",
            "ProductType": "VoiceConnector",
            "Status": "Assigned",
            "Capabilities": {
                "InboundCall": true,
                "OutboundCall": true,
                "InboundSMS": true,
                "OutboundSMS": true,
                "InboundMMS": true,
                "OutboundMMS": true
            },
            "Associations": [
                {
                    "Value": "abcdef1ghij2klmno3pqr4",
                    "Name": "VoiceConnectorId",
                    "AssociatedTimestamp": "2019-10-28T18:40:37.453Z"
                }
            ],
            "CallingNameStatus": "UpdateInProgress",
            "CreatedTimestamp": "2019-08-12T22:10:20.521Z",
            "UpdatedTimestamp": "2019-10-28T18:42:07.964Z"
        },
        {
            "PhoneNumberId": "%2B12065550101",
            "E164PhoneNumber": "+12065550101",
            "Type": "Local",
            "ProductType": "VoiceConnector",
            "Status": "Assigned",
            "Capabilities": {
                "InboundCall": true,
                "OutboundCall": true,
                "InboundSMS": true,
                "OutboundSMS": true,
                "InboundMMS": true,
                "OutboundMMS": true
            },
            "Associations": [
                {
                    "Value": "abcdef1ghij2klmno3pqr4",
                    "Name": "VoiceConnectorId",
                    "AssociatedTimestamp": "2019-10-28T18:40:37.511Z"
                }
            ],
            "CallingNameStatus": "UpdateInProgress",
            "CreatedTimestamp": "2019-08-12T22:10:20.521Z",
            "UpdatedTimestamp": "2019-10-28T18:42:07.960Z"
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [ListPhoneNumbers](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/list-phone-numbers.html)di *Referensi AWS CLI Perintah*. 

### `list-room-memberships`
<a name="chime_ListRoomMemberships_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-room-memberships`.

**AWS CLI**  
**Untuk daftar keanggotaan kamar**  
`list-room-memberships`Contoh berikut menampilkan daftar rincian keanggotaan untuk chat room yang ditentukan.  

```
aws chime list-room-memberships \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j
```
Output:  

```
{
    "RoomMemberships": [
        {
            "RoomId": "abcd1e2d-3e45-6789-01f2-3g45h67i890j",
            "Member": {
                "MemberId": "2ab2345c-67de-8901-f23g-45h678901j2k",
                "MemberType": "User",
                "Email": "zhangw@example.com",
                "FullName": "Zhang Wei",
                "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45"
            },
            "Role": "Member",
            "InvitedBy": "arn:aws:iam::111122223333:user/alejandro",
            "UpdatedTimestamp": "2019-12-02T22:46:58.532Z"
        },
        {
            "RoomId": "abcd1e2d-3e45-6789-01f2-3g45h67i890j",
            "Member": {
                "MemberId": "1ab2345c-67de-8901-f23g-45h678901j2k",
                "MemberType": "User",
                "Email": "janed@example.com",
                "FullName": "Jane Doe",
                "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45"
            },
            "Role": "Administrator",
            "InvitedBy": "arn:aws:iam::111122223333:user/alejandro",
            "UpdatedTimestamp": "2019-12-02T22:46:58.532Z"
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [ListRoomMemberships](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/list-room-memberships.html)di *Referensi AWS CLI Perintah*. 

### `list-rooms`
<a name="chime_ListRooms_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-rooms`.

**AWS CLI**  
**Untuk daftar ruang obrolan**  
`list-rooms`Contoh berikut menampilkan daftar ruang obrolan di akun yang ditentukan. Daftar difilter hanya ke ruang obrolan yang dimiliki anggota tertentu.  

```
aws chime list-rooms \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --member-id 1ab2345c-67de-8901-f23g-45h678901j2k
```
Output:  

```
{
    "Room": {
        "RoomId": "abcd1e2d-3e45-6789-01f2-3g45h67i890j",
        "Name": "teamRoom",
        "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45",
        "CreatedBy": "arn:aws:iam::111122223333:user/alejandro",
        "CreatedTimestamp": "2019-12-02T22:29:31.549Z",
        "UpdatedTimestamp": "2019-12-02T22:33:19.310Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [ListRooms](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/list-rooms.html)di *Referensi AWS CLI Perintah*. 

### `list-users`
<a name="chime_ListUsers_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-users`.

**AWS CLI**  
**Untuk mencantumkan pengguna di akun**  
`list-users`Contoh berikut mencantumkan pengguna untuk akun Amazon Chime yang ditentukan.  

```
aws chime list-users --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE
```
Output:  

```
{
    "Users": [
        {
            "UserId": "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE",
            "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
            "PrimaryEmail": "mariag@example.com",
            "DisplayName": "Maria Garcia",
            "LicenseType": "Pro",
            "UserType": "PrivateUser",
            "UserRegistrationStatus": "Registered",
            "RegisteredOn": "2018-12-20T18:45:25.231Z"
            "AlexaForBusinessMetadata": {
                "IsAlexaForBusinessEnabled": false
            }
        },
        {
            "UserId": "a1b2c3d4-5678-90ab-cdef-33333EXAMPLE",
            "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
            "PrimaryEmail": "richardr@example.com",
            "DisplayName": "Richard Roe",
            "LicenseType": "Pro",
            "UserType": "PrivateUser",
            "UserRegistrationStatus": "Registered",
            "RegisteredOn": "2018-12-20T18:45:45.415Z"
            "AlexaForBusinessMetadata": {
                "IsAlexaForBusinessEnabled": false
            }
        },
        {
            "UserId": "a1b2c3d4-5678-90ab-cdef-44444EXAMPLE",
            "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
            "PrimaryEmail": "saanvis@example.com",
            "DisplayName": "Saanvi Sarkar",
            "LicenseType": "Basic",
            "UserType": "PrivateUser",
            "UserRegistrationStatus": "Registered",
            "RegisteredOn": "2018-12-20T18:46:57.747Z"
            "AlexaForBusinessMetadata": {
                "IsAlexaForBusinessEnabled": false
            }
        },
        {
            "UserId": "a1b2c3d4-5678-90ab-cdef-55555EXAMPLE",
            "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
            "PrimaryEmail": "wxiulan@example.com",
            "DisplayName": "Wang Xiulan",
            "LicenseType": "Basic",
            "UserType": "PrivateUser",
            "UserRegistrationStatus": "Registered",
            "RegisteredOn": "2018-12-20T18:47:15.390Z"
            "AlexaForBusinessMetadata": {
                "IsAlexaForBusinessEnabled": false
            }
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Mengelola Pengguna](https://docs.aws.amazon.com/chime/latest/ag/manage-users.html) di *Panduan Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [ListUsers](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/list-users.html)di *Referensi AWS CLI Perintah*. 

### `logout-user`
<a name="chime_LogoutUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`logout-user`.

**AWS CLI**  
**Untuk keluar dari pengguna**  
`logout-user`Contoh berikut log out pengguna tertentu.  

```
aws chime logout-user \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --user-id a1b2c3d4-5678-90ab-cdef-22222EXAMPLE
```
Perintah ini tidak menghasilkan output.  
+  Untuk detail API, lihat [LogoutUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/logout-user.html)di *Referensi AWS CLI Perintah*. 

### `regenerate-security-token`
<a name="chime_RegenerateSecurityToken_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`regenerate-security-token`.

**AWS CLI**  
**Untuk meregenerasi token keamanan**  
`regenerate-security-token`Contoh berikut meregenerasi token keamanan untuk bot yang ditentukan.  

```
aws chime regenerate-security-token \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --bot-id 123abcd4-5ef6-789g-0h12-34j56789012k
```
Output:  

```
{
    "Bot": {
        "BotId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "UserId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "DisplayName": "myBot (Bot)",
        "BotType": "ChatBot",
        "Disabled": false,
        "CreatedTimestamp": "2019-09-09T18:05:56.749Z",
        "UpdatedTimestamp": "2019-09-09T18:05:56.749Z",
        "BotEmail": "myBot-chimebot@example.com",
        "SecurityToken": "je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY"
    }
}
```
Untuk informasi selengkapnya, lihat [Mengautentikasi Permintaan Bot Obrolan](https://docs.aws.amazon.com/chime/latest/dg/auth-bots.html) di *Panduan Pengembang Amazon Chime*.  
+  Untuk detail API, lihat [RegenerateSecurityToken](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/regenerate-security-token.html)di *Referensi AWS CLI Perintah*. 

### `reset-personal-pin`
<a name="chime_ResetPersonalPin_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`reset-personal-pin`.

**AWS CLI**  
**Untuk mengatur ulang PIN rapat pribadi pengguna**  
`reset-personal-pin`Contoh berikut mengatur ulang PIN rapat pribadi pengguna yang ditentukan.  

```
aws chime reset-personal-pin \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE
    --user-id a1b2c3d4-5678-90ab-cdef-22222EXAMPLE
```
Output:  

```
{
    "User": {
        "UserId": "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE",
        "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
        "PrimaryEmail": "mateo@example.com",
        "DisplayName": "Mateo Jackson",
        "LicenseType": "Pro",
        "UserType": "PrivateUser",
        "UserRegistrationStatus": "Registered",
        "RegisteredOn": "2018-12-20T18:45:25.231Z",
        "AlexaForBusinessMetadata": {
            "IsAlexaForBusinessEnabled": False,
            "AlexaForBusinessRoomArn": "null"
        },
        "PersonalPIN": "XXXXXXXXXX"
    }
}
```
Untuk informasi selengkapnya, lihat [Mengubah Rapat Pribadi PINs](https://docs.aws.amazon.com/chime/latest/ag/change-PINs.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [ResetPersonalPin](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/reset-personal-pin.html)di *Referensi AWS CLI Perintah*. 

### `restore-phone-number`
<a name="chime_RestorePhoneNumber_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`restore-phone-number`.

**AWS CLI**  
**Untuk mengembalikan nomor telepon**  
`restore-phone-number`Contoh berikut mengembalikan nomor telepon yang ditentukan dari antrian penghapusan.  

```
aws chime restore-phone-number \
    --phone-number-id "+12065550100"
```
Output:  

```
{
    "PhoneNumber": {
        "PhoneNumberId": "%2B12065550100",
        "E164PhoneNumber": "+12065550100",
        "Type": "Local",
        "ProductType": "BusinessCalling",
        "Status": "Unassigned",
        "Capabilities": {
            "InboundCall": true,
            "OutboundCall": true,
            "InboundSMS": true,
            "OutboundSMS": true,
            "InboundMMS": true,
            "OutboundMMS": true
        },
        "Associations": [],
        "CreatedTimestamp": "2019-08-09T21:35:21.445Z",
        "UpdatedTimestamp": "2019-08-12T22:06:36.355Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [RestorePhoneNumber](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/restore-phone-number.html)di *Referensi AWS CLI Perintah*. 

### `search-available-phone-numbers`
<a name="chime_SearchAvailablePhoneNumbers_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`search-available-phone-numbers`.

**AWS CLI**  
**Untuk mencari nomor telepon yang tersedia**  
`search-available-phone-numbers`Contoh berikut mencari nomor telepon yang tersedia berdasarkan kode area.  

```
aws chime search-available-phone-numbers \
    --area-code "206"
```
Output:  

```
{
    "E164PhoneNumbers": [
        "+12065550100",
        "+12065550101",
        "+12065550102",
        "+12065550103",
        "+12065550104",
        "+12065550105",
        "+12065550106",
        "+12065550107",
        "+12065550108",
        "+12065550109",
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [SearchAvailablePhoneNumbers](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/search-available-phone-numbers.html)di *Referensi AWS CLI Perintah*. 

### `update-account-settings`
<a name="chime_UpdateAccountSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-account-settings`.

**AWS CLI**  
**Untuk memperbarui pengaturan untuk akun Anda**  
`update-account-settings`Contoh berikut menonaktifkan remote control layar bersama untuk akun Amazon Chime yang ditentukan.  

```
aws chime update-account-settings \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --account-settings DisableRemoteControl=true
```
Perintah ini tidak menghasilkan output.  
+  Untuk detail API, lihat [UpdateAccountSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-account-settings.html)di *Referensi AWS CLI Perintah*. 

### `update-account`
<a name="chime_UpdateAccount_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-account`.

**AWS CLI**  
**Untuk memperbarui akun**  
`update-account`Contoh berikut memperbarui nama akun yang ditentukan.  

```
aws chime update-account \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --name MyAccountName
```
Output:  

```
{
    "Account": {
        "AwsAccountId": "111122223333",
        "AccountId": "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
        "Name": "MyAccountName",
        "AccountType": "Team",
        "CreatedTimestamp": "2018-09-04T21:44:22.292Z",
        "DefaultLicense": "Pro",
        "SupportedLicenses": [
            "Basic",
            "Pro"
        ],
        "SigninDelegateGroups": [
            {
                "GroupName": "myGroup"
            },
        ]
    }
}
```
Untuk informasi selengkapnya, lihat [Mengganti Nama Akun Anda](https://docs.aws.amazon.com/chime/latest/ag/rename-account.html) di Panduan Administrasi *Amazon Chime*.  
+  Untuk detail API, lihat [UpdateAccount](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-account.html)di *Referensi AWS CLI Perintah*. 

### `update-bot`
<a name="chime_UpdateBot_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-bot`.

**AWS CLI**  
**Untuk memperbarui bot**  
`update-bot`Contoh berikut memperbarui status bot yang ditentukan untuk menghentikannya berjalan.  

```
aws chime update-bot \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --bot-id 123abcd4-5ef6-789g-0h12-34j56789012k \
    --disabled
```
Output:  

```
{
    "Bot": {
        "BotId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "UserId": "123abcd4-5ef6-789g-0h12-34j56789012k",
        "DisplayName": "myBot (Bot)",
        "BotType": "ChatBot",
        "Disabled": true,
        "CreatedTimestamp": "2019-09-09T18:05:56.749Z",
        "UpdatedTimestamp": "2019-09-09T18:05:56.749Z",
        "BotEmail": "myBot-chimebot@example.com",
        "SecurityToken": "je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY"
    }
}
```
Untuk informasi selengkapnya, lihat [Memperbarui Bot Obrolan](https://docs.aws.amazon.com/chime/latest/dg/update-bots.html) di Panduan *Pengembang Amazon Chime*.  
+  Untuk detail API, lihat [UpdateBot](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-bot.html)di *Referensi AWS CLI Perintah*. 

### `update-global-settings`
<a name="chime_UpdateGlobalSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-global-settings`.

**AWS CLI**  
**Untuk memperbarui setelan global**  
`update-global-settings`Contoh berikut memperbarui bucket S3 yang digunakan untuk menyimpan catatan detail panggilan untuk Amazon Chime Business Calling dan Amazon Chime Voice Connectors yang terkait dengan akun administrator. AWS   

```
aws chime update-global-settings \
    --business-calling CdrBucket="s3bucket" \
    --voice-connector CdrBucket="s3bucket"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Mengelola Pengaturan Global](https://docs.aws.amazon.com/chime/latest/ag/manage-global.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [UpdateGlobalSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-global-settings.html)di *Referensi AWS CLI Perintah*. 

### `update-phone-number-settings`
<a name="chime_UpdatePhoneNumberSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-phone-number-settings`.

**AWS CLI**  
**Untuk memperbarui nama panggilan keluar**  
`update-phone-number-settings`Contoh berikut memperbarui nama panggilan keluar default untuk AWS akun administrator.  

```
aws chime update-phone-number-settings \
    --calling-name "myName"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [UpdatePhoneNumberSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-phone-number-settings.html)di *Referensi AWS CLI Perintah*. 

### `update-phone-number`
<a name="chime_UpdatePhoneNumber_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-phone-number`.

**AWS CLI**  
**Contoh 1: Untuk memperbarui jenis produk untuk nomor telepon**  
`update-phone-number`Contoh berikut memperbarui jenis produk nomor telepon yang ditentukan.  

```
aws chime update-phone-number \
    --phone-number-id "+12065550100" \
    --product-type "BusinessCalling"
```
Output:  

```
{
    "PhoneNumber": {
        "PhoneNumberId": "%2B12065550100",
        "E164PhoneNumber": "+12065550100",
        "Type": "Local",
        "ProductType": "BusinessCalling",
        "Status": "Unassigned",
        "Capabilities": {
            "InboundCall": true,
            "OutboundCall": true,
            "InboundSMS": true,
            "OutboundSMS": true,
            "InboundMMS": true,
            "OutboundMMS": true
        },
        "Associations": [],
        "CallingName": "phonenumber1",
        "CreatedTimestamp": "2019-08-09T21:35:21.445Z",
        "UpdatedTimestamp": "2019-08-12T21:44:07.591Z"
    }
}
```
**Contoh 2: Untuk memperbarui nama panggilan keluar untuk nomor telepon**  
`update-phone-number`Contoh berikut memperbarui nama panggilan keluar untuk nomor telepon yang ditentukan.  
aws chime update-phone-number -- phone-number-id “\$112065550100" --calling-name “phonenumber2"  
Output:  

```
{
    "PhoneNumber": {
        "PhoneNumberId": "%2B12065550100",
        "E164PhoneNumber": "+12065550100",
        "Type": "Local",
        "ProductType": "BusinessCalling",
        "Status": "Unassigned",
        "Capabilities": {
            "InboundCall": true,
            "OutboundCall": true,
            "InboundSMS": true,
            "OutboundSMS": true,
            "InboundMMS": true,
            "OutboundMMS": true
        },
        "Associations": [],
        "CallingName": "phonenumber2",
        "CreatedTimestamp": "2019-08-09T21:35:21.445Z",
        "UpdatedTimestamp": "2019-08-12T21:44:07.591Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Nomor Telepon](https://docs.aws.amazon.com/chime/latest/ag/phone-numbers.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [UpdatePhoneNumber](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-phone-number.html)di *Referensi AWS CLI Perintah*. 

### `update-room-membership`
<a name="chime_UpdateRoomMembership_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-room-membership`.

**AWS CLI**  
**Untuk memperbarui keanggotaan kamar**  
`update-room-membership`Contoh berikut memodifikasi peran anggota ruang obrolan yang ditentukan untuk`Administrator`.  

```
aws chime update-room-membership \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j \
    --member-id 1ab2345c-67de-8901-f23g-45h678901j2k \
    --role Administrator
```
Output:  

```
{
    "RoomMembership": {
        "RoomId": "abcd1e2d-3e45-6789-01f2-3g45h67i890j",
        "Member": {
            "MemberId": "1ab2345c-67de-8901-f23g-45h678901j2k",
            "MemberType": "User",
            "Email": "sofiamartinez@example.com",
            "FullName": "Sofia Martinez",
            "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45"
        },
        "Role": "Administrator",
        "InvitedBy": "arn:aws:iam::111122223333:user/admin",
        "UpdatedTimestamp": "2019-12-02T22:40:22.931Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [UpdateRoomMembership](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-room-membership.html)di *Referensi AWS CLI Perintah*. 

### `update-room`
<a name="chime_UpdateRoom_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-room`.

**AWS CLI**  
**Untuk memperbarui ruang obrolan**  
`update-room`Contoh berikut memodifikasi nama ruang obrolan yang ditentukan.  

```
aws chime update-room \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j \
    --name teamRoom
```
Output:  

```
{
    "Room": {
        "RoomId": "abcd1e2d-3e45-6789-01f2-3g45h67i890j",
        "Name": "teamRoom",
        "AccountId": "12a3456b-7c89-012d-3456-78901e23fg45",
        "CreatedBy": "arn:aws:iam::111122223333:user/alejandro",
        "CreatedTimestamp": "2019-12-02T22:29:31.549Z",
        "UpdatedTimestamp": "2019-12-02T22:33:19.310Z"
    }
}
```
Untuk informasi selengkapnya, lihat [Membuat Ruang Obrolan](https://docs.aws.amazon.com/chime/latest/ug/chime-chat-room.html) di *Panduan Pengguna Amazon Chime*.  
+  Untuk detail API, lihat [UpdateRoom](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-room.html)di *Referensi AWS CLI Perintah*. 

### `update-user-settings`
<a name="chime_UpdateUserSettings_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-user-settings`.

**AWS CLI**  
**Untuk memperbarui pengaturan pengguna**  
`update-user-settings`Contoh berikut memungkinkan pengguna yang ditentukan untuk melakukan panggilan masuk dan keluar dan mengirim dan menerima pesan SMS.  

```
aws chime update-user-settings \
    --account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
    --user-id 1ab2345c-67de-8901-f23g-45h678901j2k \
    --user-settings "Telephony={InboundCalling=true,OutboundCalling=true,SMS=true}"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Mengelola Nomor Telepon Pengguna](https://docs.aws.amazon.com/chime/latest/ag/user-phone.html) di Panduan *Administrasi Amazon Chime*.  
+  Untuk detail API, lihat [UpdateUserSettings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-user-settings.html)di *Referensi AWS CLI Perintah*. 

### `update-user`
<a name="chime_UpdateUser_cli_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-user`.

**AWS CLI**  
**Untuk memperbarui detail pengguna**  
Contoh ini memperbarui rincian yang ditentukan untuk pengguna tertentu.  
Perintah:  

```
aws chime update-user \
    --account-id a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --user-id a1b2c3d4-5678-90ab-cdef-22222EXAMPLE \
    --license-type "Basic"
```
Output:  

```
{
    "User": {
        "UserId": "a1b2c3d4-5678-90ab-cdef-22222EXAMPLE"
    }
}
```
+  Untuk detail API, lihat [UpdateUser](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/chime/update-user.html)di *Referensi AWS CLI Perintah*. 