@aws-sdk/client-iot-data-plane 3.35.0 → 3.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/IoTDataPlane.js +0 -14
  3. package/dist-cjs/IoTDataPlaneClient.js +0 -19
  4. package/dist-cjs/commands/DeleteThingShadowCommand.js +0 -27
  5. package/dist-cjs/commands/GetRetainedMessageCommand.js +0 -31
  6. package/dist-cjs/commands/GetThingShadowCommand.js +0 -28
  7. package/dist-cjs/commands/ListNamedShadowsForThingCommand.js +0 -26
  8. package/dist-cjs/commands/ListRetainedMessagesCommand.js +0 -34
  9. package/dist-cjs/commands/PublishCommand.js +0 -31
  10. package/dist-cjs/commands/UpdateThingShadowCommand.js +0 -28
  11. package/dist-cjs/commands/index.js +10 -0
  12. package/dist-cjs/endpoints.js +1 -2
  13. package/dist-cjs/index.js +4 -12
  14. package/dist-cjs/models/index.js +0 -1
  15. package/dist-cjs/models/models_0.js +0 -73
  16. package/dist-cjs/pagination/Interfaces.js +0 -1
  17. package/dist-cjs/pagination/ListRetainedMessagesPaginator.js +0 -11
  18. package/dist-cjs/pagination/index.js +5 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  20. package/dist-cjs/runtimeConfig.browser.js +1 -6
  21. package/dist-cjs/runtimeConfig.js +2 -7
  22. package/dist-cjs/runtimeConfig.native.js +0 -4
  23. package/dist-cjs/runtimeConfig.shared.js +0 -4
  24. package/dist-es/IoTDataPlane.js +0 -1
  25. package/dist-es/IoTDataPlaneClient.js +0 -1
  26. package/dist-es/commands/DeleteThingShadowCommand.js +0 -1
  27. package/dist-es/commands/GetRetainedMessageCommand.js +0 -1
  28. package/dist-es/commands/GetThingShadowCommand.js +0 -1
  29. package/dist-es/commands/ListNamedShadowsForThingCommand.js +0 -1
  30. package/dist-es/commands/ListRetainedMessagesCommand.js +0 -1
  31. package/dist-es/commands/PublishCommand.js +0 -1
  32. package/dist-es/commands/UpdateThingShadowCommand.js +0 -1
  33. package/dist-es/commands/index.js +7 -0
  34. package/dist-es/endpoints.js +1 -2
  35. package/dist-es/index.js +4 -12
  36. package/dist-es/models/index.js +0 -1
  37. package/dist-es/models/models_0.js +0 -1
  38. package/dist-es/pagination/Interfaces.js +0 -1
  39. package/dist-es/pagination/ListRetainedMessagesPaginator.js +0 -1
  40. package/dist-es/pagination/index.js +2 -0
  41. package/dist-es/protocols/Aws_restJson1.js +0 -1
  42. package/dist-es/runtimeConfig.browser.js +1 -2
  43. package/dist-es/runtimeConfig.js +2 -3
  44. package/dist-es/runtimeConfig.native.js +0 -1
  45. package/dist-es/runtimeConfig.shared.js +0 -1
  46. package/dist-types/commands/index.d.ts +7 -0
  47. package/dist-types/index.d.ts +4 -11
  48. package/dist-types/pagination/index.d.ts +2 -0
  49. package/dist-types/ts3.4/IoTDataPlane.d.ts +8 -64
  50. package/dist-types/ts3.4/IoTDataPlaneClient.d.ts +24 -99
  51. package/dist-types/ts3.4/commands/DeleteThingShadowCommand.d.ts +2 -22
  52. package/dist-types/ts3.4/commands/GetRetainedMessageCommand.d.ts +2 -26
  53. package/dist-types/ts3.4/commands/GetThingShadowCommand.d.ts +2 -23
  54. package/dist-types/ts3.4/commands/ListNamedShadowsForThingCommand.d.ts +2 -21
  55. package/dist-types/ts3.4/commands/ListRetainedMessagesCommand.d.ts +2 -29
  56. package/dist-types/ts3.4/commands/PublishCommand.d.ts +2 -26
  57. package/dist-types/ts3.4/commands/UpdateThingShadowCommand.d.ts +2 -23
  58. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  59. package/dist-types/ts3.4/index.d.ts +4 -11
  60. package/dist-types/ts3.4/models/models_0.d.ts +87 -271
  61. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  62. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  63. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  64. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  65. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  66. package/package.json +33 -30
  67. package/dist-cjs/IoTDataPlane.js.map +0 -1
  68. package/dist-cjs/IoTDataPlaneClient.js.map +0 -1
  69. package/dist-cjs/commands/DeleteThingShadowCommand.js.map +0 -1
  70. package/dist-cjs/commands/GetRetainedMessageCommand.js.map +0 -1
  71. package/dist-cjs/commands/GetThingShadowCommand.js.map +0 -1
  72. package/dist-cjs/commands/ListNamedShadowsForThingCommand.js.map +0 -1
  73. package/dist-cjs/commands/ListRetainedMessagesCommand.js.map +0 -1
  74. package/dist-cjs/commands/PublishCommand.js.map +0 -1
  75. package/dist-cjs/commands/UpdateThingShadowCommand.js.map +0 -1
  76. package/dist-cjs/endpoints.js.map +0 -1
  77. package/dist-cjs/index.js.map +0 -1
  78. package/dist-cjs/models/index.js.map +0 -1
  79. package/dist-cjs/models/models_0.js.map +0 -1
  80. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  81. package/dist-cjs/pagination/ListRetainedMessagesPaginator.js.map +0 -1
  82. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  83. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  84. package/dist-cjs/runtimeConfig.js.map +0 -1
  85. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  86. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  87. package/dist-es/IoTDataPlane.js.map +0 -1
  88. package/dist-es/IoTDataPlaneClient.js.map +0 -1
  89. package/dist-es/commands/DeleteThingShadowCommand.js.map +0 -1
  90. package/dist-es/commands/GetRetainedMessageCommand.js.map +0 -1
  91. package/dist-es/commands/GetThingShadowCommand.js.map +0 -1
  92. package/dist-es/commands/ListNamedShadowsForThingCommand.js.map +0 -1
  93. package/dist-es/commands/ListRetainedMessagesCommand.js.map +0 -1
  94. package/dist-es/commands/PublishCommand.js.map +0 -1
  95. package/dist-es/commands/UpdateThingShadowCommand.js.map +0 -1
  96. package/dist-es/endpoints.js.map +0 -1
  97. package/dist-es/index.js.map +0 -1
  98. package/dist-es/models/index.js.map +0 -1
  99. package/dist-es/models/models_0.js.map +0 -1
  100. package/dist-es/pagination/Interfaces.js.map +0 -1
  101. package/dist-es/pagination/ListRetainedMessagesPaginator.js.map +0 -1
  102. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  103. package/dist-es/runtimeConfig.browser.js.map +0 -1
  104. package/dist-es/runtimeConfig.js.map +0 -1
  105. package/dist-es/runtimeConfig.native.js.map +0 -1
  106. package/dist-es/runtimeConfig.shared.js.map +0 -1
  107. package/jest.config.js +0 -4
  108. package/src/IoTDataPlane.ts +0 -297
  109. package/src/IoTDataPlaneClient.ts +0 -273
  110. package/src/commands/DeleteThingShadowCommand.ts +0 -97
  111. package/src/commands/GetRetainedMessageCommand.ts +0 -101
  112. package/src/commands/GetThingShadowCommand.ts +0 -98
  113. package/src/commands/ListNamedShadowsForThingCommand.ts +0 -96
  114. package/src/commands/ListRetainedMessagesCommand.ts +0 -104
  115. package/src/commands/PublishCommand.ts +0 -101
  116. package/src/commands/UpdateThingShadowCommand.ts +0 -98
  117. package/src/endpoints.ts +0 -91
  118. package/src/index.ts +0 -12
  119. package/src/models/index.ts +0 -1
  120. package/src/models/models_0.ts +0 -570
  121. package/src/pagination/Interfaces.ts +0 -8
  122. package/src/pagination/ListRetainedMessagesPaginator.ts +0 -59
  123. package/src/protocols/Aws_restJson1.ts +0 -1281
  124. package/src/runtimeConfig.browser.ts +0 -41
  125. package/src/runtimeConfig.native.ts +0 -17
  126. package/src/runtimeConfig.shared.ts +0 -17
  127. package/src/runtimeConfig.ts +0 -46
  128. package/tsconfig.es.json +0 -10
  129. package/tsconfig.json +0 -33
  130. package/tsconfig.types.json +0 -9
