@aws-sdk/client-iot-jobs-data-plane 3.899.0 → 3.906.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.
- package/dist-cjs/index.js +732 -900
- package/package.json +38 -38
package/dist-cjs/index.js
CHANGED
|
@@ -1,931 +1,763 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "iot-jobs-data",
|
|
26
|
+
});
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
33
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
CertificateValidationException: () => CertificateValidationException,
|
|
25
|
-
ConflictException: () => ConflictException,
|
|
26
|
-
DescribeJobExecutionCommand: () => DescribeJobExecutionCommand,
|
|
27
|
-
GetPendingJobExecutionsCommand: () => GetPendingJobExecutionsCommand,
|
|
28
|
-
InternalServerException: () => InternalServerException,
|
|
29
|
-
InvalidRequestException: () => InvalidRequestException,
|
|
30
|
-
InvalidStateTransitionException: () => InvalidStateTransitionException,
|
|
31
|
-
IoTJobsDataPlane: () => IoTJobsDataPlane,
|
|
32
|
-
IoTJobsDataPlaneClient: () => IoTJobsDataPlaneClient,
|
|
33
|
-
IoTJobsDataPlaneServiceException: () => IoTJobsDataPlaneServiceException,
|
|
34
|
-
JobExecutionStatus: () => JobExecutionStatus,
|
|
35
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
36
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
37
|
-
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
38
|
-
StartCommandExecutionCommand: () => StartCommandExecutionCommand,
|
|
39
|
-
StartNextPendingJobExecutionCommand: () => StartNextPendingJobExecutionCommand,
|
|
40
|
-
TerminalStateException: () => TerminalStateException,
|
|
41
|
-
ThrottlingException: () => ThrottlingException,
|
|
42
|
-
UpdateJobExecutionCommand: () => UpdateJobExecutionCommand,
|
|
43
|
-
ValidationException: () => ValidationException,
|
|
44
|
-
__Client: () => import_smithy_client.Client
|
|
45
|
-
});
|
|
46
|
-
module.exports = __toCommonJS(index_exports);
|
|
47
|
-
|
|
48
|
-
// src/IoTJobsDataPlaneClient.ts
|
|
49
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
50
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
51
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
52
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
53
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
54
|
-
var import_core = require("@smithy/core");
|
|
55
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
56
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
57
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
58
34
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
74
72
|
};
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
82
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
83
79
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
80
|
+
class IoTJobsDataPlaneClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultIoTJobsDataPlaneHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
112
108
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
118
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
119
|
-
credentials: config.credentials()
|
|
120
|
-
};
|
|
121
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
122
|
-
|
|
123
|
-
// src/runtimeExtensions.ts
|
|
124
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
125
|
-
const extensionConfiguration = Object.assign(
|
|
126
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
127
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
128
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
129
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
130
|
-
);
|
|
131
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
132
|
-
return Object.assign(
|
|
133
|
-
runtimeConfig,
|
|
134
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
135
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
136
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
137
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
138
|
-
);
|
|
139
|
-
}, "resolveRuntimeExtensions");
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
140
113
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
*/
|
|
184
|
-
destroy() {
|
|
185
|
-
super.destroy();
|
|
186
|
-
}
|
|
114
|
+
class IoTJobsDataPlaneServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, IoTJobsDataPlaneServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class CertificateValidationException extends IoTJobsDataPlaneServiceException {
|
|
122
|
+
name = "CertificateValidationException";
|
|
123
|
+
$fault = "client";
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "CertificateValidationException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, CertificateValidationException.prototype);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
class ConflictException extends IoTJobsDataPlaneServiceException {
|
|
134
|
+
name = "ConflictException";
|
|
135
|
+
$fault = "client";
|
|
136
|
+
resourceId;
|
|
137
|
+
constructor(opts) {
|
|
138
|
+
super({
|
|
139
|
+
name: "ConflictException",
|
|
140
|
+
$fault: "client",
|
|
141
|
+
...opts,
|
|
142
|
+
});
|
|
143
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
144
|
+
this.resourceId = opts.resourceId;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const JobExecutionStatus = {
|
|
148
|
+
CANCELED: "CANCELED",
|
|
149
|
+
FAILED: "FAILED",
|
|
150
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
151
|
+
QUEUED: "QUEUED",
|
|
152
|
+
REJECTED: "REJECTED",
|
|
153
|
+
REMOVED: "REMOVED",
|
|
154
|
+
SUCCEEDED: "SUCCEEDED",
|
|
155
|
+
TIMED_OUT: "TIMED_OUT",
|
|
187
156
|
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
157
|
+
class InvalidRequestException extends IoTJobsDataPlaneServiceException {
|
|
158
|
+
name = "InvalidRequestException";
|
|
159
|
+
$fault = "client";
|
|
160
|
+
constructor(opts) {
|
|
161
|
+
super({
|
|
162
|
+
name: "InvalidRequestException",
|
|
163
|
+
$fault: "client",
|
|
164
|
+
...opts,
|
|
165
|
+
});
|
|
166
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class ResourceNotFoundException extends IoTJobsDataPlaneServiceException {
|
|
170
|
+
name = "ResourceNotFoundException";
|
|
171
|
+
$fault = "client";
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "ResourceNotFoundException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
class ServiceUnavailableException extends IoTJobsDataPlaneServiceException {
|
|
182
|
+
name = "ServiceUnavailableException";
|
|
183
|
+
$fault = "server";
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "ServiceUnavailableException",
|
|
187
|
+
$fault: "server",
|
|
188
|
+
...opts,
|
|
189
|
+
});
|
|
190
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
class TerminalStateException extends IoTJobsDataPlaneServiceException {
|
|
194
|
+
name = "TerminalStateException";
|
|
195
|
+
$fault = "client";
|
|
196
|
+
constructor(opts) {
|
|
197
|
+
super({
|
|
198
|
+
name: "TerminalStateException",
|
|
199
|
+
$fault: "client",
|
|
200
|
+
...opts,
|
|
201
|
+
});
|
|
202
|
+
Object.setPrototypeOf(this, TerminalStateException.prototype);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class ThrottlingException extends IoTJobsDataPlaneServiceException {
|
|
206
|
+
name = "ThrottlingException";
|
|
207
|
+
$fault = "client";
|
|
208
|
+
payload;
|
|
209
|
+
constructor(opts) {
|
|
210
|
+
super({
|
|
211
|
+
name: "ThrottlingException",
|
|
212
|
+
$fault: "client",
|
|
213
|
+
...opts,
|
|
214
|
+
});
|
|
215
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
216
|
+
this.payload = opts.payload;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
class InternalServerException extends IoTJobsDataPlaneServiceException {
|
|
220
|
+
name = "InternalServerException";
|
|
221
|
+
$fault = "server";
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "InternalServerException",
|
|
225
|
+
$fault: "server",
|
|
226
|
+
...opts,
|
|
227
|
+
});
|
|
228
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
class InvalidStateTransitionException extends IoTJobsDataPlaneServiceException {
|
|
232
|
+
name = "InvalidStateTransitionException";
|
|
233
|
+
$fault = "client";
|
|
234
|
+
constructor(opts) {
|
|
235
|
+
super({
|
|
236
|
+
name: "InvalidStateTransitionException",
|
|
237
|
+
$fault: "client",
|
|
238
|
+
...opts,
|
|
239
|
+
});
|
|
240
|
+
Object.setPrototypeOf(this, InvalidStateTransitionException.prototype);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
class ServiceQuotaExceededException extends IoTJobsDataPlaneServiceException {
|
|
244
|
+
name = "ServiceQuotaExceededException";
|
|
245
|
+
$fault = "client";
|
|
246
|
+
constructor(opts) {
|
|
247
|
+
super({
|
|
248
|
+
name: "ServiceQuotaExceededException",
|
|
249
|
+
$fault: "client",
|
|
250
|
+
...opts,
|
|
251
|
+
});
|
|
252
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
class ValidationException extends IoTJobsDataPlaneServiceException {
|
|
256
|
+
name = "ValidationException";
|
|
257
|
+
$fault = "client";
|
|
258
|
+
constructor(opts) {
|
|
259
|
+
super({
|
|
260
|
+
name: "ValidationException",
|
|
261
|
+
$fault: "client",
|
|
262
|
+
...opts,
|
|
263
|
+
});
|
|
264
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
const se_DescribeJobExecutionCommand = async (input, context) => {
|
|
269
|
+
const b = core.requestBuilder(input, context);
|
|
270
|
+
const headers = {};
|
|
271
|
+
b.bp("/things/{thingName}/jobs/{jobId}");
|
|
272
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
273
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
274
|
+
const query = smithyClient.map({
|
|
275
|
+
[_iJD]: [() => input.includeJobDocument !== void 0, () => input[_iJD].toString()],
|
|
276
|
+
[_eN]: [() => input.executionNumber !== void 0, () => input[_eN].toString()],
|
|
277
|
+
});
|
|
278
|
+
let body;
|
|
279
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
280
|
+
return b.build();
|
|
216
281
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* @internal
|
|
227
|
-
*/
|
|
228
|
-
constructor(opts) {
|
|
229
|
-
super({
|
|
230
|
-
name: "CertificateValidationException",
|
|
231
|
-
$fault: "client",
|
|
232
|
-
...opts
|
|
233
|
-
});
|
|
234
|
-
Object.setPrototypeOf(this, _CertificateValidationException.prototype);
|
|
235
|
-
}
|
|
282
|
+
const se_GetPendingJobExecutionsCommand = async (input, context) => {
|
|
283
|
+
const b = core.requestBuilder(input, context);
|
|
284
|
+
const headers = {};
|
|
285
|
+
b.bp("/things/{thingName}/jobs");
|
|
286
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
287
|
+
let body;
|
|
288
|
+
b.m("GET").h(headers).b(body);
|
|
289
|
+
return b.build();
|
|
236
290
|
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
name: "ConflictException",
|
|
254
|
-
$fault: "client",
|
|
255
|
-
...opts
|
|
256
|
-
});
|
|
257
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
258
|
-
this.resourceId = opts.resourceId;
|
|
259
|
-
}
|
|
291
|
+
const se_StartCommandExecutionCommand = async (input, context) => {
|
|
292
|
+
const b = core.requestBuilder(input, context);
|
|
293
|
+
const headers = {
|
|
294
|
+
"content-type": "application/json",
|
|
295
|
+
};
|
|
296
|
+
b.bp("/command-executions");
|
|
297
|
+
let body;
|
|
298
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
299
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
300
|
+
commandArn: [],
|
|
301
|
+
executionTimeoutSeconds: [],
|
|
302
|
+
parameters: (_) => se_CommandExecutionParameterMap(_, context),
|
|
303
|
+
targetArn: [],
|
|
304
|
+
}));
|
|
305
|
+
b.m("POST").h(headers).b(body);
|
|
306
|
+
return b.build();
|
|
260
307
|
};
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
308
|
+
const se_StartNextPendingJobExecutionCommand = async (input, context) => {
|
|
309
|
+
const b = core.requestBuilder(input, context);
|
|
310
|
+
const headers = {
|
|
311
|
+
"content-type": "application/json",
|
|
312
|
+
};
|
|
313
|
+
b.bp("/things/{thingName}/jobs/$next");
|
|
314
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
315
|
+
let body;
|
|
316
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
317
|
+
statusDetails: (_) => smithyClient._json(_),
|
|
318
|
+
stepTimeoutInMinutes: [],
|
|
319
|
+
}));
|
|
320
|
+
b.m("PUT").h(headers).b(body);
|
|
321
|
+
return b.build();
|
|
270
322
|
};
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
323
|
+
const se_UpdateJobExecutionCommand = async (input, context) => {
|
|
324
|
+
const b = core.requestBuilder(input, context);
|
|
325
|
+
const headers = {
|
|
326
|
+
"content-type": "application/json",
|
|
327
|
+
};
|
|
328
|
+
b.bp("/things/{thingName}/jobs/{jobId}");
|
|
329
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
330
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
331
|
+
let body;
|
|
332
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
333
|
+
executionNumber: [],
|
|
334
|
+
expectedVersion: [],
|
|
335
|
+
includeJobDocument: [],
|
|
336
|
+
includeJobExecutionState: [],
|
|
337
|
+
status: [],
|
|
338
|
+
statusDetails: (_) => smithyClient._json(_),
|
|
339
|
+
stepTimeoutInMinutes: [],
|
|
340
|
+
}));
|
|
341
|
+
b.m("POST").h(headers).b(body);
|
|
342
|
+
return b.build();
|
|
288
343
|
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
...opts
|
|
303
|
-
});
|
|
304
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
305
|
-
}
|
|
344
|
+
const de_DescribeJobExecutionCommand = async (output, context) => {
|
|
345
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
346
|
+
return de_CommandError(output, context);
|
|
347
|
+
}
|
|
348
|
+
const contents = smithyClient.map({
|
|
349
|
+
$metadata: deserializeMetadata(output),
|
|
350
|
+
});
|
|
351
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
352
|
+
const doc = smithyClient.take(data, {
|
|
353
|
+
execution: smithyClient._json,
|
|
354
|
+
});
|
|
355
|
+
Object.assign(contents, doc);
|
|
356
|
+
return contents;
|
|
306
357
|
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
});
|
|
322
|
-
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
323
|
-
}
|
|
358
|
+
const de_GetPendingJobExecutionsCommand = async (output, context) => {
|
|
359
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
+
return de_CommandError(output, context);
|
|
361
|
+
}
|
|
362
|
+
const contents = smithyClient.map({
|
|
363
|
+
$metadata: deserializeMetadata(output),
|
|
364
|
+
});
|
|
365
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
366
|
+
const doc = smithyClient.take(data, {
|
|
367
|
+
inProgressJobs: smithyClient._json,
|
|
368
|
+
queuedJobs: smithyClient._json,
|
|
369
|
+
});
|
|
370
|
+
Object.assign(contents, doc);
|
|
371
|
+
return contents;
|
|
324
372
|
};
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
...opts
|
|
339
|
-
});
|
|
340
|
-
Object.setPrototypeOf(this, _TerminalStateException.prototype);
|
|
341
|
-
}
|
|
373
|
+
const de_StartCommandExecutionCommand = async (output, context) => {
|
|
374
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
375
|
+
return de_CommandError(output, context);
|
|
376
|
+
}
|
|
377
|
+
const contents = smithyClient.map({
|
|
378
|
+
$metadata: deserializeMetadata(output),
|
|
379
|
+
});
|
|
380
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
381
|
+
const doc = smithyClient.take(data, {
|
|
382
|
+
executionId: smithyClient.expectString,
|
|
383
|
+
});
|
|
384
|
+
Object.assign(contents, doc);
|
|
385
|
+
return contents;
|
|
342
386
|
};
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
*/
|
|
357
|
-
constructor(opts) {
|
|
358
|
-
super({
|
|
359
|
-
name: "ThrottlingException",
|
|
360
|
-
$fault: "client",
|
|
361
|
-
...opts
|
|
362
|
-
});
|
|
363
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
364
|
-
this.payload = opts.payload;
|
|
365
|
-
}
|
|
387
|
+
const de_StartNextPendingJobExecutionCommand = async (output, context) => {
|
|
388
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
389
|
+
return de_CommandError(output, context);
|
|
390
|
+
}
|
|
391
|
+
const contents = smithyClient.map({
|
|
392
|
+
$metadata: deserializeMetadata(output),
|
|
393
|
+
});
|
|
394
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
395
|
+
const doc = smithyClient.take(data, {
|
|
396
|
+
execution: smithyClient._json,
|
|
397
|
+
});
|
|
398
|
+
Object.assign(contents, doc);
|
|
399
|
+
return contents;
|
|
366
400
|
};
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
});
|
|
382
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
383
|
-
}
|
|
401
|
+
const de_UpdateJobExecutionCommand = async (output, context) => {
|
|
402
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
403
|
+
return de_CommandError(output, context);
|
|
404
|
+
}
|
|
405
|
+
const contents = smithyClient.map({
|
|
406
|
+
$metadata: deserializeMetadata(output),
|
|
407
|
+
});
|
|
408
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
409
|
+
const doc = smithyClient.take(data, {
|
|
410
|
+
executionState: smithyClient._json,
|
|
411
|
+
jobDocument: smithyClient.expectString,
|
|
412
|
+
});
|
|
413
|
+
Object.assign(contents, doc);
|
|
414
|
+
return contents;
|
|
384
415
|
};
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
416
|
+
const de_CommandError = async (output, context) => {
|
|
417
|
+
const parsedOutput = {
|
|
418
|
+
...output,
|
|
419
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
420
|
+
};
|
|
421
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
422
|
+
switch (errorCode) {
|
|
423
|
+
case "CertificateValidationException":
|
|
424
|
+
case "com.amazonaws.iotjobsdataplane#CertificateValidationException":
|
|
425
|
+
throw await de_CertificateValidationExceptionRes(parsedOutput);
|
|
426
|
+
case "InvalidRequestException":
|
|
427
|
+
case "com.amazonaws.iotjobsdataplane#InvalidRequestException":
|
|
428
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
429
|
+
case "ResourceNotFoundException":
|
|
430
|
+
case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException":
|
|
431
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
432
|
+
case "ServiceUnavailableException":
|
|
433
|
+
case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException":
|
|
434
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
435
|
+
case "TerminalStateException":
|
|
436
|
+
case "com.amazonaws.iotjobsdataplane#TerminalStateException":
|
|
437
|
+
throw await de_TerminalStateExceptionRes(parsedOutput);
|
|
438
|
+
case "ThrottlingException":
|
|
439
|
+
case "com.amazonaws.iotjobsdataplane#ThrottlingException":
|
|
440
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
441
|
+
case "ConflictException":
|
|
442
|
+
case "com.amazonaws.iotjobsdataplane#ConflictException":
|
|
443
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
444
|
+
case "InternalServerException":
|
|
445
|
+
case "com.amazonaws.iotjobsdataplane#InternalServerException":
|
|
446
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
447
|
+
case "ServiceQuotaExceededException":
|
|
448
|
+
case "com.amazonaws.iotjobsdataplane#ServiceQuotaExceededException":
|
|
449
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
450
|
+
case "ValidationException":
|
|
451
|
+
case "com.amazonaws.iotjobsdataplane#ValidationException":
|
|
452
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
453
|
+
case "InvalidStateTransitionException":
|
|
454
|
+
case "com.amazonaws.iotjobsdataplane#InvalidStateTransitionException":
|
|
455
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput);
|
|
456
|
+
default:
|
|
457
|
+
const parsedBody = parsedOutput.body;
|
|
458
|
+
return throwDefaultError({
|
|
459
|
+
output,
|
|
460
|
+
parsedBody,
|
|
461
|
+
errorCode,
|
|
462
|
+
});
|
|
463
|
+
}
|
|
402
464
|
};
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
...opts
|
|
417
|
-
});
|
|
418
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
419
|
-
}
|
|
465
|
+
const throwDefaultError = smithyClient.withBaseException(IoTJobsDataPlaneServiceException);
|
|
466
|
+
const de_CertificateValidationExceptionRes = async (parsedOutput, context) => {
|
|
467
|
+
const contents = smithyClient.map({});
|
|
468
|
+
const data = parsedOutput.body;
|
|
469
|
+
const doc = smithyClient.take(data, {
|
|
470
|
+
message: smithyClient.expectString,
|
|
471
|
+
});
|
|
472
|
+
Object.assign(contents, doc);
|
|
473
|
+
const exception = new CertificateValidationException({
|
|
474
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
475
|
+
...contents,
|
|
476
|
+
});
|
|
477
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
420
478
|
};
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
...opts
|
|
435
|
-
});
|
|
436
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
437
|
-
}
|
|
479
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
480
|
+
const contents = smithyClient.map({});
|
|
481
|
+
const data = parsedOutput.body;
|
|
482
|
+
const doc = smithyClient.take(data, {
|
|
483
|
+
message: smithyClient.expectString,
|
|
484
|
+
resourceId: smithyClient.expectString,
|
|
485
|
+
});
|
|
486
|
+
Object.assign(contents, doc);
|
|
487
|
+
const exception = new ConflictException({
|
|
488
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
489
|
+
...contents,
|
|
490
|
+
});
|
|
491
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
438
492
|
};
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
let body;
|
|
452
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
453
|
-
return b.build();
|
|
454
|
-
}, "se_DescribeJobExecutionCommand");
|
|
455
|
-
var se_GetPendingJobExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
456
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
457
|
-
const headers = {};
|
|
458
|
-
b.bp("/things/{thingName}/jobs");
|
|
459
|
-
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
460
|
-
let body;
|
|
461
|
-
b.m("GET").h(headers).b(body);
|
|
462
|
-
return b.build();
|
|
463
|
-
}, "se_GetPendingJobExecutionsCommand");
|
|
464
|
-
var se_StartCommandExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
465
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
466
|
-
const headers = {
|
|
467
|
-
"content-type": "application/json"
|
|
468
|
-
};
|
|
469
|
-
b.bp("/command-executions");
|
|
470
|
-
let body;
|
|
471
|
-
body = JSON.stringify(
|
|
472
|
-
(0, import_smithy_client.take)(input, {
|
|
473
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
474
|
-
commandArn: [],
|
|
475
|
-
executionTimeoutSeconds: [],
|
|
476
|
-
parameters: /* @__PURE__ */ __name((_) => se_CommandExecutionParameterMap(_, context), "parameters"),
|
|
477
|
-
targetArn: []
|
|
478
|
-
})
|
|
479
|
-
);
|
|
480
|
-
b.m("POST").h(headers).b(body);
|
|
481
|
-
return b.build();
|
|
482
|
-
}, "se_StartCommandExecutionCommand");
|
|
483
|
-
var se_StartNextPendingJobExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
484
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
485
|
-
const headers = {
|
|
486
|
-
"content-type": "application/json"
|
|
487
|
-
};
|
|
488
|
-
b.bp("/things/{thingName}/jobs/$next");
|
|
489
|
-
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
490
|
-
let body;
|
|
491
|
-
body = JSON.stringify(
|
|
492
|
-
(0, import_smithy_client.take)(input, {
|
|
493
|
-
statusDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "statusDetails"),
|
|
494
|
-
stepTimeoutInMinutes: []
|
|
495
|
-
})
|
|
496
|
-
);
|
|
497
|
-
b.m("PUT").h(headers).b(body);
|
|
498
|
-
return b.build();
|
|
499
|
-
}, "se_StartNextPendingJobExecutionCommand");
|
|
500
|
-
var se_UpdateJobExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
501
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
502
|
-
const headers = {
|
|
503
|
-
"content-type": "application/json"
|
|
504
|
-
};
|
|
505
|
-
b.bp("/things/{thingName}/jobs/{jobId}");
|
|
506
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
507
|
-
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
508
|
-
let body;
|
|
509
|
-
body = JSON.stringify(
|
|
510
|
-
(0, import_smithy_client.take)(input, {
|
|
511
|
-
executionNumber: [],
|
|
512
|
-
expectedVersion: [],
|
|
513
|
-
includeJobDocument: [],
|
|
514
|
-
includeJobExecutionState: [],
|
|
515
|
-
status: [],
|
|
516
|
-
statusDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "statusDetails"),
|
|
517
|
-
stepTimeoutInMinutes: []
|
|
518
|
-
})
|
|
519
|
-
);
|
|
520
|
-
b.m("POST").h(headers).b(body);
|
|
521
|
-
return b.build();
|
|
522
|
-
}, "se_UpdateJobExecutionCommand");
|
|
523
|
-
var de_DescribeJobExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
524
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
525
|
-
return de_CommandError(output, context);
|
|
526
|
-
}
|
|
527
|
-
const contents = (0, import_smithy_client.map)({
|
|
528
|
-
$metadata: deserializeMetadata(output)
|
|
529
|
-
});
|
|
530
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
531
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
532
|
-
execution: import_smithy_client._json
|
|
533
|
-
});
|
|
534
|
-
Object.assign(contents, doc);
|
|
535
|
-
return contents;
|
|
536
|
-
}, "de_DescribeJobExecutionCommand");
|
|
537
|
-
var de_GetPendingJobExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
538
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
539
|
-
return de_CommandError(output, context);
|
|
540
|
-
}
|
|
541
|
-
const contents = (0, import_smithy_client.map)({
|
|
542
|
-
$metadata: deserializeMetadata(output)
|
|
543
|
-
});
|
|
544
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
545
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
546
|
-
inProgressJobs: import_smithy_client._json,
|
|
547
|
-
queuedJobs: import_smithy_client._json
|
|
548
|
-
});
|
|
549
|
-
Object.assign(contents, doc);
|
|
550
|
-
return contents;
|
|
551
|
-
}, "de_GetPendingJobExecutionsCommand");
|
|
552
|
-
var de_StartCommandExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
553
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
554
|
-
return de_CommandError(output, context);
|
|
555
|
-
}
|
|
556
|
-
const contents = (0, import_smithy_client.map)({
|
|
557
|
-
$metadata: deserializeMetadata(output)
|
|
558
|
-
});
|
|
559
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
560
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
561
|
-
executionId: import_smithy_client.expectString
|
|
562
|
-
});
|
|
563
|
-
Object.assign(contents, doc);
|
|
564
|
-
return contents;
|
|
565
|
-
}, "de_StartCommandExecutionCommand");
|
|
566
|
-
var de_StartNextPendingJobExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
567
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return de_CommandError(output, context);
|
|
569
|
-
}
|
|
570
|
-
const contents = (0, import_smithy_client.map)({
|
|
571
|
-
$metadata: deserializeMetadata(output)
|
|
572
|
-
});
|
|
573
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
574
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
575
|
-
execution: import_smithy_client._json
|
|
576
|
-
});
|
|
577
|
-
Object.assign(contents, doc);
|
|
578
|
-
return contents;
|
|
579
|
-
}, "de_StartNextPendingJobExecutionCommand");
|
|
580
|
-
var de_UpdateJobExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
581
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
582
|
-
return de_CommandError(output, context);
|
|
583
|
-
}
|
|
584
|
-
const contents = (0, import_smithy_client.map)({
|
|
585
|
-
$metadata: deserializeMetadata(output)
|
|
586
|
-
});
|
|
587
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
588
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
589
|
-
executionState: import_smithy_client._json,
|
|
590
|
-
jobDocument: import_smithy_client.expectString
|
|
591
|
-
});
|
|
592
|
-
Object.assign(contents, doc);
|
|
593
|
-
return contents;
|
|
594
|
-
}, "de_UpdateJobExecutionCommand");
|
|
595
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
596
|
-
const parsedOutput = {
|
|
597
|
-
...output,
|
|
598
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
599
|
-
};
|
|
600
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
601
|
-
switch (errorCode) {
|
|
602
|
-
case "CertificateValidationException":
|
|
603
|
-
case "com.amazonaws.iotjobsdataplane#CertificateValidationException":
|
|
604
|
-
throw await de_CertificateValidationExceptionRes(parsedOutput, context);
|
|
605
|
-
case "InvalidRequestException":
|
|
606
|
-
case "com.amazonaws.iotjobsdataplane#InvalidRequestException":
|
|
607
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ResourceNotFoundException":
|
|
609
|
-
case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException":
|
|
610
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
611
|
-
case "ServiceUnavailableException":
|
|
612
|
-
case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException":
|
|
613
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
614
|
-
case "TerminalStateException":
|
|
615
|
-
case "com.amazonaws.iotjobsdataplane#TerminalStateException":
|
|
616
|
-
throw await de_TerminalStateExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ThrottlingException":
|
|
618
|
-
case "com.amazonaws.iotjobsdataplane#ThrottlingException":
|
|
619
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ConflictException":
|
|
621
|
-
case "com.amazonaws.iotjobsdataplane#ConflictException":
|
|
622
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
623
|
-
case "InternalServerException":
|
|
624
|
-
case "com.amazonaws.iotjobsdataplane#InternalServerException":
|
|
625
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
626
|
-
case "ServiceQuotaExceededException":
|
|
627
|
-
case "com.amazonaws.iotjobsdataplane#ServiceQuotaExceededException":
|
|
628
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
629
|
-
case "ValidationException":
|
|
630
|
-
case "com.amazonaws.iotjobsdataplane#ValidationException":
|
|
631
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
632
|
-
case "InvalidStateTransitionException":
|
|
633
|
-
case "com.amazonaws.iotjobsdataplane#InvalidStateTransitionException":
|
|
634
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
635
|
-
default:
|
|
636
|
-
const parsedBody = parsedOutput.body;
|
|
637
|
-
return throwDefaultError({
|
|
638
|
-
output,
|
|
639
|
-
parsedBody,
|
|
640
|
-
errorCode
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
}, "de_CommandError");
|
|
644
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTJobsDataPlaneServiceException);
|
|
645
|
-
var de_CertificateValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
646
|
-
const contents = (0, import_smithy_client.map)({});
|
|
647
|
-
const data = parsedOutput.body;
|
|
648
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
649
|
-
message: import_smithy_client.expectString
|
|
650
|
-
});
|
|
651
|
-
Object.assign(contents, doc);
|
|
652
|
-
const exception = new CertificateValidationException({
|
|
653
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
654
|
-
...contents
|
|
655
|
-
});
|
|
656
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
657
|
-
}, "de_CertificateValidationExceptionRes");
|
|
658
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
659
|
-
const contents = (0, import_smithy_client.map)({});
|
|
660
|
-
const data = parsedOutput.body;
|
|
661
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
662
|
-
message: import_smithy_client.expectString,
|
|
663
|
-
resourceId: import_smithy_client.expectString
|
|
664
|
-
});
|
|
665
|
-
Object.assign(contents, doc);
|
|
666
|
-
const exception = new ConflictException({
|
|
667
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
668
|
-
...contents
|
|
669
|
-
});
|
|
670
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
671
|
-
}, "de_ConflictExceptionRes");
|
|
672
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
673
|
-
const contents = (0, import_smithy_client.map)({});
|
|
674
|
-
const data = parsedOutput.body;
|
|
675
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
676
|
-
message: import_smithy_client.expectString
|
|
677
|
-
});
|
|
678
|
-
Object.assign(contents, doc);
|
|
679
|
-
const exception = new InternalServerException({
|
|
680
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
681
|
-
...contents
|
|
682
|
-
});
|
|
683
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
684
|
-
}, "de_InternalServerExceptionRes");
|
|
685
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
686
|
-
const contents = (0, import_smithy_client.map)({});
|
|
687
|
-
const data = parsedOutput.body;
|
|
688
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
689
|
-
message: import_smithy_client.expectString
|
|
690
|
-
});
|
|
691
|
-
Object.assign(contents, doc);
|
|
692
|
-
const exception = new InvalidRequestException({
|
|
693
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
694
|
-
...contents
|
|
695
|
-
});
|
|
696
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
697
|
-
}, "de_InvalidRequestExceptionRes");
|
|
698
|
-
var de_InvalidStateTransitionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
699
|
-
const contents = (0, import_smithy_client.map)({});
|
|
700
|
-
const data = parsedOutput.body;
|
|
701
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
702
|
-
message: import_smithy_client.expectString
|
|
703
|
-
});
|
|
704
|
-
Object.assign(contents, doc);
|
|
705
|
-
const exception = new InvalidStateTransitionException({
|
|
706
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
707
|
-
...contents
|
|
708
|
-
});
|
|
709
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
710
|
-
}, "de_InvalidStateTransitionExceptionRes");
|
|
711
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
712
|
-
const contents = (0, import_smithy_client.map)({});
|
|
713
|
-
const data = parsedOutput.body;
|
|
714
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
715
|
-
message: import_smithy_client.expectString
|
|
716
|
-
});
|
|
717
|
-
Object.assign(contents, doc);
|
|
718
|
-
const exception = new ResourceNotFoundException({
|
|
719
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
720
|
-
...contents
|
|
721
|
-
});
|
|
722
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
723
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
724
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
725
|
-
const contents = (0, import_smithy_client.map)({});
|
|
726
|
-
const data = parsedOutput.body;
|
|
727
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
728
|
-
message: import_smithy_client.expectString
|
|
729
|
-
});
|
|
730
|
-
Object.assign(contents, doc);
|
|
731
|
-
const exception = new ServiceQuotaExceededException({
|
|
732
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
733
|
-
...contents
|
|
734
|
-
});
|
|
735
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
736
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
737
|
-
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
738
|
-
const contents = (0, import_smithy_client.map)({});
|
|
739
|
-
const data = parsedOutput.body;
|
|
740
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
741
|
-
message: import_smithy_client.expectString
|
|
742
|
-
});
|
|
743
|
-
Object.assign(contents, doc);
|
|
744
|
-
const exception = new ServiceUnavailableException({
|
|
745
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
746
|
-
...contents
|
|
747
|
-
});
|
|
748
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
749
|
-
}, "de_ServiceUnavailableExceptionRes");
|
|
750
|
-
var de_TerminalStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
751
|
-
const contents = (0, import_smithy_client.map)({});
|
|
752
|
-
const data = parsedOutput.body;
|
|
753
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
754
|
-
message: import_smithy_client.expectString
|
|
755
|
-
});
|
|
756
|
-
Object.assign(contents, doc);
|
|
757
|
-
const exception = new TerminalStateException({
|
|
758
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
759
|
-
...contents
|
|
760
|
-
});
|
|
761
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
762
|
-
}, "de_TerminalStateExceptionRes");
|
|
763
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
764
|
-
const contents = (0, import_smithy_client.map)({});
|
|
765
|
-
const data = parsedOutput.body;
|
|
766
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
767
|
-
message: import_smithy_client.expectString,
|
|
768
|
-
payload: context.base64Decoder
|
|
769
|
-
});
|
|
770
|
-
Object.assign(contents, doc);
|
|
771
|
-
const exception = new ThrottlingException({
|
|
772
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
773
|
-
...contents
|
|
774
|
-
});
|
|
775
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
776
|
-
}, "de_ThrottlingExceptionRes");
|
|
777
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
778
|
-
const contents = (0, import_smithy_client.map)({});
|
|
779
|
-
const data = parsedOutput.body;
|
|
780
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
781
|
-
message: import_smithy_client.expectString
|
|
782
|
-
});
|
|
783
|
-
Object.assign(contents, doc);
|
|
784
|
-
const exception = new ValidationException({
|
|
785
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
786
|
-
...contents
|
|
787
|
-
});
|
|
788
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
789
|
-
}, "de_ValidationExceptionRes");
|
|
790
|
-
var se_CommandExecutionParameterMap = /* @__PURE__ */ __name((input, context) => {
|
|
791
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
792
|
-
if (value === null) {
|
|
793
|
-
return acc;
|
|
794
|
-
}
|
|
795
|
-
acc[key] = se_CommandParameterValue(value, context);
|
|
796
|
-
return acc;
|
|
797
|
-
}, {});
|
|
798
|
-
}, "se_CommandExecutionParameterMap");
|
|
799
|
-
var se_CommandParameterValue = /* @__PURE__ */ __name((input, context) => {
|
|
800
|
-
return (0, import_smithy_client.take)(input, {
|
|
801
|
-
B: [],
|
|
802
|
-
BIN: context.base64Encoder,
|
|
803
|
-
D: import_smithy_client.serializeFloat,
|
|
804
|
-
I: [],
|
|
805
|
-
L: [],
|
|
806
|
-
S: [],
|
|
807
|
-
UL: []
|
|
808
|
-
});
|
|
809
|
-
}, "se_CommandParameterValue");
|
|
810
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
811
|
-
httpStatusCode: output.statusCode,
|
|
812
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
813
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
814
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
815
|
-
}), "deserializeMetadata");
|
|
816
|
-
var _eN = "executionNumber";
|
|
817
|
-
var _iJD = "includeJobDocument";
|
|
818
|
-
|
|
819
|
-
// src/commands/DescribeJobExecutionCommand.ts
|
|
820
|
-
var DescribeJobExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
821
|
-
return [
|
|
822
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
823
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
824
|
-
];
|
|
825
|
-
}).s("IotLaserThingJobManagerExternalService", "DescribeJobExecution", {}).n("IoTJobsDataPlaneClient", "DescribeJobExecutionCommand").f(void 0, void 0).ser(se_DescribeJobExecutionCommand).de(de_DescribeJobExecutionCommand).build() {
|
|
826
|
-
static {
|
|
827
|
-
__name(this, "DescribeJobExecutionCommand");
|
|
828
|
-
}
|
|
493
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
494
|
+
const contents = smithyClient.map({});
|
|
495
|
+
const data = parsedOutput.body;
|
|
496
|
+
const doc = smithyClient.take(data, {
|
|
497
|
+
message: smithyClient.expectString,
|
|
498
|
+
});
|
|
499
|
+
Object.assign(contents, doc);
|
|
500
|
+
const exception = new InternalServerException({
|
|
501
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
502
|
+
...contents,
|
|
503
|
+
});
|
|
504
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
829
505
|
};
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
})
|
|
841
|
-
|
|
842
|
-
__name(this, "GetPendingJobExecutionsCommand");
|
|
843
|
-
}
|
|
506
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
507
|
+
const contents = smithyClient.map({});
|
|
508
|
+
const data = parsedOutput.body;
|
|
509
|
+
const doc = smithyClient.take(data, {
|
|
510
|
+
message: smithyClient.expectString,
|
|
511
|
+
});
|
|
512
|
+
Object.assign(contents, doc);
|
|
513
|
+
const exception = new InvalidRequestException({
|
|
514
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
515
|
+
...contents,
|
|
516
|
+
});
|
|
517
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
844
518
|
};
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
})
|
|
856
|
-
|
|
857
|
-
__name(this, "StartCommandExecutionCommand");
|
|
858
|
-
}
|
|
519
|
+
const de_InvalidStateTransitionExceptionRes = async (parsedOutput, context) => {
|
|
520
|
+
const contents = smithyClient.map({});
|
|
521
|
+
const data = parsedOutput.body;
|
|
522
|
+
const doc = smithyClient.take(data, {
|
|
523
|
+
message: smithyClient.expectString,
|
|
524
|
+
});
|
|
525
|
+
Object.assign(contents, doc);
|
|
526
|
+
const exception = new InvalidStateTransitionException({
|
|
527
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
528
|
+
...contents,
|
|
529
|
+
});
|
|
530
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
859
531
|
};
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
})
|
|
871
|
-
|
|
872
|
-
__name(this, "StartNextPendingJobExecutionCommand");
|
|
873
|
-
}
|
|
532
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
533
|
+
const contents = smithyClient.map({});
|
|
534
|
+
const data = parsedOutput.body;
|
|
535
|
+
const doc = smithyClient.take(data, {
|
|
536
|
+
message: smithyClient.expectString,
|
|
537
|
+
});
|
|
538
|
+
Object.assign(contents, doc);
|
|
539
|
+
const exception = new ResourceNotFoundException({
|
|
540
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
541
|
+
...contents,
|
|
542
|
+
});
|
|
543
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
874
544
|
};
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
})
|
|
886
|
-
|
|
887
|
-
__name(this, "UpdateJobExecutionCommand");
|
|
888
|
-
}
|
|
545
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
546
|
+
const contents = smithyClient.map({});
|
|
547
|
+
const data = parsedOutput.body;
|
|
548
|
+
const doc = smithyClient.take(data, {
|
|
549
|
+
message: smithyClient.expectString,
|
|
550
|
+
});
|
|
551
|
+
Object.assign(contents, doc);
|
|
552
|
+
const exception = new ServiceQuotaExceededException({
|
|
553
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
554
|
+
...contents,
|
|
555
|
+
});
|
|
556
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
889
557
|
};
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
558
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
559
|
+
const contents = smithyClient.map({});
|
|
560
|
+
const data = parsedOutput.body;
|
|
561
|
+
const doc = smithyClient.take(data, {
|
|
562
|
+
message: smithyClient.expectString,
|
|
563
|
+
});
|
|
564
|
+
Object.assign(contents, doc);
|
|
565
|
+
const exception = new ServiceUnavailableException({
|
|
566
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
567
|
+
...contents,
|
|
568
|
+
});
|
|
569
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
898
570
|
};
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
571
|
+
const de_TerminalStateExceptionRes = async (parsedOutput, context) => {
|
|
572
|
+
const contents = smithyClient.map({});
|
|
573
|
+
const data = parsedOutput.body;
|
|
574
|
+
const doc = smithyClient.take(data, {
|
|
575
|
+
message: smithyClient.expectString,
|
|
576
|
+
});
|
|
577
|
+
Object.assign(contents, doc);
|
|
578
|
+
const exception = new TerminalStateException({
|
|
579
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
580
|
+
...contents,
|
|
581
|
+
});
|
|
582
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
903
583
|
};
|
|
904
|
-
(
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
584
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
585
|
+
const contents = smithyClient.map({});
|
|
586
|
+
const data = parsedOutput.body;
|
|
587
|
+
const doc = smithyClient.take(data, {
|
|
588
|
+
message: smithyClient.expectString,
|
|
589
|
+
payload: context.base64Decoder,
|
|
590
|
+
});
|
|
591
|
+
Object.assign(contents, doc);
|
|
592
|
+
const exception = new ThrottlingException({
|
|
593
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
594
|
+
...contents,
|
|
595
|
+
});
|
|
596
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
597
|
+
};
|
|
598
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
599
|
+
const contents = smithyClient.map({});
|
|
600
|
+
const data = parsedOutput.body;
|
|
601
|
+
const doc = smithyClient.take(data, {
|
|
602
|
+
message: smithyClient.expectString,
|
|
603
|
+
});
|
|
604
|
+
Object.assign(contents, doc);
|
|
605
|
+
const exception = new ValidationException({
|
|
606
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
607
|
+
...contents,
|
|
608
|
+
});
|
|
609
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
610
|
+
};
|
|
611
|
+
const se_CommandExecutionParameterMap = (input, context) => {
|
|
612
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
613
|
+
if (value === null) {
|
|
614
|
+
return acc;
|
|
615
|
+
}
|
|
616
|
+
acc[key] = se_CommandParameterValue(value, context);
|
|
617
|
+
return acc;
|
|
618
|
+
}, {});
|
|
619
|
+
};
|
|
620
|
+
const se_CommandParameterValue = (input, context) => {
|
|
621
|
+
return smithyClient.take(input, {
|
|
622
|
+
B: [],
|
|
623
|
+
BIN: context.base64Encoder,
|
|
624
|
+
D: smithyClient.serializeFloat,
|
|
625
|
+
I: [],
|
|
626
|
+
L: [],
|
|
627
|
+
S: [],
|
|
628
|
+
UL: [],
|
|
629
|
+
});
|
|
630
|
+
};
|
|
631
|
+
const deserializeMetadata = (output) => ({
|
|
632
|
+
httpStatusCode: output.statusCode,
|
|
633
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
634
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
635
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
930
636
|
});
|
|
637
|
+
const _eN = "executionNumber";
|
|
638
|
+
const _iJD = "includeJobDocument";
|
|
639
|
+
|
|
640
|
+
class DescribeJobExecutionCommand extends smithyClient.Command
|
|
641
|
+
.classBuilder()
|
|
642
|
+
.ep(commonParams)
|
|
643
|
+
.m(function (Command, cs, config, o) {
|
|
644
|
+
return [
|
|
645
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
646
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
647
|
+
];
|
|
648
|
+
})
|
|
649
|
+
.s("IotLaserThingJobManagerExternalService", "DescribeJobExecution", {})
|
|
650
|
+
.n("IoTJobsDataPlaneClient", "DescribeJobExecutionCommand")
|
|
651
|
+
.f(void 0, void 0)
|
|
652
|
+
.ser(se_DescribeJobExecutionCommand)
|
|
653
|
+
.de(de_DescribeJobExecutionCommand)
|
|
654
|
+
.build() {
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
class GetPendingJobExecutionsCommand extends smithyClient.Command
|
|
658
|
+
.classBuilder()
|
|
659
|
+
.ep(commonParams)
|
|
660
|
+
.m(function (Command, cs, config, o) {
|
|
661
|
+
return [
|
|
662
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
663
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
664
|
+
];
|
|
665
|
+
})
|
|
666
|
+
.s("IotLaserThingJobManagerExternalService", "GetPendingJobExecutions", {})
|
|
667
|
+
.n("IoTJobsDataPlaneClient", "GetPendingJobExecutionsCommand")
|
|
668
|
+
.f(void 0, void 0)
|
|
669
|
+
.ser(se_GetPendingJobExecutionsCommand)
|
|
670
|
+
.de(de_GetPendingJobExecutionsCommand)
|
|
671
|
+
.build() {
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
class StartCommandExecutionCommand extends smithyClient.Command
|
|
675
|
+
.classBuilder()
|
|
676
|
+
.ep(commonParams)
|
|
677
|
+
.m(function (Command, cs, config, o) {
|
|
678
|
+
return [
|
|
679
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
680
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
681
|
+
];
|
|
682
|
+
})
|
|
683
|
+
.s("IotLaserThingJobManagerExternalService", "StartCommandExecution", {})
|
|
684
|
+
.n("IoTJobsDataPlaneClient", "StartCommandExecutionCommand")
|
|
685
|
+
.f(void 0, void 0)
|
|
686
|
+
.ser(se_StartCommandExecutionCommand)
|
|
687
|
+
.de(de_StartCommandExecutionCommand)
|
|
688
|
+
.build() {
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
class StartNextPendingJobExecutionCommand extends smithyClient.Command
|
|
692
|
+
.classBuilder()
|
|
693
|
+
.ep(commonParams)
|
|
694
|
+
.m(function (Command, cs, config, o) {
|
|
695
|
+
return [
|
|
696
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
697
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
698
|
+
];
|
|
699
|
+
})
|
|
700
|
+
.s("IotLaserThingJobManagerExternalService", "StartNextPendingJobExecution", {})
|
|
701
|
+
.n("IoTJobsDataPlaneClient", "StartNextPendingJobExecutionCommand")
|
|
702
|
+
.f(void 0, void 0)
|
|
703
|
+
.ser(se_StartNextPendingJobExecutionCommand)
|
|
704
|
+
.de(de_StartNextPendingJobExecutionCommand)
|
|
705
|
+
.build() {
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
class UpdateJobExecutionCommand extends smithyClient.Command
|
|
709
|
+
.classBuilder()
|
|
710
|
+
.ep(commonParams)
|
|
711
|
+
.m(function (Command, cs, config, o) {
|
|
712
|
+
return [
|
|
713
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
714
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
715
|
+
];
|
|
716
|
+
})
|
|
717
|
+
.s("IotLaserThingJobManagerExternalService", "UpdateJobExecution", {})
|
|
718
|
+
.n("IoTJobsDataPlaneClient", "UpdateJobExecutionCommand")
|
|
719
|
+
.f(void 0, void 0)
|
|
720
|
+
.ser(se_UpdateJobExecutionCommand)
|
|
721
|
+
.de(de_UpdateJobExecutionCommand)
|
|
722
|
+
.build() {
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
const commands = {
|
|
726
|
+
DescribeJobExecutionCommand,
|
|
727
|
+
GetPendingJobExecutionsCommand,
|
|
728
|
+
StartCommandExecutionCommand,
|
|
729
|
+
StartNextPendingJobExecutionCommand,
|
|
730
|
+
UpdateJobExecutionCommand,
|
|
731
|
+
};
|
|
732
|
+
class IoTJobsDataPlane extends IoTJobsDataPlaneClient {
|
|
733
|
+
}
|
|
734
|
+
smithyClient.createAggregatedClient(commands, IoTJobsDataPlane);
|
|
931
735
|
|
|
736
|
+
Object.defineProperty(exports, "$Command", {
|
|
737
|
+
enumerable: true,
|
|
738
|
+
get: function () { return smithyClient.Command; }
|
|
739
|
+
});
|
|
740
|
+
Object.defineProperty(exports, "__Client", {
|
|
741
|
+
enumerable: true,
|
|
742
|
+
get: function () { return smithyClient.Client; }
|
|
743
|
+
});
|
|
744
|
+
exports.CertificateValidationException = CertificateValidationException;
|
|
745
|
+
exports.ConflictException = ConflictException;
|
|
746
|
+
exports.DescribeJobExecutionCommand = DescribeJobExecutionCommand;
|
|
747
|
+
exports.GetPendingJobExecutionsCommand = GetPendingJobExecutionsCommand;
|
|
748
|
+
exports.InternalServerException = InternalServerException;
|
|
749
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
750
|
+
exports.InvalidStateTransitionException = InvalidStateTransitionException;
|
|
751
|
+
exports.IoTJobsDataPlane = IoTJobsDataPlane;
|
|
752
|
+
exports.IoTJobsDataPlaneClient = IoTJobsDataPlaneClient;
|
|
753
|
+
exports.IoTJobsDataPlaneServiceException = IoTJobsDataPlaneServiceException;
|
|
754
|
+
exports.JobExecutionStatus = JobExecutionStatus;
|
|
755
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
756
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
757
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
758
|
+
exports.StartCommandExecutionCommand = StartCommandExecutionCommand;
|
|
759
|
+
exports.StartNextPendingJobExecutionCommand = StartNextPendingJobExecutionCommand;
|
|
760
|
+
exports.TerminalStateException = TerminalStateException;
|
|
761
|
+
exports.ThrottlingException = ThrottlingException;
|
|
762
|
+
exports.UpdateJobExecutionCommand = UpdateJobExecutionCommand;
|
|
763
|
+
exports.ValidationException = ValidationException;
|