Skip to content

Commit dae069a

Browse files
committed
revamp iotdata
1 parent 08ddde5 commit dae069a

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/content/docs/aws/services/iotdata.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: "IoT Data"
3-
linkTitle: "IoT Data"
43
tags: ["Ultimate"]
54
description: Get started with IoT Data on LocalStack
65
---
@@ -11,7 +10,7 @@ IoT Data provides secure, bi-directional communication between Internet-connecte
1110
It allows you to connect your devices to the cloud and interact with them using the AWS Management Console, AWS CLI, or AWS SDKs.
1211

1312
LocalStack allows you to use the IoT Data APIs to update, get, and delete the shadow of a thing in your local environment.
14-
The supported APIs are available on our [API Coverage Page]({{< ref "coverage_iot-data" >}}), which provides information on the extent of IoT Data integration with LocalStack.
13+
The supported APIs are available on our [API Coverage Page](), which provides information on the extent of IoT Data integration with LocalStack.
1514

1615
## Getting started
1716

@@ -25,12 +24,12 @@ We will demonstrate how to create a thing, update its shadow, get its shadow, an
2524
You can update the shadow of a thing using the [`UpdateThingShadow`](https://docs.aws.amazon.com/iot/latest/apireference/API_UpdateThingShadow.html) API.
2625
Run the following command to update the shadow of a thing named `MyRPi`:
2726

28-
{{< command >}}
29-
$ awslocal iot-data update-thing-shadow \
27+
```bash
28+
awslocal iot-data update-thing-shadow \
3029
--thing-name "MyRPi" \
3130
--payload "{\"state\":{\"reported\":{\"moisture\":\"okay\"}}}" \
3231
output.txt --cli-binary-format raw-in-base64-out
33-
{{< /command >}}
32+
```
3433

3534
The `output.txt` file contains the following output:
3635

@@ -58,11 +57,11 @@ The `output.txt` file contains the following output:
5857
You can get the shadow of a thing using the [`GetThingShadow`](https://docs.aws.amazon.com/iot/latest/apireference/API_GetThingShadow.html) API.
5958
Run the following command to get the shadow:
6059

61-
{{< command >}}
62-
$ awslocal iot-data get-thing-shadow \
60+
```bash
61+
awslocal iot-data get-thing-shadow \
6362
--thing-name "MyRPi" \
6463
output.txt
65-
{{< /command >}}
64+
```
6665

6766
The `output.txt` will contain the same output as the previous command.
6867

@@ -71,11 +70,11 @@ The `output.txt` will contain the same output as the previous command.
7170
You can delete the shadow of a thing using the [`DeleteThingShadow`](https://docs.aws.amazon.com/iot/latest/apireference/API_DeleteThingShadow.html) API.
7271
Run the following command to delete the shadow:
7372

74-
{{< command >}}
75-
$ awslocal iot-data delete-thing-shadow \
73+
```bash
74+
awslocal iot-data delete-thing-shadow \
7675
--thing-name "MyRPi" \
7776
output.txt
78-
{{< /command >}}
77+
```
7978

8079
The `output.txt` will contain the following output:
8180

0 commit comments

Comments
 (0)