@aws-sdk/client-iotdeviceadvisor 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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1030 -1137
  2. package/package.json +38 -38
package/dist-cjs/index.js CHANGED
@@ -1,1183 +1,1076 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
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: "iotdeviceadvisor",
26
+ });
10
27
  };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
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
- AuthenticationMethod: () => AuthenticationMethod,
25
- ConflictException: () => ConflictException,
26
- CreateSuiteDefinitionCommand: () => CreateSuiteDefinitionCommand,
27
- DeleteSuiteDefinitionCommand: () => DeleteSuiteDefinitionCommand,
28
- GetEndpointCommand: () => GetEndpointCommand,
29
- GetSuiteDefinitionCommand: () => GetSuiteDefinitionCommand,
30
- GetSuiteRunCommand: () => GetSuiteRunCommand,
31
- GetSuiteRunReportCommand: () => GetSuiteRunReportCommand,
32
- InternalServerException: () => InternalServerException,
33
- IotDeviceAdvisor: () => IotDeviceAdvisor,
34
- IotDeviceAdvisorClient: () => IotDeviceAdvisorClient,
35
- IotDeviceAdvisorServiceException: () => IotDeviceAdvisorServiceException,
36
- ListSuiteDefinitionsCommand: () => ListSuiteDefinitionsCommand,
37
- ListSuiteRunsCommand: () => ListSuiteRunsCommand,
38
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
39
- Protocol: () => Protocol,
40
- ResourceNotFoundException: () => ResourceNotFoundException,
41
- StartSuiteRunCommand: () => StartSuiteRunCommand,
42
- Status: () => Status,
43
- StopSuiteRunCommand: () => StopSuiteRunCommand,
44
- SuiteRunStatus: () => SuiteRunStatus,
45
- TagResourceCommand: () => TagResourceCommand,
46
- TestCaseScenarioStatus: () => TestCaseScenarioStatus,
47
- TestCaseScenarioType: () => TestCaseScenarioType,
48
- UntagResourceCommand: () => UntagResourceCommand,
49
- UpdateSuiteDefinitionCommand: () => UpdateSuiteDefinitionCommand,
50
- ValidationException: () => ValidationException,
51
- __Client: () => import_smithy_client.Client,
52
- paginateListSuiteDefinitions: () => paginateListSuiteDefinitions,
53
- paginateListSuiteRuns: () => paginateListSuiteRuns
54
- });
55
- module.exports = __toCommonJS(index_exports);
56
34
 
57
- // src/IotDeviceAdvisorClient.ts
58
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
59
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
60
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
61
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
62
- var import_config_resolver = require("@smithy/config-resolver");
63
- var import_core = require("@smithy/core");
64
- var import_middleware_content_length = require("@smithy/middleware-content-length");
65
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
66
- var import_middleware_retry = require("@smithy/middleware-retry");
67
-
68
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
69
-
70
- // src/endpoint/EndpointParameters.ts
71
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
72
- return Object.assign(options, {
73
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
74
- useFipsEndpoint: options.useFipsEndpoint ?? false,
75
- defaultSigningName: "iotdeviceadvisor"
76
- });
77
- }, "resolveClientEndpointParameters");
78
- var commonParams = {
79
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
80
- Endpoint: { type: "builtInParams", name: "endpoint" },
81
- Region: { type: "builtInParams", name: "region" },
82
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
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
+ };
83
72
  };
84
73
 
85
- // src/IotDeviceAdvisorClient.ts
86
- var import_runtimeConfig = require("././runtimeConfig");
87
-
88
- // src/runtimeExtensions.ts
89
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
90
- var import_protocol_http = require("@smithy/protocol-http");
91
- 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
+ };
92
79
 
93
- // src/auth/httpAuthExtensionConfiguration.ts
94
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
95
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
96
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
97
- let _credentials = runtimeConfig.credentials;
98
- return {
99
- setHttpAuthScheme(httpAuthScheme) {
100
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
101
- if (index === -1) {
102
- _httpAuthSchemes.push(httpAuthScheme);
103
- } else {
104
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
105
- }
106
- },
107
- httpAuthSchemes() {
108
- return _httpAuthSchemes;
109
- },
110
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
111
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
112
- },
113
- httpAuthSchemeProvider() {
114
- return _httpAuthSchemeProvider;
115
- },
116
- setCredentials(credentials) {
117
- _credentials = credentials;
118
- },
119
- credentials() {
120
- return _credentials;
80
+ class IotDeviceAdvisorClient 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.defaultIotDeviceAdvisorHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
108
+ }
109
+ destroy() {
110
+ super.destroy();
121
111
  }
122
- };
123
- }, "getHttpAuthExtensionConfiguration");
124
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
125
- return {
126
- httpAuthSchemes: config.httpAuthSchemes(),
127
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
128
- credentials: config.credentials()
129
- };
130
- }, "resolveHttpAuthRuntimeConfig");
112
+ }
131
113
 
132
- // src/runtimeExtensions.ts
133
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
134
- const extensionConfiguration = Object.assign(
135
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
136
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
137
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
138
- getHttpAuthExtensionConfiguration(runtimeConfig)
139
- );
140
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
141
- return Object.assign(
142
- runtimeConfig,
143
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
144
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
145
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
146
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
147
- );
148
- }, "resolveRuntimeExtensions");
114
+ class IotDeviceAdvisorServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, IotDeviceAdvisorServiceException.prototype);
118
+ }
119
+ }
149
120
 
150
- // src/IotDeviceAdvisorClient.ts
151
- var IotDeviceAdvisorClient = class extends import_smithy_client.Client {
152
- static {
153
- __name(this, "IotDeviceAdvisorClient");
154
- }
155
- /**
156
- * The resolved configuration of IotDeviceAdvisorClient class. This is resolved and normalized from the {@link IotDeviceAdvisorClientConfig | constructor configuration interface}.
157
- */
158
- config;
159
- constructor(...[configuration]) {
160
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
161
- super(_config_0);
162
- this.initConfig = _config_0;
163
- const _config_1 = resolveClientEndpointParameters(_config_0);
164
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
165
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
166
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
167
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
168
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
169
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
170
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
171
- this.config = _config_8;
172
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
173
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
174
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
175
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
176
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
177
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
178
- this.middlewareStack.use(
179
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
180
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultIotDeviceAdvisorHttpAuthSchemeParametersProvider,
181
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
182
- "aws.auth#sigv4": config.credentials
183
- }), "identityProviderConfigProvider")
184
- })
185
- );
186
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
187
- }
188
- /**
189
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
190
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
191
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
192
- */
193
- destroy() {
194
- super.destroy();
195
- }
121
+ const AuthenticationMethod = {
122
+ SignatureVersion4: "SignatureVersion4",
123
+ X509ClientCertificate: "X509ClientCertificate",
196
124
  };
197
-
198
- // src/IotDeviceAdvisor.ts
199
-
200
-
201
- // src/commands/CreateSuiteDefinitionCommand.ts
202
-
203
- var import_middleware_serde = require("@smithy/middleware-serde");
204
-
205
-
206
- // src/protocols/Aws_restJson1.ts
207
- var import_core2 = require("@aws-sdk/core");
208
-
209
-
210
- var import_uuid = require("@smithy/uuid");
211
-
212
- // src/models/IotDeviceAdvisorServiceException.ts
213
-
214
- var IotDeviceAdvisorServiceException = class _IotDeviceAdvisorServiceException extends import_smithy_client.ServiceException {
215
- static {
216
- __name(this, "IotDeviceAdvisorServiceException");
217
- }
218
- /**
219
- * @internal
220
- */
221
- constructor(options) {
222
- super(options);
223
- Object.setPrototypeOf(this, _IotDeviceAdvisorServiceException.prototype);
224
- }
125
+ class ConflictException extends IotDeviceAdvisorServiceException {
126
+ name = "ConflictException";
127
+ $fault = "client";
128
+ constructor(opts) {
129
+ super({
130
+ name: "ConflictException",
131
+ $fault: "client",
132
+ ...opts,
133
+ });
134
+ Object.setPrototypeOf(this, ConflictException.prototype);
135
+ }
136
+ }
137
+ const Protocol = {
138
+ MqttV3_1_1: "MqttV3_1_1",
139
+ MqttV3_1_1_OverWebSocket: "MqttV3_1_1_OverWebSocket",
140
+ MqttV5: "MqttV5",
141
+ MqttV5_OverWebSocket: "MqttV5_OverWebSocket",
142
+ };
143
+ class InternalServerException extends IotDeviceAdvisorServiceException {
144
+ name = "InternalServerException";
145
+ $fault = "server";
146
+ constructor(opts) {
147
+ super({
148
+ name: "InternalServerException",
149
+ $fault: "server",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, InternalServerException.prototype);
153
+ }
154
+ }
155
+ class ValidationException extends IotDeviceAdvisorServiceException {
156
+ name = "ValidationException";
157
+ $fault = "client";
158
+ constructor(opts) {
159
+ super({
160
+ name: "ValidationException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, ValidationException.prototype);
165
+ }
166
+ }
167
+ class ResourceNotFoundException extends IotDeviceAdvisorServiceException {
168
+ name = "ResourceNotFoundException";
169
+ $fault = "client";
170
+ constructor(opts) {
171
+ super({
172
+ name: "ResourceNotFoundException",
173
+ $fault: "client",
174
+ ...opts,
175
+ });
176
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
177
+ }
178
+ }
179
+ const SuiteRunStatus = {
180
+ CANCELED: "CANCELED",
181
+ ERROR: "ERROR",
182
+ FAIL: "FAIL",
183
+ PASS: "PASS",
184
+ PASS_WITH_WARNINGS: "PASS_WITH_WARNINGS",
185
+ PENDING: "PENDING",
186
+ RUNNING: "RUNNING",
187
+ STOPPED: "STOPPED",
188
+ STOPPING: "STOPPING",
189
+ };
190
+ const Status = {
191
+ CANCELED: "CANCELED",
192
+ ERROR: "ERROR",
193
+ FAIL: "FAIL",
194
+ PASS: "PASS",
195
+ PASS_WITH_WARNINGS: "PASS_WITH_WARNINGS",
196
+ PENDING: "PENDING",
197
+ RUNNING: "RUNNING",
198
+ STOPPED: "STOPPED",
199
+ STOPPING: "STOPPING",
200
+ };
201
+ const TestCaseScenarioStatus = {
202
+ CANCELED: "CANCELED",
203
+ ERROR: "ERROR",
204
+ FAIL: "FAIL",
205
+ PASS: "PASS",
206
+ PASS_WITH_WARNINGS: "PASS_WITH_WARNINGS",
207
+ PENDING: "PENDING",
208
+ RUNNING: "RUNNING",
209
+ STOPPED: "STOPPED",
210
+ STOPPING: "STOPPING",
211
+ };
212
+ const TestCaseScenarioType = {
213
+ Advanced: "Advanced",
214
+ Basic: "Basic",
225
215
  };
226
216
 
227
- // src/models/models_0.ts
228
- var AuthenticationMethod = {
229
- SignatureVersion4: "SignatureVersion4",
230
- X509ClientCertificate: "X509ClientCertificate"
217
+ const se_CreateSuiteDefinitionCommand = async (input, context) => {
218
+ const b = core.requestBuilder(input, context);
219
+ const headers = {
220
+ "content-type": "application/json",
221
+ };
222
+ b.bp("/suiteDefinitions");
223
+ let body;
224
+ body = JSON.stringify(smithyClient.take(input, {
225
+ clientToken: [true, (_) => _ ?? uuid.v4()],
226
+ suiteDefinitionConfiguration: (_) => smithyClient._json(_),
227
+ tags: (_) => smithyClient._json(_),
228
+ }));
229
+ b.m("POST").h(headers).b(body);
230
+ return b.build();
231
+ };
232
+ const se_DeleteSuiteDefinitionCommand = async (input, context) => {
233
+ const b = core.requestBuilder(input, context);
234
+ const headers = {};
235
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
236
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
237
+ let body;
238
+ b.m("DELETE").h(headers).b(body);
239
+ return b.build();
240
+ };
241
+ const se_GetEndpointCommand = async (input, context) => {
242
+ const b = core.requestBuilder(input, context);
243
+ const headers = {};
244
+ b.bp("/endpoint");
245
+ const query = smithyClient.map({
246
+ [_tA]: [, input[_tA]],
247
+ [_cA]: [, input[_cA]],
248
+ [_dRA]: [, input[_dRA]],
249
+ [_aM]: [, input[_aM]],
250
+ });
251
+ let body;
252
+ b.m("GET").h(headers).q(query).b(body);
253
+ return b.build();
231
254
  };
232
- var ConflictException = class _ConflictException extends IotDeviceAdvisorServiceException {
233
- static {
234
- __name(this, "ConflictException");
235
- }
236
- name = "ConflictException";
237
- $fault = "client";
238
- /**
239
- * @internal
240
- */
241
- constructor(opts) {
242
- super({
243
- name: "ConflictException",
244
- $fault: "client",
245
- ...opts
255
+ const se_GetSuiteDefinitionCommand = async (input, context) => {
256
+ const b = core.requestBuilder(input, context);
257
+ const headers = {};
258
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
259
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
260
+ const query = smithyClient.map({
261
+ [_sDV]: [, input[_sDV]],
246
262
  });
247
- Object.setPrototypeOf(this, _ConflictException.prototype);
248
- }
263
+ let body;
264
+ b.m("GET").h(headers).q(query).b(body);
265
+ return b.build();
249
266
  };
250
- var Protocol = {
251
- MqttV3_1_1: "MqttV3_1_1",
252
- MqttV3_1_1_OverWebSocket: "MqttV3_1_1_OverWebSocket",
253
- MqttV5: "MqttV5",
254
- MqttV5_OverWebSocket: "MqttV5_OverWebSocket"
267
+ const se_GetSuiteRunCommand = async (input, context) => {
268
+ const b = core.requestBuilder(input, context);
269
+ const headers = {};
270
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}");
271
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
272
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
273
+ let body;
274
+ b.m("GET").h(headers).b(body);
275
+ return b.build();
255
276
  };
256
- var InternalServerException = class _InternalServerException extends IotDeviceAdvisorServiceException {
257
- static {
258
- __name(this, "InternalServerException");
259
- }
260
- name = "InternalServerException";
261
- $fault = "server";
262
- /**
263
- * @internal
264
- */
265
- constructor(opts) {
266
- super({
267
- name: "InternalServerException",
268
- $fault: "server",
269
- ...opts
277
+ const se_GetSuiteRunReportCommand = async (input, context) => {
278
+ const b = core.requestBuilder(input, context);
279
+ const headers = {};
280
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report");
281
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
282
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
283
+ let body;
284
+ b.m("GET").h(headers).b(body);
285
+ return b.build();
286
+ };
287
+ const se_ListSuiteDefinitionsCommand = async (input, context) => {
288
+ const b = core.requestBuilder(input, context);
289
+ const headers = {};
290
+ b.bp("/suiteDefinitions");
291
+ const query = smithyClient.map({
292
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
293
+ [_nT]: [, input[_nT]],
270
294
  });
271
- Object.setPrototypeOf(this, _InternalServerException.prototype);
272
- }
295
+ let body;
296
+ b.m("GET").h(headers).q(query).b(body);
297
+ return b.build();
273
298
  };
274
- var ValidationException = class _ValidationException extends IotDeviceAdvisorServiceException {
275
- static {
276
- __name(this, "ValidationException");
277
- }
278
- name = "ValidationException";
279
- $fault = "client";
280
- /**
281
- * @internal
282
- */
283
- constructor(opts) {
284
- super({
285
- name: "ValidationException",
286
- $fault: "client",
287
- ...opts
299
+ const se_ListSuiteRunsCommand = async (input, context) => {
300
+ const b = core.requestBuilder(input, context);
301
+ const headers = {};
302
+ b.bp("/suiteRuns");
303
+ const query = smithyClient.map({
304
+ [_sDI]: [, input[_sDI]],
305
+ [_sDV]: [, input[_sDV]],
306
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
307
+ [_nT]: [, input[_nT]],
288
308
  });
289
- Object.setPrototypeOf(this, _ValidationException.prototype);
290
- }
309
+ let body;
310
+ b.m("GET").h(headers).q(query).b(body);
311
+ return b.build();
312
+ };
313
+ const se_ListTagsForResourceCommand = async (input, context) => {
314
+ const b = core.requestBuilder(input, context);
315
+ const headers = {};
316
+ b.bp("/tags/{resourceArn}");
317
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
318
+ let body;
319
+ b.m("GET").h(headers).b(body);
320
+ return b.build();
321
+ };
322
+ const se_StartSuiteRunCommand = async (input, context) => {
323
+ const b = core.requestBuilder(input, context);
324
+ const headers = {
325
+ "content-type": "application/json",
326
+ };
327
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns");
328
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
329
+ let body;
330
+ body = JSON.stringify(smithyClient.take(input, {
331
+ suiteDefinitionVersion: [],
332
+ suiteRunConfiguration: (_) => smithyClient._json(_),
333
+ tags: (_) => smithyClient._json(_),
334
+ }));
335
+ b.m("POST").h(headers).b(body);
336
+ return b.build();
337
+ };
338
+ const se_StopSuiteRunCommand = async (input, context) => {
339
+ const b = core.requestBuilder(input, context);
340
+ const headers = {};
341
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop");
342
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
343
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
344
+ let body;
345
+ b.m("POST").h(headers).b(body);
346
+ return b.build();
347
+ };
348
+ const se_TagResourceCommand = async (input, context) => {
349
+ const b = core.requestBuilder(input, context);
350
+ const headers = {
351
+ "content-type": "application/json",
352
+ };
353
+ b.bp("/tags/{resourceArn}");
354
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
355
+ let body;
356
+ body = JSON.stringify(smithyClient.take(input, {
357
+ tags: (_) => smithyClient._json(_),
358
+ }));
359
+ b.m("POST").h(headers).b(body);
360
+ return b.build();
291
361
  };
292
- var ResourceNotFoundException = class _ResourceNotFoundException extends IotDeviceAdvisorServiceException {
293
- static {
294
- __name(this, "ResourceNotFoundException");
295
- }
296
- name = "ResourceNotFoundException";
297
- $fault = "client";
298
- /**
299
- * @internal
300
- */
301
- constructor(opts) {
302
- super({
303
- name: "ResourceNotFoundException",
304
- $fault: "client",
305
- ...opts
362
+ const se_UntagResourceCommand = async (input, context) => {
363
+ const b = core.requestBuilder(input, context);
364
+ const headers = {};
365
+ b.bp("/tags/{resourceArn}");
366
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
367
+ const query = smithyClient.map({
368
+ [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
306
369
  });
307
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
308
- }
370
+ let body;
371
+ b.m("DELETE").h(headers).q(query).b(body);
372
+ return b.build();
309
373
  };
310
- var SuiteRunStatus = {
311
- CANCELED: "CANCELED",
312
- ERROR: "ERROR",
313
- FAIL: "FAIL",
314
- PASS: "PASS",
315
- PASS_WITH_WARNINGS: "PASS_WITH_WARNINGS",
316
- PENDING: "PENDING",
317
- RUNNING: "RUNNING",
318
- STOPPED: "STOPPED",
319
- STOPPING: "STOPPING"
374
+ const se_UpdateSuiteDefinitionCommand = async (input, context) => {
375
+ const b = core.requestBuilder(input, context);
376
+ const headers = {
377
+ "content-type": "application/json",
378
+ };
379
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
380
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
381
+ let body;
382
+ body = JSON.stringify(smithyClient.take(input, {
383
+ suiteDefinitionConfiguration: (_) => smithyClient._json(_),
384
+ }));
385
+ b.m("PATCH").h(headers).b(body);
386
+ return b.build();
320
387
  };
321
- var Status = {
322
- CANCELED: "CANCELED",
323
- ERROR: "ERROR",
324
- FAIL: "FAIL",
325
- PASS: "PASS",
326
- PASS_WITH_WARNINGS: "PASS_WITH_WARNINGS",
327
- PENDING: "PENDING",
328
- RUNNING: "RUNNING",
329
- STOPPED: "STOPPED",
330
- STOPPING: "STOPPING"
388
+ const de_CreateSuiteDefinitionCommand = async (output, context) => {
389
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
390
+ return de_CommandError(output, context);
391
+ }
392
+ const contents = smithyClient.map({
393
+ $metadata: deserializeMetadata(output),
394
+ });
395
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
396
+ const doc = smithyClient.take(data, {
397
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
398
+ suiteDefinitionArn: smithyClient.expectString,
399
+ suiteDefinitionId: smithyClient.expectString,
400
+ suiteDefinitionName: smithyClient.expectString,
401
+ });
402
+ Object.assign(contents, doc);
403
+ return contents;
331
404
  };
332
- var TestCaseScenarioStatus = {
333
- CANCELED: "CANCELED",
334
- ERROR: "ERROR",
335
- FAIL: "FAIL",
336
- PASS: "PASS",
337
- PASS_WITH_WARNINGS: "PASS_WITH_WARNINGS",
338
- PENDING: "PENDING",
339
- RUNNING: "RUNNING",
340
- STOPPED: "STOPPED",
341
- STOPPING: "STOPPING"
405
+ const de_DeleteSuiteDefinitionCommand = async (output, context) => {
406
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
407
+ return de_CommandError(output, context);
408
+ }
409
+ const contents = smithyClient.map({
410
+ $metadata: deserializeMetadata(output),
411
+ });
412
+ await smithyClient.collectBody(output.body, context);
413
+ return contents;
342
414
  };
343
- var TestCaseScenarioType = {
344
- Advanced: "Advanced",
345
- Basic: "Basic"
415
+ const de_GetEndpointCommand = async (output, context) => {
416
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
417
+ return de_CommandError(output, context);
418
+ }
419
+ const contents = smithyClient.map({
420
+ $metadata: deserializeMetadata(output),
421
+ });
422
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
423
+ const doc = smithyClient.take(data, {
424
+ endpoint: smithyClient.expectString,
425
+ });
426
+ Object.assign(contents, doc);
427
+ return contents;
346
428
  };
347
-
348
- // src/protocols/Aws_restJson1.ts
349
- var se_CreateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
350
- const b = (0, import_core.requestBuilder)(input, context);
351
- const headers = {
352
- "content-type": "application/json"
353
- };
354
- b.bp("/suiteDefinitions");
355
- let body;
356
- body = JSON.stringify(
357
- (0, import_smithy_client.take)(input, {
358
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
359
- suiteDefinitionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "suiteDefinitionConfiguration"),
360
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
361
- })
362
- );
363
- b.m("POST").h(headers).b(body);
364
- return b.build();
365
- }, "se_CreateSuiteDefinitionCommand");
366
- var se_DeleteSuiteDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
367
- const b = (0, import_core.requestBuilder)(input, context);
368
- const headers = {};
369
- b.bp("/suiteDefinitions/{suiteDefinitionId}");
370
- b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
371
- let body;
372
- b.m("DELETE").h(headers).b(body);
373
- return b.build();
374
- }, "se_DeleteSuiteDefinitionCommand");
375
- var se_GetEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
376
- const b = (0, import_core.requestBuilder)(input, context);
377
- const headers = {};
378
- b.bp("/endpoint");
379
- const query = (0, import_smithy_client.map)({
380
- [_tA]: [, input[_tA]],
381
- [_cA]: [, input[_cA]],
382
- [_dRA]: [, input[_dRA]],
383
- [_aM]: [, input[_aM]]
384
- });
385
- let body;
386
- b.m("GET").h(headers).q(query).b(body);
387
- return b.build();
388
- }, "se_GetEndpointCommand");
389
- var se_GetSuiteDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
390
- const b = (0, import_core.requestBuilder)(input, context);
391
- const headers = {};
392
- b.bp("/suiteDefinitions/{suiteDefinitionId}");
393
- b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
394
- const query = (0, import_smithy_client.map)({
395
- [_sDV]: [, input[_sDV]]
396
- });
397
- let body;
398
- b.m("GET").h(headers).q(query).b(body);
399
- return b.build();
400
- }, "se_GetSuiteDefinitionCommand");
401
- var se_GetSuiteRunCommand = /* @__PURE__ */ __name(async (input, context) => {
402
- const b = (0, import_core.requestBuilder)(input, context);
403
- const headers = {};
404
- b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}");
405
- b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
406
- b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
407
- let body;
408
- b.m("GET").h(headers).b(body);
409
- return b.build();
410
- }, "se_GetSuiteRunCommand");
411
- var se_GetSuiteRunReportCommand = /* @__PURE__ */ __name(async (input, context) => {
412
- const b = (0, import_core.requestBuilder)(input, context);
413
- const headers = {};
414
- b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report");
415
- b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
416
- b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
417
- let body;
418
- b.m("GET").h(headers).b(body);
419
- return b.build();
420
- }, "se_GetSuiteRunReportCommand");
421
- var se_ListSuiteDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
422
- const b = (0, import_core.requestBuilder)(input, context);
423
- const headers = {};
424
- b.bp("/suiteDefinitions");
425
- const query = (0, import_smithy_client.map)({
426
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
427
- [_nT]: [, input[_nT]]
428
- });
429
- let body;
430
- b.m("GET").h(headers).q(query).b(body);
431
- return b.build();
432
- }, "se_ListSuiteDefinitionsCommand");
433
- var se_ListSuiteRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
434
- const b = (0, import_core.requestBuilder)(input, context);
435
- const headers = {};
436
- b.bp("/suiteRuns");
437
- const query = (0, import_smithy_client.map)({
438
- [_sDI]: [, input[_sDI]],
439
- [_sDV]: [, input[_sDV]],
440
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
441
- [_nT]: [, input[_nT]]
442
- });
443
- let body;
444
- b.m("GET").h(headers).q(query).b(body);
445
- return b.build();
446
- }, "se_ListSuiteRunsCommand");
447
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
448
- const b = (0, import_core.requestBuilder)(input, context);
449
- const headers = {};
450
- b.bp("/tags/{resourceArn}");
451
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
452
- let body;
453
- b.m("GET").h(headers).b(body);
454
- return b.build();
455
- }, "se_ListTagsForResourceCommand");
456
- var se_StartSuiteRunCommand = /* @__PURE__ */ __name(async (input, context) => {
457
- const b = (0, import_core.requestBuilder)(input, context);
458
- const headers = {
459
- "content-type": "application/json"
460
- };
461
- b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns");
462
- b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
463
- let body;
464
- body = JSON.stringify(
465
- (0, import_smithy_client.take)(input, {
466
- suiteDefinitionVersion: [],
467
- suiteRunConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "suiteRunConfiguration"),
468
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
469
- })
470
- );
471
- b.m("POST").h(headers).b(body);
472
- return b.build();
473
- }, "se_StartSuiteRunCommand");
474
- var se_StopSuiteRunCommand = /* @__PURE__ */ __name(async (input, context) => {
475
- const b = (0, import_core.requestBuilder)(input, context);
476
- const headers = {};
477
- b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop");
478
- b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
479
- b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
480
- let body;
481
- b.m("POST").h(headers).b(body);
482
- return b.build();
483
- }, "se_StopSuiteRunCommand");
484
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
485
- const b = (0, import_core.requestBuilder)(input, context);
486
- const headers = {
487
- "content-type": "application/json"
488
- };
489
- b.bp("/tags/{resourceArn}");
490
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
491
- let body;
492
- body = JSON.stringify(
493
- (0, import_smithy_client.take)(input, {
494
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
495
- })
496
- );
497
- b.m("POST").h(headers).b(body);
498
- return b.build();
499
- }, "se_TagResourceCommand");
500
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
501
- const b = (0, import_core.requestBuilder)(input, context);
502
- const headers = {};
503
- b.bp("/tags/{resourceArn}");
504
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
505
- const query = (0, import_smithy_client.map)({
506
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
507
- });
508
- let body;
509
- b.m("DELETE").h(headers).q(query).b(body);
510
- return b.build();
511
- }, "se_UntagResourceCommand");
512
- var se_UpdateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
513
- const b = (0, import_core.requestBuilder)(input, context);
514
- const headers = {
515
- "content-type": "application/json"
516
- };
517
- b.bp("/suiteDefinitions/{suiteDefinitionId}");
518
- b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
519
- let body;
520
- body = JSON.stringify(
521
- (0, import_smithy_client.take)(input, {
522
- suiteDefinitionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "suiteDefinitionConfiguration")
523
- })
524
- );
525
- b.m("PATCH").h(headers).b(body);
526
- return b.build();
527
- }, "se_UpdateSuiteDefinitionCommand");
528
- var de_CreateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
529
- if (output.statusCode !== 200 && output.statusCode >= 300) {
530
- return de_CommandError(output, context);
531
- }
532
- const contents = (0, import_smithy_client.map)({
533
- $metadata: deserializeMetadata(output)
534
- });
535
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
536
- const doc = (0, import_smithy_client.take)(data, {
537
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
538
- suiteDefinitionArn: import_smithy_client.expectString,
539
- suiteDefinitionId: import_smithy_client.expectString,
540
- suiteDefinitionName: import_smithy_client.expectString
541
- });
542
- Object.assign(contents, doc);
543
- return contents;
544
- }, "de_CreateSuiteDefinitionCommand");
545
- var de_DeleteSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
546
- if (output.statusCode !== 200 && output.statusCode >= 300) {
547
- return de_CommandError(output, context);
548
- }
549
- const contents = (0, import_smithy_client.map)({
550
- $metadata: deserializeMetadata(output)
551
- });
552
- await (0, import_smithy_client.collectBody)(output.body, context);
553
- return contents;
554
- }, "de_DeleteSuiteDefinitionCommand");
555
- var de_GetEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
556
- if (output.statusCode !== 200 && output.statusCode >= 300) {
557
- return de_CommandError(output, context);
558
- }
559
- const contents = (0, import_smithy_client.map)({
560
- $metadata: deserializeMetadata(output)
561
- });
562
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
563
- const doc = (0, import_smithy_client.take)(data, {
564
- endpoint: import_smithy_client.expectString
565
- });
566
- Object.assign(contents, doc);
567
- return contents;
568
- }, "de_GetEndpointCommand");
569
- var de_GetSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
570
- if (output.statusCode !== 200 && output.statusCode >= 300) {
571
- return de_CommandError(output, context);
572
- }
573
- const contents = (0, import_smithy_client.map)({
574
- $metadata: deserializeMetadata(output)
575
- });
576
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
577
- const doc = (0, import_smithy_client.take)(data, {
578
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
579
- lastModifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastModifiedAt"),
580
- latestVersion: import_smithy_client.expectString,
581
- suiteDefinitionArn: import_smithy_client.expectString,
582
- suiteDefinitionConfiguration: import_smithy_client._json,
583
- suiteDefinitionId: import_smithy_client.expectString,
584
- suiteDefinitionVersion: import_smithy_client.expectString,
585
- tags: import_smithy_client._json
586
- });
587
- Object.assign(contents, doc);
588
- return contents;
589
- }, "de_GetSuiteDefinitionCommand");
590
- var de_GetSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) => {
591
- if (output.statusCode !== 200 && output.statusCode >= 300) {
592
- return de_CommandError(output, context);
593
- }
594
- const contents = (0, import_smithy_client.map)({
595
- $metadata: deserializeMetadata(output)
596
- });
597
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
598
- const doc = (0, import_smithy_client.take)(data, {
599
- endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
600
- errorReason: import_smithy_client.expectString,
601
- startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
602
- status: import_smithy_client.expectString,
603
- suiteDefinitionId: import_smithy_client.expectString,
604
- suiteDefinitionVersion: import_smithy_client.expectString,
605
- suiteRunArn: import_smithy_client.expectString,
606
- suiteRunConfiguration: import_smithy_client._json,
607
- suiteRunId: import_smithy_client.expectString,
608
- tags: import_smithy_client._json,
609
- testResult: /* @__PURE__ */ __name((_) => de_TestResult(_, context), "testResult")
610
- });
611
- Object.assign(contents, doc);
612
- return contents;
613
- }, "de_GetSuiteRunCommand");
614
- var de_GetSuiteRunReportCommand = /* @__PURE__ */ __name(async (output, context) => {
615
- if (output.statusCode !== 200 && output.statusCode >= 300) {
616
- return de_CommandError(output, context);
617
- }
618
- const contents = (0, import_smithy_client.map)({
619
- $metadata: deserializeMetadata(output)
620
- });
621
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
622
- const doc = (0, import_smithy_client.take)(data, {
623
- qualificationReportDownloadUrl: import_smithy_client.expectString
624
- });
625
- Object.assign(contents, doc);
626
- return contents;
627
- }, "de_GetSuiteRunReportCommand");
628
- var de_ListSuiteDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
629
- if (output.statusCode !== 200 && output.statusCode >= 300) {
630
- return de_CommandError(output, context);
631
- }
632
- const contents = (0, import_smithy_client.map)({
633
- $metadata: deserializeMetadata(output)
634
- });
635
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
636
- const doc = (0, import_smithy_client.take)(data, {
637
- nextToken: import_smithy_client.expectString,
638
- suiteDefinitionInformationList: /* @__PURE__ */ __name((_) => de_SuiteDefinitionInformationList(_, context), "suiteDefinitionInformationList")
639
- });
640
- Object.assign(contents, doc);
641
- return contents;
642
- }, "de_ListSuiteDefinitionsCommand");
643
- var de_ListSuiteRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
644
- if (output.statusCode !== 200 && output.statusCode >= 300) {
645
- return de_CommandError(output, context);
646
- }
647
- const contents = (0, import_smithy_client.map)({
648
- $metadata: deserializeMetadata(output)
649
- });
650
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
651
- const doc = (0, import_smithy_client.take)(data, {
652
- nextToken: import_smithy_client.expectString,
653
- suiteRunsList: /* @__PURE__ */ __name((_) => de_SuiteRunsList(_, context), "suiteRunsList")
654
- });
655
- Object.assign(contents, doc);
656
- return contents;
657
- }, "de_ListSuiteRunsCommand");
658
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
659
- if (output.statusCode !== 200 && output.statusCode >= 300) {
660
- return de_CommandError(output, context);
661
- }
662
- const contents = (0, import_smithy_client.map)({
663
- $metadata: deserializeMetadata(output)
664
- });
665
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
666
- const doc = (0, import_smithy_client.take)(data, {
667
- tags: import_smithy_client._json
668
- });
669
- Object.assign(contents, doc);
670
- return contents;
671
- }, "de_ListTagsForResourceCommand");
672
- var de_StartSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) => {
673
- if (output.statusCode !== 200 && output.statusCode >= 300) {
674
- return de_CommandError(output, context);
675
- }
676
- const contents = (0, import_smithy_client.map)({
677
- $metadata: deserializeMetadata(output)
678
- });
679
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
680
- const doc = (0, import_smithy_client.take)(data, {
681
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
682
- endpoint: import_smithy_client.expectString,
683
- suiteRunArn: import_smithy_client.expectString,
684
- suiteRunId: import_smithy_client.expectString
685
- });
686
- Object.assign(contents, doc);
687
- return contents;
688
- }, "de_StartSuiteRunCommand");
689
- var de_StopSuiteRunCommand = /* @__PURE__ */ __name(async (output, context) => {
690
- if (output.statusCode !== 200 && output.statusCode >= 300) {
691
- return de_CommandError(output, context);
692
- }
693
- const contents = (0, import_smithy_client.map)({
694
- $metadata: deserializeMetadata(output)
695
- });
696
- await (0, import_smithy_client.collectBody)(output.body, context);
697
- return contents;
698
- }, "de_StopSuiteRunCommand");
699
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
700
- if (output.statusCode !== 200 && output.statusCode >= 300) {
701
- return de_CommandError(output, context);
702
- }
703
- const contents = (0, import_smithy_client.map)({
704
- $metadata: deserializeMetadata(output)
705
- });
706
- await (0, import_smithy_client.collectBody)(output.body, context);
707
- return contents;
708
- }, "de_TagResourceCommand");
709
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
710
- if (output.statusCode !== 200 && output.statusCode >= 300) {
711
- return de_CommandError(output, context);
712
- }
713
- const contents = (0, import_smithy_client.map)({
714
- $metadata: deserializeMetadata(output)
715
- });
716
- await (0, import_smithy_client.collectBody)(output.body, context);
717
- return contents;
718
- }, "de_UntagResourceCommand");
719
- var de_UpdateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
720
- if (output.statusCode !== 200 && output.statusCode >= 300) {
721
- return de_CommandError(output, context);
722
- }
723
- const contents = (0, import_smithy_client.map)({
724
- $metadata: deserializeMetadata(output)
725
- });
726
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
727
- const doc = (0, import_smithy_client.take)(data, {
728
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
729
- lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdatedAt"),
730
- suiteDefinitionArn: import_smithy_client.expectString,
731
- suiteDefinitionId: import_smithy_client.expectString,
732
- suiteDefinitionName: import_smithy_client.expectString,
733
- suiteDefinitionVersion: import_smithy_client.expectString
734
- });
735
- Object.assign(contents, doc);
736
- return contents;
737
- }, "de_UpdateSuiteDefinitionCommand");
738
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
739
- const parsedOutput = {
740
- ...output,
741
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
742
- };
743
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
744
- switch (errorCode) {
745
- case "InternalServerException":
746
- case "com.amazonaws.iotdeviceadvisor#InternalServerException":
747
- throw await de_InternalServerExceptionRes(parsedOutput, context);
748
- case "ValidationException":
749
- case "com.amazonaws.iotdeviceadvisor#ValidationException":
750
- throw await de_ValidationExceptionRes(parsedOutput, context);
751
- case "ResourceNotFoundException":
752
- case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
753
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
754
- case "ConflictException":
755
- case "com.amazonaws.iotdeviceadvisor#ConflictException":
756
- throw await de_ConflictExceptionRes(parsedOutput, context);
757
- default:
758
- const parsedBody = parsedOutput.body;
759
- return throwDefaultError({
760
- output,
761
- parsedBody,
762
- errorCode
763
- });
764
- }
765
- }, "de_CommandError");
766
- var throwDefaultError = (0, import_smithy_client.withBaseException)(IotDeviceAdvisorServiceException);
767
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
768
- const contents = (0, import_smithy_client.map)({});
769
- const data = parsedOutput.body;
770
- const doc = (0, import_smithy_client.take)(data, {
771
- message: import_smithy_client.expectString
772
- });
773
- Object.assign(contents, doc);
774
- const exception = new ConflictException({
775
- $metadata: deserializeMetadata(parsedOutput),
776
- ...contents
777
- });
778
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
779
- }, "de_ConflictExceptionRes");
780
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
781
- const contents = (0, import_smithy_client.map)({});
782
- const data = parsedOutput.body;
783
- const doc = (0, import_smithy_client.take)(data, {
784
- message: import_smithy_client.expectString
785
- });
786
- Object.assign(contents, doc);
787
- const exception = new InternalServerException({
788
- $metadata: deserializeMetadata(parsedOutput),
789
- ...contents
790
- });
791
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
792
- }, "de_InternalServerExceptionRes");
793
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
794
- const contents = (0, import_smithy_client.map)({});
795
- const data = parsedOutput.body;
796
- const doc = (0, import_smithy_client.take)(data, {
797
- message: import_smithy_client.expectString
798
- });
799
- Object.assign(contents, doc);
800
- const exception = new ResourceNotFoundException({
801
- $metadata: deserializeMetadata(parsedOutput),
802
- ...contents
803
- });
804
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
805
- }, "de_ResourceNotFoundExceptionRes");
806
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
807
- const contents = (0, import_smithy_client.map)({});
808
- const data = parsedOutput.body;
809
- const doc = (0, import_smithy_client.take)(data, {
810
- message: import_smithy_client.expectString
811
- });
812
- Object.assign(contents, doc);
813
- const exception = new ValidationException({
814
- $metadata: deserializeMetadata(parsedOutput),
815
- ...contents
816
- });
817
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
818
- }, "de_ValidationExceptionRes");
819
- var de_GroupResult = /* @__PURE__ */ __name((output, context) => {
820
- return (0, import_smithy_client.take)(output, {
821
- groupId: import_smithy_client.expectString,
822
- groupName: import_smithy_client.expectString,
823
- tests: /* @__PURE__ */ __name((_) => de_TestCaseRuns(_, context), "tests")
824
- });
825
- }, "de_GroupResult");
826
- var de_GroupResultList = /* @__PURE__ */ __name((output, context) => {
827
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
828
- return de_GroupResult(entry, context);
829
- });
830
- return retVal;
831
- }, "de_GroupResultList");
832
- var de_SuiteDefinitionInformation = /* @__PURE__ */ __name((output, context) => {
833
- return (0, import_smithy_client.take)(output, {
834
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
835
- defaultDevices: import_smithy_client._json,
836
- intendedForQualification: import_smithy_client.expectBoolean,
837
- isLongDurationTest: import_smithy_client.expectBoolean,
838
- protocol: import_smithy_client.expectString,
839
- suiteDefinitionId: import_smithy_client.expectString,
840
- suiteDefinitionName: import_smithy_client.expectString
841
- });
842
- }, "de_SuiteDefinitionInformation");
843
- var de_SuiteDefinitionInformationList = /* @__PURE__ */ __name((output, context) => {
844
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
845
- return de_SuiteDefinitionInformation(entry, context);
846
- });
847
- return retVal;
848
- }, "de_SuiteDefinitionInformationList");
849
- var de_SuiteRunInformation = /* @__PURE__ */ __name((output, context) => {
850
- return (0, import_smithy_client.take)(output, {
851
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
852
- endAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endAt"),
853
- failed: import_smithy_client.expectInt32,
854
- passed: import_smithy_client.expectInt32,
855
- startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startedAt"),
856
- status: import_smithy_client.expectString,
857
- suiteDefinitionId: import_smithy_client.expectString,
858
- suiteDefinitionName: import_smithy_client.expectString,
859
- suiteDefinitionVersion: import_smithy_client.expectString,
860
- suiteRunId: import_smithy_client.expectString
861
- });
862
- }, "de_SuiteRunInformation");
863
- var de_SuiteRunsList = /* @__PURE__ */ __name((output, context) => {
864
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
865
- return de_SuiteRunInformation(entry, context);
866
- });
867
- return retVal;
868
- }, "de_SuiteRunsList");
869
- var de_TestCaseRun = /* @__PURE__ */ __name((output, context) => {
870
- return (0, import_smithy_client.take)(output, {
871
- endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
872
- failure: import_smithy_client.expectString,
873
- logUrl: import_smithy_client.expectString,
874
- startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
875
- status: import_smithy_client.expectString,
876
- testCaseDefinitionId: import_smithy_client.expectString,
877
- testCaseDefinitionName: import_smithy_client.expectString,
878
- testCaseRunId: import_smithy_client.expectString,
879
- testScenarios: import_smithy_client._json,
880
- warnings: import_smithy_client.expectString
881
- });
882
- }, "de_TestCaseRun");
883
- var de_TestCaseRuns = /* @__PURE__ */ __name((output, context) => {
884
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
885
- return de_TestCaseRun(entry, context);
886
- });
887
- return retVal;
888
- }, "de_TestCaseRuns");
889
- var de_TestResult = /* @__PURE__ */ __name((output, context) => {
890
- return (0, import_smithy_client.take)(output, {
891
- groups: /* @__PURE__ */ __name((_) => de_GroupResultList(_, context), "groups")
892
- });
893
- }, "de_TestResult");
894
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
895
- httpStatusCode: output.statusCode,
896
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
897
- extendedRequestId: output.headers["x-amz-id-2"],
898
- cfId: output.headers["x-amz-cf-id"]
899
- }), "deserializeMetadata");
900
- var _aM = "authenticationMethod";
901
- var _cA = "certificateArn";
902
- var _dRA = "deviceRoleArn";
903
- var _mR = "maxResults";
904
- var _nT = "nextToken";
905
- var _sDI = "suiteDefinitionId";
906
- var _sDV = "suiteDefinitionVersion";
907
- var _tA = "thingArn";
908
- var _tK = "tagKeys";
909
-
910
- // src/commands/CreateSuiteDefinitionCommand.ts
911
- var CreateSuiteDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
912
- return [
913
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
914
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
915
- ];
916
- }).s("IotSenateService", "CreateSuiteDefinition", {}).n("IotDeviceAdvisorClient", "CreateSuiteDefinitionCommand").f(void 0, void 0).ser(se_CreateSuiteDefinitionCommand).de(de_CreateSuiteDefinitionCommand).build() {
917
- static {
918
- __name(this, "CreateSuiteDefinitionCommand");
919
- }
429
+ const de_GetSuiteDefinitionCommand = async (output, context) => {
430
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
431
+ return de_CommandError(output, context);
432
+ }
433
+ const contents = smithyClient.map({
434
+ $metadata: deserializeMetadata(output),
435
+ });
436
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
437
+ const doc = smithyClient.take(data, {
438
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
439
+ lastModifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
440
+ latestVersion: smithyClient.expectString,
441
+ suiteDefinitionArn: smithyClient.expectString,
442
+ suiteDefinitionConfiguration: smithyClient._json,
443
+ suiteDefinitionId: smithyClient.expectString,
444
+ suiteDefinitionVersion: smithyClient.expectString,
445
+ tags: smithyClient._json,
446
+ });
447
+ Object.assign(contents, doc);
448
+ return contents;
920
449
  };