@@ -1,101 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
15
- import { GetRetainedMessageRequest, GetRetainedMessageResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1GetRetainedMessageCommand,
18
- serializeAws_restJson1GetRetainedMessageCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface GetRetainedMessageCommandInput extends GetRetainedMessageRequest {}
22
- export interface GetRetainedMessageCommandOutput extends GetRetainedMessageResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets the details of a single retained message for the specified topic.</p>
26
- * <p>This action returns the message payload of the retained message, which can
27
- * incur messaging costs. To list only the topic names of the retained messages, call
28
- * <a href="/iot/latest/developerguide/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
29
- * <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>
30
- * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
31
- * pricing - Messaging</a>.</p>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { IoTDataPlaneClient, GetRetainedMessageCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
36
- * // const { IoTDataPlaneClient, GetRetainedMessageCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
37
- * const client = new IoTDataPlaneClient(config);
38
- * const command = new GetRetainedMessageCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link GetRetainedMessageCommandInput} for command's `input` shape.
43
- * @see {@link GetRetainedMessageCommandOutput} for command's `response` shape.
44
- * @see {@link IoTDataPlaneClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class GetRetainedMessageCommand extends $Command<
48
- GetRetainedMessageCommandInput,
49
- GetRetainedMessageCommandOutput,
50
- IoTDataPlaneClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: GetRetainedMessageCommandInput) {
56
- // Start section: command_constructor
57
- super();
58
- // End section: command_constructor
59
- }
60
-
61
- /**
62
- * @internal
63
- */
64
- resolveMiddleware(
65
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
66
- configuration: IoTDataPlaneClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<GetRetainedMessageCommandInput, GetRetainedMessageCommandOutput> {
69
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "IoTDataPlaneClient";
75
- const commandName = "GetRetainedMessageCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: GetRetainedMessageRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: GetRetainedMessageResponse.filterSensitiveLog,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: GetRetainedMessageCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_restJson1GetRetainedMessageCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRetainedMessageCommandOutput> {
96
- return deserializeAws_restJson1GetRetainedMessageCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
15
- import { GetThingShadowRequest, GetThingShadowResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1GetThingShadowCommand,
18
- serializeAws_restJson1GetThingShadowCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface GetThingShadowCommandInput extends GetThingShadowRequest {}
22
- export interface GetThingShadowCommandOutput extends GetThingShadowResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets the shadow for the specified thing.</p>
26
- * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetThingShadow</a> action.</p>
27
- * <p>For more information, see <a href="http://docs.aws.amazon.com/iot/latest/developerguide/API_GetThingShadow.html">GetThingShadow</a> in the
28
- * IoT Developer Guide.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { IoTDataPlaneClient, GetThingShadowCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
33
- * // const { IoTDataPlaneClient, GetThingShadowCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
34
- * const client = new IoTDataPlaneClient(config);
35
- * const command = new GetThingShadowCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link GetThingShadowCommandInput} for command's `input` shape.
40
- * @see {@link GetThingShadowCommandOutput} for command's `response` shape.
41
- * @see {@link IoTDataPlaneClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class GetThingShadowCommand extends $Command<
45
- GetThingShadowCommandInput,
46
- GetThingShadowCommandOutput,
47
- IoTDataPlaneClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: GetThingShadowCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: IoTDataPlaneClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<GetThingShadowCommandInput, GetThingShadowCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "IoTDataPlaneClient";
72
- const commandName = "GetThingShadowCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: GetThingShadowRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: GetThingShadowResponse.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: GetThingShadowCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1GetThingShadowCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetThingShadowCommandOutput> {
93
- return deserializeAws_restJson1GetThingShadowCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
15
- import { ListNamedShadowsForThingRequest, ListNamedShadowsForThingResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1ListNamedShadowsForThingCommand,
18
- serializeAws_restJson1ListNamedShadowsForThingCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface ListNamedShadowsForThingCommandInput extends ListNamedShadowsForThingRequest {}
22
- export interface ListNamedShadowsForThingCommandOutput extends ListNamedShadowsForThingResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Lists the shadows for the specified thing.</p>
26
- * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListNamedShadowsForThing</a> action.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { IoTDataPlaneClient, ListNamedShadowsForThingCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
31
- * // const { IoTDataPlaneClient, ListNamedShadowsForThingCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
32
- * const client = new IoTDataPlaneClient(config);
33
- * const command = new ListNamedShadowsForThingCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link ListNamedShadowsForThingCommandInput} for command's `input` shape.
38
- * @see {@link ListNamedShadowsForThingCommandOutput} for command's `response` shape.
39
- * @see {@link IoTDataPlaneClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class ListNamedShadowsForThingCommand extends $Command<
43
- ListNamedShadowsForThingCommandInput,
44
- ListNamedShadowsForThingCommandOutput,
45
- IoTDataPlaneClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: ListNamedShadowsForThingCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: IoTDataPlaneClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<ListNamedShadowsForThingCommandInput, ListNamedShadowsForThingCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "IoTDataPlaneClient";
70
- const commandName = "ListNamedShadowsForThingCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: ListNamedShadowsForThingRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: ListNamedShadowsForThingResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: ListNamedShadowsForThingCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_restJson1ListNamedShadowsForThingCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListNamedShadowsForThingCommandOutput> {
91
- return deserializeAws_restJson1ListNamedShadowsForThingCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,104 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
15
- import { ListRetainedMessagesRequest, ListRetainedMessagesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1ListRetainedMessagesCommand,
18
- serializeAws_restJson1ListRetainedMessagesCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface ListRetainedMessagesCommandInput extends ListRetainedMessagesRequest {}
22
- export interface ListRetainedMessagesCommandOutput extends ListRetainedMessagesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Lists summary information about the retained messages stored for the account.</p>
26
- * <p>This action returns only the topic names of the retained messages. It doesn't
27
- * return any message payloads. Although this action doesn't return a message payload,
28
- * it can still incur messaging costs.</p>
29
- * <p>To get the message payload of a retained message, call
30
- * <a href="https://docs.aws.amazon.com/iot/latest/developerguide/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
31
- * with the topic name of the retained message.</p>
32
- * <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>
33
- * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
34
- * pricing - Messaging</a>.</p>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { IoTDataPlaneClient, ListRetainedMessagesCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
39
- * // const { IoTDataPlaneClient, ListRetainedMessagesCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
40
- * const client = new IoTDataPlaneClient(config);
41
- * const command = new ListRetainedMessagesCommand(input);
42
- * const response = await client.send(command);
43
- * ```
44
- *
45
- * @see {@link ListRetainedMessagesCommandInput} for command's `input` shape.
46
- * @see {@link ListRetainedMessagesCommandOutput} for command's `response` shape.
47
- * @see {@link IoTDataPlaneClientResolvedConfig | config} for command's `input` shape.
48
- *
49
- */
50
- export class ListRetainedMessagesCommand extends $Command<
51
- ListRetainedMessagesCommandInput,
52
- ListRetainedMessagesCommandOutput,
53
- IoTDataPlaneClientResolvedConfig
54
- > {
55
- // Start section: command_properties
56
- // End section: command_properties
57
-
58
- constructor(readonly input: ListRetainedMessagesCommandInput) {
59
- // Start section: command_constructor
60
- super();
61
- // End section: command_constructor
62
- }
63
-
64
- /**
65
- * @internal
66
- */
67
- resolveMiddleware(
68
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
69
- configuration: IoTDataPlaneClientResolvedConfig,
70
- options?: __HttpHandlerOptions
71
- ): Handler<ListRetainedMessagesCommandInput, ListRetainedMessagesCommandOutput> {
72
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
73
-
74
- const stack = clientStack.concat(this.middlewareStack);
75
-
76
- const { logger } = configuration;
77
- const clientName = "IoTDataPlaneClient";
78
- const commandName = "ListRetainedMessagesCommand";
79
- const handlerExecutionContext: HandlerExecutionContext = {
80
- logger,
81
- clientName,
82
- commandName,
83
- inputFilterSensitiveLog: ListRetainedMessagesRequest.filterSensitiveLog,
84
- outputFilterSensitiveLog: ListRetainedMessagesResponse.filterSensitiveLog,
85
- };
86
- const { requestHandler } = configuration;
87
- return stack.resolve(
88
- (request: FinalizeHandlerArguments<any>) =>
89
- requestHandler.handle(request.request as __HttpRequest, options || {}),
90
- handlerExecutionContext
91
- );
92
- }
93
-
94
- private serialize(input: ListRetainedMessagesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
95
- return serializeAws_restJson1ListRetainedMessagesCommand(input, context);
96
- }
97
-
98
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListRetainedMessagesCommandOutput> {
99
- return deserializeAws_restJson1ListRetainedMessagesCommand(output, context);
100
- }
101
-
102
- // Start section: command_body_extra
103
- // End section: command_body_extra
104
- }
@@ -1,101 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
15
- import { PublishRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1PublishCommand,
18
- serializeAws_restJson1PublishCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface PublishCommandInput extends PublishRequest {}
22
- export interface PublishCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Publishes an MQTT message.</p>
26
- * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">Publish</a> action.</p>
27
- * <p>For more information about MQTT messages, see
28
- * <a href="http://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html">MQTT Protocol</a> in the
29
- * IoT Developer Guide.</p>
30
- * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">IoT Core
31
- * pricing - Messaging</a>.</p>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { IoTDataPlaneClient, PublishCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
36
- * // const { IoTDataPlaneClient, PublishCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
37
- * const client = new IoTDataPlaneClient(config);
38
- * const command = new PublishCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link PublishCommandInput} for command's `input` shape.
43
- * @see {@link PublishCommandOutput} for command's `response` shape.
44
- * @see {@link IoTDataPlaneClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class PublishCommand extends $Command<
48
- PublishCommandInput,
49
- PublishCommandOutput,
50
- IoTDataPlaneClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: PublishCommandInput) {
56
- // Start section: command_constructor
57
- super();
58
- // End section: command_constructor
59
- }
60
-
61
- /**
62
- * @internal
63
- */
64
- resolveMiddleware(
65
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
66
- configuration: IoTDataPlaneClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<PublishCommandInput, PublishCommandOutput> {
69
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "IoTDataPlaneClient";
75
- const commandName = "PublishCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: PublishRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: (output: any) => output,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: PublishCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_restJson1PublishCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PublishCommandOutput> {
96
- return deserializeAws_restJson1PublishCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
15
- import { UpdateThingShadowRequest, UpdateThingShadowResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1UpdateThingShadowCommand,
18
- serializeAws_restJson1UpdateThingShadowCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface UpdateThingShadowCommandInput extends UpdateThingShadowRequest {}
22
- export interface UpdateThingShadowCommandOutput extends UpdateThingShadowResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Updates the shadow for the specified thing.</p>
26
- * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdateThingShadow</a> action.</p>
27
- * <p>For more information, see <a href="http://docs.aws.amazon.com/iot/latest/developerguide/API_UpdateThingShadow.html">UpdateThingShadow</a> in the
28
- * IoT Developer Guide.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { IoTDataPlaneClient, UpdateThingShadowCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
33
- * // const { IoTDataPlaneClient, UpdateThingShadowCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
34
- * const client = new IoTDataPlaneClient(config);
35
- * const command = new UpdateThingShadowCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link UpdateThingShadowCommandInput} for command's `input` shape.
40
- * @see {@link UpdateThingShadowCommandOutput} for command's `response` shape.
41
- * @see {@link IoTDataPlaneClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class UpdateThingShadowCommand extends $Command<
45
- UpdateThingShadowCommandInput,
46
- UpdateThingShadowCommandOutput,
47
- IoTDataPlaneClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: UpdateThingShadowCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: IoTDataPlaneClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<UpdateThingShadowCommandInput, UpdateThingShadowCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "IoTDataPlaneClient";
72
- const commandName = "UpdateThingShadowCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: UpdateThingShadowRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: UpdateThingShadowResponse.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: UpdateThingShadowCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1UpdateThingShadowCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateThingShadowCommandOutput> {
93
- return deserializeAws_restJson1UpdateThingShadowCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }