Skip to content

Commit c8d25b1

Browse files
author
AWS
committed
AWS IoT Data Plane Update: Adding DeleteConnection API to IoT Data Plane
1 parent 86238dd commit c8d25b1

File tree

2 files changed

+65
-2
lines changed

2 files changed

+65
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS IoT Data Plane",
4+
"contributor": "",
5+
"description": "Adding DeleteConnection API to IoT Data Plane"
6+
}

services/iotdataplane/src/main/resources/codegen-resources/service-2.json

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@
1313
"auth":["aws.auth#sigv4"]
1414
},
1515
"operations":{
16+
"DeleteConnection":{
17+
"name":"DeleteConnection",
18+
"http":{
19+
"method":"DELETE",
20+
"requestUri":"/connections/{clientId}"
21+
},
22+
"input":{"shape":"DeleteConnectionRequest"},
23+
"errors":[
24+
{"shape":"ForbiddenException"},
25+
{"shape":"ResourceNotFoundException"},
26+
{"shape":"InvalidRequestException"},
27+
{"shape":"ThrottlingException"},
28+
{"shape":"InternalFailureException"}
29+
],
30+
"documentation":"<p>Disconnects a connected MQTT client from Amazon Web Services IoT Core. When you disconnect a client, Amazon Web Services IoT Core closes the client's network connection and optionally cleans the session state.</p>"
31+
},
1632
"DeleteThingShadow":{
1733
"name":"DeleteThingShadow",
1834
"http":{
@@ -50,7 +66,7 @@
5066
{"shape":"InternalFailureException"},
5167
{"shape":"MethodNotAllowedException"}
5268
],
53-
"documentation":"<p>Gets the details of a single retained message for the specified topic.</p> <p>This action returns the message payload of the retained message, which can incur messaging costs. To list only the topic names of the retained messages, call <a href=\"https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_ListRetainedMessages.html\">ListRetainedMessages</a>.</p> <p>Requires permission to access the <a href=\"https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions\">GetRetainedMessage</a> action.</p> <p>For more information about messaging costs, see <a href=\"http://aws.amazon.com/iot-core/pricing/#Messaging\">Amazon Web Services IoT Core pricing - Messaging</a>.</p>"
69+
"documentation":"<p>Gets the details of a single retained message for the specified topic.</p> <p>This action returns the message payload of the retained message, which can incur messaging costs. To list only the topic names of the retained messages, call <a href=\"https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_ListRetainedMessages.html\">ListRetainedMessages</a>.</p> <p>Requires permission to access the <a href=\"https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html\">GetRetainedMessage</a> action.</p> <p>For more information about messaging costs, see <a href=\"http://aws.amazon.com/iot-core/pricing/#Messaging\">Amazon Web Services IoT Core pricing - Messaging</a>.</p>"
5470
},
5571
"GetThingShadow":{
5672
"name":"GetThingShadow",
@@ -107,7 +123,7 @@
107123
{"shape":"InternalFailureException"},
108124
{"shape":"MethodNotAllowedException"}
109125
],
110-
"documentation":"<p>Lists summary information about the retained messages stored for the account.</p> <p>This action returns only the topic names of the retained messages. It doesn't return any message payloads. Although this action doesn't return a message payload, it can still incur messaging costs.</p> <p>To get the message payload of a retained message, call <a href=\"https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_GetRetainedMessage.html\">GetRetainedMessage</a> with the topic name of the retained message.</p> <p>Requires permission to access the <a href=\"https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions\">ListRetainedMessages</a> action.</p> <p>For more information about messaging costs, see <a href=\"http://aws.amazon.com/iot-core/pricing/#Messaging\">Amazon Web Services IoT Core pricing - Messaging</a>.</p>"
126+
"documentation":"<p>Lists summary information about the retained messages stored for the account.</p> <p>This action returns only the topic names of the retained messages. It doesn't return any message payloads. Although this action doesn't return a message payload, it can still incur messaging costs.</p> <p>To get the message payload of a retained message, call <a href=\"https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_GetRetainedMessage.html\">GetRetainedMessage</a> with the topic name of the retained message.</p> <p>Requires permission to access the <a href=\"https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html\">ListRetainedMessages</a> action.</p> <p>For more information about messaging costs, see <a href=\"http://aws.amazon.com/iot-core/pricing/#Messaging\">Amazon Web Services IoT Core pricing - Messaging</a>.</p>"
111127
},
112128
"Publish":{
113129
"name":"Publish",
@@ -148,6 +164,13 @@
148164
}
149165
},
150166
"shapes":{
167+
"CleanSession":{"type":"boolean"},
168+
"ClientId":{
169+
"type":"string",
170+
"max":128,
171+
"min":1,
172+
"pattern":"^[^$].*"
173+
},
151174
"ConflictException":{
152175
"type":"structure",
153176
"members":{
@@ -162,6 +185,30 @@
162185
},
163186
"ContentType":{"type":"string"},
164187
"CorrelationData":{"type":"string"},
188+
"DeleteConnectionRequest":{
189+
"type":"structure",
190+
"required":["clientId"],
191+
"members":{
192+
"clientId":{
193+
"shape":"ClientId",
194+
"documentation":"<p>The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).</p>",
195+
"location":"uri",
196+
"locationName":"clientId"
197+
},
198+
"cleanSession":{
199+
"shape":"CleanSession",
200+
"documentation":"<p>Specifies whether to remove the client's session state when disconnecting. Set to <code>TRUE</code> to delete all session information, including subscriptions and queued messages. Set to <code>FALSE</code> to preserve the session state. By default, this is set to <code>FALSE</code> (preserves the session state).</p>",
201+
"location":"querystring",
202+
"locationName":"cleanSession"
203+
},
204+
"preventWillMessage":{
205+
"shape":"PreventWillMessage",
206+
"documentation":"<p>Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set to <code>TRUE</code> to prevent publishing the LWT message. Set to <code>FALSE</code> to allow publishing. By default, this is set to <code>FALSE</code> (allows publishing the LWT message).</p>",
207+
"location":"querystring",
208+
"locationName":"preventWillMessage"
209+
}
210+
}
211+
},
165212
"DeleteThingShadowRequest":{
166213
"type":"structure",
167214
"required":["thingName"],
@@ -193,6 +240,15 @@
193240
"documentation":"<p>The output from the DeleteThingShadow operation.</p>",
194241
"payload":"payload"
195242
},
243+
"ForbiddenException":{
244+
"type":"structure",
245+
"members":{
246+
"message":{"shape":"errorMessage"}
247+
},
248+
"documentation":"<p>The caller isn't authorized to make the request.</p>",
249+
"error":{"httpStatusCode":403},
250+
"exception":true
251+
},
196252
"GetRetainedMessageRequest":{
197253
"type":"structure",
198254
"required":["topic"],
@@ -396,6 +452,7 @@
396452
]
397453
},
398454
"PayloadSize":{"type":"long"},
455+
"PreventWillMessage":{"type":"boolean"},
399456
"PublishRequest":{
400457
"type":"structure",
401458
"required":["topic"],

0 commit comments

Comments
 (0)