921
-
922
- // src/commands/DeleteSuiteDefinitionCommand.ts
923
-
924
-
925
-
926
- var DeleteSuiteDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
927
- return [
928
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
929
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
930
- ];
931
- }).s("IotSenateService", "DeleteSuiteDefinition", {}).n("IotDeviceAdvisorClient", "DeleteSuiteDefinitionCommand").f(void 0, void 0).ser(se_DeleteSuiteDefinitionCommand).de(de_DeleteSuiteDefinitionCommand).build() {
932
- static {
933
- __name(this, "DeleteSuiteDefinitionCommand");
934
- }
450
+ const de_GetSuiteRunCommand = async (output, context) => {
451
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
452
+ return de_CommandError(output, context);
453
+ }
454
+ const contents = smithyClient.map({
455
+ $metadata: deserializeMetadata(output),
456
+ });
457
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
458
+ const doc = smithyClient.take(data, {
459
+ endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
460
+ errorReason: smithyClient.expectString,
461
+ startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
462
+ status: smithyClient.expectString,
463
+ suiteDefinitionId: smithyClient.expectString,
464
+ suiteDefinitionVersion: smithyClient.expectString,
465
+ suiteRunArn: smithyClient.expectString,
466
+ suiteRunConfiguration: smithyClient._json,
467
+ suiteRunId: smithyClient.expectString,
468
+ tags: smithyClient._json,
469
+ testResult: (_) => de_TestResult(_),
470
+ });
471
+ Object.assign(contents, doc);
472
+ return contents;
935
473
  };
