@aws-sdk/client-inspector 3.490.0 → 3.495.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 (61) hide show
  1. package/dist-cjs/Inspector.js +1 -85
  2. package/dist-cjs/InspectorClient.js +1 -43
  3. package/dist-cjs/commands/AddAttributesToFindingsCommand.js +1 -28
  4. package/dist-cjs/commands/CreateAssessmentTargetCommand.js +1 -28
  5. package/dist-cjs/commands/CreateAssessmentTemplateCommand.js +1 -28
  6. package/dist-cjs/commands/CreateExclusionsPreviewCommand.js +1 -28
  7. package/dist-cjs/commands/CreateResourceGroupCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteAssessmentRunCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteAssessmentTargetCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js +1 -28
  11. package/dist-cjs/commands/DescribeAssessmentRunsCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js +1 -28
  15. package/dist-cjs/commands/DescribeExclusionsCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeFindingsCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeResourceGroupsCommand.js +1 -28
  18. package/dist-cjs/commands/DescribeRulesPackagesCommand.js +1 -28
  19. package/dist-cjs/commands/GetAssessmentReportCommand.js +1 -28
  20. package/dist-cjs/commands/GetExclusionsPreviewCommand.js +1 -28
  21. package/dist-cjs/commands/GetTelemetryMetadataCommand.js +1 -28
  22. package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js +1 -28
  23. package/dist-cjs/commands/ListAssessmentRunsCommand.js +1 -28
  24. package/dist-cjs/commands/ListAssessmentTargetsCommand.js +1 -28
  25. package/dist-cjs/commands/ListAssessmentTemplatesCommand.js +1 -28
  26. package/dist-cjs/commands/ListEventSubscriptionsCommand.js +1 -28
  27. package/dist-cjs/commands/ListExclusionsCommand.js +1 -28
  28. package/dist-cjs/commands/ListFindingsCommand.js +1 -28
  29. package/dist-cjs/commands/ListRulesPackagesCommand.js +1 -28
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  31. package/dist-cjs/commands/PreviewAgentsCommand.js +1 -28
  32. package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js +1 -28
  33. package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js +1 -28
  34. package/dist-cjs/commands/SetTagsForResourceCommand.js +1 -28
  35. package/dist-cjs/commands/StartAssessmentRunCommand.js +1 -28
  36. package/dist-cjs/commands/StopAssessmentRunCommand.js +1 -28
  37. package/dist-cjs/commands/SubscribeToEventCommand.js +1 -28
  38. package/dist-cjs/commands/UnsubscribeFromEventCommand.js +1 -28
  39. package/dist-cjs/commands/UpdateAssessmentTargetCommand.js +1 -28
  40. package/dist-cjs/commands/index.js +1 -40
  41. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  42. package/dist-cjs/extensionConfiguration.js +1 -2
  43. package/dist-cjs/index.js +3561 -11
  44. package/dist-cjs/models/InspectorServiceException.js +1 -12
  45. package/dist-cjs/models/index.js +1 -4
  46. package/dist-cjs/models/models_0.js +1 -340
  47. package/dist-cjs/pagination/GetExclusionsPreviewPaginator.js +1 -7
  48. package/dist-cjs/pagination/Interfaces.js +1 -2
  49. package/dist-cjs/pagination/ListAssessmentRunAgentsPaginator.js +1 -7
  50. package/dist-cjs/pagination/ListAssessmentRunsPaginator.js +1 -7
  51. package/dist-cjs/pagination/ListAssessmentTargetsPaginator.js +1 -7
  52. package/dist-cjs/pagination/ListAssessmentTemplatesPaginator.js +1 -7
  53. package/dist-cjs/pagination/ListEventSubscriptionsPaginator.js +1 -7
  54. package/dist-cjs/pagination/ListExclusionsPaginator.js +1 -7
  55. package/dist-cjs/pagination/ListFindingsPaginator.js +1 -7
  56. package/dist-cjs/pagination/ListRulesPackagesPaginator.js +1 -7
  57. package/dist-cjs/pagination/PreviewAgentsPaginator.js +1 -7
  58. package/dist-cjs/pagination/index.js +1 -14
  59. package/dist-cjs/protocols/Aws_json1_1.js +1 -2259
  60. package/dist-cjs/runtimeExtensions.js +1 -22
  61. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3562 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InspectorServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./InspectorClient"), exports);
