@aws-sdk/client-iot-jobs-data-plane 3.33.0 → 3.36.1

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 (115) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/IoTJobsDataPlane.js +1 -15
  3. package/dist-cjs/IoTJobsDataPlaneClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/DescribeJobExecutionCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/GetPendingJobExecutionsCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/StartNextPendingJobExecutionCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/UpdateJobExecutionCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  9. package/{dist/cjs → dist-cjs}/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  11. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -55
  12. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -6
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  17. package/{dist/es → dist-es}/IoTJobsDataPlane.js +2 -16
  18. package/{dist/es → dist-es}/IoTJobsDataPlaneClient.js +2 -21
  19. package/{dist/es → dist-es}/commands/DescribeJobExecutionCommand.js +4 -30
  20. package/{dist/es → dist-es}/commands/GetPendingJobExecutionsCommand.js +4 -30
  21. package/{dist/es → dist-es}/commands/StartNextPendingJobExecutionCommand.js +4 -30
  22. package/{dist/es → dist-es}/commands/UpdateJobExecutionCommand.js +4 -30
  23. package/{dist/es → dist-es}/endpoints.js +1 -2
  24. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  25. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  26. package/{dist/es → dist-es}/models/models_0.js +0 -55
  27. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +127 -133
  28. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  29. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  30. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  31. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  32. package/{dist/types → dist-types}/IoTJobsDataPlane.d.ts +2 -2
  33. package/{dist/types → dist-types}/IoTJobsDataPlaneClient.d.ts +5 -5
  34. package/{dist/types → dist-types}/commands/DescribeJobExecutionCommand.d.ts +2 -2
  35. package/{dist/types → dist-types}/commands/GetPendingJobExecutionsCommand.d.ts +2 -2
  36. package/{dist/types → dist-types}/commands/StartNextPendingJobExecutionCommand.d.ts +2 -2
  37. package/{dist/types → dist-types}/commands/UpdateJobExecutionCommand.d.ts +2 -2
  38. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  39. package/{index.ts → dist-types/index.d.ts} +0 -0
  40. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  41. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  42. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  43. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  44. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
  45. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  46. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  47. package/{dist/types → dist-types}/ts3.4/IoTJobsDataPlane.d.ts +7 -27
  48. package/dist-types/ts3.4/IoTJobsDataPlaneClient.d.ts +71 -0
  49. package/{dist/types → dist-types}/ts3.4/commands/DescribeJobExecutionCommand.d.ts +4 -22
  50. package/{dist/types → dist-types}/ts3.4/commands/GetPendingJobExecutionsCommand.d.ts +4 -22
  51. package/{dist/types → dist-types}/ts3.4/commands/StartNextPendingJobExecutionCommand.d.ts +4 -22
  52. package/{dist/types → dist-types}/ts3.4/commands/UpdateJobExecutionCommand.d.ts +4 -22
  53. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  54. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  55. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  56. package/dist-types/ts3.4/models/models_0.d.ts +251 -0
  57. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  58. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  59. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
  60. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  61. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  62. package/package.json +52 -49
  63. package/IoTJobsDataPlane.ts +0 -165
  64. package/IoTJobsDataPlaneClient.ts +0 -266
  65. package/commands/DescribeJobExecutionCommand.ts +0 -94
  66. package/commands/GetPendingJobExecutionsCommand.ts +0 -94
  67. package/commands/StartNextPendingJobExecutionCommand.ts +0 -99
  68. package/commands/UpdateJobExecutionCommand.ts +0 -94
  69. package/dist/cjs/IoTJobsDataPlane.js.map +0 -1
  70. package/dist/cjs/IoTJobsDataPlaneClient.js +0 -54
  71. package/dist/cjs/IoTJobsDataPlaneClient.js.map +0 -1
  72. package/dist/cjs/commands/DescribeJobExecutionCommand.js.map +0 -1
  73. package/dist/cjs/commands/GetPendingJobExecutionsCommand.js.map +0 -1
  74. package/dist/cjs/commands/StartNextPendingJobExecutionCommand.js.map +0 -1
  75. package/dist/cjs/commands/UpdateJobExecutionCommand.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/package.json +0 -91
  81. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  82. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  83. package/dist/cjs/runtimeConfig.js.map +0 -1
  84. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  85. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  86. package/dist/es/IoTJobsDataPlane.js.map +0 -1
  87. package/dist/es/IoTJobsDataPlaneClient.js.map +0 -1
  88. package/dist/es/commands/DescribeJobExecutionCommand.js.map +0 -1
  89. package/dist/es/commands/GetPendingJobExecutionsCommand.js.map +0 -1
  90. package/dist/es/commands/StartNextPendingJobExecutionCommand.js.map +0 -1
  91. package/dist/es/commands/UpdateJobExecutionCommand.js.map +0 -1
  92. package/dist/es/endpoints.js.map +0 -1
  93. package/dist/es/index.js +0 -8
  94. package/dist/es/index.js.map +0 -1
  95. package/dist/es/models/index.js +0 -2
  96. package/dist/es/models/index.js.map +0 -1
  97. package/dist/es/models/models_0.js.map +0 -1
  98. package/dist/es/package.json +0 -91
  99. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  100. package/dist/es/runtimeConfig.browser.js.map +0 -1
  101. package/dist/es/runtimeConfig.js.map +0 -1
  102. package/dist/es/runtimeConfig.native.js.map +0 -1
  103. package/dist/es/runtimeConfig.shared.js.map +0 -1
  104. package/dist/types/ts3.4/IoTJobsDataPlaneClient.d.ts +0 -146
  105. package/dist/types/ts3.4/models/models_0.d.ts +0 -435
  106. package/endpoints.ts +0 -91
  107. package/jest.config.js +0 -4
  108. package/models/models_0.ts +0 -533
  109. package/protocols/Aws_restJson1.ts +0 -848
  110. package/runtimeConfig.browser.ts +0 -40
  111. package/runtimeConfig.native.ts +0 -16
  112. package/runtimeConfig.shared.ts +0 -16
  113. package/runtimeConfig.ts +0 -45
  114. package/tsconfig.es.json +0 -12
  115. package/tsconfig.json +0 -32