936
-
937
- // src/commands/GetEndpointCommand.ts
938
-
939
-
940
-
941
- var GetEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
942
- return [
943
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
944
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
945
- ];
946
- }).s("IotSenateService", "GetEndpoint", {}).n("IotDeviceAdvisorClient", "GetEndpointCommand").f(void 0, void 0).ser(se_GetEndpointCommand).de(de_GetEndpointCommand).build() {
947
- static {
948
- __name(this, "GetEndpointCommand");
949
- }
474
+ const de_GetSuiteRunReportCommand = async (output, context) => {
475
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
476
+ return de_CommandError(output, context);
477
+ }
478
+ const contents = smithyClient.map({
479
+ $metadata: deserializeMetadata(output),
480
+ });
481
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
482
+ const doc = smithyClient.take(data, {
483
+ qualificationReportDownloadUrl: smithyClient.expectString,
484
+ });
485
+ Object.assign(contents, doc);
486
+ return contents;
950
487
  };
951
-
952
- // src/commands/GetSuiteDefinitionCommand.ts
953
-
954
-
955
-
956
- var GetSuiteDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
957
- return [
958
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
959
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
960
- ];
961
- }).s("IotSenateService", "GetSuiteDefinition", {}).n("IotDeviceAdvisorClient", "GetSuiteDefinitionCommand").f(void 0, void 0).ser(se_GetSuiteDefinitionCommand).de(de_GetSuiteDefinitionCommand).build() {
962
- static {
963
- __name(this, "GetSuiteDefinitionCommand");
964
- }
488
+ const de_ListSuiteDefinitionsCommand = async (output, context) => {
489
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
490
+ return de_CommandError(output, context);
491
+ }
492
+ const contents = smithyClient.map({
493
+ $metadata: deserializeMetadata(output),
494
+ });
495
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
496
+ const doc = smithyClient.take(data, {
497
+ nextToken: smithyClient.expectString,
498
+ suiteDefinitionInformationList: (_) => de_SuiteDefinitionInformationList(_),
499
+ });
500
+ Object.assign(contents, doc);
501
+ return contents;
965
502
  };
