

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.

# AWS IoT Things Graph contoh menggunakan AWS CLI
<a name="cli_2_iotthingsgraph_code_examples"></a>

Contoh kode berikut menunjukkan cara melakukan tindakan dan mengimplementasikan skenario umum dengan menggunakan AWS Command Line Interface with AWS IoT Things Graph.

*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-entity-to-thing`
<a name="iotthingsgraph_AssociateEntityToThing_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`associate-entity-to-thing`.

**AWS CLI**  
**Untuk mengaitkan sesuatu dengan perangkat**  
`associate-entity-to-thing`Contoh berikut mengaitkan sesuatu dengan perangkat. Contoh menggunakan perangkat sensor gerak yang ada di namespace publik.  

```
aws iotthingsgraph associate-entity-to-thing \
    --thing-name "MotionSensorName" \
    --entity-id "urn:tdm:aws/examples:Device:HCSR501MotionSensor"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Membuat dan Mengunggah Model](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-models-gs.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [AssociateEntityToThing](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/associate-entity-to-thing.html)di *Referensi AWS CLI Perintah*. 

### `create-flow-template`
<a name="iotthingsgraph_CreateFlowTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-flow-template`.

**AWS CLI**  
**Untuk membuat aliran**  
`create-flow-template`Contoh berikut menciptakan alur (alur kerja). Nilai `MyFlowDefinition` adalah GraphQL yang memodelkan aliran.  

```
aws iotthingsgraph create-flow-template \
    --definition language=GRAPHQL,text="MyFlowDefinition"
```
Output:  

```
{
    "summary": {
        "createdAt": 1559248067.545,
        "id": "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow",
        "revisionNumber": 1
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Alur](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-workflows.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [CreateFlowTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/create-flow-template.html)di *Referensi AWS CLI Perintah*. 

### `create-system-instance`
<a name="iotthingsgraph_CreateSystemInstance_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-system-instance`.

**AWS CLI**  
**Untuk membuat instance sistem**  
`create-system-instance`Contoh berikut membuat instance sistem. Nilai `MySystemInstanceDefinition` adalah GraphQL yang memodelkan instance sistem.  

```
aws iotthingsgraph create-system-instance -\
    -definition language=GRAPHQL,text="MySystemInstanceDefinition" \
    --target CLOUD \
    --flow-actions-role-arn myRoleARN
```
Output:  

```
{
    "summary": {
        "id": "urn:tdm:us-west-2/123456789012/default:Deployment:Room218",
        "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room218",
        "status": "NOT_DEPLOYED",
        "target": "CLOUD",
        "createdAt": 1559249315.208,
        "updatedAt": 1559249315.208
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Sistem dan Konfigurasi Aliran](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [CreateSystemInstance](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/create-system-instance.html)di *Referensi AWS CLI Perintah*. 

### `create-system-template`
<a name="iotthingsgraph_CreateSystemTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`create-system-template`.

**AWS CLI**  
**Untuk membuat sistem**  
`create-system-template`Contoh berikut menciptakan sistem. Nilai MySystemDefinition adalah GraphQL yang memodelkan sistem.  

```
aws iotthingsgraph create-system-template \
    --definition language=GRAPHQL,text="MySystemDefinition"
```
Output:  

```
{
    "summary": {
        "createdAt": 1559249776.254,
        "id": "urn:tdm:us-west-2/123456789012/default:System:MySystem",
        "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:System/default/MySystem",
        "revisionNumber": 1
    }
}
```
Untuk informasi selengkapnya, lihat [Membuat Sistem](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy-systems.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [CreateSystemTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/create-system-template.html)di *Referensi AWS CLI Perintah*. 

### `delete-flow-template`
<a name="iotthingsgraph_DeleteFlowTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-flow-template`.

**AWS CLI**  
**Untuk menghapus aliran**  
`delete-flow-template`Contoh berikut menghapus alur (alur kerja).  

```
aws iotthingsgraph delete-flow-template \
    --id "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow"
```
Perintah ini tidak menghasilkan output.  
*Untuk informasi selengkapnya, lihat [Manajemen Siklus Hidup untuk Entitas, Aliran, Sistem, dan Penerapan Grafik AWS IoT Things di Panduan Pengguna Grafik IoT](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-lifecycle.html) Things.AWS *  
+  Untuk detail API, lihat [DeleteFlowTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/delete-flow-template.html)di *Referensi AWS CLI Perintah*. 

### `delete-namespace`
<a name="iotthingsgraph_DeleteNamespace_cli_2_topic"></a>

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

**AWS CLI**  
**Untuk menghapus namespace**  
`delete-namespace`Contoh berikut menghapus namespace.  

```
aws iotthingsgraph delete-namespace
```
Output:  

```
{
   "namespaceArn": "arn:aws:iotthingsgraph:us-west-2:123456789012",
   "namespaceName": "us-west-2/123456789012/default"
}
```
*Untuk informasi selengkapnya, lihat [Manajemen Siklus Hidup untuk Entitas, Aliran, Sistem, dan Penerapan Grafik AWS IoT Things di Panduan Pengguna Grafik IoT](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-lifecycle.html) Things.AWS *  
+  Untuk detail API, lihat [DeleteNamespace](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/delete-namespace.html)di *Referensi AWS CLI Perintah*. 

### `delete-system-instance`
<a name="iotthingsgraph_DeleteSystemInstance_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-system-instance`.

**AWS CLI**  
**Untuk menghapus instance sistem**  
`delete-system-instance`Contoh berikut menghapus instance sistem.  

```
aws iotthingsgraph delete-system-instance \
    --id "urn:tdm:us-west-2/123456789012/default:Deployment:Room218"
```
Perintah ini tidak menghasilkan output.  
*Untuk informasi selengkapnya, lihat [Manajemen Siklus Hidup untuk Entitas, Aliran, Sistem, dan Penerapan Grafik AWS IoT Things di Panduan Pengguna Grafik IoT](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-lifecycle.html) Things.AWS *  
+  Untuk detail API, lihat [DeleteSystemInstance](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/delete-system-instance.html)di *Referensi AWS CLI Perintah*. 

### `delete-system-template`
<a name="iotthingsgraph_DeleteSystemTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`delete-system-template`.

**AWS CLI**  
**Untuk menghapus sistem**  
`delete-system-template`Contoh berikut menghapus sistem.  

```
aws iotthingsgraph delete-system-template \
    --id "urn:tdm:us-west-2/123456789012/default:System:MySystem"
```
Perintah ini tidak menghasilkan output.  
*Untuk informasi selengkapnya, lihat [Manajemen Siklus Hidup untuk Entitas, Aliran, Sistem, dan Penerapan Grafik AWS IoT Things di Panduan Pengguna Grafik IoT](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-lifecycle.html) Things.AWS *  
+  Untuk detail API, lihat [DeleteSystemTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/delete-system-template.html)di *Referensi AWS CLI Perintah*. 

### `deploy-system-instance`
<a name="iotthingsgraph_DeploySystemInstance_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`deploy-system-instance`.

**AWS CLI**  
**Untuk menyebarkan instance sistem**  
`delete-system-template`Contoh berikut menyebarkan instance sistem.  

```
aws iotthingsgraph deploy-system-instance \
    --id "urn:tdm:us-west-2/123456789012/default:Deployment:Room218"
```
Output:  

```
{
   "summary": {
      "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment:Room218",
      "createdAt": 1559249776.254,
      "id": "urn:tdm:us-west-2/123456789012/default:Deployment:Room218",
      "status": "DEPLOYED_IN_TARGET",
      "target": "CLOUD",
      "updatedAt": 1559249776.254
   }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Sistem dan Konfigurasi Aliran](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [DeploySystemInstance](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/deploy-system-instance.html)di *Referensi AWS CLI Perintah*. 

### `deprecate-flow-template`
<a name="iotthingsgraph_DeprecateFlowTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`deprecate-flow-template`.

**AWS CLI**  
**Untuk menghentikan aliran**  
`deprecate-flow-template`Contoh berikut menghentikan alur (alur kerja).  

```
aws iotthingsgraph deprecate-flow-template \
    --id "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow"
```
Perintah ini tidak menghasilkan output.  
*Untuk informasi selengkapnya, lihat [Manajemen Siklus Hidup untuk Entitas, Aliran, Sistem, dan Penerapan Grafik AWS IoT Things di Panduan Pengguna Grafik IoT](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-lifecycle.html) Things.AWS *  
+  Untuk detail API, lihat [DeprecateFlowTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/deprecate-flow-template.html)di *Referensi AWS CLI Perintah*. 

### `deprecate-system-template`
<a name="iotthingsgraph_DeprecateSystemTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`deprecate-system-template`.

**AWS CLI**  
**Untuk menghentikan sistem**  
`deprecate-system-template`Contoh berikut menghentikan sistem.  

```
aws iotthingsgraph deprecate-system-template \
    --id "urn:tdm:us-west-2/123456789012/default:System:MySystem"
```
Perintah ini tidak menghasilkan output.  
*Untuk informasi selengkapnya, lihat [Manajemen Siklus Hidup untuk Entitas, Aliran, Sistem, dan Penerapan Grafik AWS IoT Things di Panduan Pengguna Grafik IoT](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-lifecycle.html) Things.AWS *  
+  Untuk detail API, lihat [DeprecateSystemTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/deprecate-system-template.html)di *Referensi AWS CLI Perintah*. 

### `describe-namespace`
<a name="iotthingsgraph_DescribeNamespace_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`describe-namespace`.

**AWS CLI**  
**Untuk mendapatkan deskripsi namespace Anda**  
`describe-namespace`Contoh berikut mendapatkan deskripsi namespace Anda.  

```
aws iotthingsgraph describe-namespace
```
Output:  

```
{
    "namespaceName": "us-west-2/123456789012/default",
    "trackingNamespaceName": "aws",
    "trackingNamespaceVersion": 1,
    "namespaceVersion": 5
}
```
Untuk informasi selengkapnya, lihat [Ruang nama](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-whatis-namespace.html) di Panduan Pengguna Grafik *AWS IoT Things*.  
+  Untuk detail API, lihat [DescribeNamespace](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/describe-namespace.html)di *Referensi AWS CLI Perintah*. 

### `dissociate-entity-from-thing`
<a name="iotthingsgraph_DissociateEntityFromThing_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`dissociate-entity-from-thing`.

**AWS CLI**  
**Untuk memisahkan sesuatu dari perangkat**  
`dissociate-entity-from-thing`Contoh berikut memisahkan sesuatu dari perangkat.  

```
aws iotthingsgraph dissociate-entity-from-thing \
    --thing-name "MotionSensorName" \
    --entity-type "DEVICE"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Membuat dan Mengunggah Model](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-models-gs.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [DissociateEntityFromThing](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/dissociate-entity-from-thing.html)di *Referensi AWS CLI Perintah*. 

### `get-entities`
<a name="iotthingsgraph_GetEntities_cli_2_topic"></a>

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

**AWS CLI**  
**Untuk mendapatkan definisi untuk entitas**  
`get-entities`Contoh berikut mendapatkan definisi untuk model perangkat.  

```
aws iotthingsgraph get-entities \
    --ids "urn:tdm:aws/examples:DeviceModel:MotionSensor"
```
Output:  

```
{
    "descriptions": [
        {
            "id": "urn:tdm:aws/examples:DeviceModel:MotionSensor",
            "type": "DEVICE_MODEL",
            "createdAt": 1559256190.599,
            "definition": {
                "language": "GRAPHQL",
                "text": "##\n# Specification of motion sensor devices interface.\n##\ntype MotionSensor @deviceModel(id: \"urn:tdm:aws/examples:deviceModel:MotionSensor\",\n        capability: \"urn:tdm:aws/examples:capability:MotionSensorCapability\") {ignore:void}"
            }
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Membuat dan Mengunggah Model](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-models-gs.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [GetEntities](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/get-entities.html)di *Referensi AWS CLI Perintah*. 

### `get-flow-template-revisions`
<a name="iotthingsgraph_GetFlowTemplateRevisions_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-flow-template-revisions`.

**AWS CLI**  
**Untuk mendapatkan informasi revisi tentang aliran**  
`get-flow-template-revisions`Contoh berikut mendapatkan informasi revisi tentang alur (alur kerja).  

```
aws iotthingsgraph get-flow-template-revisions \
    --id urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow
```
Output:  

```
{
    "summaries": [
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow",
            "revisionNumber": 1,
            "createdAt": 1559247540.292
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Alur](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-workflows.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [GetFlowTemplateRevisions](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/get-flow-template-revisions.html)di *Referensi AWS CLI Perintah*. 

### `get-flow-template`
<a name="iotthingsgraph_GetFlowTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-flow-template`.

**AWS CLI**  
**Untuk mendapatkan definisi aliran**  
`get-flow-template`Contoh berikut mendapat definisi untuk alur (alur kerja).  

```
aws iotthingsgraph get-flow-template \
    --id "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow"
```
Output:  

```
{
    "description": {
        "summary": {
            "id": "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow",
            "revisionNumber": 1,
            "createdAt": 1559247540.292
        },
        "definition": {
            "language": "GRAPHQL",
            "text": "{\nquery MyFlow($camera: string!, $screen: string!) @workflowType(id: \"urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow\") @annotation(type: \"tgc:FlowEvent\", id: \"sledged790c1b2bcd949e09da0c9bfc077f79d\", x: 1586, y: 653) @triggers(definition: \"{MotionSensor(description: \\\"\\\") @position(x: 1045, y: 635.6666564941406) {\\n  condition(expr: \\\"devices[name == \\\\\\\"motionSensor\\\\\\\"].events[name == \\\\\\\"StateChanged\\\\\\\"].lastEvent\\\")\\n  action(expr: \\\"\\\")\\n}}\") {\n  variables {\n    cameraResult @property(id: \"urn:tdm:aws/examples:property:CameraStateProperty\")\n  }\n  steps {\n    step(name: \"Camera\", outEvent: [\"sledged790c1b2bcd949e09da0c9bfc077f79d\"]) @position(x: 1377, y: 638.6666564941406) {\n      DeviceActivity(deviceModel: \"urn:tdm:aws/examples:deviceModel:Camera\", out: \"cameraResult\", deviceId: \"${camera}\") {\n        capture\n      }\n    }\n    step(name: \"Screen\", inEvent: [\"sledged790c1b2bcd949e09da0c9bfc077f79d\"]) @position(x: 1675.6666870117188, y: 637.9999847412109) {\n      DeviceActivity(deviceModel: \"urn:tdm:aws/examples:deviceModel:Screen\", deviceId: \"${screen}\") {\n        display(imageUrl: \"${cameraResult.lastClickedImage}\")\n      }\n    }\n  }\n}\n}"
        },
        "validatedNamespaceVersion": 5
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Alur](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-workflows.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [GetFlowTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/get-flow-template.html)di *Referensi AWS CLI Perintah*. 

### `get-namespace-deletion-status`
<a name="iotthingsgraph_GetNamespaceDeletionStatus_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-namespace-deletion-status`.

**AWS CLI**  
**Untuk mendapatkan status tugas penghapusan namespace**  
`get-namespace-deletion-status`Contoh berikut mendapatkan status tugas penghapusan namespace.  

```
aws iotthingsgraph get-namespace-deletion-status
```
Output:  

```
{
   "namespaceArn": "arn:aws:iotthingsgraph:us-west-2:123456789012",
   "namespaceName": "us-west-2/123456789012/default"
   "status": "SUCCEEDED "
}
```
Untuk informasi selengkapnya, lihat [Ruang nama](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-whatis-namespace.html) di Panduan Pengguna Grafik *AWS IoT Things*.  
+  Untuk detail API, lihat [GetNamespaceDeletionStatus](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/get-namespace-deletion-status.html)di *Referensi AWS CLI Perintah*. 

### `get-system-instance`
<a name="iotthingsgraph_GetSystemInstance_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-system-instance`.

**AWS CLI**  
**Untuk mendapatkan instance sistem**  
`get-system-instance`Contoh berikut mendapat definisi untuk instance sistem.  

```
aws iotthingsgraph get-system-instance \
    --id "urn:tdm:us-west-2/123456789012/default:Deployment:Room218"
```
Output:  

```
{
    "description": {
        "summary": {
            "id": "urn:tdm:us-west-2/123456789012/default:Deployment:Room218",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room218",
            "status": "NOT_DEPLOYED",
            "target": "CLOUD",
            "createdAt": 1559249315.208,
            "updatedAt": 1559249315.208
        },
        "definition": {
            "language": "GRAPHQL",
            "text": "{\r\nquery Room218 @deployment(id: \"urn:tdm:us-west-2/123456789012/default:Deployment:Room218\", systemId: \"urn:tdm:us-west-2/123456789012/default:System:SecurityFlow\") {\r\n    motionSensor(deviceId: \"MotionSensorName\")\r\n    screen(deviceId: \"ScreenName\")\r\n    camera(deviceId: \"CameraName\") \r\n    triggers {MotionEventTrigger(description: \"a trigger\") {  \r\n    condition(expr: \"devices[name == 'motionSensor'].events[name == 'StateChanged'].lastEvent\") \r\n    action(expr: \"ThingsGraph.startFlow('SecurityFlow', bindings[name == 'camera'].deviceId, bindings[name == 'screen'].deviceId)\")\r\n    }\r\n   }\r\n  }\r\n  }"
        },
        "metricsConfiguration": {
            "cloudMetricEnabled": false
        },
        "validatedNamespaceVersion": 5,
        "flowActionsRoleArn": "arn:aws:iam::123456789012:role/ThingsGraphRole"
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Sistem dan Konfigurasi Aliran](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [GetSystemInstance](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/get-system-instance.html)di *Referensi AWS CLI Perintah*. 

### `get-system-template-revisions`
<a name="iotthingsgraph_GetSystemTemplateRevisions_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-system-template-revisions`.

**AWS CLI**  
**Untuk mendapatkan informasi revisi tentang suatu sistem**  
`get-system-template-revisions`Contoh berikut mendapat informasi revisi tentang suatu sistem.  

```
aws iotthingsgraph get-system-template-revisions \
    --id "urn:tdm:us-west-2/123456789012/default:System:MySystem"
```
Output:  

```
{
    "summaries": [
        {
            "id": "urn:tdm:us-west-2/123456789012/default:System:MySystem",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:System/default/MySystem",
            "revisionNumber": 1,
            "createdAt": 1559247540.656
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Sistem dan Konfigurasi Aliran](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [GetSystemTemplateRevisions](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/get-system-template-revisions.html)di *Referensi AWS CLI Perintah*. 

### `get-system-template`
<a name="iotthingsgraph_GetSystemTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-system-template`.

**AWS CLI**  
**Untuk mendapatkan sistem**  
`get-system-template`Contoh berikut mendapat definisi untuk suatu sistem.  

```
aws iotthingsgraph get-system-template \
    --id "urn:tdm:us-west-2/123456789012/default:System:MySystem"
```
Output:  

```
{
    "description": {
        "summary": {
            "id": "urn:tdm:us-west-2/123456789012/default:System:MySystem",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:System/default/MyFlow",
            "revisionNumber": 1,
            "createdAt": 1559247540.656
        },
        "definition": {
            "language": "GRAPHQL",
            "text": "{\ntype MySystem @systemType(id: \"urn:tdm:us-west-2/123456789012/default:System:MySystem\", description: \"\") {\n  camera: Camera @thing(id: \"urn:tdm:aws/examples:deviceModel:Camera\")\n  screen: Screen @thing(id: \"urn:tdm:aws/examples:deviceModel:Screen\")\n  motionSensor: MotionSensor @thing(id: \"urn:tdm:aws/examples:deviceModel:MotionSensor\")\n  MyFlow: MyFlow @workflow(id: \"urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow\")\n}\n}"
        },
        "validatedNamespaceVersion": 5
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Sistem dan Konfigurasi Aliran](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [GetSystemTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/get-system-template.html)di *Referensi AWS CLI Perintah*. 

### `get-upload-status`
<a name="iotthingsgraph_GetUploadStatus_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`get-upload-status`.

**AWS CLI**  
**Untuk mendapatkan status upload entitas Anda**  
`get-upload-status`Contoh berikut mendapatkan status operasi upload entitas Anda. Nilai `MyUploadId` adalah nilai ID yang dikembalikan oleh `upload-entity-definitions` operasi.  

```
aws iotthingsgraph get-upload-status \
    --upload-id "MyUploadId"
```
Output:  

```
{
    "namespaceName": "us-west-2/123456789012/default",
    "namespaceVersion": 5,
    "uploadId": "f6294f1e-b109-4bbe-9073-f451a2dda2da",
    "uploadStatus": "SUCCEEDED"
}
```
Untuk informasi selengkapnya, lihat [Entitas Pemodelan](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-modelmanagement.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [GetUploadStatus](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/get-upload-status.html)di *Referensi AWS CLI Perintah*. 

### `list-flow-execution-messages`
<a name="iotthingsgraph_ListFlowExecutionMessages_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-flow-execution-messages`.

**AWS CLI**  
**Untuk mendapatkan informasi tentang peristiwa dalam eksekusi aliran**  
`list-flow-execution-messages`Contoh berikut mendapatkan informasi tentang peristiwa dalam eksekusi aliran.  

```
aws iotthingsgraph list-flow-execution-messages \
    --flow-execution-id "urn:tdm:us-west-2/123456789012/default:Workflow:SecurityFlow_2019-05-11T19:39:55.317Z_MotionSensor_69b151ad-a611-42f5-ac21-fe537f9868ad"
```
Output:  

```
{
    "messages": [
        {
         "eventType": "EXECUTION_STARTED",
         "messageId": "f6294f1e-b109-4bbe-9073-f451a2dda2da",
         "payload": "Flow execution started",
         "timestamp": 1559247540.656
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Alur](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-workflows.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [ListFlowExecutionMessages](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/list-flow-execution-messages.html)di *Referensi AWS CLI Perintah*. 

### `list-tags-for-resource`
<a name="iotthingsgraph_ListTagsForResource_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`list-tags-for-resource`.

**AWS CLI**  
**Untuk mencantumkan semua tag untuk sumber daya**  
`list-tags-for-resource`Contoh berikut mencantumkan semua tag untuk sumber daya Grafik AWS IoT Things.  

```
aws iotthingsgraph list-tags-for-resource \
    --resource-arn "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room218"
```
Output:  

```
{
   "tags": [
      {
         "key": "Type",
         "value": "Residential"
      }
   ]
}
```
Untuk informasi selengkapnya, lihat [Menandai Sumber Daya Grafik AWS IoT Things Anda](https://docs.aws.amazon.com/thingsgraph/latest/ug/tagging-tg.html) di Panduan Pengguna *AWS Grafik IoT Things*.  
+  Untuk detail API, lihat [ListTagsForResource](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/list-tags-for-resource.html)di *Referensi AWS CLI Perintah*. 

### `search-entities`
<a name="iotthingsgraph_SearchEntities_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`search-entities`.

**AWS CLI**  
**Untuk mencari entitas**  
`search-entities`Contoh berikut mencari semua entitas tipe`EVENT`.  

```
aws iotthingsgraph search-entities \
    --entity-types "EVENT"
```
Output:  

```
{
    "descriptions": [
        {
            "id": "urn:tdm:aws/examples:Event:MotionSensorEvent",
            "type": "EVENT",
            "definition": {
                "language": "GRAPHQL",
                "text": "##\n# Description of events emitted by motion sensor.\n##\ntype MotionSensorEvent @eventType(id: \"urn:tdm:aws/examples:event:MotionSensorEvent\",\n            payload: \"urn:tdm:aws/examples:property:MotionSensorStateProperty\") {ignore:void}"
            }
        },
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Event:CameraClickedEventV2",
            "type": "EVENT",
            "definition": {
                "language": "GRAPHQL",
                "text": "type CameraClickedEventV2 @eventType(id: \"urn:tdm:us-west-2/123456789012/default:event:CameraClickedEventV2\",\r\npayload: \"urn:tdm:aws:Property:Boolean\"){ignore:void}"
            }
        },
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Event:MotionSensorEventV2",
            "type": "EVENT",
            "definition": {
                "language": "GRAPHQL",
                "text": "# Event emitted by the motion sensor.\r\ntype MotionSensorEventV2 @eventType(id: \"urn:tdm:us-west-2/123456789012/default:event:MotionSensorEventV2\",\r\npayload: \"urn:tdm:us-west-2/123456789012/default:property:MotionSensorStateProperty2\") {ignore:void}"
            }
        }
    ],
    "nextToken": "urn:tdm:us-west-2/123456789012/default:Event:MotionSensorEventV2"
}
```
Untuk informasi selengkapnya, lihat Referensi [Model Data Grafik AWS IoT Things](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-models.html) di Panduan *AWS Pengguna Grafik IoT Things*.  
+  Untuk detail API, lihat [SearchEntities](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/search-entities.html)di *Referensi AWS CLI Perintah*. 

### `search-flow-executions`
<a name="iotthingsgraph_SearchFlowExecutions_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`search-flow-executions`.

**AWS CLI**  
**Untuk mencari eksekusi aliran**  
`search-flow-executions`Contoh berikut mencari semua eksekusi aliran dalam contoh sistem tertentu.  

```
aws iotthingsgraph search-flow-executions \
    --system-instance-id "urn:tdm:us-west-2/123456789012/default:Deployment:Room218"