@@ -1,266 +0,0 @@
1
- import {
2
- DescribeJobExecutionCommandInput,
3
- DescribeJobExecutionCommandOutput,
4
- } from "./commands/DescribeJobExecutionCommand";
5
- import {
6
- GetPendingJobExecutionsCommandInput,
7
- GetPendingJobExecutionsCommandOutput,
8
- } from "./commands/GetPendingJobExecutionsCommand";
9
- import {
10
- StartNextPendingJobExecutionCommandInput,
11
- StartNextPendingJobExecutionCommandOutput,
12
- } from "./commands/StartNextPendingJobExecutionCommand";
13
- import { UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput } from "./commands/UpdateJobExecutionCommand";
14
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
15
- import {
16
- EndpointsInputConfig,
17
- EndpointsResolvedConfig,
18
- RegionInputConfig,
19
- RegionResolvedConfig,
20
- resolveEndpointsConfig,
21
- resolveRegionConfig,
22
- } from "@aws-sdk/config-resolver";
23
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
24
- import {
25
- HostHeaderInputConfig,
26
- HostHeaderResolvedConfig,
27
- getHostHeaderPlugin,
28
- resolveHostHeaderConfig,
29
- } from "@aws-sdk/middleware-host-header";
30
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
31
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
32
- import {
33
- AwsAuthInputConfig,
34
- AwsAuthResolvedConfig,
35
- getAwsAuthPlugin,
36
- resolveAwsAuthConfig,
37
- } from "@aws-sdk/middleware-signing";
38
- import {
39
- UserAgentInputConfig,
40
- UserAgentResolvedConfig,
41
- getUserAgentPlugin,
42
- resolveUserAgentConfig,
43
- } from "@aws-sdk/middleware-user-agent";
44
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
45
- import {
46
- Client as __Client,
47
- SmithyConfiguration as __SmithyConfiguration,
48
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
49
- } from "@aws-sdk/smithy-client";
50
- import {
51
- Provider,
52
- RegionInfoProvider,
53
- Credentials as __Credentials,
54
- Decoder as __Decoder,
55
- Encoder as __Encoder,
56
- Hash as __Hash,
57
- HashConstructor as __HashConstructor,
58
- HttpHandlerOptions as __HttpHandlerOptions,
59
- Logger as __Logger,
60
- Provider as __Provider,
61
- StreamCollector as __StreamCollector,
62
- UrlParser as __UrlParser,
63
- UserAgent as __UserAgent,
64
- } from "@aws-sdk/types";
65
-
66
- export type ServiceInputTypes =
67
- | DescribeJobExecutionCommandInput
68
- | GetPendingJobExecutionsCommandInput
69
- | StartNextPendingJobExecutionCommandInput
70
- | UpdateJobExecutionCommandInput;
71
-
72
- export type ServiceOutputTypes =
73
- | DescribeJobExecutionCommandOutput
74
- | GetPendingJobExecutionsCommandOutput
75
- | StartNextPendingJobExecutionCommandOutput
76
- | UpdateJobExecutionCommandOutput;
77
-
78
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
79
- /**
80
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
81
- */
82
- requestHandler?: __HttpHandler;
83
-
84
- /**
85
- * A constructor for a class implementing the {@link __Hash} interface
86
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
87
- * @internal
88
- */
89
- sha256?: __HashConstructor;
90
-
91
- /**
92
- * The function that will be used to convert strings into HTTP endpoints.
93
- * @internal
94
- */
95
- urlParser?: __UrlParser;
96
-
97
- /**
98
- * A function that can calculate the length of a request body.
99
- * @internal
100
- */
101
- bodyLengthChecker?: (body: any) => number | undefined;
102
-
103
- /**
104
- * A function that converts a stream into an array of bytes.
105
- * @internal
106
- */
107
- streamCollector?: __StreamCollector;
108
-
109
- /**
110
- * The function that will be used to convert a base64-encoded string to a byte array.
111
- * @internal
112
- */
113
- base64Decoder?: __Decoder;
114
-
115
- /**
116
- * The function that will be used to convert binary data to a base64-encoded string.
117
- * @internal
118
- */
119
- base64Encoder?: __Encoder;
120
-
121
- /**
122
- * The function that will be used to convert a UTF8-encoded string to a byte array.
123
- * @internal
124
- */
125
- utf8Decoder?: __Decoder;
126
-
127
- /**
128
- * The function that will be used to convert binary data to a UTF-8 encoded string.
129
- * @internal
130
- */
131
- utf8Encoder?: __Encoder;
132
-
133
- /**
134
- * The runtime environment.
135
- * @internal
136
- */
137
- runtime?: string;
138
-
139
- /**
140
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
141
- * trait of an operation.
142
- */
143
- disableHostPrefix?: boolean;
144
-
145
- /**
146
- * Value for how many times a request will be made at most in case of retry.
147
- */
148
- maxAttempts?: number | __Provider<number>;
149
-
150
- /**
151
- * Specifies which retry algorithm to use.
152
- */
153
- retryMode?: string | __Provider<string>;
154
-
155
- /**
156
- * Optional logger for logging debug/info/warn/error.
157
- */
158
- logger?: __Logger;
159
-
160
- /**
161
- * Unique service identifier.
162
- * @internal
163
- */
164
- serviceId?: string;
165
-
166
- /**
167
- * The AWS region to which this client will send requests
168
- */
169
- region?: string | __Provider<string>;
170
-
171
- /**
172
- * Default credentials provider; Not available in browser runtime.
173
- * @internal
174
- */
175
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
176
-
177
- /**
178
- * Fetch related hostname, signing name or signing region with given region.
179
- * @internal
180
- */
181
- regionInfoProvider?: RegionInfoProvider;
182
-
183
- /**
184
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
185
- * @internal
186
- */
187
- defaultUserAgentProvider?: Provider<__UserAgent>;
188
- }
189
-
190
- type IoTJobsDataPlaneClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
191
- ClientDefaults &
192
- RegionInputConfig &
193
- EndpointsInputConfig &
194
- RetryInputConfig &
195
- HostHeaderInputConfig &
196
- AwsAuthInputConfig &
197
- UserAgentInputConfig;
198
- /**
199
- * The configuration interface of IoTJobsDataPlaneClient class constructor that set the region, credentials and other options.
200
- */
201
- export interface IoTJobsDataPlaneClientConfig extends IoTJobsDataPlaneClientConfigType {}
202
-
203
- type IoTJobsDataPlaneClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
204
- Required<ClientDefaults> &
205
- RegionResolvedConfig &
206
- EndpointsResolvedConfig &
207
- RetryResolvedConfig &
208
- HostHeaderResolvedConfig &
209
- AwsAuthResolvedConfig &
210
- UserAgentResolvedConfig;
211
- /**
212
- * The resolved configuration interface of IoTJobsDataPlaneClient class. This is resolved and normalized from the {@link IoTJobsDataPlaneClientConfig | constructor configuration interface}.
213
- */
214
- export interface IoTJobsDataPlaneClientResolvedConfig extends IoTJobsDataPlaneClientResolvedConfigType {}
215
-
216
- /**
217
- * <p>AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to
218
- * and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a
219
- * set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform
220
- * remote troubleshooting operations.</p>
221
- * <p> To create a job, you make a job document which is a description of the remote operations to be
222
- * performed, and you specify a list of targets that should perform the operations. The targets can be individual
223
- * things, thing groups or both.</p>
224
- * <p> AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the
225
- * execution of the job by downloading the job document, performing the operations it specifies, and reporting its
226
- * progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and
227
- * for all the targets of the job</p>
228
- */
229
- export class IoTJobsDataPlaneClient extends __Client<
230
- __HttpHandlerOptions,
231
- ServiceInputTypes,
232
- ServiceOutputTypes,
233
- IoTJobsDataPlaneClientResolvedConfig
234
- > {
235
- /**
236
- * The resolved configuration of IoTJobsDataPlaneClient class. This is resolved and normalized from the {@link IoTJobsDataPlaneClientConfig | constructor configuration interface}.
237
- */
238
- readonly config: IoTJobsDataPlaneClientResolvedConfig;
239
-
240
- constructor(configuration: IoTJobsDataPlaneClientConfig) {
241
- let _config_0 = __getRuntimeConfig(configuration);
242
- let _config_1 = resolveRegionConfig(_config_0);
243
- let _config_2 = resolveEndpointsConfig(_config_1);
244
- let _config_3 = resolveRetryConfig(_config_2);
245
- let _config_4 = resolveHostHeaderConfig(_config_3);
246
- let _config_5 = resolveAwsAuthConfig(_config_4);
247
- let _config_6 = resolveUserAgentConfig(_config_5);
248
- super(_config_6);
249
- this.config = _config_6;
250
- this.middlewareStack.use(getRetryPlugin(this.config));
251
- this.middlewareStack.use(getContentLengthPlugin(this.config));
252
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
253
- this.middlewareStack.use(getLoggerPlugin(this.config));
254
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
255
- this.middlewareStack.use(getUserAgentPlugin(this.config));
256
- }
257
-
258
- /**
259
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
260
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
261
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
262
- */
263
- destroy(): void {
264
- super.destroy();
265
- }
266
- }
@@ -1,94 +0,0 @@
1
- import { IoTJobsDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTJobsDataPlaneClient";
2
- import { DescribeJobExecutionRequest, DescribeJobExecutionResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1DescribeJobExecutionCommand,
5
- serializeAws_restJson1DescribeJobExecutionCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface DescribeJobExecutionCommandInput extends DescribeJobExecutionRequest {}
21
- export interface DescribeJobExecutionCommandOutput extends DescribeJobExecutionResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Gets details of a job execution.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { IoTJobsDataPlaneClient, DescribeJobExecutionCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
29
- * // const { IoTJobsDataPlaneClient, DescribeJobExecutionCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
30
- * const client = new IoTJobsDataPlaneClient(config);
31
- * const command = new DescribeJobExecutionCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DescribeJobExecutionCommandInput} for command's `input` shape.
36
- * @see {@link DescribeJobExecutionCommandOutput} for command's `response` shape.
37
- * @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DescribeJobExecutionCommand extends $Command<
41
- DescribeJobExecutionCommandInput,
42
- DescribeJobExecutionCommandOutput,
43
- IoTJobsDataPlaneClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: DescribeJobExecutionCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: IoTJobsDataPlaneClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "IoTJobsDataPlaneClient";
68
- const commandName = "DescribeJobExecutionCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DescribeJobExecutionRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: DescribeJobExecutionResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: DescribeJobExecutionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1DescribeJobExecutionCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeJobExecutionCommandOutput> {
89
- return deserializeAws_restJson1DescribeJobExecutionCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { IoTJobsDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTJobsDataPlaneClient";
2
- import { GetPendingJobExecutionsRequest, GetPendingJobExecutionsResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1GetPendingJobExecutionsCommand,
5
- serializeAws_restJson1GetPendingJobExecutionsCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetPendingJobExecutionsCommandInput extends GetPendingJobExecutionsRequest {}
21
- export interface GetPendingJobExecutionsCommandOutput extends GetPendingJobExecutionsResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Gets the list of all jobs for a thing that are not in a terminal status.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { IoTJobsDataPlaneClient, GetPendingJobExecutionsCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
29
- * // const { IoTJobsDataPlaneClient, GetPendingJobExecutionsCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
30
- * const client = new IoTJobsDataPlaneClient(config);
31
- * const command = new GetPendingJobExecutionsCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link GetPendingJobExecutionsCommandInput} for command's `input` shape.
36
- * @see {@link GetPendingJobExecutionsCommandOutput} for command's `response` shape.
37
- * @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class GetPendingJobExecutionsCommand extends $Command<
41
- GetPendingJobExecutionsCommandInput,
42
- GetPendingJobExecutionsCommandOutput,
43
- IoTJobsDataPlaneClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: GetPendingJobExecutionsCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: IoTJobsDataPlaneClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<GetPendingJobExecutionsCommandInput, GetPendingJobExecutionsCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "IoTJobsDataPlaneClient";
68
- const commandName = "GetPendingJobExecutionsCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: GetPendingJobExecutionsRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: GetPendingJobExecutionsResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: GetPendingJobExecutionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1GetPendingJobExecutionsCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPendingJobExecutionsCommandOutput> {
89
- return deserializeAws_restJson1GetPendingJobExecutionsCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,99 +0,0 @@
1
- import { IoTJobsDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTJobsDataPlaneClient";
2
- import { StartNextPendingJobExecutionRequest, StartNextPendingJobExecutionResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1StartNextPendingJobExecutionCommand,
5
- serializeAws_restJson1StartNextPendingJobExecutionCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface StartNextPendingJobExecutionCommandInput extends StartNextPendingJobExecutionRequest {}
21
- export interface StartNextPendingJobExecutionCommandOutput
22
- extends StartNextPendingJobExecutionResponse,
23
- __MetadataBearer {}
24
-
25
- /**
26
- * <p>Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { IoTJobsDataPlaneClient, StartNextPendingJobExecutionCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
31
- * // const { IoTJobsDataPlaneClient, StartNextPendingJobExecutionCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
32
- * const client = new IoTJobsDataPlaneClient(config);
33
- * const command = new StartNextPendingJobExecutionCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link StartNextPendingJobExecutionCommandInput} for command's `input` shape.
38
- * @see {@link StartNextPendingJobExecutionCommandOutput} for command's `response` shape.
39
- * @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class StartNextPendingJobExecutionCommand extends $Command<
43
- StartNextPendingJobExecutionCommandInput,
44
- StartNextPendingJobExecutionCommandOutput,
45
- IoTJobsDataPlaneClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: StartNextPendingJobExecutionCommandInput) {
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: IoTJobsDataPlaneClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<StartNextPendingJobExecutionCommandInput, StartNextPendingJobExecutionCommandOutput> {
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 = "IoTJobsDataPlaneClient";
70
- const commandName = "StartNextPendingJobExecutionCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: StartNextPendingJobExecutionRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: StartNextPendingJobExecutionResponse.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: StartNextPendingJobExecutionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_restJson1StartNextPendingJobExecutionCommand(input, context);
88
- }
89
-
90
- private deserialize(
91
- output: __HttpResponse,
92
- context: __SerdeContext
93
- ): Promise<StartNextPendingJobExecutionCommandOutput> {
94
- return deserializeAws_restJson1StartNextPendingJobExecutionCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,94 +0,0 @@
1
- import { IoTJobsDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTJobsDataPlaneClient";
2
- import { UpdateJobExecutionRequest, UpdateJobExecutionResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1UpdateJobExecutionCommand,
5
- serializeAws_restJson1UpdateJobExecutionCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface UpdateJobExecutionCommandInput extends UpdateJobExecutionRequest {}
21
- export interface UpdateJobExecutionCommandOutput extends UpdateJobExecutionResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Updates the status of a job execution.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { IoTJobsDataPlaneClient, UpdateJobExecutionCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
29
- * // const { IoTJobsDataPlaneClient, UpdateJobExecutionCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
30
- * const client = new IoTJobsDataPlaneClient(config);
31
- * const command = new UpdateJobExecutionCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link UpdateJobExecutionCommandInput} for command's `input` shape.
36
- * @see {@link UpdateJobExecutionCommandOutput} for command's `response` shape.
37
- * @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class UpdateJobExecutionCommand extends $Command<
41
- UpdateJobExecutionCommandInput,
42
- UpdateJobExecutionCommandOutput,
43
- IoTJobsDataPlaneClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: UpdateJobExecutionCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: IoTJobsDataPlaneClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "IoTJobsDataPlaneClient";
68
- const commandName = "UpdateJobExecutionCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: UpdateJobExecutionRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: UpdateJobExecutionResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: UpdateJobExecutionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1UpdateJobExecutionCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateJobExecutionCommandOutput> {
89
- return deserializeAws_restJson1UpdateJobExecutionCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"IoTJobsDataPlane.js","sourceRoot":"","sources":["../../IoTJobsDataPlane.ts"],"names":[],"mappings":"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"}