966
-
967
- // src/commands/GetSuiteRunCommand.ts
968
-
969
-
970
-
971
- var GetSuiteRunCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
972
- return [
973
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
974
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
975
- ];
976
- }).s("IotSenateService", "GetSuiteRun", {}).n("IotDeviceAdvisorClient", "GetSuiteRunCommand").f(void 0, void 0).ser(se_GetSuiteRunCommand).de(de_GetSuiteRunCommand).build() {
977
- static {
978
- __name(this, "GetSuiteRunCommand");
979
- }
503
+ const de_ListSuiteRunsCommand = async (output, context) => {
504
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
505
+ return de_CommandError(output, context);
506
+ }
507
+ const contents = smithyClient.map({
508
+ $metadata: deserializeMetadata(output),
509
+ });
510
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
511
+ const doc = smithyClient.take(data, {
512
+ nextToken: smithyClient.expectString,
513
+ suiteRunsList: (_) => de_SuiteRunsList(_),
514
+ });
515
+ Object.assign(contents, doc);
516
+ return contents;
980
517
  };
981
-
982
- // src/commands/GetSuiteRunReportCommand.ts
983
-
984
-
985
-
986
- var GetSuiteRunReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
987
- return [
988
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
989
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
990
- ];
991
- }).s("IotSenateService", "GetSuiteRunReport", {}).n("IotDeviceAdvisorClient", "GetSuiteRunReportCommand").f(void 0, void 0).ser(se_GetSuiteRunReportCommand).de(de_GetSuiteRunReportCommand).build() {
992
- static {
993
- __name(this, "GetSuiteRunReportCommand");
994
- }
518
+ const de_ListTagsForResourceCommand = async (output, context) => {
519
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
520
+ return de_CommandError(output, context);
521
+ }
522
+ const contents = smithyClient.map({
523
+ $metadata: deserializeMetadata(output),
524
+ });
525
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
526
+ const doc = smithyClient.take(data, {
527
+ tags: smithyClient._json,
528
+ });
529
+ Object.assign(contents, doc);
530
+ return contents;
995
531
  };