6
- tslib_1.__exportStar(require("./Inspector"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var InspectorServiceException_1 = require("./models/InspectorServiceException");
12
- Object.defineProperty(exports, "InspectorServiceException", { enumerable: true, get: function () { return InspectorServiceException_1.InspectorServiceException; } });
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 });
10
+ };
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;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedErrorCode: () => AccessDeniedErrorCode,
25
+ AccessDeniedException: () => AccessDeniedException,
26
+ AddAttributesToFindingsCommand: () => AddAttributesToFindingsCommand,
27
+ AgentHealth: () => AgentHealth,
28
+ AgentHealthCode: () => AgentHealthCode,
29
+ AgentsAlreadyRunningAssessmentException: () => AgentsAlreadyRunningAssessmentException,
30
+ AssessmentRunInProgressException: () => AssessmentRunInProgressException,
31
+ AssessmentRunNotificationSnsStatusCode: () => AssessmentRunNotificationSnsStatusCode,
32
+ AssessmentRunState: () => AssessmentRunState,
33
+ AssetType: () => AssetType,
34
+ CreateAssessmentTargetCommand: () => CreateAssessmentTargetCommand,
35
+ CreateAssessmentTemplateCommand: () => CreateAssessmentTemplateCommand,
36
+ CreateExclusionsPreviewCommand: () => CreateExclusionsPreviewCommand,
37
+ CreateResourceGroupCommand: () => CreateResourceGroupCommand,
38
+ DeleteAssessmentRunCommand: () => DeleteAssessmentRunCommand,
39
+ DeleteAssessmentTargetCommand: () => DeleteAssessmentTargetCommand,
40
+ DeleteAssessmentTemplateCommand: () => DeleteAssessmentTemplateCommand,
41
+ DescribeAssessmentRunsCommand: () => DescribeAssessmentRunsCommand,
42
+ DescribeAssessmentTargetsCommand: () => DescribeAssessmentTargetsCommand,
43
+ DescribeAssessmentTemplatesCommand: () => DescribeAssessmentTemplatesCommand,
44
+ DescribeCrossAccountAccessRoleCommand: () => DescribeCrossAccountAccessRoleCommand,
45
+ DescribeExclusionsCommand: () => DescribeExclusionsCommand,
46
+ DescribeFindingsCommand: () => DescribeFindingsCommand,
47
+ DescribeResourceGroupsCommand: () => DescribeResourceGroupsCommand,
48
+ DescribeRulesPackagesCommand: () => DescribeRulesPackagesCommand,
49
+ FailedItemErrorCode: () => FailedItemErrorCode,
50
+ GetAssessmentReportCommand: () => GetAssessmentReportCommand,
51
+ GetExclusionsPreviewCommand: () => GetExclusionsPreviewCommand,
52
+ GetTelemetryMetadataCommand: () => GetTelemetryMetadataCommand,
53
+ Inspector: () => Inspector,
54
+ InspectorClient: () => InspectorClient,
55
+ InspectorEvent: () => InspectorEvent,
56
+ InspectorServiceException: () => InspectorServiceException,
57
+ InternalException: () => InternalException,
58
+ InvalidCrossAccountRoleErrorCode: () => InvalidCrossAccountRoleErrorCode,
59
+ InvalidCrossAccountRoleException: () => InvalidCrossAccountRoleException,
60
+ InvalidInputErrorCode: () => InvalidInputErrorCode,
61
+ InvalidInputException: () => InvalidInputException,
62
+ LimitExceededErrorCode: () => LimitExceededErrorCode,
63
+ LimitExceededException: () => LimitExceededException,
64
+ ListAssessmentRunAgentsCommand: () => ListAssessmentRunAgentsCommand,
65
+ ListAssessmentRunsCommand: () => ListAssessmentRunsCommand,
66
+ ListAssessmentTargetsCommand: () => ListAssessmentTargetsCommand,
67
+ ListAssessmentTemplatesCommand: () => ListAssessmentTemplatesCommand,
68
+ ListEventSubscriptionsCommand: () => ListEventSubscriptionsCommand,
69
+ ListExclusionsCommand: () => ListExclusionsCommand,
70
+ ListFindingsCommand: () => ListFindingsCommand,
71
+ ListRulesPackagesCommand: () => ListRulesPackagesCommand,
72
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
73
+ Locale: () => Locale,
74
+ NoSuchEntityErrorCode: () => NoSuchEntityErrorCode,
75
+ NoSuchEntityException: () => NoSuchEntityException,
76
+ PreviewAgentsCommand: () => PreviewAgentsCommand,
77
+ PreviewGenerationInProgressException: () => PreviewGenerationInProgressException,
78
+ PreviewStatus: () => PreviewStatus,
79
+ RegisterCrossAccountAccessRoleCommand: () => RegisterCrossAccountAccessRoleCommand,
80
+ RemoveAttributesFromFindingsCommand: () => RemoveAttributesFromFindingsCommand,
81
+ ReportFileFormat: () => ReportFileFormat,
82
+ ReportStatus: () => ReportStatus,
83
+ ReportType: () => ReportType,
84
+ ScopeType: () => ScopeType,
85
+ ServiceTemporarilyUnavailableException: () => ServiceTemporarilyUnavailableException,
86
+ SetTagsForResourceCommand: () => SetTagsForResourceCommand,
87
+ Severity: () => Severity,
88
+ StartAssessmentRunCommand: () => StartAssessmentRunCommand,
89
+ StopAction: () => StopAction,
90
+ StopAssessmentRunCommand: () => StopAssessmentRunCommand,
91
+ SubscribeToEventCommand: () => SubscribeToEventCommand,
92
+ UnsubscribeFromEventCommand: () => UnsubscribeFromEventCommand,
93
+ UnsupportedFeatureException: () => UnsupportedFeatureException,
94
+ UpdateAssessmentTargetCommand: () => UpdateAssessmentTargetCommand,
95
+ __Client: () => import_smithy_client.Client,
96
+ paginateGetExclusionsPreview: () => paginateGetExclusionsPreview,
97
+ paginateListAssessmentRunAgents: () => paginateListAssessmentRunAgents,
98
+ paginateListAssessmentRuns: () => paginateListAssessmentRuns,
99
+ paginateListAssessmentTargets: () => paginateListAssessmentTargets,
100
+ paginateListAssessmentTemplates: () => paginateListAssessmentTemplates,
101
+ paginateListEventSubscriptions: () => paginateListEventSubscriptions,
102
+ paginateListExclusions: () => paginateListExclusions,
103
+ paginateListFindings: () => paginateListFindings,
104
+ paginateListRulesPackages: () => paginateListRulesPackages,
105
+ paginatePreviewAgents: () => paginatePreviewAgents
106
+ });
107
+ module.exports = __toCommonJS(src_exports);
108
+
109
+ // src/InspectorClient.ts
110
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
111
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
112
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
113
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
114
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
115
+ var import_config_resolver = require("@smithy/config-resolver");
116
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
117
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
118
+ var import_middleware_retry = require("@smithy/middleware-retry");
119
+
120
+
121
+ // src/endpoint/EndpointParameters.ts
122
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
123
+ return {
124
+ ...options,
125
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
126
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
127
+ defaultSigningName: "inspector"
128
+ };
129
+ }, "resolveClientEndpointParameters");
130
+ var commonParams = {
131
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
132
+ Endpoint: { type: "builtInParams", name: "endpoint" },
133
+ Region: { type: "builtInParams", name: "region" },
134
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
135
+ };
136
+
137
+ // src/InspectorClient.ts
138
+ var import_runtimeConfig = require("././runtimeConfig");
139
+
140
+ // src/runtimeExtensions.ts
141
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
142
+ var import_protocol_http = require("@smithy/protocol-http");
143
+ var import_smithy_client = require("@smithy/smithy-client");
144
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
145
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
146
+ const extensionConfiguration = {
147
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
148
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
149
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
150
+ };
151
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
152
+ return {
153
+ ...runtimeConfig,
154
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
155
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
156
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
157
+ };
158
+ }, "resolveRuntimeExtensions");
159
+
160
+ // src/InspectorClient.ts
161
+ var _InspectorClient = class _InspectorClient extends import_smithy_client.Client {
162
+ constructor(...[configuration]) {
163
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
164
+ const _config_1 = resolveClientEndpointParameters(_config_0);
165
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
166
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
167
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
168
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
169
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
170
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
171
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
172
+ super(_config_8);
173
+ this.config = _config_8;
174
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
175
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
176
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
177
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
178
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
179
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
180
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
181
+ }
182
+ /**
183
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
184
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
185
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
186
+ */
187
+ destroy() {
188
+ super.destroy();
189
+ }
190
+ };
191
+ __name(_InspectorClient, "InspectorClient");
192
+ var InspectorClient = _InspectorClient;
193
+
194
+ // src/Inspector.ts
195
+
196
+
197
+ // src/commands/AddAttributesToFindingsCommand.ts
198
+
199
+ var import_middleware_serde = require("@smithy/middleware-serde");
200
+
201
+ var import_types = require("@smithy/types");
202
+
203
+ // src/protocols/Aws_json1_1.ts
204
+
205
+
206
+
207
+ // src/models/InspectorServiceException.ts
208
+
209
+ var _InspectorServiceException = class _InspectorServiceException extends import_smithy_client.ServiceException {
210
+ /**
211
+ * @internal
212
+ */
213
+ constructor(options) {
214
+ super(options);
215
+ Object.setPrototypeOf(this, _InspectorServiceException.prototype);
216
+ }
217
+ };
218
+ __name(_InspectorServiceException, "InspectorServiceException");
219
+ var InspectorServiceException = _InspectorServiceException;
220
+
221
+ // src/models/models_0.ts
222
+ var AccessDeniedErrorCode = {
223
+ ACCESS_DENIED_TO_ASSESSMENT_RUN: "ACCESS_DENIED_TO_ASSESSMENT_RUN",
224
+ ACCESS_DENIED_TO_ASSESSMENT_TARGET: "ACCESS_DENIED_TO_ASSESSMENT_TARGET",
225
+ ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE: "ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE",
226
+ ACCESS_DENIED_TO_FINDING: "ACCESS_DENIED_TO_FINDING",
227
+ ACCESS_DENIED_TO_IAM_ROLE: "ACCESS_DENIED_TO_IAM_ROLE",
228
+ ACCESS_DENIED_TO_RESOURCE_GROUP: "ACCESS_DENIED_TO_RESOURCE_GROUP",
229
+ ACCESS_DENIED_TO_RULES_PACKAGE: "ACCESS_DENIED_TO_RULES_PACKAGE",
230
+ ACCESS_DENIED_TO_SNS_TOPIC: "ACCESS_DENIED_TO_SNS_TOPIC"
231
+ };
232
+ var _AccessDeniedException = class _AccessDeniedException extends InspectorServiceException {
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts) {
237
+ super({
238
+ name: "AccessDeniedException",
239
+ $fault: "client",
240
+ ...opts
241
+ });
242
+ this.name = "AccessDeniedException";
243
+ this.$fault = "client";
244
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
245
+ this.errorCode = opts.errorCode;
246
+ this.canRetry = opts.canRetry;
247
+ }
248
+ };
249
+ __name(_AccessDeniedException, "AccessDeniedException");
250
+ var AccessDeniedException = _AccessDeniedException;
251
+ var FailedItemErrorCode = {
252
+ ACCESS_DENIED: "ACCESS_DENIED",
253
+ DUPLICATE_ARN: "DUPLICATE_ARN",
254
+ INTERNAL_ERROR: "INTERNAL_ERROR",
255
+ INVALID_ARN: "INVALID_ARN",
256
+ ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
257
+ LIMIT_EXCEEDED: "LIMIT_EXCEEDED"
258
+ };
259
+ var _InternalException = class _InternalException extends InspectorServiceException {
260
+ /**
261
+ * @internal
262
+ */
263
+ constructor(opts) {
264
+ super({
265
+ name: "InternalException",
266
+ $fault: "server",
267
+ ...opts
268
+ });
269
+ this.name = "InternalException";
270
+ this.$fault = "server";
271
+ Object.setPrototypeOf(this, _InternalException.prototype);
272
+ this.canRetry = opts.canRetry;
273
+ }
274
+ };
275
+ __name(_InternalException, "InternalException");
276
+ var InternalException = _InternalException;
277
+ var InvalidInputErrorCode = {
278
+ ASSESSMENT_TARGET_NAME_ALREADY_TAKEN: "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN",
279
+ ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN: "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN",
280
+ INVALID_AGENT_ID: "INVALID_AGENT_ID",
281
+ INVALID_ASSESSMENT_RUN_ARN: "INVALID_ASSESSMENT_RUN_ARN",
282
+ INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE: "INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE",
283
+ INVALID_ASSESSMENT_RUN_DURATION_RANGE: "INVALID_ASSESSMENT_RUN_DURATION_RANGE",
284
+ INVALID_ASSESSMENT_RUN_START_TIME_RANGE: "INVALID_ASSESSMENT_RUN_START_TIME_RANGE",
285
+ INVALID_ASSESSMENT_RUN_STATE: "INVALID_ASSESSMENT_RUN_STATE",
286
+ INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE: "INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE",
287
+ INVALID_ASSESSMENT_TARGET_ARN: "INVALID_ASSESSMENT_TARGET_ARN",
288
+ INVALID_ASSESSMENT_TARGET_NAME: "INVALID_ASSESSMENT_TARGET_NAME",
289
+ INVALID_ASSESSMENT_TARGET_NAME_PATTERN: "INVALID_ASSESSMENT_TARGET_NAME_PATTERN",
290
+ INVALID_ASSESSMENT_TEMPLATE_ARN: "INVALID_ASSESSMENT_TEMPLATE_ARN",
291
+ INVALID_ASSESSMENT_TEMPLATE_DURATION: "INVALID_ASSESSMENT_TEMPLATE_DURATION",
292
+ INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE: "INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE",
293
+ INVALID_ASSESSMENT_TEMPLATE_NAME: "INVALID_ASSESSMENT_TEMPLATE_NAME",
294
+ INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN: "INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN",
295
+ INVALID_ATTRIBUTE: "INVALID_ATTRIBUTE",
296
+ INVALID_AUTO_SCALING_GROUP: "INVALID_AUTO_SCALING_GROUP",
297
+ INVALID_EVENT: "INVALID_EVENT",
298
+ INVALID_FINDING_ARN: "INVALID_FINDING_ARN",
299
+ INVALID_IAM_ROLE_ARN: "INVALID_IAM_ROLE_ARN",
300
+ INVALID_LOCALE: "INVALID_LOCALE",
301
+ INVALID_MAX_RESULTS: "INVALID_MAX_RESULTS",
302
+ INVALID_NUMBER_OF_AGENT_IDS: "INVALID_NUMBER_OF_AGENT_IDS",
303
+ INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS",
304
+ INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES: "INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES",
305
+ INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS",
306
+ INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS",
307
+ INVALID_NUMBER_OF_ATTRIBUTES: "INVALID_NUMBER_OF_ATTRIBUTES",
308
+ INVALID_NUMBER_OF_AUTO_SCALING_GROUPS: "INVALID_NUMBER_OF_AUTO_SCALING_GROUPS",
309
+ INVALID_NUMBER_OF_FINDING_ARNS: "INVALID_NUMBER_OF_FINDING_ARNS",
310
+ INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS: "INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS",
311
+ INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS: "INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS",
312
+ INVALID_NUMBER_OF_RULES_PACKAGE_ARNS: "INVALID_NUMBER_OF_RULES_PACKAGE_ARNS",
313
+ INVALID_NUMBER_OF_RULE_NAMES: "INVALID_NUMBER_OF_RULE_NAMES",
314
+ INVALID_NUMBER_OF_SEVERITIES: "INVALID_NUMBER_OF_SEVERITIES",
315
+ INVALID_NUMBER_OF_TAGS: "INVALID_NUMBER_OF_TAGS",
316
+ INVALID_NUMBER_OF_USER_ATTRIBUTES: "INVALID_NUMBER_OF_USER_ATTRIBUTES",
317
+ INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
318
+ INVALID_RESOURCE_ARN: "INVALID_RESOURCE_ARN",
319
+ INVALID_RESOURCE_GROUP_ARN: "INVALID_RESOURCE_GROUP_ARN",
320
+ INVALID_RESOURCE_GROUP_TAG_KEY: "INVALID_RESOURCE_GROUP_TAG_KEY",
321
+ INVALID_RESOURCE_GROUP_TAG_VALUE: "INVALID_RESOURCE_GROUP_TAG_VALUE",
322
+ INVALID_RULES_PACKAGE_ARN: "INVALID_RULES_PACKAGE_ARN",
323
+ INVALID_RULE_NAME: "INVALID_RULE_NAME",
324
+ INVALID_SEVERITY: "INVALID_SEVERITY",
325
+ INVALID_SNS_TOPIC_ARN: "INVALID_SNS_TOPIC_ARN",
326
+ INVALID_TAG: "INVALID_TAG",
327
+ INVALID_TAG_KEY: "INVALID_TAG_KEY",
328
+ INVALID_TAG_VALUE: "INVALID_TAG_VALUE",
329
+ INVALID_USER_ATTRIBUTE: "INVALID_USER_ATTRIBUTE",
330
+ INVALID_USER_ATTRIBUTE_KEY: "INVALID_USER_ATTRIBUTE_KEY",
331
+ INVALID_USER_ATTRIBUTE_VALUE: "INVALID_USER_ATTRIBUTE_VALUE"
332
+ };
333
+ var _InvalidInputException = class _InvalidInputException extends InspectorServiceException {
334
+ /**
335
+ * @internal
336
+ */
337
+ constructor(opts) {
338
+ super({
339
+ name: "InvalidInputException",
340
+ $fault: "client",
341
+ ...opts
342
+ });
343
+ this.name = "InvalidInputException";
344
+ this.$fault = "client";
345
+ Object.setPrototypeOf(this, _InvalidInputException.prototype);
346
+ this.errorCode = opts.errorCode;
347
+ this.canRetry = opts.canRetry;
348
+ }
349
+ };
350
+ __name(_InvalidInputException, "InvalidInputException");
351
+ var InvalidInputException = _InvalidInputException;
352
+ var NoSuchEntityErrorCode = {
353
+ ASSESSMENT_RUN_DOES_NOT_EXIST: "ASSESSMENT_RUN_DOES_NOT_EXIST",
354
+ ASSESSMENT_TARGET_DOES_NOT_EXIST: "ASSESSMENT_TARGET_DOES_NOT_EXIST",
355
+ ASSESSMENT_TEMPLATE_DOES_NOT_EXIST: "ASSESSMENT_TEMPLATE_DOES_NOT_EXIST",
356
+ FINDING_DOES_NOT_EXIST: "FINDING_DOES_NOT_EXIST",
357
+ IAM_ROLE_DOES_NOT_EXIST: "IAM_ROLE_DOES_NOT_EXIST",
358
+ RESOURCE_GROUP_DOES_NOT_EXIST: "RESOURCE_GROUP_DOES_NOT_EXIST",
359
+ RULES_PACKAGE_DOES_NOT_EXIST: "RULES_PACKAGE_DOES_NOT_EXIST",
360
+ SNS_TOPIC_DOES_NOT_EXIST: "SNS_TOPIC_DOES_NOT_EXIST"
361
+ };
362
+ var _NoSuchEntityException = class _NoSuchEntityException extends InspectorServiceException {
363
+ /**
364
+ * @internal
365
+ */
366
+ constructor(opts) {
367
+ super({
368
+ name: "NoSuchEntityException",
369
+ $fault: "client",
370
+ ...opts
371
+ });
372
+ this.name = "NoSuchEntityException";
373
+ this.$fault = "client";
374
+ Object.setPrototypeOf(this, _NoSuchEntityException.prototype);
375
+ this.errorCode = opts.errorCode;
376
+ this.canRetry = opts.canRetry;
377
+ }
378
+ };
379
+ __name(_NoSuchEntityException, "NoSuchEntityException");
380
+ var NoSuchEntityException = _NoSuchEntityException;
381
+ var _ServiceTemporarilyUnavailableException = class _ServiceTemporarilyUnavailableException extends InspectorServiceException {
382
+ /**
383
+ * @internal
384
+ */
385
+ constructor(opts) {
386
+ super({
387
+ name: "ServiceTemporarilyUnavailableException",
388
+ $fault: "server",
389
+ ...opts
390
+ });
391
+ this.name = "ServiceTemporarilyUnavailableException";
392
+ this.$fault = "server";
393
+ Object.setPrototypeOf(this, _ServiceTemporarilyUnavailableException.prototype);
394
+ this.canRetry = opts.canRetry;
395
+ }
396
+ };
397
+ __name(_ServiceTemporarilyUnavailableException, "ServiceTemporarilyUnavailableException");
398
+ var ServiceTemporarilyUnavailableException = _ServiceTemporarilyUnavailableException;
399
+ var AgentHealthCode = {
400
+ IDLE: "IDLE",
401
+ RUNNING: "RUNNING",
402
+ SHUTDOWN: "SHUTDOWN",
403
+ THROTTLED: "THROTTLED",
404
+ UNHEALTHY: "UNHEALTHY",
405
+ UNKNOWN: "UNKNOWN"
406
+ };
407
+ var AgentHealth = {
408
+ HEALTHY: "HEALTHY",
409
+ UNHEALTHY: "UNHEALTHY",
410
+ UNKNOWN: "UNKNOWN"
411
+ };
412
+ var _AgentsAlreadyRunningAssessmentException = class _AgentsAlreadyRunningAssessmentException extends InspectorServiceException {
413
+ /**
414
+ * @internal
415
+ */
416
+ constructor(opts) {
417
+ super({
418
+ name: "AgentsAlreadyRunningAssessmentException",
419
+ $fault: "client",
420
+ ...opts
421
+ });
422
+ this.name = "AgentsAlreadyRunningAssessmentException";
423
+ this.$fault = "client";
424
+ Object.setPrototypeOf(this, _AgentsAlreadyRunningAssessmentException.prototype);
425
+ this.agents = opts.agents;
426
+ this.agentsTruncated = opts.agentsTruncated;
427
+ this.canRetry = opts.canRetry;
428
+ }
429
+ };
430
+ __name(_AgentsAlreadyRunningAssessmentException, "AgentsAlreadyRunningAssessmentException");
431
+ var AgentsAlreadyRunningAssessmentException = _AgentsAlreadyRunningAssessmentException;
432
+ var Severity = {
433
+ HIGH: "High",
434
+ INFORMATIONAL: "Informational",
435
+ LOW: "Low",
436
+ MEDIUM: "Medium",
437
+ UNDEFINED: "Undefined"
438
+ };
439
+ var InspectorEvent = {
440
+ ASSESSMENT_RUN_COMPLETED: "ASSESSMENT_RUN_COMPLETED",
441
+ ASSESSMENT_RUN_STARTED: "ASSESSMENT_RUN_STARTED",
442
+ ASSESSMENT_RUN_STATE_CHANGED: "ASSESSMENT_RUN_STATE_CHANGED",
443
+ FINDING_REPORTED: "FINDING_REPORTED",
444
+ OTHER: "OTHER"
445
+ };
446
+ var AssessmentRunNotificationSnsStatusCode = {
447
+ ACCESS_DENIED: "ACCESS_DENIED",
448
+ INTERNAL_ERROR: "INTERNAL_ERROR",
449
+ SUCCESS: "SUCCESS",
450
+ TOPIC_DOES_NOT_EXIST: "TOPIC_DOES_NOT_EXIST"
451
+ };
452
+ var AssessmentRunState = {
453
+ CANCELED: "CANCELED",
454
+ COLLECTING_DATA: "COLLECTING_DATA",
455
+ COMPLETED: "COMPLETED",
456
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
457
+ CREATED: "CREATED",
458
+ DATA_COLLECTED: "DATA_COLLECTED",
459
+ ERROR: "ERROR",
460
+ EVALUATING_RULES: "EVALUATING_RULES",
461
+ FAILED: "FAILED",
462
+ START_DATA_COLLECTION_IN_PROGRESS: "START_DATA_COLLECTION_IN_PROGRESS",
463
+ START_DATA_COLLECTION_PENDING: "START_DATA_COLLECTION_PENDING",
464
+ START_EVALUATING_RULES_PENDING: "START_EVALUATING_RULES_PENDING",
465
+ STOP_DATA_COLLECTION_PENDING: "STOP_DATA_COLLECTION_PENDING"
466
+ };
467
+ var _AssessmentRunInProgressException = class _AssessmentRunInProgressException extends InspectorServiceException {
468
+ /**
469
+ * @internal
470
+ */
471
+ constructor(opts) {
472
+ super({
473
+ name: "AssessmentRunInProgressException",
474
+ $fault: "client",
475
+ ...opts
476
+ });
477
+ this.name = "AssessmentRunInProgressException";
478
+ this.$fault = "client";
479
+ Object.setPrototypeOf(this, _AssessmentRunInProgressException.prototype);
480
+ this.assessmentRunArns = opts.assessmentRunArns;
481
+ this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
482
+ this.canRetry = opts.canRetry;
483
+ }
484
+ };
485
+ __name(_AssessmentRunInProgressException, "AssessmentRunInProgressException");
486
+ var AssessmentRunInProgressException = _AssessmentRunInProgressException;
487
+ var AssetType = {
488
+ EC2_INSTANCE: "ec2-instance"
489
+ };
490
+ var InvalidCrossAccountRoleErrorCode = {
491
+ ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP: "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP",
492
+ ROLE_DOES_NOT_HAVE_CORRECT_POLICY: "ROLE_DOES_NOT_HAVE_CORRECT_POLICY"
493
+ };
494
+ var _InvalidCrossAccountRoleException = class _InvalidCrossAccountRoleException extends InspectorServiceException {
495
+ /**
496
+ * @internal
497
+ */
498
+ constructor(opts) {
499
+ super({
500
+ name: "InvalidCrossAccountRoleException",
501
+ $fault: "client",
502
+ ...opts
503
+ });
504
+ this.name = "InvalidCrossAccountRoleException";
505
+ this.$fault = "client";
506
+ Object.setPrototypeOf(this, _InvalidCrossAccountRoleException.prototype);
507
+ this.errorCode = opts.errorCode;
508
+ this.canRetry = opts.canRetry;
509
+ }
510
+ };
511
+ __name(_InvalidCrossAccountRoleException, "InvalidCrossAccountRoleException");
512
+ var InvalidCrossAccountRoleException = _InvalidCrossAccountRoleException;
513
+ var LimitExceededErrorCode = {
514
+ ASSESSMENT_RUN_LIMIT_EXCEEDED: "ASSESSMENT_RUN_LIMIT_EXCEEDED",
515
+ ASSESSMENT_TARGET_LIMIT_EXCEEDED: "ASSESSMENT_TARGET_LIMIT_EXCEEDED",
516
+ ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED: "ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED",
517
+ EVENT_SUBSCRIPTION_LIMIT_EXCEEDED: "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED",
518
+ RESOURCE_GROUP_LIMIT_EXCEEDED: "RESOURCE_GROUP_LIMIT_EXCEEDED"
519
+ };
520
+ var _LimitExceededException = class _LimitExceededException extends InspectorServiceException {
521
+ /**
522
+ * @internal
523
+ */
524
+ constructor(opts) {
525
+ super({
526
+ name: "LimitExceededException",
527
+ $fault: "client",
528
+ ...opts
529
+ });
530
+ this.name = "LimitExceededException";
531
+ this.$fault = "client";
532
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
533
+ this.errorCode = opts.errorCode;
534
+ this.canRetry = opts.canRetry;
535
+ }
536
+ };
537
+ __name(_LimitExceededException, "LimitExceededException");
538
+ var LimitExceededException = _LimitExceededException;
539
+ var _PreviewGenerationInProgressException = class _PreviewGenerationInProgressException extends InspectorServiceException {
540
+ /**
541
+ * @internal
542
+ */
543
+ constructor(opts) {
544
+ super({
545
+ name: "PreviewGenerationInProgressException",
546
+ $fault: "client",
547
+ ...opts
548
+ });
549
+ this.name = "PreviewGenerationInProgressException";
550
+ this.$fault = "client";
551
+ Object.setPrototypeOf(this, _PreviewGenerationInProgressException.prototype);
552
+ }
553
+ };
554
+ __name(_PreviewGenerationInProgressException, "PreviewGenerationInProgressException");
555
+ var PreviewGenerationInProgressException = _PreviewGenerationInProgressException;
556
+ var Locale = {
557
+ EN_US: "EN_US"
558
+ };
559
+ var ScopeType = {
560
+ INSTANCE_ID: "INSTANCE_ID",
561
+ RULES_PACKAGE_ARN: "RULES_PACKAGE_ARN"
562
+ };
563
+ var ReportFileFormat = {
564
+ HTML: "HTML",
565
+ PDF: "PDF"
566
+ };
567
+ var ReportType = {
568
+ FINDING: "FINDING",
569
+ FULL: "FULL"
570
+ };
571
+ var ReportStatus = {
572
+ COMPLETED: "COMPLETED",
573
+ FAILED: "FAILED",
574
+ WORK_IN_PROGRESS: "WORK_IN_PROGRESS"
575
+ };
576
+ var _UnsupportedFeatureException = class _UnsupportedFeatureException extends InspectorServiceException {
577
+ /**
578
+ * @internal
579
+ */
580
+ constructor(opts) {
581
+ super({
582
+ name: "UnsupportedFeatureException",
583
+ $fault: "client",
584
+ ...opts
585
+ });
586
+ this.name = "UnsupportedFeatureException";
587
+ this.$fault = "client";
588
+ Object.setPrototypeOf(this, _UnsupportedFeatureException.prototype);
589
+ this.canRetry = opts.canRetry;
590
+ }
591
+ };
592
+ __name(_UnsupportedFeatureException, "UnsupportedFeatureException");
593
+ var UnsupportedFeatureException = _UnsupportedFeatureException;
594
+ var PreviewStatus = {
595
+ COMPLETED: "COMPLETED",
596
+ WORK_IN_PROGRESS: "WORK_IN_PROGRESS"
597
+ };
598
+ var StopAction = {
599
+ SKIP_EVALUATION: "SKIP_EVALUATION",
600
+ START_EVALUATION: "START_EVALUATION"
601
+ };
602
+
603
+ // src/protocols/Aws_json1_1.ts
604
+ var se_AddAttributesToFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
605
+ const headers = sharedHeaders("AddAttributesToFindings");
606
+ let body;
607
+ body = JSON.stringify((0, import_smithy_client._json)(input));
608
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
609
+ }, "se_AddAttributesToFindingsCommand");
610
+ var se_CreateAssessmentTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
611
+ const headers = sharedHeaders("CreateAssessmentTarget");
612
+ let body;
613
+ body = JSON.stringify((0, import_smithy_client._json)(input));
614
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
615
+ }, "se_CreateAssessmentTargetCommand");
616
+ var se_CreateAssessmentTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
617
+ const headers = sharedHeaders("CreateAssessmentTemplate");
618
+ let body;
619
+ body = JSON.stringify((0, import_smithy_client._json)(input));
620
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
621
+ }, "se_CreateAssessmentTemplateCommand");
622
+ var se_CreateExclusionsPreviewCommand = /* @__PURE__ */ __name(async (input, context) => {
623
+ const headers = sharedHeaders("CreateExclusionsPreview");
624
+ let body;
625
+ body = JSON.stringify((0, import_smithy_client._json)(input));
626
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
627
+ }, "se_CreateExclusionsPreviewCommand");
628
+ var se_CreateResourceGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
629
+ const headers = sharedHeaders("CreateResourceGroup");
630
+ let body;
631
+ body = JSON.stringify((0, import_smithy_client._json)(input));
632
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
633
+ }, "se_CreateResourceGroupCommand");
634
+ var se_DeleteAssessmentRunCommand = /* @__PURE__ */ __name(async (input, context) => {
635
+ const headers = sharedHeaders("DeleteAssessmentRun");
636
+ let body;
637
+ body = JSON.stringify((0, import_smithy_client._json)(input));
638
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
639
+ }, "se_DeleteAssessmentRunCommand");
640
+ var se_DeleteAssessmentTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
641
+ const headers = sharedHeaders("DeleteAssessmentTarget");
642
+ let body;
643
+ body = JSON.stringify((0, import_smithy_client._json)(input));
644
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
645
+ }, "se_DeleteAssessmentTargetCommand");
646
+ var se_DeleteAssessmentTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
647
+ const headers = sharedHeaders("DeleteAssessmentTemplate");
648
+ let body;
649
+ body = JSON.stringify((0, import_smithy_client._json)(input));
650
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
651
+ }, "se_DeleteAssessmentTemplateCommand");
652
+ var se_DescribeAssessmentRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
653
+ const headers = sharedHeaders("DescribeAssessmentRuns");
654
+ let body;
655
+ body = JSON.stringify((0, import_smithy_client._json)(input));
656
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
657
+ }, "se_DescribeAssessmentRunsCommand");
658
+ var se_DescribeAssessmentTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
659
+ const headers = sharedHeaders("DescribeAssessmentTargets");
660
+ let body;
661
+ body = JSON.stringify((0, import_smithy_client._json)(input));
662
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
663
+ }, "se_DescribeAssessmentTargetsCommand");
664
+ var se_DescribeAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
665
+ const headers = sharedHeaders("DescribeAssessmentTemplates");
666
+ let body;
667
+ body = JSON.stringify((0, import_smithy_client._json)(input));
668
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
669
+ }, "se_DescribeAssessmentTemplatesCommand");
670
+ var se_DescribeCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
671
+ const headers = sharedHeaders("DescribeCrossAccountAccessRole");
672
+ const body = "{}";
673
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
674
+ }, "se_DescribeCrossAccountAccessRoleCommand");
675
+ var se_DescribeExclusionsCommand = /* @__PURE__ */ __name(async (input, context) => {
676
+ const headers = sharedHeaders("DescribeExclusions");
677
+ let body;
678
+ body = JSON.stringify((0, import_smithy_client._json)(input));
679
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
680
+ }, "se_DescribeExclusionsCommand");
681
+ var se_DescribeFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
682
+ const headers = sharedHeaders("DescribeFindings");
683
+ let body;
684
+ body = JSON.stringify((0, import_smithy_client._json)(input));
685
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
686
+ }, "se_DescribeFindingsCommand");
687
+ var se_DescribeResourceGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
688
+ const headers = sharedHeaders("DescribeResourceGroups");
689
+ let body;
690
+ body = JSON.stringify((0, import_smithy_client._json)(input));
691
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
692
+ }, "se_DescribeResourceGroupsCommand");
693
+ var se_DescribeRulesPackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
694
+ const headers = sharedHeaders("DescribeRulesPackages");
695
+ let body;
696
+ body = JSON.stringify((0, import_smithy_client._json)(input));
697
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
698
+ }, "se_DescribeRulesPackagesCommand");
699
+ var se_GetAssessmentReportCommand = /* @__PURE__ */ __name(async (input, context) => {
700
+ const headers = sharedHeaders("GetAssessmentReport");
701
+ let body;
702
+ body = JSON.stringify((0, import_smithy_client._json)(input));
703
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
704
+ }, "se_GetAssessmentReportCommand");
705
+ var se_GetExclusionsPreviewCommand = /* @__PURE__ */ __name(async (input, context) => {
706
+ const headers = sharedHeaders("GetExclusionsPreview");
707
+ let body;
708
+ body = JSON.stringify((0, import_smithy_client._json)(input));
709
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
710
+ }, "se_GetExclusionsPreviewCommand");
711
+ var se_GetTelemetryMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
712
+ const headers = sharedHeaders("GetTelemetryMetadata");
713
+ let body;
714
+ body = JSON.stringify((0, import_smithy_client._json)(input));
715
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
716
+ }, "se_GetTelemetryMetadataCommand");
717
+ var se_ListAssessmentRunAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
718
+ const headers = sharedHeaders("ListAssessmentRunAgents");
719
+ let body;
720
+ body = JSON.stringify((0, import_smithy_client._json)(input));
721
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
722
+ }, "se_ListAssessmentRunAgentsCommand");
723
+ var se_ListAssessmentRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
724
+ const headers = sharedHeaders("ListAssessmentRuns");
725
+ let body;
726
+ body = JSON.stringify(se_ListAssessmentRunsRequest(input, context));
727
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
728
+ }, "se_ListAssessmentRunsCommand");
729
+ var se_ListAssessmentTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const headers = sharedHeaders("ListAssessmentTargets");
731
+ let body;
732
+ body = JSON.stringify((0, import_smithy_client._json)(input));
733
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
734
+ }, "se_ListAssessmentTargetsCommand");
735
+ var se_ListAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
736
+ const headers = sharedHeaders("ListAssessmentTemplates");
737
+ let body;
738
+ body = JSON.stringify((0, import_smithy_client._json)(input));
739
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
740
+ }, "se_ListAssessmentTemplatesCommand");
741
+ var se_ListEventSubscriptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
742
+ const headers = sharedHeaders("ListEventSubscriptions");
743
+ let body;
744
+ body = JSON.stringify((0, import_smithy_client._json)(input));
745
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
746
+ }, "se_ListEventSubscriptionsCommand");
747
+ var se_ListExclusionsCommand = /* @__PURE__ */ __name(async (input, context) => {
748
+ const headers = sharedHeaders("ListExclusions");
749
+ let body;
750
+ body = JSON.stringify((0, import_smithy_client._json)(input));
751
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
752
+ }, "se_ListExclusionsCommand");
753
+ var se_ListFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
754
+ const headers = sharedHeaders("ListFindings");
755
+ let body;
756
+ body = JSON.stringify(se_ListFindingsRequest(input, context));
757
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
758
+ }, "se_ListFindingsCommand");
759
+ var se_ListRulesPackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
760
+ const headers = sharedHeaders("ListRulesPackages");
761
+ let body;
762
+ body = JSON.stringify((0, import_smithy_client._json)(input));
763
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
764
+ }, "se_ListRulesPackagesCommand");
765
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
766
+ const headers = sharedHeaders("ListTagsForResource");
767
+ let body;
768
+ body = JSON.stringify((0, import_smithy_client._json)(input));
769
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
770
+ }, "se_ListTagsForResourceCommand");
771
+ var se_PreviewAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
772
+ const headers = sharedHeaders("PreviewAgents");
773
+ let body;
774
+ body = JSON.stringify((0, import_smithy_client._json)(input));
775
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
776
+ }, "se_PreviewAgentsCommand");
777
+ var se_RegisterCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
778
+ const headers = sharedHeaders("RegisterCrossAccountAccessRole");
779
+ let body;
780
+ body = JSON.stringify((0, import_smithy_client._json)(input));
781
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
782
+ }, "se_RegisterCrossAccountAccessRoleCommand");
783
+ var se_RemoveAttributesFromFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
784
+ const headers = sharedHeaders("RemoveAttributesFromFindings");
785
+ let body;
786
+ body = JSON.stringify((0, import_smithy_client._json)(input));
787
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
788
+ }, "se_RemoveAttributesFromFindingsCommand");
789
+ var se_SetTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
790
+ const headers = sharedHeaders("SetTagsForResource");
791
+ let body;
792
+ body = JSON.stringify((0, import_smithy_client._json)(input));
793
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
794
+ }, "se_SetTagsForResourceCommand");
795
+ var se_StartAssessmentRunCommand = /* @__PURE__ */ __name(async (input, context) => {
796
+ const headers = sharedHeaders("StartAssessmentRun");
797
+ let body;
798
+ body = JSON.stringify((0, import_smithy_client._json)(input));
799
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
800
+ }, "se_StartAssessmentRunCommand");
801
+ var se_StopAssessmentRunCommand = /* @__PURE__ */ __name(async (input, context) => {
802
+ const headers = sharedHeaders("StopAssessmentRun");
803
+ let body;
804
+ body = JSON.stringify((0, import_smithy_client._json)(input));
805
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
806
+ }, "se_StopAssessmentRunCommand");
807
+ var se_SubscribeToEventCommand = /* @__PURE__ */ __name(async (input, context) => {
808
+ const headers = sharedHeaders("SubscribeToEvent");
809
+ let body;
810
+ body = JSON.stringify((0, import_smithy_client._json)(input));
811
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
812
+ }, "se_SubscribeToEventCommand");
813
+ var se_UnsubscribeFromEventCommand = /* @__PURE__ */ __name(async (input, context) => {
814
+ const headers = sharedHeaders("UnsubscribeFromEvent");
815
+ let body;
816
+ body = JSON.stringify((0, import_smithy_client._json)(input));
817
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
818
+ }, "se_UnsubscribeFromEventCommand");
819
+ var se_UpdateAssessmentTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
820
+ const headers = sharedHeaders("UpdateAssessmentTarget");
821
+ let body;
822
+ body = JSON.stringify((0, import_smithy_client._json)(input));
823
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
824
+ }, "se_UpdateAssessmentTargetCommand");
825
+ var de_AddAttributesToFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
826
+ if (output.statusCode >= 300) {
827
+ return de_AddAttributesToFindingsCommandError(output, context);
828
+ }
829
+ const data = await parseBody(output.body, context);
830
+ let contents = {};
831
+ contents = (0, import_smithy_client._json)(data);
832
+ const response = {
833
+ $metadata: deserializeMetadata(output),
834
+ ...contents
835
+ };
836
+ return response;
837
+ }, "de_AddAttributesToFindingsCommand");
838
+ var de_AddAttributesToFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
839
+ const parsedOutput = {
840
+ ...output,
841
+ body: await parseErrorBody(output.body, context)
842
+ };
843
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
844
+ switch (errorCode) {
845
+ case "AccessDeniedException":
846
+ case "com.amazonaws.inspector#AccessDeniedException":
847
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
848
+ case "InternalException":
849
+ case "com.amazonaws.inspector#InternalException":
850
+ throw await de_InternalExceptionRes(parsedOutput, context);
851
+ case "InvalidInputException":
852
+ case "com.amazonaws.inspector#InvalidInputException":
853
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
854
+ case "NoSuchEntityException":
855
+ case "com.amazonaws.inspector#NoSuchEntityException":
856
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
857
+ case "ServiceTemporarilyUnavailableException":
858
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
859
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
860
+ default:
861
+ const parsedBody = parsedOutput.body;
862
+ return throwDefaultError({
863
+ output,
864
+ parsedBody,
865
+ errorCode
866
+ });
867
+ }
868
+ }, "de_AddAttributesToFindingsCommandError");
869
+ var de_CreateAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
870
+ if (output.statusCode >= 300) {
871
+ return de_CreateAssessmentTargetCommandError(output, context);
872
+ }
873
+ const data = await parseBody(output.body, context);
874
+ let contents = {};
875
+ contents = (0, import_smithy_client._json)(data);
876
+ const response = {
877
+ $metadata: deserializeMetadata(output),
878
+ ...contents
879
+ };
880
+ return response;
881
+ }, "de_CreateAssessmentTargetCommand");
882
+ var de_CreateAssessmentTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
883
+ const parsedOutput = {
884
+ ...output,
885
+ body: await parseErrorBody(output.body, context)
886
+ };
887
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
888
+ switch (errorCode) {
889
+ case "AccessDeniedException":
890
+ case "com.amazonaws.inspector#AccessDeniedException":
891
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
892
+ case "InternalException":
893
+ case "com.amazonaws.inspector#InternalException":
894
+ throw await de_InternalExceptionRes(parsedOutput, context);
895
+ case "InvalidCrossAccountRoleException":
896
+ case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
897
+ throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
898
+ case "InvalidInputException":
899
+ case "com.amazonaws.inspector#InvalidInputException":
900
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
901
+ case "LimitExceededException":
902
+ case "com.amazonaws.inspector#LimitExceededException":
903
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
904
+ case "NoSuchEntityException":
905
+ case "com.amazonaws.inspector#NoSuchEntityException":
906
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
907
+ case "ServiceTemporarilyUnavailableException":
908
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
909
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
910
+ default:
911
+ const parsedBody = parsedOutput.body;
912
+ return throwDefaultError({
913
+ output,
914
+ parsedBody,
915
+ errorCode
916
+ });
917
+ }
918
+ }, "de_CreateAssessmentTargetCommandError");
919
+ var de_CreateAssessmentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
920
+ if (output.statusCode >= 300) {
921
+ return de_CreateAssessmentTemplateCommandError(output, context);
922
+ }
923
+ const data = await parseBody(output.body, context);
924
+ let contents = {};
925
+ contents = (0, import_smithy_client._json)(data);
926
+ const response = {
927
+ $metadata: deserializeMetadata(output),
928
+ ...contents
929
+ };
930
+ return response;
931
+ }, "de_CreateAssessmentTemplateCommand");
932
+ var de_CreateAssessmentTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
933
+ const parsedOutput = {
934
+ ...output,
935
+ body: await parseErrorBody(output.body, context)
936
+ };
937
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
938
+ switch (errorCode) {
939
+ case "AccessDeniedException":
940
+ case "com.amazonaws.inspector#AccessDeniedException":
941
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
942
+ case "InternalException":
943
+ case "com.amazonaws.inspector#InternalException":
944
+ throw await de_InternalExceptionRes(parsedOutput, context);
945
+ case "InvalidInputException":
946
+ case "com.amazonaws.inspector#InvalidInputException":
947
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
948
+ case "LimitExceededException":
949
+ case "com.amazonaws.inspector#LimitExceededException":
950
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
951
+ case "NoSuchEntityException":
952
+ case "com.amazonaws.inspector#NoSuchEntityException":
953
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
954
+ case "ServiceTemporarilyUnavailableException":
955
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
956
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
957
+ default:
958
+ const parsedBody = parsedOutput.body;
959
+ return throwDefaultError({
960
+ output,
961
+ parsedBody,
962
+ errorCode
963
+ });
964
+ }
965
+ }, "de_CreateAssessmentTemplateCommandError");
966
+ var de_CreateExclusionsPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
967
+ if (output.statusCode >= 300) {
968
+ return de_CreateExclusionsPreviewCommandError(output, context);
969
+ }
970
+ const data = await parseBody(output.body, context);
971
+ let contents = {};
972
+ contents = (0, import_smithy_client._json)(data);
973
+ const response = {
974
+ $metadata: deserializeMetadata(output),
975
+ ...contents
976
+ };
977
+ return response;
978
+ }, "de_CreateExclusionsPreviewCommand");
979
+ var de_CreateExclusionsPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
980
+ const parsedOutput = {
981
+ ...output,
982
+ body: await parseErrorBody(output.body, context)
983
+ };
984
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
985
+ switch (errorCode) {
986
+ case "AccessDeniedException":
987
+ case "com.amazonaws.inspector#AccessDeniedException":
988
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
989
+ case "InternalException":
990
+ case "com.amazonaws.inspector#InternalException":
991
+ throw await de_InternalExceptionRes(parsedOutput, context);
992
+ case "InvalidInputException":
993
+ case "com.amazonaws.inspector#InvalidInputException":
994
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
995
+ case "NoSuchEntityException":
996
+ case "com.amazonaws.inspector#NoSuchEntityException":
997
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
998
+ case "PreviewGenerationInProgressException":
999
+ case "com.amazonaws.inspector#PreviewGenerationInProgressException":
1000
+ throw await de_PreviewGenerationInProgressExceptionRes(parsedOutput, context);
1001
+ case "ServiceTemporarilyUnavailableException":
1002
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1003
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
1004
+ default:
1005
+ const parsedBody = parsedOutput.body;
1006
+ return throwDefaultError({
1007
+ output,
1008
+ parsedBody,
1009
+ errorCode
1010
+ });
1011
+ }
1012
+ }, "de_CreateExclusionsPreviewCommandError");
1013
+ var de_CreateResourceGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
+ if (output.statusCode >= 300) {
1015
+ return de_CreateResourceGroupCommandError(output, context);
1016
+ }
1017
+ const data = await parseBody(output.body, context);
1018
+ let contents = {};
1019
+ contents = (0, import_smithy_client._json)(data);
1020
+ const response = {
1021
+ $metadata: deserializeMetadata(output),
1022
+ ...contents
1023
+ };
1024
+ return response;
1025
+ }, "de_CreateResourceGroupCommand");
1026
+ var de_CreateResourceGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1027
+ const parsedOutput = {
1028
+ ...output,
1029
+ body: await parseErrorBody(output.body, context)
1030
+ };
1031
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1032
+ switch (errorCode) {
1033
+ case "AccessDeniedException":
1034
+ case "com.amazonaws.inspector#AccessDeniedException":
1035
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1036
+ case "InternalException":
1037
+ case "com.amazonaws.inspector#InternalException":
1038
+ throw await de_InternalExceptionRes(parsedOutput, context);
1039
+ case "InvalidInputException":
1040
+ case "com.amazonaws.inspector#InvalidInputException":
1041
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1042
+ case "LimitExceededException":
1043
+ case "com.amazonaws.inspector#LimitExceededException":
1044
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1045
+ case "ServiceTemporarilyUnavailableException":
1046
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1047
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
1048
+ default:
1049
+ const parsedBody = parsedOutput.body;
1050
+ return throwDefaultError({
1051
+ output,
1052
+ parsedBody,
1053
+ errorCode
1054
+ });
1055
+ }
1056
+ }, "de_CreateResourceGroupCommandError");
1057
+ var de_DeleteAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
1058
+ if (output.statusCode >= 300) {
1059
+ return de_DeleteAssessmentRunCommandError(output, context);
1060
+ }
1061
+ await (0, import_smithy_client.collectBody)(output.body, context);
1062
+ const response = {
1063
+ $metadata: deserializeMetadata(output)
1064
+ };
1065
+ return response;
1066
+ }, "de_DeleteAssessmentRunCommand");
1067
+ var de_DeleteAssessmentRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
1068
+ const parsedOutput = {
1069
+ ...output,
1070
+ body: await parseErrorBody(output.body, context)
1071
+ };
1072
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1073
+ switch (errorCode) {
1074
+ case "AccessDeniedException":
1075
+ case "com.amazonaws.inspector#AccessDeniedException":
1076
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1077
+ case "AssessmentRunInProgressException":
1078
+ case "com.amazonaws.inspector#AssessmentRunInProgressException":
1079
+ throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
1080
+ case "InternalException":
1081
+ case "com.amazonaws.inspector#InternalException":
1082
+ throw await de_InternalExceptionRes(parsedOutput, context);
1083
+ case "InvalidInputException":
1084
+ case "com.amazonaws.inspector#InvalidInputException":
1085
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1086
+ case "NoSuchEntityException":
1087
+ case "com.amazonaws.inspector#NoSuchEntityException":
1088
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1089
+ case "ServiceTemporarilyUnavailableException":
1090
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1091
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
1092
+ default:
1093
+ const parsedBody = parsedOutput.body;
1094
+ return throwDefaultError({
1095
+ output,
1096
+ parsedBody,
1097
+ errorCode
1098
+ });
1099
+ }
1100
+ }, "de_DeleteAssessmentRunCommandError");
1101
+ var de_DeleteAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
1102
+ if (output.statusCode >= 300) {
1103
+ return de_DeleteAssessmentTargetCommandError(output, context);
1104
+ }
1105
+ await (0, import_smithy_client.collectBody)(output.body, context);
1106
+ const response = {
1107
+ $metadata: deserializeMetadata(output)
1108
+ };
1109
+ return response;
1110
+ }, "de_DeleteAssessmentTargetCommand");
1111
+ var de_DeleteAssessmentTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1112
+ const parsedOutput = {
1113
+ ...output,
1114
+ body: await parseErrorBody(output.body, context)
1115
+ };
1116
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1117
+ switch (errorCode) {
1118
+ case "AccessDeniedException":
1119
+ case "com.amazonaws.inspector#AccessDeniedException":
1120
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1121
+ case "AssessmentRunInProgressException":
1122
+ case "com.amazonaws.inspector#AssessmentRunInProgressException":
1123
+ throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
1124
+ case "InternalException":
1125
+ case "com.amazonaws.inspector#InternalException":
1126
+ throw await de_InternalExceptionRes(parsedOutput, context);
1127
+ case "InvalidInputException":
1128
+ case "com.amazonaws.inspector#InvalidInputException":
1129
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1130
+ case "NoSuchEntityException":
1131
+ case "com.amazonaws.inspector#NoSuchEntityException":
1132
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1133
+ case "ServiceTemporarilyUnavailableException":
1134
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1135
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
1136
+ default:
1137
+ const parsedBody = parsedOutput.body;
1138
+ return throwDefaultError({
1139
+ output,
1140
+ parsedBody,
1141
+ errorCode
1142
+ });
1143
+ }
1144
+ }, "de_DeleteAssessmentTargetCommandError");
1145
+ var de_DeleteAssessmentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1146
+ if (output.statusCode >= 300) {
1147
+ return de_DeleteAssessmentTemplateCommandError(output, context);
1148
+ }
1149
+ await (0, import_smithy_client.collectBody)(output.body, context);
1150
+ const response = {
1151
+ $metadata: deserializeMetadata(output)
1152
+ };
1153
+ return response;
1154
+ }, "de_DeleteAssessmentTemplateCommand");
1155
+ var de_DeleteAssessmentTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1156
+ const parsedOutput = {
1157
+ ...output,
1158
+ body: await parseErrorBody(output.body, context)
1159
+ };
1160
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1161
+ switch (errorCode) {
1162
+ case "AccessDeniedException":
1163
+ case "com.amazonaws.inspector#AccessDeniedException":
1164
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1165
+ case "AssessmentRunInProgressException":
1166
+ case "com.amazonaws.inspector#AssessmentRunInProgressException":
1167
+ throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
1168
+ case "InternalException":
1169
+ case "com.amazonaws.inspector#InternalException":
1170
+ throw await de_InternalExceptionRes(parsedOutput, context);
1171
+ case "InvalidInputException":
1172
+ case "com.amazonaws.inspector#InvalidInputException":
1173
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1174
+ case "NoSuchEntityException":
1175
+ case "com.amazonaws.inspector#NoSuchEntityException":
1176
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1177
+ case "ServiceTemporarilyUnavailableException":
1178
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1179
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
1180
+ default:
1181
+ const parsedBody = parsedOutput.body;
1182
+ return throwDefaultError({
1183
+ output,
1184
+ parsedBody,
1185
+ errorCode
1186
+ });
1187
+ }
1188
+ }, "de_DeleteAssessmentTemplateCommandError");
1189
+ var de_DescribeAssessmentRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
1190
+ if (output.statusCode >= 300) {
1191
+ return de_DescribeAssessmentRunsCommandError(output, context);
1192
+ }
1193
+ const data = await parseBody(output.body, context);
1194
+ let contents = {};
1195
+ contents = de_DescribeAssessmentRunsResponse(data, context);
1196
+ const response = {
1197
+ $metadata: deserializeMetadata(output),
1198
+ ...contents
1199
+ };
1200
+ return response;
1201
+ }, "de_DescribeAssessmentRunsCommand");
1202
+ var de_DescribeAssessmentRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1203
+ const parsedOutput = {
1204
+ ...output,
1205
+ body: await parseErrorBody(output.body, context)
1206
+ };
1207
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1208
+ switch (errorCode) {
1209
+ case "InternalException":
1210
+ case "com.amazonaws.inspector#InternalException":
1211
+ throw await de_InternalExceptionRes(parsedOutput, context);
1212
+ case "InvalidInputException":
1213
+ case "com.amazonaws.inspector#InvalidInputException":
1214
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1215
+ default:
1216
+ const parsedBody = parsedOutput.body;
1217
+ return throwDefaultError({
1218
+ output,
1219
+ parsedBody,
1220
+ errorCode
1221
+ });
1222
+ }
1223
+ }, "de_DescribeAssessmentRunsCommandError");
1224
+ var de_DescribeAssessmentTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1225
+ if (output.statusCode >= 300) {
1226
+ return de_DescribeAssessmentTargetsCommandError(output, context);
1227
+ }
1228
+ const data = await parseBody(output.body, context);
1229
+ let contents = {};
1230
+ contents = de_DescribeAssessmentTargetsResponse(data, context);
1231
+ const response = {
1232
+ $metadata: deserializeMetadata(output),
1233
+ ...contents
1234
+ };
1235
+ return response;
1236
+ }, "de_DescribeAssessmentTargetsCommand");
1237
+ var de_DescribeAssessmentTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1238
+ const parsedOutput = {
1239
+ ...output,
1240
+ body: await parseErrorBody(output.body, context)
1241
+ };
1242
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1243
+ switch (errorCode) {
1244
+ case "InternalException":
1245
+ case "com.amazonaws.inspector#InternalException":
1246
+ throw await de_InternalExceptionRes(parsedOutput, context);
1247
+ case "InvalidInputException":
1248
+ case "com.amazonaws.inspector#InvalidInputException":
1249
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1250
+ default:
1251
+ const parsedBody = parsedOutput.body;
1252
+ return throwDefaultError({
1253
+ output,
1254
+ parsedBody,
1255
+ errorCode
1256
+ });
1257
+ }
1258
+ }, "de_DescribeAssessmentTargetsCommandError");
1259
+ var de_DescribeAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1260
+ if (output.statusCode >= 300) {
1261
+ return de_DescribeAssessmentTemplatesCommandError(output, context);
1262
+ }
1263
+ const data = await parseBody(output.body, context);
1264
+ let contents = {};
1265
+ contents = de_DescribeAssessmentTemplatesResponse(data, context);
1266
+ const response = {
1267
+ $metadata: deserializeMetadata(output),
1268
+ ...contents
1269
+ };
1270
+ return response;
1271
+ }, "de_DescribeAssessmentTemplatesCommand");
1272
+ var de_DescribeAssessmentTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1273
+ const parsedOutput = {
1274
+ ...output,
1275
+ body: await parseErrorBody(output.body, context)
1276
+ };
1277
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1278
+ switch (errorCode) {
1279
+ case "InternalException":
1280
+ case "com.amazonaws.inspector#InternalException":
1281
+ throw await de_InternalExceptionRes(parsedOutput, context);
1282
+ case "InvalidInputException":
1283
+ case "com.amazonaws.inspector#InvalidInputException":
1284
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1285
+ default:
1286
+ const parsedBody = parsedOutput.body;
1287
+ return throwDefaultError({
1288
+ output,
1289
+ parsedBody,
1290
+ errorCode
1291
+ });
1292
+ }
1293
+ }, "de_DescribeAssessmentTemplatesCommandError");
1294
+ var de_DescribeCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
1295
+ if (output.statusCode >= 300) {
1296
+ return de_DescribeCrossAccountAccessRoleCommandError(output, context);
1297
+ }
1298
+ const data = await parseBody(output.body, context);
1299
+ let contents = {};
1300
+ contents = de_DescribeCrossAccountAccessRoleResponse(data, context);
1301
+ const response = {
1302
+ $metadata: deserializeMetadata(output),
1303
+ ...contents
1304
+ };
1305
+ return response;
1306
+ }, "de_DescribeCrossAccountAccessRoleCommand");
1307
+ var de_DescribeCrossAccountAccessRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1308
+ const parsedOutput = {
1309
+ ...output,
1310
+ body: await parseErrorBody(output.body, context)
1311
+ };
1312
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1313
+ switch (errorCode) {
1314
+ case "InternalException":
1315
+ case "com.amazonaws.inspector#InternalException":
1316
+ throw await de_InternalExceptionRes(parsedOutput, context);
1317
+ default:
1318
+ const parsedBody = parsedOutput.body;
1319
+ return throwDefaultError({
1320
+ output,
1321
+ parsedBody,
1322
+ errorCode
1323
+ });
1324
+ }
1325
+ }, "de_DescribeCrossAccountAccessRoleCommandError");
1326
+ var de_DescribeExclusionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1327
+ if (output.statusCode >= 300) {
1328
+ return de_DescribeExclusionsCommandError(output, context);
1329
+ }
1330
+ const data = await parseBody(output.body, context);
1331
+ let contents = {};
1332
+ contents = (0, import_smithy_client._json)(data);
1333
+ const response = {
1334
+ $metadata: deserializeMetadata(output),
1335
+ ...contents
1336
+ };
1337
+ return response;
1338
+ }, "de_DescribeExclusionsCommand");
1339
+ var de_DescribeExclusionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1340
+ const parsedOutput = {
1341
+ ...output,
1342
+ body: await parseErrorBody(output.body, context)
1343
+ };
1344
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1345
+ switch (errorCode) {
1346
+ case "InternalException":
1347
+ case "com.amazonaws.inspector#InternalException":
1348
+ throw await de_InternalExceptionRes(parsedOutput, context);
1349
+ case "InvalidInputException":
1350
+ case "com.amazonaws.inspector#InvalidInputException":
1351
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1352
+ default:
1353
+ const parsedBody = parsedOutput.body;
1354
+ return throwDefaultError({
1355
+ output,
1356
+ parsedBody,
1357
+ errorCode
1358
+ });
1359
+ }
1360
+ }, "de_DescribeExclusionsCommandError");
1361
+ var de_DescribeFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1362
+ if (output.statusCode >= 300) {
1363
+ return de_DescribeFindingsCommandError(output, context);
1364
+ }
1365
+ const data = await parseBody(output.body, context);
1366
+ let contents = {};
1367
+ contents = de_DescribeFindingsResponse(data, context);
1368
+ const response = {
1369
+ $metadata: deserializeMetadata(output),
1370
+ ...contents
1371
+ };
1372
+ return response;
1373
+ }, "de_DescribeFindingsCommand");
1374
+ var de_DescribeFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1375
+ const parsedOutput = {
1376
+ ...output,
1377
+ body: await parseErrorBody(output.body, context)
1378
+ };
1379
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1380
+ switch (errorCode) {
1381
+ case "InternalException":
1382
+ case "com.amazonaws.inspector#InternalException":
1383
+ throw await de_InternalExceptionRes(parsedOutput, context);
1384
+ case "InvalidInputException":
1385
+ case "com.amazonaws.inspector#InvalidInputException":
1386
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1387
+ default:
1388
+ const parsedBody = parsedOutput.body;
1389
+ return throwDefaultError({
1390
+ output,
1391
+ parsedBody,
1392
+ errorCode
1393
+ });
1394
+ }
1395
+ }, "de_DescribeFindingsCommandError");
1396
+ var de_DescribeResourceGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1397
+ if (output.statusCode >= 300) {
1398
+ return de_DescribeResourceGroupsCommandError(output, context);
1399
+ }
1400
+ const data = await parseBody(output.body, context);
1401
+ let contents = {};
1402
+ contents = de_DescribeResourceGroupsResponse(data, context);
1403
+ const response = {
1404
+ $metadata: deserializeMetadata(output),
1405
+ ...contents
1406
+ };
1407
+ return response;
1408
+ }, "de_DescribeResourceGroupsCommand");
1409
+ var de_DescribeResourceGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1410
+ const parsedOutput = {
1411
+ ...output,
1412
+ body: await parseErrorBody(output.body, context)
1413
+ };
1414
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1415
+ switch (errorCode) {
1416
+ case "InternalException":
1417
+ case "com.amazonaws.inspector#InternalException":
1418
+ throw await de_InternalExceptionRes(parsedOutput, context);
1419
+ case "InvalidInputException":
1420
+ case "com.amazonaws.inspector#InvalidInputException":
1421
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1422
+ default:
1423
+ const parsedBody = parsedOutput.body;
1424
+ return throwDefaultError({
1425
+ output,
1426
+ parsedBody,
1427
+ errorCode
1428
+ });
1429
+ }
1430
+ }, "de_DescribeResourceGroupsCommandError");
1431
+ var de_DescribeRulesPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1432
+ if (output.statusCode >= 300) {
1433
+ return de_DescribeRulesPackagesCommandError(output, context);
1434
+ }
1435
+ const data = await parseBody(output.body, context);
1436
+ let contents = {};
1437
+ contents = (0, import_smithy_client._json)(data);
1438
+ const response = {
1439
+ $metadata: deserializeMetadata(output),
1440
+ ...contents
1441
+ };
1442
+ return response;
1443
+ }, "de_DescribeRulesPackagesCommand");
1444
+ var de_DescribeRulesPackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1445
+ const parsedOutput = {
1446
+ ...output,
1447
+ body: await parseErrorBody(output.body, context)
1448
+ };
1449
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1450
+ switch (errorCode) {
1451
+ case "InternalException":
1452
+ case "com.amazonaws.inspector#InternalException":
1453
+ throw await de_InternalExceptionRes(parsedOutput, context);
1454
+ case "InvalidInputException":
1455
+ case "com.amazonaws.inspector#InvalidInputException":
1456
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1457
+ default:
1458
+ const parsedBody = parsedOutput.body;
1459
+ return throwDefaultError({
1460
+ output,
1461
+ parsedBody,
1462
+ errorCode
1463
+ });
1464
+ }
1465
+ }, "de_DescribeRulesPackagesCommandError");
1466
+ var de_GetAssessmentReportCommand = /* @__PURE__ */ __name(async (output, context) => {
1467
+ if (output.statusCode >= 300) {
1468
+ return de_GetAssessmentReportCommandError(output, context);
1469
+ }
1470
+ const data = await parseBody(output.body, context);
1471
+ let contents = {};
1472
+ contents = (0, import_smithy_client._json)(data);
1473
+ const response = {
1474
+ $metadata: deserializeMetadata(output),
1475
+ ...contents
1476
+ };
1477
+ return response;
1478
+ }, "de_GetAssessmentReportCommand");
1479
+ var de_GetAssessmentReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
1480
+ const parsedOutput = {
1481
+ ...output,
1482
+ body: await parseErrorBody(output.body, context)
1483
+ };
1484
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1485
+ switch (errorCode) {
1486
+ case "AccessDeniedException":
1487
+ case "com.amazonaws.inspector#AccessDeniedException":
1488
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1489
+ case "AssessmentRunInProgressException":
1490
+ case "com.amazonaws.inspector#AssessmentRunInProgressException":
1491
+ throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
1492
+ case "InternalException":
1493
+ case "com.amazonaws.inspector#InternalException":
1494
+ throw await de_InternalExceptionRes(parsedOutput, context);
1495
+ case "InvalidInputException":
1496
+ case "com.amazonaws.inspector#InvalidInputException":
1497
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1498
+ case "NoSuchEntityException":
1499
+ case "com.amazonaws.inspector#NoSuchEntityException":
1500
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1501
+ case "ServiceTemporarilyUnavailableException":
1502
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1503
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
1504
+ case "UnsupportedFeatureException":
1505
+ case "com.amazonaws.inspector#UnsupportedFeatureException":
1506
+ throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
1507
+ default:
1508
+ const parsedBody = parsedOutput.body;
1509
+ return throwDefaultError({
1510
+ output,
1511
+ parsedBody,
1512
+ errorCode
1513
+ });
1514
+ }
1515
+ }, "de_GetAssessmentReportCommandError");
1516
+ var de_GetExclusionsPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
1517
+ if (output.statusCode >= 300) {
1518
+ return de_GetExclusionsPreviewCommandError(output, context);
1519
+ }
1520
+ const data = await parseBody(output.body, context);
1521
+ let contents = {};
1522
+ contents = (0, import_smithy_client._json)(data);
1523
+ const response = {
1524
+ $metadata: deserializeMetadata(output),
1525
+ ...contents
1526
+ };
1527
+ return response;
1528
+ }, "de_GetExclusionsPreviewCommand");
1529
+ var de_GetExclusionsPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
1530
+ const parsedOutput = {
1531
+ ...output,
1532
+ body: await parseErrorBody(output.body, context)
1533
+ };
1534
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1535
+ switch (errorCode) {
1536
+ case "AccessDeniedException":
1537
+ case "com.amazonaws.inspector#AccessDeniedException":
1538
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1539
+ case "InternalException":
1540
+ case "com.amazonaws.inspector#InternalException":
1541
+ throw await de_InternalExceptionRes(parsedOutput, context);
1542
+ case "InvalidInputException":
1543
+ case "com.amazonaws.inspector#InvalidInputException":
1544
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1545
+ case "NoSuchEntityException":
1546
+ case "com.amazonaws.inspector#NoSuchEntityException":
1547
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1548
+ default:
1549
+ const parsedBody = parsedOutput.body;
1550
+ return throwDefaultError({
1551
+ output,
1552
+ parsedBody,
1553
+ errorCode
1554
+ });
1555
+ }
1556
+ }, "de_GetExclusionsPreviewCommandError");
1557
+ var de_GetTelemetryMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
1558
+ if (output.statusCode >= 300) {
1559
+ return de_GetTelemetryMetadataCommandError(output, context);
1560
+ }
1561
+ const data = await parseBody(output.body, context);
1562
+ let contents = {};
1563
+ contents = (0, import_smithy_client._json)(data);
1564
+ const response = {
1565
+ $metadata: deserializeMetadata(output),
1566
+ ...contents
1567
+ };
1568
+ return response;
1569
+ }, "de_GetTelemetryMetadataCommand");
1570
+ var de_GetTelemetryMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
1571
+ const parsedOutput = {
1572
+ ...output,
1573
+ body: await parseErrorBody(output.body, context)
1574
+ };
1575
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1576
+ switch (errorCode) {
1577
+ case "AccessDeniedException":
1578
+ case "com.amazonaws.inspector#AccessDeniedException":
1579
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1580
+ case "InternalException":
1581
+ case "com.amazonaws.inspector#InternalException":
1582
+ throw await de_InternalExceptionRes(parsedOutput, context);
1583
+ case "InvalidInputException":
1584
+ case "com.amazonaws.inspector#InvalidInputException":
1585
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1586
+ case "NoSuchEntityException":
1587
+ case "com.amazonaws.inspector#NoSuchEntityException":
1588
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1589
+ default:
1590
+ const parsedBody = parsedOutput.body;
1591
+ return throwDefaultError({
1592
+ output,
1593
+ parsedBody,
1594
+ errorCode
1595
+ });
1596
+ }
1597
+ }, "de_GetTelemetryMetadataCommandError");
1598
+ var de_ListAssessmentRunAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1599
+ if (output.statusCode >= 300) {
1600
+ return de_ListAssessmentRunAgentsCommandError(output, context);
1601
+ }
1602
+ const data = await parseBody(output.body, context);
1603
+ let contents = {};
1604
+ contents = (0, import_smithy_client._json)(data);
1605
+ const response = {
1606
+ $metadata: deserializeMetadata(output),
1607
+ ...contents
1608
+ };
1609
+ return response;
1610
+ }, "de_ListAssessmentRunAgentsCommand");
1611
+ var de_ListAssessmentRunAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1612
+ const parsedOutput = {
1613
+ ...output,
1614
+ body: await parseErrorBody(output.body, context)
1615
+ };
1616
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1617
+ switch (errorCode) {
1618
+ case "AccessDeniedException":
1619
+ case "com.amazonaws.inspector#AccessDeniedException":
1620
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1621
+ case "InternalException":
1622
+ case "com.amazonaws.inspector#InternalException":
1623
+ throw await de_InternalExceptionRes(parsedOutput, context);
1624
+ case "InvalidInputException":
1625
+ case "com.amazonaws.inspector#InvalidInputException":
1626
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1627
+ case "NoSuchEntityException":
1628
+ case "com.amazonaws.inspector#NoSuchEntityException":
1629
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1630
+ default:
1631
+ const parsedBody = parsedOutput.body;
1632
+ return throwDefaultError({
1633
+ output,
1634
+ parsedBody,
1635
+ errorCode
1636
+ });
1637
+ }
1638
+ }, "de_ListAssessmentRunAgentsCommandError");
1639
+ var de_ListAssessmentRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
1640
+ if (output.statusCode >= 300) {
1641
+ return de_ListAssessmentRunsCommandError(output, context);
1642
+ }
1643
+ const data = await parseBody(output.body, context);
1644
+ let contents = {};
1645
+ contents = (0, import_smithy_client._json)(data);
1646
+ const response = {
1647
+ $metadata: deserializeMetadata(output),
1648
+ ...contents
1649
+ };
1650
+ return response;
1651
+ }, "de_ListAssessmentRunsCommand");
1652
+ var de_ListAssessmentRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1653
+ const parsedOutput = {
1654
+ ...output,
1655
+ body: await parseErrorBody(output.body, context)
1656
+ };
1657
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1658
+ switch (errorCode) {
1659
+ case "AccessDeniedException":
1660
+ case "com.amazonaws.inspector#AccessDeniedException":
1661
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1662
+ case "InternalException":
1663
+ case "com.amazonaws.inspector#InternalException":
1664
+ throw await de_InternalExceptionRes(parsedOutput, context);
1665
+ case "InvalidInputException":
1666
+ case "com.amazonaws.inspector#InvalidInputException":
1667
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1668
+ case "NoSuchEntityException":
1669
+ case "com.amazonaws.inspector#NoSuchEntityException":
1670
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1671
+ default:
1672
+ const parsedBody = parsedOutput.body;
1673
+ return throwDefaultError({
1674
+ output,
1675
+ parsedBody,
1676
+ errorCode
1677
+ });
1678
+ }
1679
+ }, "de_ListAssessmentRunsCommandError");
1680
+ var de_ListAssessmentTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1681
+ if (output.statusCode >= 300) {
1682
+ return de_ListAssessmentTargetsCommandError(output, context);
1683
+ }
1684
+ const data = await parseBody(output.body, context);
1685
+ let contents = {};
1686
+ contents = (0, import_smithy_client._json)(data);
1687
+ const response = {
1688
+ $metadata: deserializeMetadata(output),
1689
+ ...contents
1690
+ };
1691
+ return response;
1692
+ }, "de_ListAssessmentTargetsCommand");
1693
+ var de_ListAssessmentTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1694
+ const parsedOutput = {
1695
+ ...output,
1696
+ body: await parseErrorBody(output.body, context)
1697
+ };
1698
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1699
+ switch (errorCode) {
1700
+ case "AccessDeniedException":
1701
+ case "com.amazonaws.inspector#AccessDeniedException":
1702
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1703
+ case "InternalException":
1704
+ case "com.amazonaws.inspector#InternalException":
1705
+ throw await de_InternalExceptionRes(parsedOutput, context);
1706
+ case "InvalidInputException":
1707
+ case "com.amazonaws.inspector#InvalidInputException":
1708
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1709
+ default:
1710
+ const parsedBody = parsedOutput.body;
1711
+ return throwDefaultError({
1712
+ output,
1713
+ parsedBody,
1714
+ errorCode
1715
+ });
1716
+ }
1717
+ }, "de_ListAssessmentTargetsCommandError");
1718
+ var de_ListAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1719
+ if (output.statusCode >= 300) {
1720
+ return de_ListAssessmentTemplatesCommandError(output, context);
1721
+ }
1722
+ const data = await parseBody(output.body, context);
1723
+ let contents = {};
1724
+ contents = (0, import_smithy_client._json)(data);
1725
+ const response = {
1726
+ $metadata: deserializeMetadata(output),
1727
+ ...contents
1728
+ };
1729
+ return response;
1730
+ }, "de_ListAssessmentTemplatesCommand");
1731
+ var de_ListAssessmentTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1732
+ const parsedOutput = {
1733
+ ...output,
1734
+ body: await parseErrorBody(output.body, context)
1735
+ };
1736
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1737
+ switch (errorCode) {
1738
+ case "AccessDeniedException":
1739
+ case "com.amazonaws.inspector#AccessDeniedException":
1740
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1741
+ case "InternalException":
1742
+ case "com.amazonaws.inspector#InternalException":
1743
+ throw await de_InternalExceptionRes(parsedOutput, context);
1744
+ case "InvalidInputException":
1745
+ case "com.amazonaws.inspector#InvalidInputException":
1746
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1747
+ case "NoSuchEntityException":
1748
+ case "com.amazonaws.inspector#NoSuchEntityException":
1749
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1750
+ default:
1751
+ const parsedBody = parsedOutput.body;
1752
+ return throwDefaultError({
1753
+ output,
1754
+ parsedBody,
1755
+ errorCode
1756
+ });
1757
+ }
1758
+ }, "de_ListAssessmentTemplatesCommandError");
1759
+ var de_ListEventSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1760
+ if (output.statusCode >= 300) {
1761
+ return de_ListEventSubscriptionsCommandError(output, context);
1762
+ }
1763
+ const data = await parseBody(output.body, context);
1764
+ let contents = {};
1765
+ contents = de_ListEventSubscriptionsResponse(data, context);
1766
+ const response = {
1767
+ $metadata: deserializeMetadata(output),
1768
+ ...contents
1769
+ };
1770
+ return response;
1771
+ }, "de_ListEventSubscriptionsCommand");
1772
+ var de_ListEventSubscriptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1773
+ const parsedOutput = {
1774
+ ...output,
1775
+ body: await parseErrorBody(output.body, context)
1776
+ };
1777
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1778
+ switch (errorCode) {
1779
+ case "AccessDeniedException":
1780
+ case "com.amazonaws.inspector#AccessDeniedException":
1781
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1782
+ case "InternalException":
1783
+ case "com.amazonaws.inspector#InternalException":
1784
+ throw await de_InternalExceptionRes(parsedOutput, context);
1785
+ case "InvalidInputException":
1786
+ case "com.amazonaws.inspector#InvalidInputException":
1787
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1788
+ case "NoSuchEntityException":
1789
+ case "com.amazonaws.inspector#NoSuchEntityException":
1790
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1791
+ default:
1792
+ const parsedBody = parsedOutput.body;
1793
+ return throwDefaultError({
1794
+ output,
1795
+ parsedBody,
1796
+ errorCode
1797
+ });
1798
+ }
1799
+ }, "de_ListEventSubscriptionsCommandError");
1800
+ var de_ListExclusionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1801
+ if (output.statusCode >= 300) {
1802
+ return de_ListExclusionsCommandError(output, context);
1803
+ }
1804
+ const data = await parseBody(output.body, context);
1805
+ let contents = {};
1806
+ contents = (0, import_smithy_client._json)(data);
1807
+ const response = {
1808
+ $metadata: deserializeMetadata(output),
1809
+ ...contents
1810
+ };
1811
+ return response;
1812
+ }, "de_ListExclusionsCommand");
1813
+ var de_ListExclusionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1814
+ const parsedOutput = {
1815
+ ...output,
1816
+ body: await parseErrorBody(output.body, context)
1817
+ };
1818
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1819
+ switch (errorCode) {
1820
+ case "AccessDeniedException":
1821
+ case "com.amazonaws.inspector#AccessDeniedException":
1822
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1823
+ case "InternalException":
1824
+ case "com.amazonaws.inspector#InternalException":
1825
+ throw await de_InternalExceptionRes(parsedOutput, context);
1826
+ case "InvalidInputException":
1827
+ case "com.amazonaws.inspector#InvalidInputException":
1828
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1829
+ case "NoSuchEntityException":
1830
+ case "com.amazonaws.inspector#NoSuchEntityException":
1831
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1832
+ default:
1833
+ const parsedBody = parsedOutput.body;
1834
+ return throwDefaultError({
1835
+ output,
1836
+ parsedBody,
1837
+ errorCode
1838
+ });
1839
+ }
1840
+ }, "de_ListExclusionsCommandError");
1841
+ var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1842
+ if (output.statusCode >= 300) {
1843
+ return de_ListFindingsCommandError(output, context);
1844
+ }
1845
+ const data = await parseBody(output.body, context);
1846
+ let contents = {};
1847
+ contents = (0, import_smithy_client._json)(data);
1848
+ const response = {
1849
+ $metadata: deserializeMetadata(output),
1850
+ ...contents
1851
+ };
1852
+ return response;
1853
+ }, "de_ListFindingsCommand");
1854
+ var de_ListFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1855
+ const parsedOutput = {
1856
+ ...output,
1857
+ body: await parseErrorBody(output.body, context)
1858
+ };
1859
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1860
+ switch (errorCode) {
1861
+ case "AccessDeniedException":
1862
+ case "com.amazonaws.inspector#AccessDeniedException":
1863
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1864
+ case "InternalException":
1865
+ case "com.amazonaws.inspector#InternalException":
1866
+ throw await de_InternalExceptionRes(parsedOutput, context);
1867
+ case "InvalidInputException":
1868
+ case "com.amazonaws.inspector#InvalidInputException":
1869
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1870
+ case "NoSuchEntityException":
1871
+ case "com.amazonaws.inspector#NoSuchEntityException":
1872
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1873
+ default:
1874
+ const parsedBody = parsedOutput.body;
1875
+ return throwDefaultError({
1876
+ output,
1877
+ parsedBody,
1878
+ errorCode
1879
+ });
1880
+ }
1881
+ }, "de_ListFindingsCommandError");
1882
+ var de_ListRulesPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1883
+ if (output.statusCode >= 300) {
1884
+ return de_ListRulesPackagesCommandError(output, context);
1885
+ }
1886
+ const data = await parseBody(output.body, context);
1887
+ let contents = {};
1888
+ contents = (0, import_smithy_client._json)(data);
1889
+ const response = {
1890
+ $metadata: deserializeMetadata(output),
1891
+ ...contents
1892
+ };
1893
+ return response;
1894
+ }, "de_ListRulesPackagesCommand");
1895
+ var de_ListRulesPackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1896
+ const parsedOutput = {
1897
+ ...output,
1898
+ body: await parseErrorBody(output.body, context)
1899
+ };
1900
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1901
+ switch (errorCode) {
1902
+ case "AccessDeniedException":
1903
+ case "com.amazonaws.inspector#AccessDeniedException":
1904
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1905
+ case "InternalException":
1906
+ case "com.amazonaws.inspector#InternalException":
1907
+ throw await de_InternalExceptionRes(parsedOutput, context);
1908
+ case "InvalidInputException":
1909
+ case "com.amazonaws.inspector#InvalidInputException":
1910
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1911
+ default:
1912
+ const parsedBody = parsedOutput.body;
1913
+ return throwDefaultError({
1914
+ output,
1915
+ parsedBody,
1916
+ errorCode
1917
+ });
1918
+ }
1919
+ }, "de_ListRulesPackagesCommandError");
1920
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1921
+ if (output.statusCode >= 300) {
1922
+ return de_ListTagsForResourceCommandError(output, context);
1923
+ }
1924
+ const data = await parseBody(output.body, context);
1925
+ let contents = {};
1926
+ contents = (0, import_smithy_client._json)(data);
1927
+ const response = {
1928
+ $metadata: deserializeMetadata(output),
1929
+ ...contents
1930
+ };
1931
+ return response;
1932
+ }, "de_ListTagsForResourceCommand");
1933
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1934
+ const parsedOutput = {
1935
+ ...output,
1936
+ body: await parseErrorBody(output.body, context)
1937
+ };
1938
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1939
+ switch (errorCode) {
1940
+ case "AccessDeniedException":
1941
+ case "com.amazonaws.inspector#AccessDeniedException":
1942
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1943
+ case "InternalException":
1944
+ case "com.amazonaws.inspector#InternalException":
1945
+ throw await de_InternalExceptionRes(parsedOutput, context);
1946
+ case "InvalidInputException":
1947
+ case "com.amazonaws.inspector#InvalidInputException":
1948
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1949
+ case "NoSuchEntityException":
1950
+ case "com.amazonaws.inspector#NoSuchEntityException":
1951
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1952
+ default:
1953
+ const parsedBody = parsedOutput.body;
1954
+ return throwDefaultError({
1955
+ output,
1956
+ parsedBody,
1957
+ errorCode
1958
+ });
1959
+ }
1960
+ }, "de_ListTagsForResourceCommandError");
1961
+ var de_PreviewAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1962
+ if (output.statusCode >= 300) {
1963
+ return de_PreviewAgentsCommandError(output, context);
1964
+ }
1965
+ const data = await parseBody(output.body, context);
1966
+ let contents = {};
1967
+ contents = (0, import_smithy_client._json)(data);
1968
+ const response = {
1969
+ $metadata: deserializeMetadata(output),
1970
+ ...contents
1971
+ };
1972
+ return response;
1973
+ }, "de_PreviewAgentsCommand");
1974
+ var de_PreviewAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1975
+ const parsedOutput = {
1976
+ ...output,
1977
+ body: await parseErrorBody(output.body, context)
1978
+ };
1979
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1980
+ switch (errorCode) {
1981
+ case "AccessDeniedException":
1982
+ case "com.amazonaws.inspector#AccessDeniedException":
1983
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1984
+ case "InternalException":
1985
+ case "com.amazonaws.inspector#InternalException":
1986
+ throw await de_InternalExceptionRes(parsedOutput, context);
1987
+ case "InvalidCrossAccountRoleException":
1988
+ case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
1989
+ throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
1990
+ case "InvalidInputException":
1991
+ case "com.amazonaws.inspector#InvalidInputException":
1992
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1993
+ case "NoSuchEntityException":
1994
+ case "com.amazonaws.inspector#NoSuchEntityException":
1995
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1996
+ default:
1997
+ const parsedBody = parsedOutput.body;
1998
+ return throwDefaultError({
1999
+ output,
2000
+ parsedBody,
2001
+ errorCode
2002
+ });
2003
+ }
2004
+ }, "de_PreviewAgentsCommandError");
2005
+ var de_RegisterCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
2006
+ if (output.statusCode >= 300) {
2007
+ return de_RegisterCrossAccountAccessRoleCommandError(output, context);
2008
+ }
2009
+ await (0, import_smithy_client.collectBody)(output.body, context);
2010
+ const response = {
2011
+ $metadata: deserializeMetadata(output)
2012
+ };
2013
+ return response;
2014
+ }, "de_RegisterCrossAccountAccessRoleCommand");
2015
+ var de_RegisterCrossAccountAccessRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2016
+ const parsedOutput = {
2017
+ ...output,
2018
+ body: await parseErrorBody(output.body, context)
2019
+ };
2020
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2021
+ switch (errorCode) {
2022
+ case "AccessDeniedException":
2023
+ case "com.amazonaws.inspector#AccessDeniedException":
2024
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2025
+ case "InternalException":
2026
+ case "com.amazonaws.inspector#InternalException":
2027
+ throw await de_InternalExceptionRes(parsedOutput, context);
2028
+ case "InvalidCrossAccountRoleException":
2029
+ case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
2030
+ throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
2031
+ case "InvalidInputException":
2032
+ case "com.amazonaws.inspector#InvalidInputException":
2033
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2034
+ case "ServiceTemporarilyUnavailableException":
2035
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
2036
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
2037
+ default:
2038
+ const parsedBody = parsedOutput.body;
2039
+ return throwDefaultError({
2040
+ output,
2041
+ parsedBody,
2042
+ errorCode
2043
+ });
2044
+ }
2045
+ }, "de_RegisterCrossAccountAccessRoleCommandError");
2046
+ var de_RemoveAttributesFromFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2047
+ if (output.statusCode >= 300) {
2048
+ return de_RemoveAttributesFromFindingsCommandError(output, context);
2049
+ }
2050
+ const data = await parseBody(output.body, context);
2051
+ let contents = {};
2052
+ contents = (0, import_smithy_client._json)(data);
2053
+ const response = {
2054
+ $metadata: deserializeMetadata(output),
2055
+ ...contents
2056
+ };
2057
+ return response;
2058
+ }, "de_RemoveAttributesFromFindingsCommand");
2059
+ var de_RemoveAttributesFromFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2060
+ const parsedOutput = {
2061
+ ...output,
2062
+ body: await parseErrorBody(output.body, context)
2063
+ };
2064
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2065
+ switch (errorCode) {
2066
+ case "AccessDeniedException":
2067
+ case "com.amazonaws.inspector#AccessDeniedException":
2068
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2069
+ case "InternalException":
2070
+ case "com.amazonaws.inspector#InternalException":
2071
+ throw await de_InternalExceptionRes(parsedOutput, context);
2072
+ case "InvalidInputException":
2073
+ case "com.amazonaws.inspector#InvalidInputException":
2074
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2075
+ case "NoSuchEntityException":
2076
+ case "com.amazonaws.inspector#NoSuchEntityException":
2077
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
2078
+ case "ServiceTemporarilyUnavailableException":
2079
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
2080
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
2081
+ default:
2082
+ const parsedBody = parsedOutput.body;
2083
+ return throwDefaultError({
2084
+ output,
2085
+ parsedBody,
2086
+ errorCode
2087
+ });
2088
+ }
2089
+ }, "de_RemoveAttributesFromFindingsCommandError");
2090
+ var de_SetTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2091
+ if (output.statusCode >= 300) {
2092
+ return de_SetTagsForResourceCommandError(output, context);
2093
+ }
2094
+ await (0, import_smithy_client.collectBody)(output.body, context);
2095
+ const response = {
2096
+ $metadata: deserializeMetadata(output)
2097
+ };
2098
+ return response;
2099
+ }, "de_SetTagsForResourceCommand");
2100
+ var de_SetTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2101
+ const parsedOutput = {
2102
+ ...output,
2103
+ body: await parseErrorBody(output.body, context)
2104
+ };
2105
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2106
+ switch (errorCode) {
2107
+ case "AccessDeniedException":
2108
+ case "com.amazonaws.inspector#AccessDeniedException":
2109
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2110
+ case "InternalException":
2111
+ case "com.amazonaws.inspector#InternalException":
2112
+ throw await de_InternalExceptionRes(parsedOutput, context);
2113
+ case "InvalidInputException":
2114
+ case "com.amazonaws.inspector#InvalidInputException":
2115
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2116
+ case "NoSuchEntityException":
2117
+ case "com.amazonaws.inspector#NoSuchEntityException":
2118
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
2119
+ case "ServiceTemporarilyUnavailableException":
2120
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
2121
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
2122
+ default:
2123
+ const parsedBody = parsedOutput.body;
2124
+ return throwDefaultError({
2125
+ output,
2126
+ parsedBody,
2127
+ errorCode
2128
+ });
2129
+ }
2130
+ }, "de_SetTagsForResourceCommandError");
2131
+ var de_StartAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
2132
+ if (output.statusCode >= 300) {
2133
+ return de_StartAssessmentRunCommandError(output, context);
2134
+ }
2135
+ const data = await parseBody(output.body, context);
2136
+ let contents = {};
2137
+ contents = (0, import_smithy_client._json)(data);
2138
+ const response = {
2139
+ $metadata: deserializeMetadata(output),
2140
+ ...contents
2141
+ };
2142
+ return response;
2143
+ }, "de_StartAssessmentRunCommand");
2144
+ var de_StartAssessmentRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
2145
+ const parsedOutput = {
2146
+ ...output,
2147
+ body: await parseErrorBody(output.body, context)
2148
+ };
2149
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2150
+ switch (errorCode) {
2151
+ case "AccessDeniedException":
2152
+ case "com.amazonaws.inspector#AccessDeniedException":
2153
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2154
+ case "AgentsAlreadyRunningAssessmentException":
2155
+ case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException":
2156
+ throw await de_AgentsAlreadyRunningAssessmentExceptionRes(parsedOutput, context);
2157
+ case "InternalException":
2158
+ case "com.amazonaws.inspector#InternalException":
2159
+ throw await de_InternalExceptionRes(parsedOutput, context);
2160
+ case "InvalidCrossAccountRoleException":
2161
+ case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
2162
+ throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
2163
+ case "InvalidInputException":
2164
+ case "com.amazonaws.inspector#InvalidInputException":
2165
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2166
+ case "LimitExceededException":
2167
+ case "com.amazonaws.inspector#LimitExceededException":
2168
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2169
+ case "NoSuchEntityException":
2170
+ case "com.amazonaws.inspector#NoSuchEntityException":
2171
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
2172
+ case "ServiceTemporarilyUnavailableException":
2173
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
2174
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
2175
+ default:
2176
+ const parsedBody = parsedOutput.body;
2177
+ return throwDefaultError({
2178
+ output,
2179
+ parsedBody,
2180
+ errorCode
2181
+ });
2182
+ }
2183
+ }, "de_StartAssessmentRunCommandError");
2184
+ var de_StopAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
2185
+ if (output.statusCode >= 300) {
2186
+ return de_StopAssessmentRunCommandError(output, context);
2187
+ }
2188
+ await (0, import_smithy_client.collectBody)(output.body, context);
2189
+ const response = {
2190
+ $metadata: deserializeMetadata(output)
2191
+ };
2192
+ return response;
2193
+ }, "de_StopAssessmentRunCommand");
2194
+ var de_StopAssessmentRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
2195
+ const parsedOutput = {
2196
+ ...output,
2197
+ body: await parseErrorBody(output.body, context)
2198
+ };
2199
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2200
+ switch (errorCode) {
2201
+ case "AccessDeniedException":
2202
+ case "com.amazonaws.inspector#AccessDeniedException":
2203
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2204
+ case "InternalException":
2205
+ case "com.amazonaws.inspector#InternalException":
2206
+ throw await de_InternalExceptionRes(parsedOutput, context);
2207
+ case "InvalidInputException":
2208
+ case "com.amazonaws.inspector#InvalidInputException":
2209
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2210
+ case "NoSuchEntityException":
2211
+ case "com.amazonaws.inspector#NoSuchEntityException":
2212
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
2213
+ case "ServiceTemporarilyUnavailableException":
2214
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
2215
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
2216
+ default:
2217
+ const parsedBody = parsedOutput.body;
2218
+ return throwDefaultError({
2219
+ output,
2220
+ parsedBody,
2221
+ errorCode
2222
+ });
2223
+ }
2224
+ }, "de_StopAssessmentRunCommandError");
2225
+ var de_SubscribeToEventCommand = /* @__PURE__ */ __name(async (output, context) => {
2226
+ if (output.statusCode >= 300) {
2227
+ return de_SubscribeToEventCommandError(output, context);
2228
+ }
2229
+ await (0, import_smithy_client.collectBody)(output.body, context);
2230
+ const response = {
2231
+ $metadata: deserializeMetadata(output)
2232
+ };
2233
+ return response;
2234
+ }, "de_SubscribeToEventCommand");
2235
+ var de_SubscribeToEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
2236
+ const parsedOutput = {
2237
+ ...output,
2238
+ body: await parseErrorBody(output.body, context)
2239
+ };
2240
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2241
+ switch (errorCode) {
2242
+ case "AccessDeniedException":
2243
+ case "com.amazonaws.inspector#AccessDeniedException":
2244
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2245
+ case "InternalException":
2246
+ case "com.amazonaws.inspector#InternalException":
2247
+ throw await de_InternalExceptionRes(parsedOutput, context);
2248
+ case "InvalidInputException":
2249
+ case "com.amazonaws.inspector#InvalidInputException":
2250
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2251
+ case "LimitExceededException":
2252
+ case "com.amazonaws.inspector#LimitExceededException":
2253
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2254
+ case "NoSuchEntityException":
2255
+ case "com.amazonaws.inspector#NoSuchEntityException":
2256
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
2257
+ case "ServiceTemporarilyUnavailableException":
2258
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
2259
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
2260
+ default:
2261
+ const parsedBody = parsedOutput.body;
2262
+ return throwDefaultError({
2263
+ output,
2264
+ parsedBody,
2265
+ errorCode
2266
+ });
2267
+ }
2268
+ }, "de_SubscribeToEventCommandError");
2269
+ var de_UnsubscribeFromEventCommand = /* @__PURE__ */ __name(async (output, context) => {
2270
+ if (output.statusCode >= 300) {
2271
+ return de_UnsubscribeFromEventCommandError(output, context);
2272
+ }
2273
+ await (0, import_smithy_client.collectBody)(output.body, context);
2274
+ const response = {
2275
+ $metadata: deserializeMetadata(output)
2276
+ };
2277
+ return response;
2278
+ }, "de_UnsubscribeFromEventCommand");
2279
+ var de_UnsubscribeFromEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
2280
+ const parsedOutput = {
2281
+ ...output,
2282
+ body: await parseErrorBody(output.body, context)
2283
+ };
2284
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2285
+ switch (errorCode) {
2286
+ case "AccessDeniedException":
2287
+ case "com.amazonaws.inspector#AccessDeniedException":
2288
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2289
+ case "InternalException":
2290
+ case "com.amazonaws.inspector#InternalException":
2291
+ throw await de_InternalExceptionRes(parsedOutput, context);
2292
+ case "InvalidInputException":
2293
+ case "com.amazonaws.inspector#InvalidInputException":
2294
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2295
+ case "NoSuchEntityException":
2296
+ case "com.amazonaws.inspector#NoSuchEntityException":
2297
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
2298
+ case "ServiceTemporarilyUnavailableException":
2299
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
2300
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
2301
+ default:
2302
+ const parsedBody = parsedOutput.body;
2303
+ return throwDefaultError({
2304
+ output,
2305
+ parsedBody,
2306
+ errorCode
2307
+ });
2308
+ }
2309
+ }, "de_UnsubscribeFromEventCommandError");
2310
+ var de_UpdateAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
2311
+ if (output.statusCode >= 300) {
2312
+ return de_UpdateAssessmentTargetCommandError(output, context);
2313
+ }
2314
+ await (0, import_smithy_client.collectBody)(output.body, context);
2315
+ const response = {
2316
+ $metadata: deserializeMetadata(output)
2317
+ };
2318
+ return response;
2319
+ }, "de_UpdateAssessmentTargetCommand");
2320
+ var de_UpdateAssessmentTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2321
+ const parsedOutput = {
2322
+ ...output,
2323
+ body: await parseErrorBody(output.body, context)
2324
+ };
2325
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2326
+ switch (errorCode) {
2327
+ case "AccessDeniedException":
2328
+ case "com.amazonaws.inspector#AccessDeniedException":
2329
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2330
+ case "InternalException":
2331
+ case "com.amazonaws.inspector#InternalException":
2332
+ throw await de_InternalExceptionRes(parsedOutput, context);
2333
+ case "InvalidInputException":
2334
+ case "com.amazonaws.inspector#InvalidInputException":
2335
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
2336
+ case "NoSuchEntityException":
2337
+ case "com.amazonaws.inspector#NoSuchEntityException":
2338
+ throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
2339
+ case "ServiceTemporarilyUnavailableException":
2340
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
2341
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
2342
+ default:
2343
+ const parsedBody = parsedOutput.body;
2344
+ return throwDefaultError({
2345
+ output,
2346
+ parsedBody,
2347
+ errorCode
2348
+ });
2349
+ }
2350
+ }, "de_UpdateAssessmentTargetCommandError");
2351
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2352
+ const body = parsedOutput.body;
2353
+ const deserialized = (0, import_smithy_client._json)(body);
2354
+ const exception = new AccessDeniedException({
2355
+ $metadata: deserializeMetadata(parsedOutput),
2356
+ ...deserialized
2357
+ });
2358
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2359
+ }, "de_AccessDeniedExceptionRes");
2360
+ var de_AgentsAlreadyRunningAssessmentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2361
+ const body = parsedOutput.body;
2362
+ const deserialized = (0, import_smithy_client._json)(body);
2363
+ const exception = new AgentsAlreadyRunningAssessmentException({
2364
+ $metadata: deserializeMetadata(parsedOutput),
2365
+ ...deserialized
2366
+ });
2367
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2368
+ }, "de_AgentsAlreadyRunningAssessmentExceptionRes");
2369
+ var de_AssessmentRunInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2370
+ const body = parsedOutput.body;
2371
+ const deserialized = (0, import_smithy_client._json)(body);
2372
+ const exception = new AssessmentRunInProgressException({
2373
+ $metadata: deserializeMetadata(parsedOutput),
2374
+ ...deserialized
2375
+ });
2376
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2377
+ }, "de_AssessmentRunInProgressExceptionRes");
2378
+ var de_InternalExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2379
+ const body = parsedOutput.body;
2380
+ const deserialized = (0, import_smithy_client._json)(body);
2381
+ const exception = new InternalException({
2382
+ $metadata: deserializeMetadata(parsedOutput),
2383
+ ...deserialized
2384
+ });
2385
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2386
+ }, "de_InternalExceptionRes");
2387
+ var de_InvalidCrossAccountRoleExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2388
+ const body = parsedOutput.body;
2389
+ const deserialized = (0, import_smithy_client._json)(body);
2390
+ const exception = new InvalidCrossAccountRoleException({
2391
+ $metadata: deserializeMetadata(parsedOutput),
2392
+ ...deserialized
2393
+ });
2394
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2395
+ }, "de_InvalidCrossAccountRoleExceptionRes");
2396
+ var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2397
+ const body = parsedOutput.body;
2398
+ const deserialized = (0, import_smithy_client._json)(body);
2399
+ const exception = new InvalidInputException({
2400
+ $metadata: deserializeMetadata(parsedOutput),
2401
+ ...deserialized
2402
+ });
2403
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2404
+ }, "de_InvalidInputExceptionRes");
2405
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2406
+ const body = parsedOutput.body;
2407
+ const deserialized = (0, import_smithy_client._json)(body);
2408
+ const exception = new LimitExceededException({
2409
+ $metadata: deserializeMetadata(parsedOutput),
2410
+ ...deserialized
2411
+ });
2412
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2413
+ }, "de_LimitExceededExceptionRes");
2414
+ var de_NoSuchEntityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2415
+ const body = parsedOutput.body;
2416
+ const deserialized = (0, import_smithy_client._json)(body);
2417
+ const exception = new NoSuchEntityException({
2418
+ $metadata: deserializeMetadata(parsedOutput),
2419
+ ...deserialized
2420
+ });
2421
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2422
+ }, "de_NoSuchEntityExceptionRes");
2423
+ var de_PreviewGenerationInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2424
+ const body = parsedOutput.body;
2425
+ const deserialized = (0, import_smithy_client._json)(body);
2426
+ const exception = new PreviewGenerationInProgressException({
2427
+ $metadata: deserializeMetadata(parsedOutput),
2428
+ ...deserialized
2429
+ });
2430
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2431
+ }, "de_PreviewGenerationInProgressExceptionRes");
2432
+ var de_ServiceTemporarilyUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2433
+ const body = parsedOutput.body;
2434
+ const deserialized = (0, import_smithy_client._json)(body);
2435
+ const exception = new ServiceTemporarilyUnavailableException({
2436
+ $metadata: deserializeMetadata(parsedOutput),
2437
+ ...deserialized
2438
+ });
2439
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2440
+ }, "de_ServiceTemporarilyUnavailableExceptionRes");
2441
+ var de_UnsupportedFeatureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2442
+ const body = parsedOutput.body;
2443
+ const deserialized = (0, import_smithy_client._json)(body);
2444
+ const exception = new UnsupportedFeatureException({
2445
+ $metadata: deserializeMetadata(parsedOutput),
2446
+ ...deserialized
2447
+ });
2448
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2449
+ }, "de_UnsupportedFeatureExceptionRes");
2450
+ var se_AssessmentRunFilter = /* @__PURE__ */ __name((input, context) => {
2451
+ return (0, import_smithy_client.take)(input, {
2452
+ completionTimeRange: (_) => se_TimestampRange(_, context),
2453
+ durationRange: import_smithy_client._json,
2454
+ namePattern: [],
2455
+ rulesPackageArns: import_smithy_client._json,
2456
+ startTimeRange: (_) => se_TimestampRange(_, context),
2457
+ stateChangeTimeRange: (_) => se_TimestampRange(_, context),
2458
+ states: import_smithy_client._json
2459
+ });
2460
+ }, "se_AssessmentRunFilter");
2461
+ var se_FindingFilter = /* @__PURE__ */ __name((input, context) => {
2462
+ return (0, import_smithy_client.take)(input, {
2463
+ agentIds: import_smithy_client._json,
2464
+ attributes: import_smithy_client._json,
2465
+ autoScalingGroups: import_smithy_client._json,
2466
+ creationTimeRange: (_) => se_TimestampRange(_, context),
2467
+ ruleNames: import_smithy_client._json,
2468
+ rulesPackageArns: import_smithy_client._json,
2469
+ severities: import_smithy_client._json,
2470
+ userAttributes: import_smithy_client._json
2471
+ });
2472
+ }, "se_FindingFilter");
2473
+ var se_ListAssessmentRunsRequest = /* @__PURE__ */ __name((input, context) => {
2474
+ return (0, import_smithy_client.take)(input, {
2475
+ assessmentTemplateArns: import_smithy_client._json,
2476
+ filter: (_) => se_AssessmentRunFilter(_, context),
2477
+ maxResults: [],
2478
+ nextToken: []
2479
+ });
2480
+ }, "se_ListAssessmentRunsRequest");
2481
+ var se_ListFindingsRequest = /* @__PURE__ */ __name((input, context) => {
2482
+ return (0, import_smithy_client.take)(input, {
2483
+ assessmentRunArns: import_smithy_client._json,
2484
+ filter: (_) => se_FindingFilter(_, context),
2485
+ maxResults: [],
2486
+ nextToken: []
2487
+ });
2488
+ }, "se_ListFindingsRequest");
2489
+ var se_TimestampRange = /* @__PURE__ */ __name((input, context) => {
2490
+ return (0, import_smithy_client.take)(input, {
2491
+ beginDate: (_) => Math.round(_.getTime() / 1e3),
2492
+ endDate: (_) => Math.round(_.getTime() / 1e3)
2493
+ });
2494
+ }, "se_TimestampRange");
2495
+ var de_AssessmentRun = /* @__PURE__ */ __name((output, context) => {
2496
+ return (0, import_smithy_client.take)(output, {
2497
+ arn: import_smithy_client.expectString,
2498
+ assessmentTemplateArn: import_smithy_client.expectString,
2499
+ completedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2500
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2501
+ dataCollected: import_smithy_client.expectBoolean,
2502
+ durationInSeconds: import_smithy_client.expectInt32,
2503
+ findingCounts: import_smithy_client._json,
2504
+ name: import_smithy_client.expectString,
2505
+ notifications: (_) => de_AssessmentRunNotificationList(_, context),
2506
+ rulesPackageArns: import_smithy_client._json,
2507
+ startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2508
+ state: import_smithy_client.expectString,
2509
+ stateChangedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2510
+ stateChanges: (_) => de_AssessmentRunStateChangeList(_, context),
2511
+ userAttributesForFindings: import_smithy_client._json
2512
+ });
2513
+ }, "de_AssessmentRun");
2514
+ var de_AssessmentRunList = /* @__PURE__ */ __name((output, context) => {
2515
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2516
+ return de_AssessmentRun(entry, context);
2517
+ });
2518
+ return retVal;
2519
+ }, "de_AssessmentRunList");
2520
+ var de_AssessmentRunNotification = /* @__PURE__ */ __name((output, context) => {
2521
+ return (0, import_smithy_client.take)(output, {
2522
+ date: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2523
+ error: import_smithy_client.expectBoolean,
2524
+ event: import_smithy_client.expectString,
2525
+ message: import_smithy_client.expectString,
2526
+ snsPublishStatusCode: import_smithy_client.expectString,
2527
+ snsTopicArn: import_smithy_client.expectString
2528
+ });
2529
+ }, "de_AssessmentRunNotification");
2530
+ var de_AssessmentRunNotificationList = /* @__PURE__ */ __name((output, context) => {
2531
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2532
+ return de_AssessmentRunNotification(entry, context);
2533
+ });
2534
+ return retVal;
2535
+ }, "de_AssessmentRunNotificationList");
2536
+ var de_AssessmentRunStateChange = /* @__PURE__ */ __name((output, context) => {
2537
+ return (0, import_smithy_client.take)(output, {
2538
+ state: import_smithy_client.expectString,
2539
+ stateChangedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2540
+ });
2541
+ }, "de_AssessmentRunStateChange");
2542
+ var de_AssessmentRunStateChangeList = /* @__PURE__ */ __name((output, context) => {
2543
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2544
+ return de_AssessmentRunStateChange(entry, context);
2545
+ });
2546
+ return retVal;
2547
+ }, "de_AssessmentRunStateChangeList");
2548
+ var de_AssessmentTarget = /* @__PURE__ */ __name((output, context) => {
2549
+ return (0, import_smithy_client.take)(output, {
2550
+ arn: import_smithy_client.expectString,
2551
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2552
+ name: import_smithy_client.expectString,
2553
+ resourceGroupArn: import_smithy_client.expectString,
2554
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2555
+ });
2556
+ }, "de_AssessmentTarget");
2557
+ var de_AssessmentTargetList = /* @__PURE__ */ __name((output, context) => {
2558
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2559
+ return de_AssessmentTarget(entry, context);
2560
+ });
2561
+ return retVal;
2562
+ }, "de_AssessmentTargetList");
2563
+ var de_AssessmentTemplate = /* @__PURE__ */ __name((output, context) => {
2564
+ return (0, import_smithy_client.take)(output, {
2565
+ arn: import_smithy_client.expectString,
2566
+ assessmentRunCount: import_smithy_client.expectInt32,
2567
+ assessmentTargetArn: import_smithy_client.expectString,
2568
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2569
+ durationInSeconds: import_smithy_client.expectInt32,
2570
+ lastAssessmentRunArn: import_smithy_client.expectString,
2571
+ name: import_smithy_client.expectString,
2572
+ rulesPackageArns: import_smithy_client._json,
2573
+ userAttributesForFindings: import_smithy_client._json
2574
+ });
2575
+ }, "de_AssessmentTemplate");
2576
+ var de_AssessmentTemplateList = /* @__PURE__ */ __name((output, context) => {
2577
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2578
+ return de_AssessmentTemplate(entry, context);
2579
+ });
2580
+ return retVal;
2581
+ }, "de_AssessmentTemplateList");
2582
+ var de_DescribeAssessmentRunsResponse = /* @__PURE__ */ __name((output, context) => {
2583
+ return (0, import_smithy_client.take)(output, {
2584
+ assessmentRuns: (_) => de_AssessmentRunList(_, context),
2585
+ failedItems: import_smithy_client._json
2586
+ });
2587
+ }, "de_DescribeAssessmentRunsResponse");
2588
+ var de_DescribeAssessmentTargetsResponse = /* @__PURE__ */ __name((output, context) => {
2589
+ return (0, import_smithy_client.take)(output, {
2590
+ assessmentTargets: (_) => de_AssessmentTargetList(_, context),
2591
+ failedItems: import_smithy_client._json
2592
+ });
2593
+ }, "de_DescribeAssessmentTargetsResponse");
2594
+ var de_DescribeAssessmentTemplatesResponse = /* @__PURE__ */ __name((output, context) => {
2595
+ return (0, import_smithy_client.take)(output, {
2596
+ assessmentTemplates: (_) => de_AssessmentTemplateList(_, context),
2597
+ failedItems: import_smithy_client._json
2598
+ });
2599
+ }, "de_DescribeAssessmentTemplatesResponse");
2600
+ var de_DescribeCrossAccountAccessRoleResponse = /* @__PURE__ */ __name((output, context) => {
2601
+ return (0, import_smithy_client.take)(output, {
2602
+ registeredAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2603
+ roleArn: import_smithy_client.expectString,
2604
+ valid: import_smithy_client.expectBoolean
2605
+ });
2606
+ }, "de_DescribeCrossAccountAccessRoleResponse");
2607
+ var de_DescribeFindingsResponse = /* @__PURE__ */ __name((output, context) => {
2608
+ return (0, import_smithy_client.take)(output, {
2609
+ failedItems: import_smithy_client._json,
2610
+ findings: (_) => de_FindingList(_, context)
2611
+ });
2612
+ }, "de_DescribeFindingsResponse");
2613
+ var de_DescribeResourceGroupsResponse = /* @__PURE__ */ __name((output, context) => {
2614
+ return (0, import_smithy_client.take)(output, {
2615
+ failedItems: import_smithy_client._json,
2616
+ resourceGroups: (_) => de_ResourceGroupList(_, context)
2617
+ });
2618
+ }, "de_DescribeResourceGroupsResponse");
2619
+ var de_EventSubscription = /* @__PURE__ */ __name((output, context) => {
2620
+ return (0, import_smithy_client.take)(output, {
2621
+ event: import_smithy_client.expectString,
2622
+ subscribedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2623
+ });
2624
+ }, "de_EventSubscription");
2625
+ var de_EventSubscriptionList = /* @__PURE__ */ __name((output, context) => {
2626
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2627
+ return de_EventSubscription(entry, context);
2628
+ });
2629
+ return retVal;
2630
+ }, "de_EventSubscriptionList");
2631
+ var de_Finding = /* @__PURE__ */ __name((output, context) => {
2632
+ return (0, import_smithy_client.take)(output, {
2633
+ arn: import_smithy_client.expectString,
2634
+ assetAttributes: import_smithy_client._json,
2635
+ assetType: import_smithy_client.expectString,
2636
+ attributes: import_smithy_client._json,
2637
+ confidence: import_smithy_client.expectInt32,
2638
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2639
+ description: import_smithy_client.expectString,
2640
+ id: import_smithy_client.expectString,
2641
+ indicatorOfCompromise: import_smithy_client.expectBoolean,
2642
+ numericSeverity: import_smithy_client.limitedParseDouble,
2643
+ recommendation: import_smithy_client.expectString,
2644
+ schemaVersion: import_smithy_client.expectInt32,
2645
+ service: import_smithy_client.expectString,
2646
+ serviceAttributes: import_smithy_client._json,
2647
+ severity: import_smithy_client.expectString,
2648
+ title: import_smithy_client.expectString,
2649
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2650
+ userAttributes: import_smithy_client._json
2651
+ });
2652
+ }, "de_Finding");
2653
+ var de_FindingList = /* @__PURE__ */ __name((output, context) => {
2654
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2655
+ return de_Finding(entry, context);
2656
+ });
2657
+ return retVal;
2658
+ }, "de_FindingList");
2659
+ var de_ListEventSubscriptionsResponse = /* @__PURE__ */ __name((output, context) => {
2660
+ return (0, import_smithy_client.take)(output, {
2661
+ nextToken: import_smithy_client.expectString,
2662
+ subscriptions: (_) => de_SubscriptionList(_, context)
2663
+ });
2664
+ }, "de_ListEventSubscriptionsResponse");
2665
+ var de_ResourceGroup = /* @__PURE__ */ __name((output, context) => {
2666
+ return (0, import_smithy_client.take)(output, {
2667
+ arn: import_smithy_client.expectString,
2668
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2669
+ tags: import_smithy_client._json
2670
+ });
2671
+ }, "de_ResourceGroup");
2672
+ var de_ResourceGroupList = /* @__PURE__ */ __name((output, context) => {
2673
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2674
+ return de_ResourceGroup(entry, context);
2675
+ });
2676
+ return retVal;
2677
+ }, "de_ResourceGroupList");
2678
+ var de_Subscription = /* @__PURE__ */ __name((output, context) => {
2679
+ return (0, import_smithy_client.take)(output, {
2680
+ eventSubscriptions: (_) => de_EventSubscriptionList(_, context),
2681
+ resourceArn: import_smithy_client.expectString,
2682
+ topicArn: import_smithy_client.expectString
2683
+ });
2684
+ }, "de_Subscription");
2685
+ var de_SubscriptionList = /* @__PURE__ */ __name((output, context) => {
2686
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2687
+ return de_Subscription(entry, context);
2688
+ });
2689
+ return retVal;
2690
+ }, "de_SubscriptionList");
2691
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2692
+ httpStatusCode: output.statusCode,
2693
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2694
+ extendedRequestId: output.headers["x-amz-id-2"],
2695
+ cfId: output.headers["x-amz-cf-id"]
2696
+ }), "deserializeMetadata");
2697
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2698
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(InspectorServiceException);
2699
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2700
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2701
+ const contents = {
2702
+ protocol,
2703
+ hostname,
2704
+ port,
2705
+ method: "POST",
2706
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2707
+ headers
2708
+ };
2709
+ if (resolvedHostname !== void 0) {
2710
+ contents.hostname = resolvedHostname;
2711
+ }
2712
+ if (body !== void 0) {
2713
+ contents.body = body;
2714
+ }
2715
+ return new import_protocol_http.HttpRequest(contents);
2716
+ }, "buildHttpRpcRequest");
2717
+ function sharedHeaders(operation) {
2718
+ return {
2719
+ "content-type": "application/x-amz-json-1.1",
2720
+ "x-amz-target": `InspectorService.${operation}`
2721
+ };
2722
+ }
2723
+ __name(sharedHeaders, "sharedHeaders");
2724
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2725
+ if (encoded.length) {
2726
+ return JSON.parse(encoded);
2727
+ }
2728
+ return {};
2729
+ }), "parseBody");
2730
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2731
+ const value = await parseBody(errorBody, context);
2732
+ value.message = value.message ?? value.Message;
2733
+ return value;
2734
+ }, "parseErrorBody");
2735
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2736
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2737
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2738
+ let cleanValue = rawValue;
2739
+ if (typeof cleanValue === "number") {
2740
+ cleanValue = cleanValue.toString();
2741
+ }
2742
+ if (cleanValue.indexOf(",") >= 0) {
2743
+ cleanValue = cleanValue.split(",")[0];
2744
+ }
2745
+ if (cleanValue.indexOf(":") >= 0) {
2746
+ cleanValue = cleanValue.split(":")[0];
2747
+ }
2748
+ if (cleanValue.indexOf("#") >= 0) {
2749
+ cleanValue = cleanValue.split("#")[1];
2750
+ }
2751
+ return cleanValue;
2752
+ }, "sanitizeErrorCode");
2753
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2754
+ if (headerKey !== void 0) {
2755
+ return sanitizeErrorCode(output.headers[headerKey]);
2756
+ }
2757
+ if (data.code !== void 0) {
2758
+ return sanitizeErrorCode(data.code);
2759
+ }
2760
+ if (data["__type"] !== void 0) {
2761
+ return sanitizeErrorCode(data["__type"]);
2762
+ }
2763
+ }, "loadRestJsonErrorCode");
2764
+
2765
+ // src/commands/AddAttributesToFindingsCommand.ts
2766
+ var _AddAttributesToFindingsCommand = class _AddAttributesToFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
2767
+ ...commonParams
2768
+ }).m(function(Command, cs, config, o) {
2769
+ return [
2770
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2771
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2772
+ ];
2773
+ }).s("InspectorService", "AddAttributesToFindings", {}).n("InspectorClient", "AddAttributesToFindingsCommand").f(void 0, void 0).ser(se_AddAttributesToFindingsCommand).de(de_AddAttributesToFindingsCommand).build() {
2774
+ };
2775
+ __name(_AddAttributesToFindingsCommand, "AddAttributesToFindingsCommand");
2776
+ var AddAttributesToFindingsCommand = _AddAttributesToFindingsCommand;
2777
+
2778
+ // src/commands/CreateAssessmentTargetCommand.ts
2779
+
2780
+
2781
+
2782
+
2783
+ var _CreateAssessmentTargetCommand = class _CreateAssessmentTargetCommand extends import_smithy_client.Command.classBuilder().ep({
2784
+ ...commonParams
2785
+ }).m(function(Command, cs, config, o) {
2786
+ return [
2787
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2788
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2789
+ ];
2790
+ }).s("InspectorService", "CreateAssessmentTarget", {}).n("InspectorClient", "CreateAssessmentTargetCommand").f(void 0, void 0).ser(se_CreateAssessmentTargetCommand).de(de_CreateAssessmentTargetCommand).build() {
2791
+ };
2792
+ __name(_CreateAssessmentTargetCommand, "CreateAssessmentTargetCommand");
2793
+ var CreateAssessmentTargetCommand = _CreateAssessmentTargetCommand;
2794
+
2795
+ // src/commands/CreateAssessmentTemplateCommand.ts
2796
+
2797
+
2798
+
2799
+
2800
+ var _CreateAssessmentTemplateCommand = class _CreateAssessmentTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2801
+ ...commonParams
2802
+ }).m(function(Command, cs, config, o) {
2803
+ return [
2804
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2805
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2806
+ ];
2807
+ }).s("InspectorService", "CreateAssessmentTemplate", {}).n("InspectorClient", "CreateAssessmentTemplateCommand").f(void 0, void 0).ser(se_CreateAssessmentTemplateCommand).de(de_CreateAssessmentTemplateCommand).build() {
2808
+ };
2809
+ __name(_CreateAssessmentTemplateCommand, "CreateAssessmentTemplateCommand");
2810
+ var CreateAssessmentTemplateCommand = _CreateAssessmentTemplateCommand;
2811
+
2812
+ // src/commands/CreateExclusionsPreviewCommand.ts
2813
+
2814
+
2815
+
2816
+
2817
+ var _CreateExclusionsPreviewCommand = class _CreateExclusionsPreviewCommand extends import_smithy_client.Command.classBuilder().ep({
2818
+ ...commonParams
2819
+ }).m(function(Command, cs, config, o) {
2820
+ return [
2821
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2822
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2823
+ ];
2824
+ }).s("InspectorService", "CreateExclusionsPreview", {}).n("InspectorClient", "CreateExclusionsPreviewCommand").f(void 0, void 0).ser(se_CreateExclusionsPreviewCommand).de(de_CreateExclusionsPreviewCommand).build() {
2825
+ };
2826
+ __name(_CreateExclusionsPreviewCommand, "CreateExclusionsPreviewCommand");
2827
+ var CreateExclusionsPreviewCommand = _CreateExclusionsPreviewCommand;
2828
+
2829
+ // src/commands/CreateResourceGroupCommand.ts
2830
+
2831
+
2832
+
2833
+
2834
+ var _CreateResourceGroupCommand = class _CreateResourceGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2835
+ ...commonParams
2836
+ }).m(function(Command, cs, config, o) {
2837
+ return [
2838
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2839
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2840
+ ];
2841
+ }).s("InspectorService", "CreateResourceGroup", {}).n("InspectorClient", "CreateResourceGroupCommand").f(void 0, void 0).ser(se_CreateResourceGroupCommand).de(de_CreateResourceGroupCommand).build() {
2842
+ };
2843
+ __name(_CreateResourceGroupCommand, "CreateResourceGroupCommand");
2844
+ var CreateResourceGroupCommand = _CreateResourceGroupCommand;
2845
+
2846
+ // src/commands/DeleteAssessmentRunCommand.ts
2847
+
2848
+
2849
+
2850
+
2851
+ var _DeleteAssessmentRunCommand = class _DeleteAssessmentRunCommand extends import_smithy_client.Command.classBuilder().ep({
2852
+ ...commonParams
2853
+ }).m(function(Command, cs, config, o) {
2854
+ return [
2855
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2856
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2857
+ ];
2858
+ }).s("InspectorService", "DeleteAssessmentRun", {}).n("InspectorClient", "DeleteAssessmentRunCommand").f(void 0, void 0).ser(se_DeleteAssessmentRunCommand).de(de_DeleteAssessmentRunCommand).build() {
2859
+ };
2860
+ __name(_DeleteAssessmentRunCommand, "DeleteAssessmentRunCommand");
2861
+ var DeleteAssessmentRunCommand = _DeleteAssessmentRunCommand;
2862
+
2863
+ // src/commands/DeleteAssessmentTargetCommand.ts
2864
+
2865
+
2866
+
2867
+
2868
+ var _DeleteAssessmentTargetCommand = class _DeleteAssessmentTargetCommand extends import_smithy_client.Command.classBuilder().ep({
2869
+ ...commonParams
2870
+ }).m(function(Command, cs, config, o) {
2871
+ return [
2872
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2873
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2874
+ ];
2875
+ }).s("InspectorService", "DeleteAssessmentTarget", {}).n("InspectorClient", "DeleteAssessmentTargetCommand").f(void 0, void 0).ser(se_DeleteAssessmentTargetCommand).de(de_DeleteAssessmentTargetCommand).build() {
2876
+ };
2877
+ __name(_DeleteAssessmentTargetCommand, "DeleteAssessmentTargetCommand");
2878
+ var DeleteAssessmentTargetCommand = _DeleteAssessmentTargetCommand;
2879
+
2880
+ // src/commands/DeleteAssessmentTemplateCommand.ts
2881
+
2882
+
2883
+
2884
+
2885
+ var _DeleteAssessmentTemplateCommand = class _DeleteAssessmentTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2886
+ ...commonParams
2887
+ }).m(function(Command, cs, config, o) {
2888
+ return [
2889
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2890
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2891
+ ];
2892
+ }).s("InspectorService", "DeleteAssessmentTemplate", {}).n("InspectorClient", "DeleteAssessmentTemplateCommand").f(void 0, void 0).ser(se_DeleteAssessmentTemplateCommand).de(de_DeleteAssessmentTemplateCommand).build() {
2893
+ };
2894
+ __name(_DeleteAssessmentTemplateCommand, "DeleteAssessmentTemplateCommand");
2895
+ var DeleteAssessmentTemplateCommand = _DeleteAssessmentTemplateCommand;
2896
+
2897
+ // src/commands/DescribeAssessmentRunsCommand.ts
2898
+
2899
+
2900
+
2901
+
2902
+ var _DescribeAssessmentRunsCommand = class _DescribeAssessmentRunsCommand extends import_smithy_client.Command.classBuilder().ep({
2903
+ ...commonParams
2904
+ }).m(function(Command, cs, config, o) {
2905
+ return [
2906
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2907
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2908
+ ];
2909
+ }).s("InspectorService", "DescribeAssessmentRuns", {}).n("InspectorClient", "DescribeAssessmentRunsCommand").f(void 0, void 0).ser(se_DescribeAssessmentRunsCommand).de(de_DescribeAssessmentRunsCommand).build() {
2910
+ };
2911
+ __name(_DescribeAssessmentRunsCommand, "DescribeAssessmentRunsCommand");
2912
+ var DescribeAssessmentRunsCommand = _DescribeAssessmentRunsCommand;
2913
+
2914
+ // src/commands/DescribeAssessmentTargetsCommand.ts
2915
+
2916
+
2917
+
2918
+
2919
+ var _DescribeAssessmentTargetsCommand = class _DescribeAssessmentTargetsCommand extends import_smithy_client.Command.classBuilder().ep({
2920
+ ...commonParams
2921
+ }).m(function(Command, cs, config, o) {
2922
+ return [
2923
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2924
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2925
+ ];
2926
+ }).s("InspectorService", "DescribeAssessmentTargets", {}).n("InspectorClient", "DescribeAssessmentTargetsCommand").f(void 0, void 0).ser(se_DescribeAssessmentTargetsCommand).de(de_DescribeAssessmentTargetsCommand).build() {
2927
+ };
2928
+ __name(_DescribeAssessmentTargetsCommand, "DescribeAssessmentTargetsCommand");
2929
+ var DescribeAssessmentTargetsCommand = _DescribeAssessmentTargetsCommand;
2930
+
2931
+ // src/commands/DescribeAssessmentTemplatesCommand.ts
2932
+
2933
+
2934
+
2935
+
2936
+ var _DescribeAssessmentTemplatesCommand = class _DescribeAssessmentTemplatesCommand extends import_smithy_client.Command.classBuilder().ep({
2937
+ ...commonParams
2938
+ }).m(function(Command, cs, config, o) {
2939
+ return [
2940
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2941
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2942
+ ];
2943
+ }).s("InspectorService", "DescribeAssessmentTemplates", {}).n("InspectorClient", "DescribeAssessmentTemplatesCommand").f(void 0, void 0).ser(se_DescribeAssessmentTemplatesCommand).de(de_DescribeAssessmentTemplatesCommand).build() {
2944
+ };
2945
+ __name(_DescribeAssessmentTemplatesCommand, "DescribeAssessmentTemplatesCommand");
2946
+ var DescribeAssessmentTemplatesCommand = _DescribeAssessmentTemplatesCommand;
2947
+
2948
+ // src/commands/DescribeCrossAccountAccessRoleCommand.ts
2949
+
2950
+
2951
+
2952
+
2953
+ var _DescribeCrossAccountAccessRoleCommand = class _DescribeCrossAccountAccessRoleCommand extends import_smithy_client.Command.classBuilder().ep({
2954
+ ...commonParams
2955
+ }).m(function(Command, cs, config, o) {
2956
+ return [
2957
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2958
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2959
+ ];
2960
+ }).s("InspectorService", "DescribeCrossAccountAccessRole", {}).n("InspectorClient", "DescribeCrossAccountAccessRoleCommand").f(void 0, void 0).ser(se_DescribeCrossAccountAccessRoleCommand).de(de_DescribeCrossAccountAccessRoleCommand).build() {
2961
+ };
2962
+ __name(_DescribeCrossAccountAccessRoleCommand, "DescribeCrossAccountAccessRoleCommand");
2963
+ var DescribeCrossAccountAccessRoleCommand = _DescribeCrossAccountAccessRoleCommand;
2964
+
2965
+ // src/commands/DescribeExclusionsCommand.ts
2966
+
2967
+
2968
+
2969
+
2970
+ var _DescribeExclusionsCommand = class _DescribeExclusionsCommand extends import_smithy_client.Command.classBuilder().ep({
2971
+ ...commonParams
2972
+ }).m(function(Command, cs, config, o) {
2973
+ return [
2974
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2975
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2976
+ ];
2977
+ }).s("InspectorService", "DescribeExclusions", {}).n("InspectorClient", "DescribeExclusionsCommand").f(void 0, void 0).ser(se_DescribeExclusionsCommand).de(de_DescribeExclusionsCommand).build() {
2978
+ };
2979
+ __name(_DescribeExclusionsCommand, "DescribeExclusionsCommand");
2980
+ var DescribeExclusionsCommand = _DescribeExclusionsCommand;
2981
+
2982
+ // src/commands/DescribeFindingsCommand.ts
2983
+
2984
+
2985
+
2986
+
2987
+ var _DescribeFindingsCommand = class _DescribeFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
2988
+ ...commonParams
2989
+ }).m(function(Command, cs, config, o) {
2990
+ return [
2991
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2992
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2993
+ ];
2994
+ }).s("InspectorService", "DescribeFindings", {}).n("InspectorClient", "DescribeFindingsCommand").f(void 0, void 0).ser(se_DescribeFindingsCommand).de(de_DescribeFindingsCommand).build() {
2995
+ };
2996
+ __name(_DescribeFindingsCommand, "DescribeFindingsCommand");
2997
+ var DescribeFindingsCommand = _DescribeFindingsCommand;
2998
+
2999
+ // src/commands/DescribeResourceGroupsCommand.ts
3000
+
3001
+
3002
+
3003
+
3004
+ var _DescribeResourceGroupsCommand = class _DescribeResourceGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
3005
+ ...commonParams
3006
+ }).m(function(Command, cs, config, o) {
3007
+ return [
3008
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3009
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3010
+ ];
3011
+ }).s("InspectorService", "DescribeResourceGroups", {}).n("InspectorClient", "DescribeResourceGroupsCommand").f(void 0, void 0).ser(se_DescribeResourceGroupsCommand).de(de_DescribeResourceGroupsCommand).build() {
3012
+ };
3013
+ __name(_DescribeResourceGroupsCommand, "DescribeResourceGroupsCommand");
3014
+ var DescribeResourceGroupsCommand = _DescribeResourceGroupsCommand;
3015
+
3016
+ // src/commands/DescribeRulesPackagesCommand.ts
3017
+
3018
+
3019
+
3020
+
3021
+ var _DescribeRulesPackagesCommand = class _DescribeRulesPackagesCommand extends import_smithy_client.Command.classBuilder().ep({
3022
+ ...commonParams
3023
+ }).m(function(Command, cs, config, o) {
3024
+ return [
3025
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3026
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3027
+ ];
3028
+ }).s("InspectorService", "DescribeRulesPackages", {}).n("InspectorClient", "DescribeRulesPackagesCommand").f(void 0, void 0).ser(se_DescribeRulesPackagesCommand).de(de_DescribeRulesPackagesCommand).build() {
3029
+ };
3030
+ __name(_DescribeRulesPackagesCommand, "DescribeRulesPackagesCommand");
3031
+ var DescribeRulesPackagesCommand = _DescribeRulesPackagesCommand;
3032
+
3033
+ // src/commands/GetAssessmentReportCommand.ts
3034
+
3035
+
3036
+
3037
+
3038
+ var _GetAssessmentReportCommand = class _GetAssessmentReportCommand extends import_smithy_client.Command.classBuilder().ep({
3039
+ ...commonParams
3040
+ }).m(function(Command, cs, config, o) {
3041
+ return [
3042
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3043
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3044
+ ];
3045
+ }).s("InspectorService", "GetAssessmentReport", {}).n("InspectorClient", "GetAssessmentReportCommand").f(void 0, void 0).ser(se_GetAssessmentReportCommand).de(de_GetAssessmentReportCommand).build() {
3046
+ };
3047
+ __name(_GetAssessmentReportCommand, "GetAssessmentReportCommand");
3048
+ var GetAssessmentReportCommand = _GetAssessmentReportCommand;
3049
+
3050
+ // src/commands/GetExclusionsPreviewCommand.ts
3051
+
3052
+
3053
+
3054
+
3055
+ var _GetExclusionsPreviewCommand = class _GetExclusionsPreviewCommand extends import_smithy_client.Command.classBuilder().ep({
3056
+ ...commonParams
3057
+ }).m(function(Command, cs, config, o) {
3058
+ return [
3059
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3060
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3061
+ ];
3062
+ }).s("InspectorService", "GetExclusionsPreview", {}).n("InspectorClient", "GetExclusionsPreviewCommand").f(void 0, void 0).ser(se_GetExclusionsPreviewCommand).de(de_GetExclusionsPreviewCommand).build() {
3063
+ };
3064
+ __name(_GetExclusionsPreviewCommand, "GetExclusionsPreviewCommand");
3065
+ var GetExclusionsPreviewCommand = _GetExclusionsPreviewCommand;
3066
+
3067
+ // src/commands/GetTelemetryMetadataCommand.ts
3068
+
3069
+
3070
+
3071
+
3072
+ var _GetTelemetryMetadataCommand = class _GetTelemetryMetadataCommand extends import_smithy_client.Command.classBuilder().ep({
3073
+ ...commonParams
3074
+ }).m(function(Command, cs, config, o) {
3075
+ return [
3076
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3077
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3078
+ ];
3079
+ }).s("InspectorService", "GetTelemetryMetadata", {}).n("InspectorClient", "GetTelemetryMetadataCommand").f(void 0, void 0).ser(se_GetTelemetryMetadataCommand).de(de_GetTelemetryMetadataCommand).build() {
3080
+ };
3081
+ __name(_GetTelemetryMetadataCommand, "GetTelemetryMetadataCommand");
3082
+ var GetTelemetryMetadataCommand = _GetTelemetryMetadataCommand;
3083
+
3084
+ // src/commands/ListAssessmentRunAgentsCommand.ts
3085
+
3086
+
3087
+
3088
+
3089
+ var _ListAssessmentRunAgentsCommand = class _ListAssessmentRunAgentsCommand extends import_smithy_client.Command.classBuilder().ep({
3090
+ ...commonParams
3091
+ }).m(function(Command, cs, config, o) {
3092
+ return [
3093
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3094
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3095
+ ];
3096
+ }).s("InspectorService", "ListAssessmentRunAgents", {}).n("InspectorClient", "ListAssessmentRunAgentsCommand").f(void 0, void 0).ser(se_ListAssessmentRunAgentsCommand).de(de_ListAssessmentRunAgentsCommand).build() {
3097
+ };
3098
+ __name(_ListAssessmentRunAgentsCommand, "ListAssessmentRunAgentsCommand");
3099
+ var ListAssessmentRunAgentsCommand = _ListAssessmentRunAgentsCommand;
3100
+
3101
+ // src/commands/ListAssessmentRunsCommand.ts
3102
+
3103
+
3104
+
3105
+
3106
+ var _ListAssessmentRunsCommand = class _ListAssessmentRunsCommand extends import_smithy_client.Command.classBuilder().ep({
3107
+ ...commonParams
3108
+ }).m(function(Command, cs, config, o) {
3109
+ return [
3110
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3111
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3112
+ ];
3113
+ }).s("InspectorService", "ListAssessmentRuns", {}).n("InspectorClient", "ListAssessmentRunsCommand").f(void 0, void 0).ser(se_ListAssessmentRunsCommand).de(de_ListAssessmentRunsCommand).build() {
3114
+ };
3115
+ __name(_ListAssessmentRunsCommand, "ListAssessmentRunsCommand");
3116
+ var ListAssessmentRunsCommand = _ListAssessmentRunsCommand;
3117
+
3118
+ // src/commands/ListAssessmentTargetsCommand.ts
3119
+
3120
+
3121
+
3122
+
3123
+ var _ListAssessmentTargetsCommand = class _ListAssessmentTargetsCommand extends import_smithy_client.Command.classBuilder().ep({
3124
+ ...commonParams
3125
+ }).m(function(Command, cs, config, o) {
3126
+ return [
3127
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3128
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3129
+ ];
3130
+ }).s("InspectorService", "ListAssessmentTargets", {}).n("InspectorClient", "ListAssessmentTargetsCommand").f(void 0, void 0).ser(se_ListAssessmentTargetsCommand).de(de_ListAssessmentTargetsCommand).build() {
3131
+ };
3132
+ __name(_ListAssessmentTargetsCommand, "ListAssessmentTargetsCommand");
3133
+ var ListAssessmentTargetsCommand = _ListAssessmentTargetsCommand;
3134
+
3135
+ // src/commands/ListAssessmentTemplatesCommand.ts
3136
+
3137
+
3138
+
3139
+
3140
+ var _ListAssessmentTemplatesCommand = class _ListAssessmentTemplatesCommand extends import_smithy_client.Command.classBuilder().ep({
3141
+ ...commonParams
3142
+ }).m(function(Command, cs, config, o) {
3143
+ return [
3144
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3145
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3146
+ ];
3147
+ }).s("InspectorService", "ListAssessmentTemplates", {}).n("InspectorClient", "ListAssessmentTemplatesCommand").f(void 0, void 0).ser(se_ListAssessmentTemplatesCommand).de(de_ListAssessmentTemplatesCommand).build() {
3148
+ };
3149
+ __name(_ListAssessmentTemplatesCommand, "ListAssessmentTemplatesCommand");
3150
+ var ListAssessmentTemplatesCommand = _ListAssessmentTemplatesCommand;
3151
+
3152
+ // src/commands/ListEventSubscriptionsCommand.ts
3153
+
3154
+
3155
+
3156
+
3157
+ var _ListEventSubscriptionsCommand = class _ListEventSubscriptionsCommand extends import_smithy_client.Command.classBuilder().ep({
3158
+ ...commonParams
3159
+ }).m(function(Command, cs, config, o) {
3160
+ return [
3161
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3162
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3163
+ ];
3164
+ }).s("InspectorService", "ListEventSubscriptions", {}).n("InspectorClient", "ListEventSubscriptionsCommand").f(void 0, void 0).ser(se_ListEventSubscriptionsCommand).de(de_ListEventSubscriptionsCommand).build() {
3165
+ };
3166
+ __name(_ListEventSubscriptionsCommand, "ListEventSubscriptionsCommand");
3167
+ var ListEventSubscriptionsCommand = _ListEventSubscriptionsCommand;
3168
+
3169
+ // src/commands/ListExclusionsCommand.ts
3170
+
3171
+
3172
+
3173
+
3174
+ var _ListExclusionsCommand = class _ListExclusionsCommand extends import_smithy_client.Command.classBuilder().ep({
3175
+ ...commonParams
3176
+ }).m(function(Command, cs, config, o) {
3177
+ return [
3178
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3179
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3180
+ ];
3181
+ }).s("InspectorService", "ListExclusions", {}).n("InspectorClient", "ListExclusionsCommand").f(void 0, void 0).ser(se_ListExclusionsCommand).de(de_ListExclusionsCommand).build() {
3182
+ };
3183
+ __name(_ListExclusionsCommand, "ListExclusionsCommand");
3184
+ var ListExclusionsCommand = _ListExclusionsCommand;
3185
+
3186
+ // src/commands/ListFindingsCommand.ts
3187
+
3188
+
3189
+
3190
+
3191
+ var _ListFindingsCommand = class _ListFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
3192
+ ...commonParams
3193
+ }).m(function(Command, cs, config, o) {
3194
+ return [
3195
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3196
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3197
+ ];
3198
+ }).s("InspectorService", "ListFindings", {}).n("InspectorClient", "ListFindingsCommand").f(void 0, void 0).ser(se_ListFindingsCommand).de(de_ListFindingsCommand).build() {
3199
+ };
3200
+ __name(_ListFindingsCommand, "ListFindingsCommand");
3201
+ var ListFindingsCommand = _ListFindingsCommand;
3202
+
3203
+ // src/commands/ListRulesPackagesCommand.ts
3204
+
3205
+
3206
+
3207
+
3208
+ var _ListRulesPackagesCommand = class _ListRulesPackagesCommand extends import_smithy_client.Command.classBuilder().ep({
3209
+ ...commonParams
3210
+ }).m(function(Command, cs, config, o) {
3211
+ return [
3212
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3213
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3214
+ ];
3215
+ }).s("InspectorService", "ListRulesPackages", {}).n("InspectorClient", "ListRulesPackagesCommand").f(void 0, void 0).ser(se_ListRulesPackagesCommand).de(de_ListRulesPackagesCommand).build() {
3216
+ };
3217
+ __name(_ListRulesPackagesCommand, "ListRulesPackagesCommand");
3218
+ var ListRulesPackagesCommand = _ListRulesPackagesCommand;
3219
+
3220
+ // src/commands/ListTagsForResourceCommand.ts
3221
+
3222
+
3223
+
3224
+
3225
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3226
+ ...commonParams
3227
+ }).m(function(Command, cs, config, o) {
3228
+ return [
3229
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3230
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3231
+ ];
3232
+ }).s("InspectorService", "ListTagsForResource", {}).n("InspectorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
3233
+ };
3234
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
3235
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
3236
+
3237
+ // src/commands/PreviewAgentsCommand.ts
3238
+
3239
+
3240
+
3241
+
3242
+ var _PreviewAgentsCommand = class _PreviewAgentsCommand extends import_smithy_client.Command.classBuilder().ep({
3243
+ ...commonParams
3244
+ }).m(function(Command, cs, config, o) {
3245
+ return [
3246
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3247
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3248
+ ];
3249
+ }).s("InspectorService", "PreviewAgents", {}).n("InspectorClient", "PreviewAgentsCommand").f(void 0, void 0).ser(se_PreviewAgentsCommand).de(de_PreviewAgentsCommand).build() {
3250
+ };
3251
+ __name(_PreviewAgentsCommand, "PreviewAgentsCommand");
3252
+ var PreviewAgentsCommand = _PreviewAgentsCommand;
3253
+
3254
+ // src/commands/RegisterCrossAccountAccessRoleCommand.ts
3255
+
3256
+
3257
+
3258
+
3259
+ var _RegisterCrossAccountAccessRoleCommand = class _RegisterCrossAccountAccessRoleCommand extends import_smithy_client.Command.classBuilder().ep({
3260
+ ...commonParams
3261
+ }).m(function(Command, cs, config, o) {
3262
+ return [
3263
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3264
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3265
+ ];
3266
+ }).s("InspectorService", "RegisterCrossAccountAccessRole", {}).n("InspectorClient", "RegisterCrossAccountAccessRoleCommand").f(void 0, void 0).ser(se_RegisterCrossAccountAccessRoleCommand).de(de_RegisterCrossAccountAccessRoleCommand).build() {
3267
+ };
3268
+ __name(_RegisterCrossAccountAccessRoleCommand, "RegisterCrossAccountAccessRoleCommand");
3269
+ var RegisterCrossAccountAccessRoleCommand = _RegisterCrossAccountAccessRoleCommand;
3270
+
3271
+ // src/commands/RemoveAttributesFromFindingsCommand.ts
3272
+
3273
+
3274
+
3275
+
3276
+ var _RemoveAttributesFromFindingsCommand = class _RemoveAttributesFromFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
3277
+ ...commonParams
3278
+ }).m(function(Command, cs, config, o) {
3279
+ return [
3280
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3281
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3282
+ ];
3283
+ }).s("InspectorService", "RemoveAttributesFromFindings", {}).n("InspectorClient", "RemoveAttributesFromFindingsCommand").f(void 0, void 0).ser(se_RemoveAttributesFromFindingsCommand).de(de_RemoveAttributesFromFindingsCommand).build() {
3284
+ };
3285
+ __name(_RemoveAttributesFromFindingsCommand, "RemoveAttributesFromFindingsCommand");
3286
+ var RemoveAttributesFromFindingsCommand = _RemoveAttributesFromFindingsCommand;
3287
+
3288
+ // src/commands/SetTagsForResourceCommand.ts
3289
+
3290
+
3291
+
3292
+
3293
+ var _SetTagsForResourceCommand = class _SetTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3294
+ ...commonParams
3295
+ }).m(function(Command, cs, config, o) {
3296
+ return [
3297
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3298
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3299
+ ];
3300
+ }).s("InspectorService", "SetTagsForResource", {}).n("InspectorClient", "SetTagsForResourceCommand").f(void 0, void 0).ser(se_SetTagsForResourceCommand).de(de_SetTagsForResourceCommand).build() {
3301
+ };
3302
+ __name(_SetTagsForResourceCommand, "SetTagsForResourceCommand");
3303
+ var SetTagsForResourceCommand = _SetTagsForResourceCommand;
3304
+
3305
+ // src/commands/StartAssessmentRunCommand.ts
3306
+
3307
+
3308
+
3309
+
3310
+ var _StartAssessmentRunCommand = class _StartAssessmentRunCommand extends import_smithy_client.Command.classBuilder().ep({
3311
+ ...commonParams
3312
+ }).m(function(Command, cs, config, o) {
3313
+ return [
3314
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3315
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3316
+ ];
3317
+ }).s("InspectorService", "StartAssessmentRun", {}).n("InspectorClient", "StartAssessmentRunCommand").f(void 0, void 0).ser(se_StartAssessmentRunCommand).de(de_StartAssessmentRunCommand).build() {
3318
+ };
3319
+ __name(_StartAssessmentRunCommand, "StartAssessmentRunCommand");
3320
+ var StartAssessmentRunCommand = _StartAssessmentRunCommand;
3321
+
3322
+ // src/commands/StopAssessmentRunCommand.ts
3323
+
3324
+
3325
+
3326
+
3327
+ var _StopAssessmentRunCommand = class _StopAssessmentRunCommand extends import_smithy_client.Command.classBuilder().ep({
3328
+ ...commonParams
3329
+ }).m(function(Command, cs, config, o) {
3330
+ return [
3331
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3332
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3333
+ ];
3334
+ }).s("InspectorService", "StopAssessmentRun", {}).n("InspectorClient", "StopAssessmentRunCommand").f(void 0, void 0).ser(se_StopAssessmentRunCommand).de(de_StopAssessmentRunCommand).build() {
3335
+ };
3336
+ __name(_StopAssessmentRunCommand, "StopAssessmentRunCommand");
3337
+ var StopAssessmentRunCommand = _StopAssessmentRunCommand;
3338
+
3339
+ // src/commands/SubscribeToEventCommand.ts
3340
+
3341
+
3342
+
3343
+
3344
+ var _SubscribeToEventCommand = class _SubscribeToEventCommand extends import_smithy_client.Command.classBuilder().ep({
3345
+ ...commonParams
3346
+ }).m(function(Command, cs, config, o) {
3347
+ return [
3348
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3349
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3350
+ ];
3351
+ }).s("InspectorService", "SubscribeToEvent", {}).n("InspectorClient", "SubscribeToEventCommand").f(void 0, void 0).ser(se_SubscribeToEventCommand).de(de_SubscribeToEventCommand).build() {
3352
+ };
3353
+ __name(_SubscribeToEventCommand, "SubscribeToEventCommand");
3354
+ var SubscribeToEventCommand = _SubscribeToEventCommand;
3355
+
3356
+ // src/commands/UnsubscribeFromEventCommand.ts
3357
+
3358
+
3359
+
3360
+
3361
+ var _UnsubscribeFromEventCommand = class _UnsubscribeFromEventCommand extends import_smithy_client.Command.classBuilder().ep({
3362
+ ...commonParams
3363
+ }).m(function(Command, cs, config, o) {
3364
+ return [
3365
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3366
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3367
+ ];
3368
+ }).s("InspectorService", "UnsubscribeFromEvent", {}).n("InspectorClient", "UnsubscribeFromEventCommand").f(void 0, void 0).ser(se_UnsubscribeFromEventCommand).de(de_UnsubscribeFromEventCommand).build() {
3369
+ };
3370
+ __name(_UnsubscribeFromEventCommand, "UnsubscribeFromEventCommand");
3371
+ var UnsubscribeFromEventCommand = _UnsubscribeFromEventCommand;
3372
+
3373
+ // src/commands/UpdateAssessmentTargetCommand.ts
3374
+
3375
+
3376
+
3377
+
3378
+ var _UpdateAssessmentTargetCommand = class _UpdateAssessmentTargetCommand extends import_smithy_client.Command.classBuilder().ep({
3379
+ ...commonParams
3380
+ }).m(function(Command, cs, config, o) {
3381
+ return [
3382
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3383
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3384
+ ];
3385
+ }).s("InspectorService", "UpdateAssessmentTarget", {}).n("InspectorClient", "UpdateAssessmentTargetCommand").f(void 0, void 0).ser(se_UpdateAssessmentTargetCommand).de(de_UpdateAssessmentTargetCommand).build() {
3386
+ };
3387
+ __name(_UpdateAssessmentTargetCommand, "UpdateAssessmentTargetCommand");
3388
+ var UpdateAssessmentTargetCommand = _UpdateAssessmentTargetCommand;
3389
+
3390
+ // src/Inspector.ts
3391
+ var commands = {
3392
+ AddAttributesToFindingsCommand,
3393
+ CreateAssessmentTargetCommand,
3394
+ CreateAssessmentTemplateCommand,
3395
+ CreateExclusionsPreviewCommand,
3396
+ CreateResourceGroupCommand,
3397
+ DeleteAssessmentRunCommand,
3398
+ DeleteAssessmentTargetCommand,
3399
+ DeleteAssessmentTemplateCommand,
3400
+ DescribeAssessmentRunsCommand,
3401
+ DescribeAssessmentTargetsCommand,
3402
+ DescribeAssessmentTemplatesCommand,
3403
+ DescribeCrossAccountAccessRoleCommand,
3404
+ DescribeExclusionsCommand,
3405
+ DescribeFindingsCommand,
3406
+ DescribeResourceGroupsCommand,
3407
+ DescribeRulesPackagesCommand,
3408
+ GetAssessmentReportCommand,
3409
+ GetExclusionsPreviewCommand,
3410
+ GetTelemetryMetadataCommand,
3411
+ ListAssessmentRunAgentsCommand,
3412
+ ListAssessmentRunsCommand,
3413
+ ListAssessmentTargetsCommand,
3414
+ ListAssessmentTemplatesCommand,
3415
+ ListEventSubscriptionsCommand,
3416
+ ListExclusionsCommand,
3417
+ ListFindingsCommand,
3418
+ ListRulesPackagesCommand,
3419
+ ListTagsForResourceCommand,
3420
+ PreviewAgentsCommand,
3421
+ RegisterCrossAccountAccessRoleCommand,
3422
+ RemoveAttributesFromFindingsCommand,
3423
+ SetTagsForResourceCommand,
3424
+ StartAssessmentRunCommand,
3425
+ StopAssessmentRunCommand,
3426
+ SubscribeToEventCommand,
3427
+ UnsubscribeFromEventCommand,
3428
+ UpdateAssessmentTargetCommand
3429
+ };
3430
+ var _Inspector = class _Inspector extends InspectorClient {
3431
+ };
3432
+ __name(_Inspector, "Inspector");
3433
+ var Inspector = _Inspector;
3434
+ (0, import_smithy_client.createAggregatedClient)(commands, Inspector);
3435
+
3436
+ // src/pagination/GetExclusionsPreviewPaginator.ts
3437
+ var import_core = require("@smithy/core");
3438
+ var paginateGetExclusionsPreview = (0, import_core.createPaginator)(InspectorClient, GetExclusionsPreviewCommand, "nextToken", "nextToken", "maxResults");
3439
+
3440
+ // src/pagination/ListAssessmentRunAgentsPaginator.ts
3441
+
3442
+ var paginateListAssessmentRunAgents = (0, import_core.createPaginator)(InspectorClient, ListAssessmentRunAgentsCommand, "nextToken", "nextToken", "maxResults");
3443
+
3444
+ // src/pagination/ListAssessmentRunsPaginator.ts
3445
+
3446
+ var paginateListAssessmentRuns = (0, import_core.createPaginator)(InspectorClient, ListAssessmentRunsCommand, "nextToken", "nextToken", "maxResults");
3447
+
3448
+ // src/pagination/ListAssessmentTargetsPaginator.ts
3449
+
3450
+ var paginateListAssessmentTargets = (0, import_core.createPaginator)(InspectorClient, ListAssessmentTargetsCommand, "nextToken", "nextToken", "maxResults");
3451
+
3452
+ // src/pagination/ListAssessmentTemplatesPaginator.ts
3453
+
3454
+ var paginateListAssessmentTemplates = (0, import_core.createPaginator)(InspectorClient, ListAssessmentTemplatesCommand, "nextToken", "nextToken", "maxResults");
3455
+
3456
+ // src/pagination/ListEventSubscriptionsPaginator.ts
3457
+
3458
+ var paginateListEventSubscriptions = (0, import_core.createPaginator)(InspectorClient, ListEventSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
3459
+
3460
+ // src/pagination/ListExclusionsPaginator.ts
3461
+
3462
+ var paginateListExclusions = (0, import_core.createPaginator)(InspectorClient, ListExclusionsCommand, "nextToken", "nextToken", "maxResults");
3463
+
3464
+ // src/pagination/ListFindingsPaginator.ts
3465
+
3466
+ var paginateListFindings = (0, import_core.createPaginator)(InspectorClient, ListFindingsCommand, "nextToken", "nextToken", "maxResults");
3467
+
3468
+ // src/pagination/ListRulesPackagesPaginator.ts
3469
+
3470
+ var paginateListRulesPackages = (0, import_core.createPaginator)(InspectorClient, ListRulesPackagesCommand, "nextToken", "nextToken", "maxResults");
3471
+
3472
+ // src/pagination/PreviewAgentsPaginator.ts
3473
+
3474
+ var paginatePreviewAgents = (0, import_core.createPaginator)(InspectorClient, PreviewAgentsCommand, "nextToken", "nextToken", "maxResults");
3475
+
3476
+ // src/index.ts
3477
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3478
+ // Annotate the CommonJS export names for ESM import in node:
3479
+ 0 && (module.exports = {
3480
+ AccessDeniedErrorCode,
3481
+ AccessDeniedException,
3482
+ AddAttributesToFindingsCommand,
3483
+ AgentHealth,
3484
+ AgentHealthCode,
3485
+ AgentsAlreadyRunningAssessmentException,
3486
+ AssessmentRunInProgressException,
3487
+ AssessmentRunNotificationSnsStatusCode,
3488
+ AssessmentRunState,
3489
+ AssetType,
3490
+ CreateAssessmentTargetCommand,
3491
+ CreateAssessmentTemplateCommand,
3492
+ CreateExclusionsPreviewCommand,
3493
+ CreateResourceGroupCommand,
3494
+ DeleteAssessmentRunCommand,
3495
+ DeleteAssessmentTargetCommand,
3496
+ DeleteAssessmentTemplateCommand,
3497
+ DescribeAssessmentRunsCommand,
3498
+ DescribeAssessmentTargetsCommand,
3499
+ DescribeAssessmentTemplatesCommand,
3500
+ DescribeCrossAccountAccessRoleCommand,
3501
+ DescribeExclusionsCommand,
3502
+ DescribeFindingsCommand,
3503
+ DescribeResourceGroupsCommand,
3504
+ DescribeRulesPackagesCommand,
3505
+ FailedItemErrorCode,
3506
+ GetAssessmentReportCommand,
3507
+ GetExclusionsPreviewCommand,
3508
+ GetTelemetryMetadataCommand,
3509
+ Inspector,
3510
+ InspectorClient,
3511
+ InspectorEvent,
3512
+ InspectorServiceException,
3513
+ InternalException,
3514
+ InvalidCrossAccountRoleErrorCode,
3515
+ InvalidCrossAccountRoleException,
3516
+ InvalidInputErrorCode,
3517
+ InvalidInputException,
3518
+ LimitExceededErrorCode,
3519
+ LimitExceededException,
3520
+ ListAssessmentRunAgentsCommand,
3521
+ ListAssessmentRunsCommand,
3522
+ ListAssessmentTargetsCommand,
3523
+ ListAssessmentTemplatesCommand,
3524
+ ListEventSubscriptionsCommand,
3525
+ ListExclusionsCommand,
3526
+ ListFindingsCommand,
3527
+ ListRulesPackagesCommand,
3528
+ ListTagsForResourceCommand,
3529
+ Locale,
3530
+ NoSuchEntityErrorCode,
3531
+ NoSuchEntityException,
3532
+ PreviewAgentsCommand,
3533
+ PreviewGenerationInProgressException,
3534
+ PreviewStatus,
3535
+ RegisterCrossAccountAccessRoleCommand,
3536
+ RemoveAttributesFromFindingsCommand,
3537
+ ReportFileFormat,
3538
+ ReportStatus,
3539
+ ReportType,
3540
+ ScopeType,
3541
+ ServiceTemporarilyUnavailableException,
3542
+ SetTagsForResourceCommand,
3543
+ Severity,
3544
+ StartAssessmentRunCommand,
3545
+ StopAction,
3546
+ StopAssessmentRunCommand,
3547
+ SubscribeToEventCommand,
3548
+ UnsubscribeFromEventCommand,
3549
+ UnsupportedFeatureException,
3550
+ UpdateAssessmentTargetCommand,
3551
+ __Client,
3552
+ paginateGetExclusionsPreview,
3553
+ paginateListAssessmentRunAgents,
3554
+ paginateListAssessmentRuns,
3555
+ paginateListAssessmentTargets,
3556
+ paginateListAssessmentTemplates,
3557
+ paginateListEventSubscriptions,
3558
+ paginateListExclusions,
3559
+ paginateListFindings,
3560
+ paginateListRulesPackages,
3561
+ paginatePreviewAgents
3562
+ });