```
Output:  

```
{
   "summaries": [
      {
         "createdAt": 1559247540.656,
         "flowExecutionId": "f6294f1e-b109-4bbe-9073-f451a2dda2da",
         "flowTemplateId": "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow",
         "status": "RUNNING ",
         "systemInstanceId": "urn:tdm:us-west-2/123456789012/default:System:MySystem",
         "updatedAt": 1559247540.656
      }
   ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Sistem dan Konfigurasi Aliran](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [SearchFlowExecutions](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/search-flow-executions.html)di *Referensi AWS CLI Perintah*. 

### `search-flow-templates`
<a name="iotthingsgraph_SearchFlowTemplates_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`search-flow-templates`.

**AWS CLI**  
**Untuk mencari alur (atau alur kerja)**  
`search-flow-templates`Contoh berikut mencari semua alur (alur kerja) yang berisi model perangkat Kamera.  

```
aws iotthingsgraph search-flow-templates \
    --filters name="DEVICE_MODEL_ID",value="urn:tdm:aws/examples:DeviceModel:Camera"
```
Output:  

```
{
    "summaries": [
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow",
            "revisionNumber": 1,
            "createdAt": 1559247540.292
        },
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Workflow:SecurityFlow",
            "revisionNumber": 3,
            "createdAt": 1548283099.27
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Alur](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-workflows.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [SearchFlowTemplates](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/search-flow-templates.html)di *Referensi AWS CLI Perintah*. 

### `search-system-instances`
<a name="iotthingsgraph_SearchSystemInstances_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`search-system-instances`.

**AWS CLI**  
**Untuk mencari instance sistem**  
`search-system-instances`Contoh berikut mencari semua instance sistem yang berisi sistem yang ditentukan.  

```
aws iotthingsgraph search-system-instances \
    --filters name="SYSTEM_TEMPLATE_ID",value="urn:tdm:us-west-2/123456789012/default:System:SecurityFlow"
```
Output:  

```
{
    "summaries": [
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Deployment:DeploymentForSample",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/DeploymentForSample",
            "status": "NOT_DEPLOYED",
            "target": "GREENGRASS",
            "greengrassGroupName": "ThingsGraphGrnGr",
            "createdAt": 1555716314.707,
            "updatedAt": 1555716314.707
        },
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Deployment:MockDeployment",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/MockDeployment",
            "status": "DELETED_IN_TARGET",
            "target": "GREENGRASS",
            "greengrassGroupName": "ThingsGraphGrnGr",
            "createdAt": 1549416462.049,
            "updatedAt": 1549416722.361,
            "greengrassGroupId": "01d04b07-2a51-467f-9d03-0c90b3cdcaaf",
            "greengrassGroupVersionId": "7365aed7-2d3e-4d13-aad8-75443d45eb05"
        },
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Deployment:MockDeployment2",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/MockDeployment2",
            "status": "DEPLOYED_IN_TARGET",
            "target": "GREENGRASS",
            "greengrassGroupName": "ThingsGraphGrnGr",
            "createdAt": 1549572385.774,
            "updatedAt": 1549572418.408,
            "greengrassGroupId": "01d04b07-2a51-467f-9d03-0c90b3cdcaaf",
            "greengrassGroupVersionId": "bfa70ab3-2bf7-409c-a4d4-bc8328ae5b86"
        },
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Deployment:Room215",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room215",
            "status": "NOT_DEPLOYED",
            "target": "GREENGRASS",
            "greengrassGroupName": "ThingsGraphGG",
            "createdAt": 1547056918.413,
            "updatedAt": 1547056918.413
        },
        {
            "id": "urn:tdm:us-west-2/123456789012/default:Deployment:Room218",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room218",
            "status": "NOT_DEPLOYED",
            "target": "CLOUD",
            "createdAt": 1559249315.208,
            "updatedAt": 1559249315.208
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Sistem dan Konfigurasi Aliran](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [SearchSystemInstances](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/search-system-instances.html)di *Referensi AWS CLI Perintah*. 

### `search-system-templates`
<a name="iotthingsgraph_SearchSystemTemplates_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`search-system-templates`.

**AWS CLI**  
**Untuk mencari sistem**  
`search-system-templates`Contoh berikut mencari semua sistem yang berisi aliran yang ditentukan.  

```
aws iotthingsgraph search-system-templates \
    --filters name="FLOW_TEMPLATE_ID",value="urn:tdm:us-west-2/123456789012/default:Workflow:SecurityFlow"
```
Output:  

```
{
    "summaries": [
        {
            "id": "urn:tdm:us-west-2/123456789012/default:System:SecurityFlow",
            "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:System/default/SecurityFlow",
            "revisionNumber": 1,
            "createdAt": 1548283099.433
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Alur](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-workflows.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [SearchSystemTemplates](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/search-system-templates.html)di *Referensi AWS CLI Perintah*. 

### `search-things`
<a name="iotthingsgraph_SearchThings_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`search-things`.

**AWS CLI**  
**Untuk mencari hal-hal yang terkait dengan perangkat dan model perangkat**  
`search-things`Contoh berikut mencari semua hal yang terkait dengan HCSR501 MotionSensor perangkat.  

```
aws iotthingsgraph search-things \
    --entity-id "urn:tdm:aws/examples:Device:HCSR501MotionSensor"
```
Output:  

```
{
    "things": [
        {
            "thingArn": "arn:aws:iot:us-west-2:123456789012:thing/MotionSensor1",
            "thingName": "MotionSensor1"
        },
        {
            "thingArn": "arn:aws:iot:us-west-2:123456789012:thing/TG_MS",
            "thingName": "TG_MS"
        }
    ]
}
```
Untuk informasi selengkapnya, lihat [Membuat dan Mengunggah Model](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-models-gs.html) di Panduan Pengguna *Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [SearchThings](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/search-things.html)di *Referensi AWS CLI Perintah*. 

### `tag-resource`
<a name="iotthingsgraph_TagResource_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`tag-resource`.

**AWS CLI**  
**Untuk membuat tag untuk sumber daya**  
`tag-resource`Contoh berikut membuat tag untuk sumber daya yang ditentukan.  

```
aws iotthingsgraph tag-resource \
    --resource-arn "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room218" \
    --tags key="Type",value="Residential"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Menandai Sumber Daya Grafik AWS IoT Things Anda](https://docs.aws.amazon.com/thingsgraph/latest/ug/tagging-tg.html) di Panduan Pengguna *AWS Grafik IoT Things*.  
+  Untuk detail API, lihat [TagResource](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/tag-resource.html)di *Referensi AWS CLI Perintah*. 

### `undeploy-system-instance`
<a name="iotthingsgraph_UndeploySystemInstance_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`undeploy-system-instance`.

**AWS CLI**  
**Untuk menghapus instans sistem dari targetnya**  
`undeploy-system-instance`Contoh berikut menghapus instance sistem dari targetnya.  

```
aws iotthingsgraph undeploy-system-instance \
    --id "urn:tdm:us-west-2/123456789012/default:Deployment:Room215"
```
Output:  

```
{
    "summary": {
        "id": "urn:tdm:us-west-2/123456789012/default:Deployment:Room215",
        "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room215",
        "status": "PENDING_DELETE",
        "target": "GREENGRASS",
        "greengrassGroupName": "ThingsGraphGrnGr",
        "createdAt": 1553189694.255,
        "updatedAt": 1559344549.601,
        "greengrassGroupId": "01d04b07-2a51-467f-9d03-0c90b3cdcaaf",
        "greengrassGroupVersionId": "731b371d-d644-4b67-ac64-3934e99b75d7"
    }
}
```
*Untuk informasi selengkapnya, lihat [Manajemen Siklus Hidup untuk Entitas, Aliran, Sistem, dan Penerapan Grafik AWS IoT Things di Panduan Pengguna Grafik IoT](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-lifecycle.html) Things.AWS *  
+  Untuk detail API, lihat [UndeploySystemInstance](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/undeploy-system-instance.html)di *Referensi AWS CLI Perintah*. 

### `untag-resource`
<a name="iotthingsgraph_UntagResource_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`untag-resource`.

**AWS CLI**  
**Untuk menghapus tag untuk sumber daya**  
`untag-resource`Contoh berikut menghapus tag untuk sumber daya yang ditentukan.  

```
aws iotthingsgraph untag-resource \
    --resource-arn "arn:aws:iotthingsgraph:us-west-2:123456789012:Deployment/default/Room218" \
    --tag-keys "Type"
```
Perintah ini tidak menghasilkan output.  
Untuk informasi selengkapnya, lihat [Menandai Sumber Daya Grafik AWS IoT Things Anda](https://docs.aws.amazon.com/thingsgraph/latest/ug/tagging-tg.html) di Panduan Pengguna *AWS Grafik IoT Things*.  
+  Untuk detail API, lihat [UntagResource](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/untag-resource.html)di *Referensi AWS CLI Perintah*. 

### `update-flow-template`
<a name="iotthingsgraph_UpdateFlowTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-flow-template`.

**AWS CLI**  
**Untuk memperbarui alur**  
`update-flow-template`Contoh berikut memperbarui alur (alur kerja). Nilai `MyFlowDefinition` adalah GraphQL yang memodelkan aliran.  

```
aws iotthingsgraph update-flow-template \
    --id "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow" \
    --definition language=GRAPHQL,text="MyFlowDefinition"
```
Output:  

```
{
    "summary": {
        "createdAt": 1559248067.545,
        "id": "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow",
        "revisionNumber": 2
    }
}
```
Untuk informasi selengkapnya, lihat [Bekerja dengan Alur](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-workflows.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [UpdateFlowTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/update-flow-template.html)di *Referensi AWS CLI Perintah*. 

### `update-system-template`
<a name="iotthingsgraph_UpdateSystemTemplate_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`update-system-template`.

**AWS CLI**  
**Untuk memperbarui sistem**  
`update-system-template`Contoh berikut memperbarui sistem. Nilai `MySystemDefinition` adalah GraphQL yang memodelkan sistem.  

```
aws iotthingsgraph update-system-template \
    --id "urn:tdm:us-west-2/123456789012/default:System:MySystem" \
    --definition language=GRAPHQL,text="MySystemDefinition"
```
Output:  

```
{
    "summary": {
        "createdAt": 1559249776.254,
        "id": "urn:tdm:us-west-2/123456789012/default:System:MySystem",
        "arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:System/default/MySystem",
        "revisionNumber": 2
    }
}
```
Untuk informasi selengkapnya, lihat [Membuat Sistem](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-sysdeploy-systems.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [UpdateSystemTemplate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/update-system-template.html)di *Referensi AWS CLI Perintah*. 

### `upload-entity-definitions`
<a name="iotthingsgraph_UploadEntityDefinitions_cli_2_topic"></a>

Contoh kode berikut menunjukkan cara menggunakan`upload-entity-definitions`.

**AWS CLI**  
**Untuk mengunggah definisi entitas**  
`upload-entity-definitions`Contoh berikut mengunggah definisi entitas ke namespace Anda. Nilai `MyEntityDefinitions` adalah GraphQL yang memodelkan entitas.  

```
aws iotthingsgraph upload-entity-definitions \
    --document language=GRAPHQL,text="MyEntityDefinitions"
```
Output:  

```
{
    "uploadId": "f6294f1e-b109-4bbe-9073-f451a2dda2da"
}
```
Untuk informasi selengkapnya, lihat [Entitas Pemodelan](https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-modelmanagement.html) di *Panduan Pengguna Grafik AWS IoT Things*.  
+  Untuk detail API, lihat [UploadEntityDefinitions](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iotthingsgraph/upload-entity-definitions.html)di *Referensi AWS CLI Perintah*. 