996
-
997
- // src/commands/ListSuiteDefinitionsCommand.ts
998
-
999
-
1000
-
1001
- var ListSuiteDefinitionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1002
- return [
1003
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1004
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1005
- ];
1006
- }).s("IotSenateService", "ListSuiteDefinitions", {}).n("IotDeviceAdvisorClient", "ListSuiteDefinitionsCommand").f(void 0, void 0).ser(se_ListSuiteDefinitionsCommand).de(de_ListSuiteDefinitionsCommand).build() {
1007
- static {
1008
- __name(this, "ListSuiteDefinitionsCommand");
1009
- }
532
+ const de_StartSuiteRunCommand = async (output, context) => {
533
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
534
+ return de_CommandError(output, context);
535
+ }
536
+ const contents = smithyClient.map({
537
+ $metadata: deserializeMetadata(output),
538
+ });
539
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
540
+ const doc = smithyClient.take(data, {
541
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
542
+ endpoint: smithyClient.expectString,
543
+ suiteRunArn: smithyClient.expectString,
544
+ suiteRunId: smithyClient.expectString,
545
+ });
546
+ Object.assign(contents, doc);
547
+ return contents;
1010
548
  };
1011
-
1012
- // src/commands/ListSuiteRunsCommand.ts
1013
-
1014
-
1015
-
1016
- var ListSuiteRunsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1017
- return [
1018
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1019
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1020
- ];
1021
- }).s("IotSenateService", "ListSuiteRuns", {}).n("IotDeviceAdvisorClient", "ListSuiteRunsCommand").f(void 0, void 0).ser(se_ListSuiteRunsCommand).de(de_ListSuiteRunsCommand).build() {
1022
- static {
1023
- __name(this, "ListSuiteRunsCommand");
1024
- }
549
+ const de_StopSuiteRunCommand = async (output, context) => {
550
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
551
+ return de_CommandError(output, context);
552
+ }
553
+ const contents = smithyClient.map({
554
+ $metadata: deserializeMetadata(output),
555
+ });
556
+ await smithyClient.collectBody(output.body, context);
557
+ return contents;
1025
558
  };
1026
-
1027
- // src/commands/ListTagsForResourceCommand.ts
1028
-
1029
-
1030
-
1031
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1032
- return [
1033
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1034
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1035
- ];
1036
- }).s("IotSenateService", "ListTagsForResource", {}).n("IotDeviceAdvisorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1037
- static {
1038
- __name(this, "ListTagsForResourceCommand");
1039
- }
559
+ const de_TagResourceCommand = async (output, context) => {
560
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
561
+ return de_CommandError(output, context);
562
+ }
563
+ const contents = smithyClient.map({
564
+ $metadata: deserializeMetadata(output),
565
+ });
566
+ await smithyClient.collectBody(output.body, context);
567
+ return contents;
1040
568
  };
1041
-
1042
- // src/commands/StartSuiteRunCommand.ts
1043
-
1044
-
1045
-
1046
- var StartSuiteRunCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1047
- return [
1048
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1049
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1050
- ];
1051
- }).s("IotSenateService", "StartSuiteRun", {}).n("IotDeviceAdvisorClient", "StartSuiteRunCommand").f(void 0, void 0).ser(se_StartSuiteRunCommand).de(de_StartSuiteRunCommand).build() {
1052
- static {
1053
- __name(this, "StartSuiteRunCommand");
1054
- }
569
+ const de_UntagResourceCommand = async (output, context) => {
570
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
571
+ return de_CommandError(output, context);
572
+ }
573
+ const contents = smithyClient.map({
574
+ $metadata: deserializeMetadata(output),
575
+ });
576
+ await smithyClient.collectBody(output.body, context);
577
+ return contents;
1055
578
  };
1056
-
1057
- // src/commands/StopSuiteRunCommand.ts
1058
-
1059
-
1060
-
1061
- var StopSuiteRunCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1062
- return [
1063
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1064
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1065
- ];
1066
- }).s("IotSenateService", "StopSuiteRun", {}).n("IotDeviceAdvisorClient", "StopSuiteRunCommand").f(void 0, void 0).ser(se_StopSuiteRunCommand).de(de_StopSuiteRunCommand).build() {
1067
- static {
1068
- __name(this, "StopSuiteRunCommand");
1069
- }
579
+ const de_UpdateSuiteDefinitionCommand = async (output, context) => {
580
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
581
+ return de_CommandError(output, context);
582
+ }
583
+ const contents = smithyClient.map({
584
+ $metadata: deserializeMetadata(output),
585
+ });
586
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
587
+ const doc = smithyClient.take(data, {
588
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
589
+ lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
590
+ suiteDefinitionArn: smithyClient.expectString,
591
+ suiteDefinitionId: smithyClient.expectString,
592
+ suiteDefinitionName: smithyClient.expectString,
593
+ suiteDefinitionVersion: smithyClient.expectString,
594
+ });
595
+ Object.assign(contents, doc);
596
+ return contents;
1070
597
  };
1071
-
1072
- // src/commands/TagResourceCommand.ts
1073
-
1074
-
1075
-
1076
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1077
- return [
1078
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1079
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1080
- ];
1081
- }).s("IotSenateService", "TagResource", {}).n("IotDeviceAdvisorClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1082
- static {
1083
- __name(this, "TagResourceCommand");
1084
- }
598
+ const de_CommandError = async (output, context) => {
599
+ const parsedOutput = {
600
+ ...output,
601
+ body: await core$1.parseJsonErrorBody(output.body, context),
602
+ };
603
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
604
+ switch (errorCode) {
605
+ case "InternalServerException":
606
+ case "com.amazonaws.iotdeviceadvisor#InternalServerException":
607
+ throw await de_InternalServerExceptionRes(parsedOutput);
608
+ case "ValidationException":
609
+ case "com.amazonaws.iotdeviceadvisor#ValidationException":
610
+ throw await de_ValidationExceptionRes(parsedOutput);
611
+ case "ResourceNotFoundException":
612
+ case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
613
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
614
+ case "ConflictException":
615
+ case "com.amazonaws.iotdeviceadvisor#ConflictException":
616
+ throw await de_ConflictExceptionRes(parsedOutput);
617
+ default:
618
+ const parsedBody = parsedOutput.body;
619
+ return throwDefaultError({
620
+ output,
621
+ parsedBody,
622
+ errorCode,
623
+ });
624
+ }
1085
625
  };
1086
-
1087
- // src/commands/UntagResourceCommand.ts
1088
-
1089
-
1090
-
1091
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1092
- return [
1093
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1094
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1095
- ];
1096
- }).s("IotSenateService", "UntagResource", {}).n("IotDeviceAdvisorClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1097
- static {
1098
- __name(this, "UntagResourceCommand");
1099
- }
626
+ const throwDefaultError = smithyClient.withBaseException(IotDeviceAdvisorServiceException);
627
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
628
+ const contents = smithyClient.map({});
629
+ const data = parsedOutput.body;
630
+ const doc = smithyClient.take(data, {
631
+ message: smithyClient.expectString,
632
+ });
633
+ Object.assign(contents, doc);
634
+ const exception = new ConflictException({
635
+ $metadata: deserializeMetadata(parsedOutput),
636
+ ...contents,
637
+ });
638
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1100
639
  };
1101
-
1102
- // src/commands/UpdateSuiteDefinitionCommand.ts
1103
-
1104
-
1105
-
1106
- var UpdateSuiteDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1107
- return [
1108
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1109
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1110
- ];
1111
- }).s("IotSenateService", "UpdateSuiteDefinition", {}).n("IotDeviceAdvisorClient", "UpdateSuiteDefinitionCommand").f(void 0, void 0).ser(se_UpdateSuiteDefinitionCommand).de(de_UpdateSuiteDefinitionCommand).build() {
1112
- static {
1113
- __name(this, "UpdateSuiteDefinitionCommand");
1114
- }
640
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
641
+ const contents = smithyClient.map({});
642
+ const data = parsedOutput.body;
643
+ const doc = smithyClient.take(data, {
644
+ message: smithyClient.expectString,
645
+ });
646
+ Object.assign(contents, doc);
647
+ const exception = new InternalServerException({
648
+ $metadata: deserializeMetadata(parsedOutput),
649
+ ...contents,
650
+ });
651
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1115
652
  };
1116
-
1117
- // src/IotDeviceAdvisor.ts
1118
- var commands = {
1119
- CreateSuiteDefinitionCommand,
1120
- DeleteSuiteDefinitionCommand,
1121
- GetEndpointCommand,
1122
- GetSuiteDefinitionCommand,
1123
- GetSuiteRunCommand,
1124
- GetSuiteRunReportCommand,
1125
- ListSuiteDefinitionsCommand,
1126
- ListSuiteRunsCommand,
1127
- ListTagsForResourceCommand,
1128
- StartSuiteRunCommand,
1129
- StopSuiteRunCommand,
1130
- TagResourceCommand,
1131
- UntagResourceCommand,
1132
- UpdateSuiteDefinitionCommand
653
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
654
+ const contents = smithyClient.map({});
655
+ const data = parsedOutput.body;
656
+ const doc = smithyClient.take(data, {
657
+ message: smithyClient.expectString,
658
+ });
659
+ Object.assign(contents, doc);
660
+ const exception = new ResourceNotFoundException({
661
+ $metadata: deserializeMetadata(parsedOutput),
662
+ ...contents,
663
+ });
664
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
665
+ };
666
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
667
+ const contents = smithyClient.map({});
668
+ const data = parsedOutput.body;
669
+ const doc = smithyClient.take(data, {
670
+ message: smithyClient.expectString,
671
+ });
672
+ Object.assign(contents, doc);
673
+ const exception = new ValidationException({
674
+ $metadata: deserializeMetadata(parsedOutput),
675
+ ...contents,
676
+ });
677
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1133
678
  };
1134
- var IotDeviceAdvisor = class extends IotDeviceAdvisorClient {
1135
- static {
1136
- __name(this, "IotDeviceAdvisor");
1137
- }
679
+ const de_GroupResult = (output, context) => {
680
+ return smithyClient.take(output, {
681
+ groupId: smithyClient.expectString,
682
+ groupName: smithyClient.expectString,
683
+ tests: (_) => de_TestCaseRuns(_),
684
+ });
1138
685
  };
1139
- (0, import_smithy_client.createAggregatedClient)(commands, IotDeviceAdvisor);
1140
-
1141
- // src/pagination/ListSuiteDefinitionsPaginator.ts
1142
-
1143
- var paginateListSuiteDefinitions = (0, import_core.createPaginator)(IotDeviceAdvisorClient, ListSuiteDefinitionsCommand, "nextToken", "nextToken", "maxResults");
686
+ const de_GroupResultList = (output, context) => {
687
+ const retVal = (output || [])
688
+ .filter((e) => e != null)
689
+ .map((entry) => {
690
+ return de_GroupResult(entry);
691
+ });
692
+ return retVal;
693
+ };
694
+ const de_SuiteDefinitionInformation = (output, context) => {
695
+ return smithyClient.take(output, {
696
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
697
+ defaultDevices: smithyClient._json,
698
+ intendedForQualification: smithyClient.expectBoolean,
699
+ isLongDurationTest: smithyClient.expectBoolean,
700
+ protocol: smithyClient.expectString,
701
+ suiteDefinitionId: smithyClient.expectString,
702
+ suiteDefinitionName: smithyClient.expectString,
703
+ });
704
+ };
705
+ const de_SuiteDefinitionInformationList = (output, context) => {
706
+ const retVal = (output || [])
707
+ .filter((e) => e != null)
708
+ .map((entry) => {
709
+ return de_SuiteDefinitionInformation(entry);
710
+ });
711
+ return retVal;
712
+ };
713
+ const de_SuiteRunInformation = (output, context) => {
714
+ return smithyClient.take(output, {
715
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
716
+ endAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
717
+ failed: smithyClient.expectInt32,
718
+ passed: smithyClient.expectInt32,
719
+ startedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
720
+ status: smithyClient.expectString,
721
+ suiteDefinitionId: smithyClient.expectString,
722
+ suiteDefinitionName: smithyClient.expectString,
723
+ suiteDefinitionVersion: smithyClient.expectString,
724
+ suiteRunId: smithyClient.expectString,
725
+ });
726
+ };
727
+ const de_SuiteRunsList = (output, context) => {
728
+ const retVal = (output || [])
729
+ .filter((e) => e != null)
730
+ .map((entry) => {
731
+ return de_SuiteRunInformation(entry);
732
+ });
733
+ return retVal;
734
+ };
735
+ const de_TestCaseRun = (output, context) => {
736
+ return smithyClient.take(output, {
737
+ endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
738
+ failure: smithyClient.expectString,
739
+ logUrl: smithyClient.expectString,
740
+ startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
741
+ status: smithyClient.expectString,
742
+ testCaseDefinitionId: smithyClient.expectString,
743
+ testCaseDefinitionName: smithyClient.expectString,
744
+ testCaseRunId: smithyClient.expectString,
745
+ testScenarios: smithyClient._json,
746
+ warnings: smithyClient.expectString,
747
+ });
748
+ };
749
+ const de_TestCaseRuns = (output, context) => {
750
+ const retVal = (output || [])
751
+ .filter((e) => e != null)
752
+ .map((entry) => {
753
+ return de_TestCaseRun(entry);
754
+ });
755
+ return retVal;
756
+ };
757
+ const de_TestResult = (output, context) => {
758
+ return smithyClient.take(output, {
759
+ groups: (_) => de_GroupResultList(_),
760
+ });
761
+ };
762
+ const deserializeMetadata = (output) => ({
763
+ httpStatusCode: output.statusCode,
764
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
765
+ extendedRequestId: output.headers["x-amz-id-2"],
766
+ cfId: output.headers["x-amz-cf-id"],
767
+ });
768
+ const _aM = "authenticationMethod";
769
+ const _cA = "certificateArn";
770
+ const _dRA = "deviceRoleArn";
771
+ const _mR = "maxResults";
772
+ const _nT = "nextToken";
773
+ const _sDI = "suiteDefinitionId";
774
+ const _sDV = "suiteDefinitionVersion";
775
+ const _tA = "thingArn";
776
+ const _tK = "tagKeys";
777
+
778
+ class CreateSuiteDefinitionCommand extends smithyClient.Command
779
+ .classBuilder()
780
+ .ep(commonParams)
781
+ .m(function (Command, cs, config, o) {
782
+ return [
783
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
784
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
785
+ ];
786
+ })
787
+ .s("IotSenateService", "CreateSuiteDefinition", {})
788
+ .n("IotDeviceAdvisorClient", "CreateSuiteDefinitionCommand")
789
+ .f(void 0, void 0)
790
+ .ser(se_CreateSuiteDefinitionCommand)
791
+ .de(de_CreateSuiteDefinitionCommand)
792
+ .build() {
793
+ }
794
+
795
+ class DeleteSuiteDefinitionCommand extends smithyClient.Command
796
+ .classBuilder()
797
+ .ep(commonParams)
798
+ .m(function (Command, cs, config, o) {
799
+ return [
800
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
801
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
802
+ ];
803
+ })
804
+ .s("IotSenateService", "DeleteSuiteDefinition", {})
805
+ .n("IotDeviceAdvisorClient", "DeleteSuiteDefinitionCommand")
806
+ .f(void 0, void 0)
807
+ .ser(se_DeleteSuiteDefinitionCommand)
808
+ .de(de_DeleteSuiteDefinitionCommand)
809
+ .build() {
810
+ }
811
+
812
+ class GetEndpointCommand extends smithyClient.Command
813
+ .classBuilder()
814
+ .ep(commonParams)
815
+ .m(function (Command, cs, config, o) {
816
+ return [
817
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
818
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
819
+ ];
820
+ })
821
+ .s("IotSenateService", "GetEndpoint", {})
822
+ .n("IotDeviceAdvisorClient", "GetEndpointCommand")
823
+ .f(void 0, void 0)
824
+ .ser(se_GetEndpointCommand)
825
+ .de(de_GetEndpointCommand)
826
+ .build() {
827
+ }
828
+
829
+ class GetSuiteDefinitionCommand extends smithyClient.Command
830
+ .classBuilder()
831
+ .ep(commonParams)
832
+ .m(function (Command, cs, config, o) {
833
+ return [
834
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
835
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
836
+ ];
837
+ })
838
+ .s("IotSenateService", "GetSuiteDefinition", {})
839
+ .n("IotDeviceAdvisorClient", "GetSuiteDefinitionCommand")
840
+ .f(void 0, void 0)
841
+ .ser(se_GetSuiteDefinitionCommand)
842
+ .de(de_GetSuiteDefinitionCommand)
843
+ .build() {
844
+ }
845
+
846
+ class GetSuiteRunCommand extends smithyClient.Command
847
+ .classBuilder()
848
+ .ep(commonParams)
849
+ .m(function (Command, cs, config, o) {
850
+ return [
851
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
852
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
853
+ ];
854
+ })
855
+ .s("IotSenateService", "GetSuiteRun", {})
856
+ .n("IotDeviceAdvisorClient", "GetSuiteRunCommand")
857
+ .f(void 0, void 0)
858
+ .ser(se_GetSuiteRunCommand)
859
+ .de(de_GetSuiteRunCommand)
860
+ .build() {
861
+ }
862
+
863
+ class GetSuiteRunReportCommand extends smithyClient.Command
864
+ .classBuilder()
865
+ .ep(commonParams)
866
+ .m(function (Command, cs, config, o) {
867
+ return [
868
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
869
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
870
+ ];
871
+ })
872
+ .s("IotSenateService", "GetSuiteRunReport", {})
873
+ .n("IotDeviceAdvisorClient", "GetSuiteRunReportCommand")
874
+ .f(void 0, void 0)
875
+ .ser(se_GetSuiteRunReportCommand)
876
+ .de(de_GetSuiteRunReportCommand)
877
+ .build() {
878
+ }
879
+
880
+ class ListSuiteDefinitionsCommand extends smithyClient.Command
881
+ .classBuilder()
882
+ .ep(commonParams)
883
+ .m(function (Command, cs, config, o) {
884
+ return [
885
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
886
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
887
+ ];
888
+ })
889
+ .s("IotSenateService", "ListSuiteDefinitions", {})
890
+ .n("IotDeviceAdvisorClient", "ListSuiteDefinitionsCommand")
891
+ .f(void 0, void 0)
892
+ .ser(se_ListSuiteDefinitionsCommand)
893
+ .de(de_ListSuiteDefinitionsCommand)
894
+ .build() {
895
+ }
896
+
897
+ class ListSuiteRunsCommand extends smithyClient.Command
898
+ .classBuilder()
899
+ .ep(commonParams)
900
+ .m(function (Command, cs, config, o) {
901
+ return [
902
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
903
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
904
+ ];
905
+ })
906
+ .s("IotSenateService", "ListSuiteRuns", {})
907
+ .n("IotDeviceAdvisorClient", "ListSuiteRunsCommand")
908
+ .f(void 0, void 0)
909
+ .ser(se_ListSuiteRunsCommand)
910
+ .de(de_ListSuiteRunsCommand)
911
+ .build() {
912
+ }
913
+
914
+ class ListTagsForResourceCommand extends smithyClient.Command
915
+ .classBuilder()
916
+ .ep(commonParams)
917
+ .m(function (Command, cs, config, o) {
918
+ return [
919
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
920
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
921
+ ];
922
+ })
923
+ .s("IotSenateService", "ListTagsForResource", {})
924
+ .n("IotDeviceAdvisorClient", "ListTagsForResourceCommand")
925
+ .f(void 0, void 0)
926
+ .ser(se_ListTagsForResourceCommand)
927
+ .de(de_ListTagsForResourceCommand)
928
+ .build() {
929
+ }
930
+
931
+ class StartSuiteRunCommand extends smithyClient.Command
932
+ .classBuilder()
933
+ .ep(commonParams)
934
+ .m(function (Command, cs, config, o) {
935
+ return [
936
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
937
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
938
+ ];
939
+ })
940
+ .s("IotSenateService", "StartSuiteRun", {})
941
+ .n("IotDeviceAdvisorClient", "StartSuiteRunCommand")
942
+ .f(void 0, void 0)
943
+ .ser(se_StartSuiteRunCommand)
944
+ .de(de_StartSuiteRunCommand)
945
+ .build() {
946
+ }
947
+
948
+ class StopSuiteRunCommand extends smithyClient.Command
949
+ .classBuilder()
950
+ .ep(commonParams)
951
+ .m(function (Command, cs, config, o) {
952
+ return [
953
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
954
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
955
+ ];
956
+ })
957
+ .s("IotSenateService", "StopSuiteRun", {})
958
+ .n("IotDeviceAdvisorClient", "StopSuiteRunCommand")
959
+ .f(void 0, void 0)
960
+ .ser(se_StopSuiteRunCommand)
961
+ .de(de_StopSuiteRunCommand)
962
+ .build() {
963
+ }
964
+
965
+ class TagResourceCommand extends smithyClient.Command
966
+ .classBuilder()
967
+ .ep(commonParams)
968
+ .m(function (Command, cs, config, o) {
969
+ return [
970
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
971
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
972
+ ];
973
+ })
974
+ .s("IotSenateService", "TagResource", {})
975
+ .n("IotDeviceAdvisorClient", "TagResourceCommand")
976
+ .f(void 0, void 0)
977
+ .ser(se_TagResourceCommand)
978
+ .de(de_TagResourceCommand)
979
+ .build() {
980
+ }
981
+
982
+ class UntagResourceCommand extends smithyClient.Command
983
+ .classBuilder()
984
+ .ep(commonParams)
985
+ .m(function (Command, cs, config, o) {
986
+ return [
987
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
988
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
989
+ ];
990
+ })
991
+ .s("IotSenateService", "UntagResource", {})
992
+ .n("IotDeviceAdvisorClient", "UntagResourceCommand")
993
+ .f(void 0, void 0)
994
+ .ser(se_UntagResourceCommand)
995
+ .de(de_UntagResourceCommand)
996
+ .build() {
997
+ }
998
+
999
+ class UpdateSuiteDefinitionCommand extends smithyClient.Command
1000
+ .classBuilder()
1001
+ .ep(commonParams)
1002
+ .m(function (Command, cs, config, o) {
1003
+ return [
1004
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1005
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1006
+ ];
1007
+ })
1008
+ .s("IotSenateService", "UpdateSuiteDefinition", {})
1009
+ .n("IotDeviceAdvisorClient", "UpdateSuiteDefinitionCommand")
1010
+ .f(void 0, void 0)
1011
+ .ser(se_UpdateSuiteDefinitionCommand)
1012
+ .de(de_UpdateSuiteDefinitionCommand)
1013
+ .build() {
1014
+ }
1015
+
1016
+ const commands = {
1017
+ CreateSuiteDefinitionCommand,
1018
+ DeleteSuiteDefinitionCommand,
1019
+ GetEndpointCommand,
1020
+ GetSuiteDefinitionCommand,
1021
+ GetSuiteRunCommand,
1022
+ GetSuiteRunReportCommand,
1023
+ ListSuiteDefinitionsCommand,
1024
+ ListSuiteRunsCommand,
1025
+ ListTagsForResourceCommand,
1026
+ StartSuiteRunCommand,
1027
+ StopSuiteRunCommand,
1028
+ TagResourceCommand,
1029
+ UntagResourceCommand,
1030
+ UpdateSuiteDefinitionCommand,
1031
+ };
1032
+ class IotDeviceAdvisor extends IotDeviceAdvisorClient {
1033
+ }
1034
+ smithyClient.createAggregatedClient(commands, IotDeviceAdvisor);
1144
1035
 
1145
- // src/pagination/ListSuiteRunsPaginator.ts
1036
+ const paginateListSuiteDefinitions = core.createPaginator(IotDeviceAdvisorClient, ListSuiteDefinitionsCommand, "nextToken", "nextToken", "maxResults");
1146
1037
 
1147
- var paginateListSuiteRuns = (0, import_core.createPaginator)(IotDeviceAdvisorClient, ListSuiteRunsCommand, "nextToken", "nextToken", "maxResults");
1148
- // Annotate the CommonJS export names for ESM import in node:
1038
+ const paginateListSuiteRuns = core.createPaginator(IotDeviceAdvisorClient, ListSuiteRunsCommand, "nextToken", "nextToken", "maxResults");
1149
1039
 
1150
- 0 && (module.exports = {
1151
- IotDeviceAdvisorServiceException,
1152
- __Client,
1153
- IotDeviceAdvisorClient,
1154
- IotDeviceAdvisor,
1155
- $Command,
1156
- CreateSuiteDefinitionCommand,
1157
- DeleteSuiteDefinitionCommand,
1158
- GetEndpointCommand,
1159
- GetSuiteDefinitionCommand,
1160
- GetSuiteRunCommand,
1161
- GetSuiteRunReportCommand,
1162
- ListSuiteDefinitionsCommand,
1163
- ListSuiteRunsCommand,
1164
- ListTagsForResourceCommand,
1165
- StartSuiteRunCommand,
1166
- StopSuiteRunCommand,
1167
- TagResourceCommand,
1168
- UntagResourceCommand,
1169
- UpdateSuiteDefinitionCommand,
1170
- paginateListSuiteDefinitions,
1171
- paginateListSuiteRuns,
1172
- AuthenticationMethod,
1173
- ConflictException,
1174
- Protocol,
1175
- InternalServerException,
1176
- ValidationException,
1177
- ResourceNotFoundException,
1178
- SuiteRunStatus,
1179
- Status,
1180
- TestCaseScenarioStatus,
1181
- TestCaseScenarioType
1040
+ Object.defineProperty(exports, "$Command", {
1041
+ enumerable: true,
1042
+ get: function () { return smithyClient.Command; }
1182
1043
  });
1183
-
1044
+ Object.defineProperty(exports, "__Client", {
1045
+ enumerable: true,
1046
+ get: function () { return smithyClient.Client; }
1047
+ });
1048
+ exports.AuthenticationMethod = AuthenticationMethod;
1049
+ exports.ConflictException = ConflictException;
1050
+ exports.CreateSuiteDefinitionCommand = CreateSuiteDefinitionCommand;
1051
+ exports.DeleteSuiteDefinitionCommand = DeleteSuiteDefinitionCommand;
1052
+ exports.GetEndpointCommand = GetEndpointCommand;
1053
+ exports.GetSuiteDefinitionCommand = GetSuiteDefinitionCommand;
1054
+ exports.GetSuiteRunCommand = GetSuiteRunCommand;
1055
+ exports.GetSuiteRunReportCommand = GetSuiteRunReportCommand;
1056
+ exports.InternalServerException = InternalServerException;
1057
+ exports.IotDeviceAdvisor = IotDeviceAdvisor;
1058
+ exports.IotDeviceAdvisorClient = IotDeviceAdvisorClient;
1059
+ exports.IotDeviceAdvisorServiceException = IotDeviceAdvisorServiceException;
1060
+ exports.ListSuiteDefinitionsCommand = ListSuiteDefinitionsCommand;
1061
+ exports.ListSuiteRunsCommand = ListSuiteRunsCommand;
1062
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1063
+ exports.Protocol = Protocol;
1064
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1065
+ exports.StartSuiteRunCommand = StartSuiteRunCommand;
1066
+ exports.Status = Status;
1067
+ exports.StopSuiteRunCommand = StopSuiteRunCommand;
1068
+ exports.SuiteRunStatus = SuiteRunStatus;
1069
+ exports.TagResourceCommand = TagResourceCommand;
1070
+ exports.TestCaseScenarioStatus = TestCaseScenarioStatus;
1071
+ exports.TestCaseScenarioType = TestCaseScenarioType;
1072
+ exports.UntagResourceCommand = UntagResourceCommand;
1073
+ exports.UpdateSuiteDefinitionCommand = UpdateSuiteDefinitionCommand;
1074
+ exports.ValidationException = ValidationException;
1075
+ exports.paginateListSuiteDefinitions = paginateListSuiteDefinitions;
1076
+ exports.paginateListSuiteRuns = paginateListSuiteRuns;