@aws-sdk/client-inspector 3.901.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +2263 -2493
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2586 +1,2356 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
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 index_exports = {};
23
- __export(index_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(index_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_user_agent = require("@aws-sdk/middleware-user-agent");
114
- var import_config_resolver = require("@smithy/config-resolver");
115
- var import_core = require("@smithy/core");
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
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
121
-
122
- // src/endpoint/EndpointParameters.ts
123
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
124
- return Object.assign(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" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "inspector",
25
+ });
135
26
  };
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
-
145
- // src/auth/httpAuthExtensionConfiguration.ts
146
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
147
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
148
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
149
- let _credentials = runtimeConfig.credentials;
150
- return {
151
- setHttpAuthScheme(httpAuthScheme) {
152
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
153
- if (index === -1) {
154
- _httpAuthSchemes.push(httpAuthScheme);
155
- } else {
156
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
157
- }
158
- },
159
- httpAuthSchemes() {
160
- return _httpAuthSchemes;
161
- },
162
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
163
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
164
- },
165
- httpAuthSchemeProvider() {
166
- return _httpAuthSchemeProvider;
167
- },
168
- setCredentials(credentials) {
169
- _credentials = credentials;
170
- },
171
- credentials() {
172
- return _credentials;
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
+ };
33
+
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
72
+
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
78
+
79
+ class InspectorClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultInspectorHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
173
107
  }
174
- };
175
- }, "getHttpAuthExtensionConfiguration");
176
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
177
- return {
178
- httpAuthSchemes: config.httpAuthSchemes(),
179
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
180
- credentials: config.credentials()
181
- };
182
- }, "resolveHttpAuthRuntimeConfig");
183
-
184
- // src/runtimeExtensions.ts
185
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
186
- const extensionConfiguration = Object.assign(
187
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
188
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
189
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
190
- getHttpAuthExtensionConfiguration(runtimeConfig)
191
- );
192
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
193
- return Object.assign(
194
- runtimeConfig,
195
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
196
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
197
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
198
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
199
- );
200
- }, "resolveRuntimeExtensions");
201
-
202
- // src/InspectorClient.ts
203
- var InspectorClient = class extends import_smithy_client.Client {
204
- static {
205
- __name(this, "InspectorClient");
206
- }
207
- /**
208
- * The resolved configuration of InspectorClient class. This is resolved and normalized from the {@link InspectorClientConfig | constructor configuration interface}.
209
- */
210
- config;
211
- constructor(...[configuration]) {
212
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
213
- super(_config_0);
214
- this.initConfig = _config_0;
215
- const _config_1 = resolveClientEndpointParameters(_config_0);
216
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
217
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
218
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
219
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
220
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
221
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
222
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
223
- this.config = _config_8;
224
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
225
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
226
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
227
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
228
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
229
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
230
- this.middlewareStack.use(
231
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
232
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultInspectorHttpAuthSchemeParametersProvider,
233
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
234
- "aws.auth#sigv4": config.credentials
235
- }), "identityProviderConfigProvider")
236
- })
237
- );
238
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
239
- }
240
- /**
241
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
242
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
243
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
244
- */
245
- destroy() {
246
- super.destroy();
247
- }
248
- };
249
-
250
- // src/Inspector.ts
251
-
252
-
253
- // src/commands/AddAttributesToFindingsCommand.ts
254
-
255
- var import_middleware_serde = require("@smithy/middleware-serde");
256
-
257
-
258
- // src/protocols/Aws_json1_1.ts
259
- var import_core2 = require("@aws-sdk/core");
260
-
261
-
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
262
112
 
263
- // src/models/InspectorServiceException.ts
113
+ class InspectorServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, InspectorServiceException.prototype);
117
+ }
118
+ }
264
119
 
265
- var InspectorServiceException = class _InspectorServiceException extends import_smithy_client.ServiceException {
266
- static {
267
- __name(this, "InspectorServiceException");
268
- }
269
- /**
270
- * @internal
271
- */
272
- constructor(options) {
273
- super(options);
274
- Object.setPrototypeOf(this, _InspectorServiceException.prototype);
275
- }
120
+ const AccessDeniedErrorCode = {
121
+ ACCESS_DENIED_TO_ASSESSMENT_RUN: "ACCESS_DENIED_TO_ASSESSMENT_RUN",
122
+ ACCESS_DENIED_TO_ASSESSMENT_TARGET: "ACCESS_DENIED_TO_ASSESSMENT_TARGET",
123
+ ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE: "ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE",
124
+ ACCESS_DENIED_TO_FINDING: "ACCESS_DENIED_TO_FINDING",
125
+ ACCESS_DENIED_TO_IAM_ROLE: "ACCESS_DENIED_TO_IAM_ROLE",
126
+ ACCESS_DENIED_TO_RESOURCE_GROUP: "ACCESS_DENIED_TO_RESOURCE_GROUP",
127
+ ACCESS_DENIED_TO_RULES_PACKAGE: "ACCESS_DENIED_TO_RULES_PACKAGE",
128
+ ACCESS_DENIED_TO_SNS_TOPIC: "ACCESS_DENIED_TO_SNS_TOPIC",
129
+ };
130
+ class AccessDeniedException extends InspectorServiceException {
131
+ name = "AccessDeniedException";
132
+ $fault = "client";
133
+ errorCode;
134
+ canRetry;
135
+ constructor(opts) {
136
+ super({
137
+ name: "AccessDeniedException",
138
+ $fault: "client",
139
+ ...opts,
140
+ });
141
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
142
+ this.errorCode = opts.errorCode;
143
+ this.canRetry = opts.canRetry;
144
+ }
145
+ }
146
+ const FailedItemErrorCode = {
147
+ ACCESS_DENIED: "ACCESS_DENIED",
148
+ DUPLICATE_ARN: "DUPLICATE_ARN",
149
+ INTERNAL_ERROR: "INTERNAL_ERROR",
150
+ INVALID_ARN: "INVALID_ARN",
151
+ ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
152
+ LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
153
+ };
154
+ class InternalException extends InspectorServiceException {
155
+ name = "InternalException";
156
+ $fault = "server";
157
+ canRetry;
158
+ constructor(opts) {
159
+ super({
160
+ name: "InternalException",
161
+ $fault: "server",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, InternalException.prototype);
165
+ this.canRetry = opts.canRetry;
166
+ }
167
+ }
168
+ const InvalidInputErrorCode = {
169
+ ASSESSMENT_TARGET_NAME_ALREADY_TAKEN: "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN",
170
+ ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN: "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN",
171
+ INVALID_AGENT_ID: "INVALID_AGENT_ID",
172
+ INVALID_ASSESSMENT_RUN_ARN: "INVALID_ASSESSMENT_RUN_ARN",
173
+ INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE: "INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE",
174
+ INVALID_ASSESSMENT_RUN_DURATION_RANGE: "INVALID_ASSESSMENT_RUN_DURATION_RANGE",
175
+ INVALID_ASSESSMENT_RUN_START_TIME_RANGE: "INVALID_ASSESSMENT_RUN_START_TIME_RANGE",
176
+ INVALID_ASSESSMENT_RUN_STATE: "INVALID_ASSESSMENT_RUN_STATE",
177
+ INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE: "INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE",
178
+ INVALID_ASSESSMENT_TARGET_ARN: "INVALID_ASSESSMENT_TARGET_ARN",
179
+ INVALID_ASSESSMENT_TARGET_NAME: "INVALID_ASSESSMENT_TARGET_NAME",
180
+ INVALID_ASSESSMENT_TARGET_NAME_PATTERN: "INVALID_ASSESSMENT_TARGET_NAME_PATTERN",
181
+ INVALID_ASSESSMENT_TEMPLATE_ARN: "INVALID_ASSESSMENT_TEMPLATE_ARN",
182
+ INVALID_ASSESSMENT_TEMPLATE_DURATION: "INVALID_ASSESSMENT_TEMPLATE_DURATION",
183
+ INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE: "INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE",
184
+ INVALID_ASSESSMENT_TEMPLATE_NAME: "INVALID_ASSESSMENT_TEMPLATE_NAME",
185
+ INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN: "INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN",
186
+ INVALID_ATTRIBUTE: "INVALID_ATTRIBUTE",
187
+ INVALID_AUTO_SCALING_GROUP: "INVALID_AUTO_SCALING_GROUP",
188
+ INVALID_EVENT: "INVALID_EVENT",
189
+ INVALID_FINDING_ARN: "INVALID_FINDING_ARN",
190
+ INVALID_IAM_ROLE_ARN: "INVALID_IAM_ROLE_ARN",
191
+ INVALID_LOCALE: "INVALID_LOCALE",
192
+ INVALID_MAX_RESULTS: "INVALID_MAX_RESULTS",
193
+ INVALID_NUMBER_OF_AGENT_IDS: "INVALID_NUMBER_OF_AGENT_IDS",
194
+ INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS",
195
+ INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES: "INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES",
196
+ INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS",
197
+ INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS",
198
+ INVALID_NUMBER_OF_ATTRIBUTES: "INVALID_NUMBER_OF_ATTRIBUTES",
199
+ INVALID_NUMBER_OF_AUTO_SCALING_GROUPS: "INVALID_NUMBER_OF_AUTO_SCALING_GROUPS",
200
+ INVALID_NUMBER_OF_FINDING_ARNS: "INVALID_NUMBER_OF_FINDING_ARNS",
201
+ INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS: "INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS",
202
+ INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS: "INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS",
203
+ INVALID_NUMBER_OF_RULES_PACKAGE_ARNS: "INVALID_NUMBER_OF_RULES_PACKAGE_ARNS",
204
+ INVALID_NUMBER_OF_RULE_NAMES: "INVALID_NUMBER_OF_RULE_NAMES",
205
+ INVALID_NUMBER_OF_SEVERITIES: "INVALID_NUMBER_OF_SEVERITIES",
206
+ INVALID_NUMBER_OF_TAGS: "INVALID_NUMBER_OF_TAGS",
207
+ INVALID_NUMBER_OF_USER_ATTRIBUTES: "INVALID_NUMBER_OF_USER_ATTRIBUTES",
208
+ INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
209
+ INVALID_RESOURCE_ARN: "INVALID_RESOURCE_ARN",
210
+ INVALID_RESOURCE_GROUP_ARN: "INVALID_RESOURCE_GROUP_ARN",
211
+ INVALID_RESOURCE_GROUP_TAG_KEY: "INVALID_RESOURCE_GROUP_TAG_KEY",
212
+ INVALID_RESOURCE_GROUP_TAG_VALUE: "INVALID_RESOURCE_GROUP_TAG_VALUE",
213
+ INVALID_RULES_PACKAGE_ARN: "INVALID_RULES_PACKAGE_ARN",
214
+ INVALID_RULE_NAME: "INVALID_RULE_NAME",
215
+ INVALID_SEVERITY: "INVALID_SEVERITY",
216
+ INVALID_SNS_TOPIC_ARN: "INVALID_SNS_TOPIC_ARN",
217
+ INVALID_TAG: "INVALID_TAG",
218
+ INVALID_TAG_KEY: "INVALID_TAG_KEY",
219
+ INVALID_TAG_VALUE: "INVALID_TAG_VALUE",
220
+ INVALID_USER_ATTRIBUTE: "INVALID_USER_ATTRIBUTE",
221
+ INVALID_USER_ATTRIBUTE_KEY: "INVALID_USER_ATTRIBUTE_KEY",
222
+ INVALID_USER_ATTRIBUTE_VALUE: "INVALID_USER_ATTRIBUTE_VALUE",
223
+ };
224
+ class InvalidInputException extends InspectorServiceException {
225
+ name = "InvalidInputException";
226
+ $fault = "client";
227
+ errorCode;
228
+ canRetry;
229
+ constructor(opts) {
230
+ super({
231
+ name: "InvalidInputException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
236
+ this.errorCode = opts.errorCode;
237
+ this.canRetry = opts.canRetry;
238
+ }
239
+ }
240
+ const NoSuchEntityErrorCode = {
241
+ ASSESSMENT_RUN_DOES_NOT_EXIST: "ASSESSMENT_RUN_DOES_NOT_EXIST",
242
+ ASSESSMENT_TARGET_DOES_NOT_EXIST: "ASSESSMENT_TARGET_DOES_NOT_EXIST",
243
+ ASSESSMENT_TEMPLATE_DOES_NOT_EXIST: "ASSESSMENT_TEMPLATE_DOES_NOT_EXIST",
244
+ FINDING_DOES_NOT_EXIST: "FINDING_DOES_NOT_EXIST",
245
+ IAM_ROLE_DOES_NOT_EXIST: "IAM_ROLE_DOES_NOT_EXIST",
246
+ RESOURCE_GROUP_DOES_NOT_EXIST: "RESOURCE_GROUP_DOES_NOT_EXIST",
247
+ RULES_PACKAGE_DOES_NOT_EXIST: "RULES_PACKAGE_DOES_NOT_EXIST",
248
+ SNS_TOPIC_DOES_NOT_EXIST: "SNS_TOPIC_DOES_NOT_EXIST",
249
+ };
250
+ class NoSuchEntityException extends InspectorServiceException {
251
+ name = "NoSuchEntityException";
252
+ $fault = "client";
253
+ errorCode;
254
+ canRetry;
255
+ constructor(opts) {
256
+ super({
257
+ name: "NoSuchEntityException",
258
+ $fault: "client",
259
+ ...opts,
260
+ });
261
+ Object.setPrototypeOf(this, NoSuchEntityException.prototype);
262
+ this.errorCode = opts.errorCode;
263
+ this.canRetry = opts.canRetry;
264
+ }
265
+ }
266
+ class ServiceTemporarilyUnavailableException extends InspectorServiceException {
267
+ name = "ServiceTemporarilyUnavailableException";
268
+ $fault = "server";
269
+ canRetry;
270
+ constructor(opts) {
271
+ super({
272
+ name: "ServiceTemporarilyUnavailableException",
273
+ $fault: "server",
274
+ ...opts,
275
+ });
276
+ Object.setPrototypeOf(this, ServiceTemporarilyUnavailableException.prototype);
277
+ this.canRetry = opts.canRetry;
278
+ }
279
+ }
280
+ const AgentHealthCode = {
281
+ IDLE: "IDLE",
282
+ RUNNING: "RUNNING",
283
+ SHUTDOWN: "SHUTDOWN",
284
+ THROTTLED: "THROTTLED",
285
+ UNHEALTHY: "UNHEALTHY",
286
+ UNKNOWN: "UNKNOWN",
287
+ };
288
+ const AgentHealth = {
289
+ HEALTHY: "HEALTHY",
290
+ UNHEALTHY: "UNHEALTHY",
291
+ UNKNOWN: "UNKNOWN",
292
+ };
293
+ class AgentsAlreadyRunningAssessmentException extends InspectorServiceException {
294
+ name = "AgentsAlreadyRunningAssessmentException";
295
+ $fault = "client";
296
+ agents;
297
+ agentsTruncated;
298
+ canRetry;
299
+ constructor(opts) {
300
+ super({
301
+ name: "AgentsAlreadyRunningAssessmentException",
302
+ $fault: "client",
303
+ ...opts,
304
+ });
305
+ Object.setPrototypeOf(this, AgentsAlreadyRunningAssessmentException.prototype);
306
+ this.agents = opts.agents;
307
+ this.agentsTruncated = opts.agentsTruncated;
308
+ this.canRetry = opts.canRetry;
309
+ }
310
+ }
311
+ const Severity = {
312
+ HIGH: "High",
313
+ INFORMATIONAL: "Informational",
314
+ LOW: "Low",
315
+ MEDIUM: "Medium",
316
+ UNDEFINED: "Undefined",
317
+ };
318
+ const InspectorEvent = {
319
+ ASSESSMENT_RUN_COMPLETED: "ASSESSMENT_RUN_COMPLETED",
320
+ ASSESSMENT_RUN_STARTED: "ASSESSMENT_RUN_STARTED",
321
+ ASSESSMENT_RUN_STATE_CHANGED: "ASSESSMENT_RUN_STATE_CHANGED",
322
+ FINDING_REPORTED: "FINDING_REPORTED",
323
+ OTHER: "OTHER",
324
+ };
325
+ const AssessmentRunNotificationSnsStatusCode = {
326
+ ACCESS_DENIED: "ACCESS_DENIED",
327
+ INTERNAL_ERROR: "INTERNAL_ERROR",
328
+ SUCCESS: "SUCCESS",
329
+ TOPIC_DOES_NOT_EXIST: "TOPIC_DOES_NOT_EXIST",
330
+ };
331
+ const AssessmentRunState = {
332
+ CANCELED: "CANCELED",
333
+ COLLECTING_DATA: "COLLECTING_DATA",
334
+ COMPLETED: "COMPLETED",
335
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
336
+ CREATED: "CREATED",
337
+ DATA_COLLECTED: "DATA_COLLECTED",
338
+ ERROR: "ERROR",
339
+ EVALUATING_RULES: "EVALUATING_RULES",
340
+ FAILED: "FAILED",
341
+ START_DATA_COLLECTION_IN_PROGRESS: "START_DATA_COLLECTION_IN_PROGRESS",
342
+ START_DATA_COLLECTION_PENDING: "START_DATA_COLLECTION_PENDING",
343
+ START_EVALUATING_RULES_PENDING: "START_EVALUATING_RULES_PENDING",
344
+ STOP_DATA_COLLECTION_PENDING: "STOP_DATA_COLLECTION_PENDING",
345
+ };
346
+ class AssessmentRunInProgressException extends InspectorServiceException {
347
+ name = "AssessmentRunInProgressException";
348
+ $fault = "client";
349
+ assessmentRunArns;
350
+ assessmentRunArnsTruncated;
351
+ canRetry;
352
+ constructor(opts) {
353
+ super({
354
+ name: "AssessmentRunInProgressException",
355
+ $fault: "client",
356
+ ...opts,
357
+ });
358
+ Object.setPrototypeOf(this, AssessmentRunInProgressException.prototype);
359
+ this.assessmentRunArns = opts.assessmentRunArns;
360
+ this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
361
+ this.canRetry = opts.canRetry;
362
+ }
363
+ }
364
+ const AssetType = {
365
+ EC2_INSTANCE: "ec2-instance",
366
+ };
367
+ const InvalidCrossAccountRoleErrorCode = {
368
+ ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP: "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP",
369
+ ROLE_DOES_NOT_HAVE_CORRECT_POLICY: "ROLE_DOES_NOT_HAVE_CORRECT_POLICY",
370
+ };
371
+ class InvalidCrossAccountRoleException extends InspectorServiceException {
372
+ name = "InvalidCrossAccountRoleException";
373
+ $fault = "client";
374
+ errorCode;
375
+ canRetry;
376
+ constructor(opts) {
377
+ super({
378
+ name: "InvalidCrossAccountRoleException",
379
+ $fault: "client",
380
+ ...opts,
381
+ });
382
+ Object.setPrototypeOf(this, InvalidCrossAccountRoleException.prototype);
383
+ this.errorCode = opts.errorCode;
384
+ this.canRetry = opts.canRetry;
385
+ }
386
+ }
387
+ const LimitExceededErrorCode = {
388
+ ASSESSMENT_RUN_LIMIT_EXCEEDED: "ASSESSMENT_RUN_LIMIT_EXCEEDED",
389
+ ASSESSMENT_TARGET_LIMIT_EXCEEDED: "ASSESSMENT_TARGET_LIMIT_EXCEEDED",
390
+ ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED: "ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED",
391
+ EVENT_SUBSCRIPTION_LIMIT_EXCEEDED: "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED",
392
+ RESOURCE_GROUP_LIMIT_EXCEEDED: "RESOURCE_GROUP_LIMIT_EXCEEDED",
393
+ };
394
+ class LimitExceededException extends InspectorServiceException {
395
+ name = "LimitExceededException";
396
+ $fault = "client";
397
+ errorCode;
398
+ canRetry;
399
+ constructor(opts) {
400
+ super({
401
+ name: "LimitExceededException",
402
+ $fault: "client",
403
+ ...opts,
404
+ });
405
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
406
+ this.errorCode = opts.errorCode;
407
+ this.canRetry = opts.canRetry;
408
+ }
409
+ }
410
+ class PreviewGenerationInProgressException extends InspectorServiceException {
411
+ name = "PreviewGenerationInProgressException";
412
+ $fault = "client";
413
+ constructor(opts) {
414
+ super({
415
+ name: "PreviewGenerationInProgressException",
416
+ $fault: "client",
417
+ ...opts,
418
+ });
419
+ Object.setPrototypeOf(this, PreviewGenerationInProgressException.prototype);
420
+ }
421
+ }
422
+ const Locale = {
423
+ EN_US: "EN_US",
424
+ };
425
+ const ScopeType = {
426
+ INSTANCE_ID: "INSTANCE_ID",
427
+ RULES_PACKAGE_ARN: "RULES_PACKAGE_ARN",
428
+ };
429
+ const ReportFileFormat = {
430
+ HTML: "HTML",
431
+ PDF: "PDF",
432
+ };
433
+ const ReportType = {
434
+ FINDING: "FINDING",
435
+ FULL: "FULL",
436
+ };
437
+ const ReportStatus = {
438
+ COMPLETED: "COMPLETED",
439
+ FAILED: "FAILED",
440
+ WORK_IN_PROGRESS: "WORK_IN_PROGRESS",
441
+ };
442
+ class UnsupportedFeatureException extends InspectorServiceException {
443
+ name = "UnsupportedFeatureException";
444
+ $fault = "client";
445
+ canRetry;
446
+ constructor(opts) {
447
+ super({
448
+ name: "UnsupportedFeatureException",
449
+ $fault: "client",
450
+ ...opts,
451
+ });
452
+ Object.setPrototypeOf(this, UnsupportedFeatureException.prototype);
453
+ this.canRetry = opts.canRetry;
454
+ }
455
+ }
456
+ const PreviewStatus = {
457
+ COMPLETED: "COMPLETED",
458
+ WORK_IN_PROGRESS: "WORK_IN_PROGRESS",
459
+ };
460
+ const StopAction = {
461
+ SKIP_EVALUATION: "SKIP_EVALUATION",
462
+ START_EVALUATION: "START_EVALUATION",
463
+ };
464
+
465
+ const se_AddAttributesToFindingsCommand = async (input, context) => {
466
+ const headers = sharedHeaders("AddAttributesToFindings");
467
+ let body;
468
+ body = JSON.stringify(smithyClient._json(input));
469
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
470
+ };
471
+ const se_CreateAssessmentTargetCommand = async (input, context) => {
472
+ const headers = sharedHeaders("CreateAssessmentTarget");
473
+ let body;
474
+ body = JSON.stringify(smithyClient._json(input));
475
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
476
+ };
477
+ const se_CreateAssessmentTemplateCommand = async (input, context) => {
478
+ const headers = sharedHeaders("CreateAssessmentTemplate");
479
+ let body;
480
+ body = JSON.stringify(smithyClient._json(input));
481
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
482
+ };
483
+ const se_CreateExclusionsPreviewCommand = async (input, context) => {
484
+ const headers = sharedHeaders("CreateExclusionsPreview");
485
+ let body;
486
+ body = JSON.stringify(smithyClient._json(input));
487
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
488
+ };
489
+ const se_CreateResourceGroupCommand = async (input, context) => {
490
+ const headers = sharedHeaders("CreateResourceGroup");
491
+ let body;
492
+ body = JSON.stringify(smithyClient._json(input));
493
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
494
+ };
495
+ const se_DeleteAssessmentRunCommand = async (input, context) => {
496
+ const headers = sharedHeaders("DeleteAssessmentRun");
497
+ let body;
498
+ body = JSON.stringify(smithyClient._json(input));
499
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
500
+ };
501
+ const se_DeleteAssessmentTargetCommand = async (input, context) => {
502
+ const headers = sharedHeaders("DeleteAssessmentTarget");
503
+ let body;
504
+ body = JSON.stringify(smithyClient._json(input));
505
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
506
+ };
507
+ const se_DeleteAssessmentTemplateCommand = async (input, context) => {
508
+ const headers = sharedHeaders("DeleteAssessmentTemplate");
509
+ let body;
510
+ body = JSON.stringify(smithyClient._json(input));
511
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
512
+ };
513
+ const se_DescribeAssessmentRunsCommand = async (input, context) => {
514
+ const headers = sharedHeaders("DescribeAssessmentRuns");
515
+ let body;
516
+ body = JSON.stringify(smithyClient._json(input));
517
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
518
+ };
519
+ const se_DescribeAssessmentTargetsCommand = async (input, context) => {
520
+ const headers = sharedHeaders("DescribeAssessmentTargets");
521
+ let body;
522
+ body = JSON.stringify(smithyClient._json(input));
523
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
524
+ };
525
+ const se_DescribeAssessmentTemplatesCommand = async (input, context) => {
526
+ const headers = sharedHeaders("DescribeAssessmentTemplates");
527
+ let body;
528
+ body = JSON.stringify(smithyClient._json(input));
529
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
530
+ };
531
+ const se_DescribeCrossAccountAccessRoleCommand = async (input, context) => {
532
+ const headers = sharedHeaders("DescribeCrossAccountAccessRole");
533
+ const body = "{}";
534
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
535
+ };
536
+ const se_DescribeExclusionsCommand = async (input, context) => {
537
+ const headers = sharedHeaders("DescribeExclusions");
538
+ let body;
539
+ body = JSON.stringify(smithyClient._json(input));
540
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
541
+ };
542
+ const se_DescribeFindingsCommand = async (input, context) => {
543
+ const headers = sharedHeaders("DescribeFindings");
544
+ let body;
545
+ body = JSON.stringify(smithyClient._json(input));
546
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
547
+ };
548
+ const se_DescribeResourceGroupsCommand = async (input, context) => {
549
+ const headers = sharedHeaders("DescribeResourceGroups");
550
+ let body;
551
+ body = JSON.stringify(smithyClient._json(input));
552
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
553
+ };
554
+ const se_DescribeRulesPackagesCommand = async (input, context) => {
555
+ const headers = sharedHeaders("DescribeRulesPackages");
556
+ let body;
557
+ body = JSON.stringify(smithyClient._json(input));
558
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
559
+ };
560
+ const se_GetAssessmentReportCommand = async (input, context) => {
561
+ const headers = sharedHeaders("GetAssessmentReport");
562
+ let body;
563
+ body = JSON.stringify(smithyClient._json(input));
564
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
565
+ };
566
+ const se_GetExclusionsPreviewCommand = async (input, context) => {
567
+ const headers = sharedHeaders("GetExclusionsPreview");
568
+ let body;
569
+ body = JSON.stringify(smithyClient._json(input));
570
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
571
+ };
572
+ const se_GetTelemetryMetadataCommand = async (input, context) => {
573
+ const headers = sharedHeaders("GetTelemetryMetadata");
574
+ let body;
575
+ body = JSON.stringify(smithyClient._json(input));
576
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
577
+ };
578
+ const se_ListAssessmentRunAgentsCommand = async (input, context) => {
579
+ const headers = sharedHeaders("ListAssessmentRunAgents");
580
+ let body;
581
+ body = JSON.stringify(smithyClient._json(input));
582
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
583
+ };
584
+ const se_ListAssessmentRunsCommand = async (input, context) => {
585
+ const headers = sharedHeaders("ListAssessmentRuns");
586
+ let body;
587
+ body = JSON.stringify(se_ListAssessmentRunsRequest(input));
588
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
589
+ };
590
+ const se_ListAssessmentTargetsCommand = async (input, context) => {
591
+ const headers = sharedHeaders("ListAssessmentTargets");
592
+ let body;
593
+ body = JSON.stringify(smithyClient._json(input));
594
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
595
+ };
596
+ const se_ListAssessmentTemplatesCommand = async (input, context) => {
597
+ const headers = sharedHeaders("ListAssessmentTemplates");
598
+ let body;
599
+ body = JSON.stringify(smithyClient._json(input));
600
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
601
+ };
602
+ const se_ListEventSubscriptionsCommand = async (input, context) => {
603
+ const headers = sharedHeaders("ListEventSubscriptions");
604
+ let body;
605
+ body = JSON.stringify(smithyClient._json(input));
606
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
607
+ };
608
+ const se_ListExclusionsCommand = async (input, context) => {
609
+ const headers = sharedHeaders("ListExclusions");
610
+ let body;
611
+ body = JSON.stringify(smithyClient._json(input));
612
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
613
+ };
614
+ const se_ListFindingsCommand = async (input, context) => {
615
+ const headers = sharedHeaders("ListFindings");
616
+ let body;
617
+ body = JSON.stringify(se_ListFindingsRequest(input));
618
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
619
+ };
620
+ const se_ListRulesPackagesCommand = async (input, context) => {
621
+ const headers = sharedHeaders("ListRulesPackages");
622
+ let body;
623
+ body = JSON.stringify(smithyClient._json(input));
624
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
625
+ };
626
+ const se_ListTagsForResourceCommand = async (input, context) => {
627
+ const headers = sharedHeaders("ListTagsForResource");
628
+ let body;
629
+ body = JSON.stringify(smithyClient._json(input));
630
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
631
+ };
632
+ const se_PreviewAgentsCommand = async (input, context) => {
633
+ const headers = sharedHeaders("PreviewAgents");
634
+ let body;
635
+ body = JSON.stringify(smithyClient._json(input));
636
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
637
+ };
638
+ const se_RegisterCrossAccountAccessRoleCommand = async (input, context) => {
639
+ const headers = sharedHeaders("RegisterCrossAccountAccessRole");
640
+ let body;
641
+ body = JSON.stringify(smithyClient._json(input));
642
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
643
+ };
644
+ const se_RemoveAttributesFromFindingsCommand = async (input, context) => {
645
+ const headers = sharedHeaders("RemoveAttributesFromFindings");
646
+ let body;
647
+ body = JSON.stringify(smithyClient._json(input));
648
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
649
+ };
650
+ const se_SetTagsForResourceCommand = async (input, context) => {
651
+ const headers = sharedHeaders("SetTagsForResource");
652
+ let body;
653
+ body = JSON.stringify(smithyClient._json(input));
654
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
655
+ };
656
+ const se_StartAssessmentRunCommand = async (input, context) => {
657
+ const headers = sharedHeaders("StartAssessmentRun");
658
+ let body;
659
+ body = JSON.stringify(smithyClient._json(input));
660
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
661
+ };
662
+ const se_StopAssessmentRunCommand = async (input, context) => {
663
+ const headers = sharedHeaders("StopAssessmentRun");
664
+ let body;
665
+ body = JSON.stringify(smithyClient._json(input));
666
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
667
+ };
668
+ const se_SubscribeToEventCommand = async (input, context) => {
669
+ const headers = sharedHeaders("SubscribeToEvent");
670
+ let body;
671
+ body = JSON.stringify(smithyClient._json(input));
672
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
673
+ };
674
+ const se_UnsubscribeFromEventCommand = async (input, context) => {
675
+ const headers = sharedHeaders("UnsubscribeFromEvent");
676
+ let body;
677
+ body = JSON.stringify(smithyClient._json(input));
678
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
679
+ };
680
+ const se_UpdateAssessmentTargetCommand = async (input, context) => {
681
+ const headers = sharedHeaders("UpdateAssessmentTarget");
682
+ let body;
683
+ body = JSON.stringify(smithyClient._json(input));
684
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
685
+ };
686
+ const de_AddAttributesToFindingsCommand = async (output, context) => {
687
+ if (output.statusCode >= 300) {
688
+ return de_CommandError(output, context);
689
+ }
690
+ const data = await core$1.parseJsonBody(output.body, context);
691
+ let contents = {};
692
+ contents = smithyClient._json(data);
693
+ const response = {
694
+ $metadata: deserializeMetadata(output),
695
+ ...contents,
696
+ };
697
+ return response;
698
+ };
699
+ const de_CreateAssessmentTargetCommand = async (output, context) => {
700
+ if (output.statusCode >= 300) {
701
+ return de_CommandError(output, context);
702
+ }
703
+ const data = await core$1.parseJsonBody(output.body, context);
704
+ let contents = {};
705
+ contents = smithyClient._json(data);
706
+ const response = {
707
+ $metadata: deserializeMetadata(output),
708
+ ...contents,
709
+ };
710
+ return response;
711
+ };
712
+ const de_CreateAssessmentTemplateCommand = async (output, context) => {
713
+ if (output.statusCode >= 300) {
714
+ return de_CommandError(output, context);
715
+ }
716
+ const data = await core$1.parseJsonBody(output.body, context);
717
+ let contents = {};
718
+ contents = smithyClient._json(data);
719
+ const response = {
720
+ $metadata: deserializeMetadata(output),
721
+ ...contents,
722
+ };
723
+ return response;
724
+ };
725
+ const de_CreateExclusionsPreviewCommand = async (output, context) => {
726
+ if (output.statusCode >= 300) {
727
+ return de_CommandError(output, context);
728
+ }
729
+ const data = await core$1.parseJsonBody(output.body, context);
730
+ let contents = {};
731
+ contents = smithyClient._json(data);
732
+ const response = {
733
+ $metadata: deserializeMetadata(output),
734
+ ...contents,
735
+ };
736
+ return response;
737
+ };
738
+ const de_CreateResourceGroupCommand = async (output, context) => {
739
+ if (output.statusCode >= 300) {
740
+ return de_CommandError(output, context);
741
+ }
742
+ const data = await core$1.parseJsonBody(output.body, context);
743
+ let contents = {};
744
+ contents = smithyClient._json(data);
745
+ const response = {
746
+ $metadata: deserializeMetadata(output),
747
+ ...contents,
748
+ };
749
+ return response;
750
+ };
751
+ const de_DeleteAssessmentRunCommand = async (output, context) => {
752
+ if (output.statusCode >= 300) {
753
+ return de_CommandError(output, context);
754
+ }
755
+ await smithyClient.collectBody(output.body, context);
756
+ const response = {
757
+ $metadata: deserializeMetadata(output),
758
+ };
759
+ return response;
760
+ };
761
+ const de_DeleteAssessmentTargetCommand = async (output, context) => {
762
+ if (output.statusCode >= 300) {
763
+ return de_CommandError(output, context);
764
+ }
765
+ await smithyClient.collectBody(output.body, context);
766
+ const response = {
767
+ $metadata: deserializeMetadata(output),
768
+ };
769
+ return response;
770
+ };
771
+ const de_DeleteAssessmentTemplateCommand = async (output, context) => {
772
+ if (output.statusCode >= 300) {
773
+ return de_CommandError(output, context);
774
+ }
775
+ await smithyClient.collectBody(output.body, context);
776
+ const response = {
777
+ $metadata: deserializeMetadata(output),
778
+ };
779
+ return response;
780
+ };
781
+ const de_DescribeAssessmentRunsCommand = async (output, context) => {
782
+ if (output.statusCode >= 300) {
783
+ return de_CommandError(output, context);
784
+ }
785
+ const data = await core$1.parseJsonBody(output.body, context);
786
+ let contents = {};
787
+ contents = de_DescribeAssessmentRunsResponse(data);
788
+ const response = {
789
+ $metadata: deserializeMetadata(output),
790
+ ...contents,
791
+ };
792
+ return response;
793
+ };
794
+ const de_DescribeAssessmentTargetsCommand = async (output, context) => {
795
+ if (output.statusCode >= 300) {
796
+ return de_CommandError(output, context);
797
+ }
798
+ const data = await core$1.parseJsonBody(output.body, context);
799
+ let contents = {};
800
+ contents = de_DescribeAssessmentTargetsResponse(data);
801
+ const response = {
802
+ $metadata: deserializeMetadata(output),
803
+ ...contents,
804
+ };
805
+ return response;
806
+ };
807
+ const de_DescribeAssessmentTemplatesCommand = async (output, context) => {
808
+ if (output.statusCode >= 300) {
809
+ return de_CommandError(output, context);
810
+ }
811
+ const data = await core$1.parseJsonBody(output.body, context);
812
+ let contents = {};
813
+ contents = de_DescribeAssessmentTemplatesResponse(data);
814
+ const response = {
815
+ $metadata: deserializeMetadata(output),
816
+ ...contents,
817
+ };
818
+ return response;
819
+ };
820
+ const de_DescribeCrossAccountAccessRoleCommand = async (output, context) => {
821
+ if (output.statusCode >= 300) {
822
+ return de_CommandError(output, context);
823
+ }
824
+ const data = await core$1.parseJsonBody(output.body, context);
825
+ let contents = {};
826
+ contents = de_DescribeCrossAccountAccessRoleResponse(data);
827
+ const response = {
828
+ $metadata: deserializeMetadata(output),
829
+ ...contents,
830
+ };
831
+ return response;
832
+ };
833
+ const de_DescribeExclusionsCommand = async (output, context) => {
834
+ if (output.statusCode >= 300) {
835
+ return de_CommandError(output, context);
836
+ }
837
+ const data = await core$1.parseJsonBody(output.body, context);
838
+ let contents = {};
839
+ contents = smithyClient._json(data);
840
+ const response = {
841
+ $metadata: deserializeMetadata(output),
842
+ ...contents,
843
+ };
844
+ return response;
845
+ };
846
+ const de_DescribeFindingsCommand = async (output, context) => {
847
+ if (output.statusCode >= 300) {
848
+ return de_CommandError(output, context);
849
+ }
850
+ const data = await core$1.parseJsonBody(output.body, context);
851
+ let contents = {};
852
+ contents = de_DescribeFindingsResponse(data);
853
+ const response = {
854
+ $metadata: deserializeMetadata(output),
855
+ ...contents,
856
+ };
857
+ return response;
858
+ };
859
+ const de_DescribeResourceGroupsCommand = async (output, context) => {
860
+ if (output.statusCode >= 300) {
861
+ return de_CommandError(output, context);
862
+ }
863
+ const data = await core$1.parseJsonBody(output.body, context);
864
+ let contents = {};
865
+ contents = de_DescribeResourceGroupsResponse(data);
866
+ const response = {
867
+ $metadata: deserializeMetadata(output),
868
+ ...contents,
869
+ };
870
+ return response;
871
+ };
872
+ const de_DescribeRulesPackagesCommand = async (output, context) => {
873
+ if (output.statusCode >= 300) {
874
+ return de_CommandError(output, context);
875
+ }
876
+ const data = await core$1.parseJsonBody(output.body, context);
877
+ let contents = {};
878
+ contents = smithyClient._json(data);
879
+ const response = {
880
+ $metadata: deserializeMetadata(output),
881
+ ...contents,
882
+ };
883
+ return response;
884
+ };
885
+ const de_GetAssessmentReportCommand = async (output, context) => {
886
+ if (output.statusCode >= 300) {
887
+ return de_CommandError(output, context);
888
+ }
889
+ const data = await core$1.parseJsonBody(output.body, context);
890
+ let contents = {};
891
+ contents = smithyClient._json(data);
892
+ const response = {
893
+ $metadata: deserializeMetadata(output),
894
+ ...contents,
895
+ };
896
+ return response;
897
+ };
898
+ const de_GetExclusionsPreviewCommand = async (output, context) => {
899
+ if (output.statusCode >= 300) {
900
+ return de_CommandError(output, context);
901
+ }
902
+ const data = await core$1.parseJsonBody(output.body, context);
903
+ let contents = {};
904
+ contents = smithyClient._json(data);
905
+ const response = {
906
+ $metadata: deserializeMetadata(output),
907
+ ...contents,
908
+ };
909
+ return response;
910
+ };
911
+ const de_GetTelemetryMetadataCommand = async (output, context) => {
912
+ if (output.statusCode >= 300) {
913
+ return de_CommandError(output, context);
914
+ }
915
+ const data = await core$1.parseJsonBody(output.body, context);
916
+ let contents = {};
917
+ contents = smithyClient._json(data);
918
+ const response = {
919
+ $metadata: deserializeMetadata(output),
920
+ ...contents,
921
+ };
922
+ return response;
923
+ };
924
+ const de_ListAssessmentRunAgentsCommand = async (output, context) => {
925
+ if (output.statusCode >= 300) {
926
+ return de_CommandError(output, context);
927
+ }
928
+ const data = await core$1.parseJsonBody(output.body, context);
929
+ let contents = {};
930
+ contents = smithyClient._json(data);
931
+ const response = {
932
+ $metadata: deserializeMetadata(output),
933
+ ...contents,
934
+ };
935
+ return response;
936
+ };
937
+ const de_ListAssessmentRunsCommand = async (output, context) => {
938
+ if (output.statusCode >= 300) {
939
+ return de_CommandError(output, context);
940
+ }
941
+ const data = await core$1.parseJsonBody(output.body, context);
942
+ let contents = {};
943
+ contents = smithyClient._json(data);
944
+ const response = {
945
+ $metadata: deserializeMetadata(output),
946
+ ...contents,
947
+ };
948
+ return response;
949
+ };
950
+ const de_ListAssessmentTargetsCommand = async (output, context) => {
951
+ if (output.statusCode >= 300) {
952
+ return de_CommandError(output, context);
953
+ }
954
+ const data = await core$1.parseJsonBody(output.body, context);
955
+ let contents = {};
956
+ contents = smithyClient._json(data);
957
+ const response = {
958
+ $metadata: deserializeMetadata(output),
959
+ ...contents,
960
+ };
961
+ return response;
962
+ };
963
+ const de_ListAssessmentTemplatesCommand = async (output, context) => {
964
+ if (output.statusCode >= 300) {
965
+ return de_CommandError(output, context);
966
+ }
967
+ const data = await core$1.parseJsonBody(output.body, context);
968
+ let contents = {};
969
+ contents = smithyClient._json(data);
970
+ const response = {
971
+ $metadata: deserializeMetadata(output),
972
+ ...contents,
973
+ };
974
+ return response;
975
+ };
976
+ const de_ListEventSubscriptionsCommand = async (output, context) => {
977
+ if (output.statusCode >= 300) {
978
+ return de_CommandError(output, context);
979
+ }
980
+ const data = await core$1.parseJsonBody(output.body, context);
981
+ let contents = {};
982
+ contents = de_ListEventSubscriptionsResponse(data);
983
+ const response = {
984
+ $metadata: deserializeMetadata(output),
985
+ ...contents,
986
+ };
987
+ return response;
988
+ };
989
+ const de_ListExclusionsCommand = async (output, context) => {
990
+ if (output.statusCode >= 300) {
991
+ return de_CommandError(output, context);
992
+ }
993
+ const data = await core$1.parseJsonBody(output.body, context);
994
+ let contents = {};
995
+ contents = smithyClient._json(data);
996
+ const response = {
997
+ $metadata: deserializeMetadata(output),
998
+ ...contents,
999
+ };
1000
+ return response;
1001
+ };
1002
+ const de_ListFindingsCommand = async (output, context) => {
1003
+ if (output.statusCode >= 300) {
1004
+ return de_CommandError(output, context);
1005
+ }
1006
+ const data = await core$1.parseJsonBody(output.body, context);
1007
+ let contents = {};
1008
+ contents = smithyClient._json(data);
1009
+ const response = {
1010
+ $metadata: deserializeMetadata(output),
1011
+ ...contents,
1012
+ };
1013
+ return response;
1014
+ };
1015
+ const de_ListRulesPackagesCommand = async (output, context) => {
1016
+ if (output.statusCode >= 300) {
1017
+ return de_CommandError(output, context);
1018
+ }
1019
+ const data = await core$1.parseJsonBody(output.body, context);
1020
+ let contents = {};
1021
+ contents = smithyClient._json(data);
1022
+ const response = {
1023
+ $metadata: deserializeMetadata(output),
1024
+ ...contents,
1025
+ };
1026
+ return response;
1027
+ };
1028
+ const de_ListTagsForResourceCommand = async (output, context) => {
1029
+ if (output.statusCode >= 300) {
1030
+ return de_CommandError(output, context);
1031
+ }
1032
+ const data = await core$1.parseJsonBody(output.body, context);
1033
+ let contents = {};
1034
+ contents = smithyClient._json(data);
1035
+ const response = {
1036
+ $metadata: deserializeMetadata(output),
1037
+ ...contents,
1038
+ };
1039
+ return response;
1040
+ };
1041
+ const de_PreviewAgentsCommand = async (output, context) => {
1042
+ if (output.statusCode >= 300) {
1043
+ return de_CommandError(output, context);
1044
+ }
1045
+ const data = await core$1.parseJsonBody(output.body, context);
1046
+ let contents = {};
1047
+ contents = smithyClient._json(data);
1048
+ const response = {
1049
+ $metadata: deserializeMetadata(output),
1050
+ ...contents,
1051
+ };
1052
+ return response;
1053
+ };
1054
+ const de_RegisterCrossAccountAccessRoleCommand = async (output, context) => {
1055
+ if (output.statusCode >= 300) {
1056
+ return de_CommandError(output, context);
1057
+ }
1058
+ await smithyClient.collectBody(output.body, context);
1059
+ const response = {
1060
+ $metadata: deserializeMetadata(output),
1061
+ };
1062
+ return response;
1063
+ };
1064
+ const de_RemoveAttributesFromFindingsCommand = async (output, context) => {
1065
+ if (output.statusCode >= 300) {
1066
+ return de_CommandError(output, context);
1067
+ }
1068
+ const data = await core$1.parseJsonBody(output.body, context);
1069
+ let contents = {};
1070
+ contents = smithyClient._json(data);
1071
+ const response = {
1072
+ $metadata: deserializeMetadata(output),
1073
+ ...contents,
1074
+ };
1075
+ return response;
1076
+ };
1077
+ const de_SetTagsForResourceCommand = async (output, context) => {
1078
+ if (output.statusCode >= 300) {
1079
+ return de_CommandError(output, context);
1080
+ }
1081
+ await smithyClient.collectBody(output.body, context);
1082
+ const response = {
1083
+ $metadata: deserializeMetadata(output),
1084
+ };
1085
+ return response;
1086
+ };
1087
+ const de_StartAssessmentRunCommand = async (output, context) => {
1088
+ if (output.statusCode >= 300) {
1089
+ return de_CommandError(output, context);
1090
+ }
1091
+ const data = await core$1.parseJsonBody(output.body, context);
1092
+ let contents = {};
1093
+ contents = smithyClient._json(data);
1094
+ const response = {
1095
+ $metadata: deserializeMetadata(output),
1096
+ ...contents,
1097
+ };
1098
+ return response;
1099
+ };
1100
+ const de_StopAssessmentRunCommand = async (output, context) => {
1101
+ if (output.statusCode >= 300) {
1102
+ return de_CommandError(output, context);
1103
+ }
1104
+ await smithyClient.collectBody(output.body, context);
1105
+ const response = {
1106
+ $metadata: deserializeMetadata(output),
1107
+ };
1108
+ return response;
1109
+ };
1110
+ const de_SubscribeToEventCommand = async (output, context) => {
1111
+ if (output.statusCode >= 300) {
1112
+ return de_CommandError(output, context);
1113
+ }
1114
+ await smithyClient.collectBody(output.body, context);
1115
+ const response = {
1116
+ $metadata: deserializeMetadata(output),
1117
+ };
1118
+ return response;
1119
+ };
1120
+ const de_UnsubscribeFromEventCommand = async (output, context) => {
1121
+ if (output.statusCode >= 300) {
1122
+ return de_CommandError(output, context);
1123
+ }
1124
+ await smithyClient.collectBody(output.body, context);
1125
+ const response = {
1126
+ $metadata: deserializeMetadata(output),
1127
+ };
1128
+ return response;
1129
+ };
1130
+ const de_UpdateAssessmentTargetCommand = async (output, context) => {
1131
+ if (output.statusCode >= 300) {
1132
+ return de_CommandError(output, context);
1133
+ }
1134
+ await smithyClient.collectBody(output.body, context);
1135
+ const response = {
1136
+ $metadata: deserializeMetadata(output),
1137
+ };
1138
+ return response;
1139
+ };
1140
+ const de_CommandError = async (output, context) => {
1141
+ const parsedOutput = {
1142
+ ...output,
1143
+ body: await core$1.parseJsonErrorBody(output.body, context),
1144
+ };
1145
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1146
+ switch (errorCode) {
1147
+ case "AccessDeniedException":
1148
+ case "com.amazonaws.inspector#AccessDeniedException":
1149
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1150
+ case "InternalException":
1151
+ case "com.amazonaws.inspector#InternalException":
1152
+ throw await de_InternalExceptionRes(parsedOutput);
1153
+ case "InvalidInputException":
1154
+ case "com.amazonaws.inspector#InvalidInputException":
1155
+ throw await de_InvalidInputExceptionRes(parsedOutput);
1156
+ case "NoSuchEntityException":
1157
+ case "com.amazonaws.inspector#NoSuchEntityException":
1158
+ throw await de_NoSuchEntityExceptionRes(parsedOutput);
1159
+ case "ServiceTemporarilyUnavailableException":
1160
+ case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1161
+ throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput);
1162
+ case "InvalidCrossAccountRoleException":
1163
+ case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
1164
+ throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput);
1165
+ case "LimitExceededException":
1166
+ case "com.amazonaws.inspector#LimitExceededException":
1167
+ throw await de_LimitExceededExceptionRes(parsedOutput);
1168
+ case "PreviewGenerationInProgressException":
1169
+ case "com.amazonaws.inspector#PreviewGenerationInProgressException":
1170
+ throw await de_PreviewGenerationInProgressExceptionRes(parsedOutput);
1171
+ case "AssessmentRunInProgressException":
1172
+ case "com.amazonaws.inspector#AssessmentRunInProgressException":
1173
+ throw await de_AssessmentRunInProgressExceptionRes(parsedOutput);
1174
+ case "UnsupportedFeatureException":
1175
+ case "com.amazonaws.inspector#UnsupportedFeatureException":
1176
+ throw await de_UnsupportedFeatureExceptionRes(parsedOutput);
1177
+ case "AgentsAlreadyRunningAssessmentException":
1178
+ case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException":
1179
+ throw await de_AgentsAlreadyRunningAssessmentExceptionRes(parsedOutput);
1180
+ default:
1181
+ const parsedBody = parsedOutput.body;
1182
+ return throwDefaultError({
1183
+ output,
1184
+ parsedBody,
1185
+ errorCode,
1186
+ });
1187
+ }
276
1188
  };
277
-
278
- // src/models/models_0.ts
279
- var AccessDeniedErrorCode = {
280
- ACCESS_DENIED_TO_ASSESSMENT_RUN: "ACCESS_DENIED_TO_ASSESSMENT_RUN",
281
- ACCESS_DENIED_TO_ASSESSMENT_TARGET: "ACCESS_DENIED_TO_ASSESSMENT_TARGET",
282
- ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE: "ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE",
283
- ACCESS_DENIED_TO_FINDING: "ACCESS_DENIED_TO_FINDING",
284
- ACCESS_DENIED_TO_IAM_ROLE: "ACCESS_DENIED_TO_IAM_ROLE",
285
- ACCESS_DENIED_TO_RESOURCE_GROUP: "ACCESS_DENIED_TO_RESOURCE_GROUP",
286
- ACCESS_DENIED_TO_RULES_PACKAGE: "ACCESS_DENIED_TO_RULES_PACKAGE",
287
- ACCESS_DENIED_TO_SNS_TOPIC: "ACCESS_DENIED_TO_SNS_TOPIC"
288
- };
289
- var AccessDeniedException = class _AccessDeniedException extends InspectorServiceException {
290
- static {
291
- __name(this, "AccessDeniedException");
292
- }
293
- name = "AccessDeniedException";
294
- $fault = "client";
295
- /**
296
- * <p>Code that indicates the type of error that is generated.</p>
297
- * @public
298
- */
299
- errorCode;
300
- /**
301
- * <p>You can immediately retry your request.</p>
302
- * @public
303
- */
304
- canRetry;
305
- /**
306
- * @internal
307
- */
308
- constructor(opts) {
309
- super({
310
- name: "AccessDeniedException",
311
- $fault: "client",
312
- ...opts
1189
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1190
+ const body = parsedOutput.body;
1191
+ const deserialized = smithyClient._json(body);
1192
+ const exception = new AccessDeniedException({
1193
+ $metadata: deserializeMetadata(parsedOutput),
1194
+ ...deserialized,
313
1195
  });
314
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
315
- this.errorCode = opts.errorCode;
316
- this.canRetry = opts.canRetry;
317
- }
318
- };
319
- var FailedItemErrorCode = {
320
- ACCESS_DENIED: "ACCESS_DENIED",
321
- DUPLICATE_ARN: "DUPLICATE_ARN",
322
- INTERNAL_ERROR: "INTERNAL_ERROR",
323
- INVALID_ARN: "INVALID_ARN",
324
- ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
325
- LIMIT_EXCEEDED: "LIMIT_EXCEEDED"
326
- };
327
- var InternalException = class _InternalException extends InspectorServiceException {
328
- static {
329
- __name(this, "InternalException");
330
- }
331
- name = "InternalException";
332
- $fault = "server";
333
- /**
334
- * <p>You can immediately retry your request.</p>
335
- * @public
336
- */
337
- canRetry;
338
- /**
339
- * @internal
340
- */
341
- constructor(opts) {
342
- super({
343
- name: "InternalException",
344
- $fault: "server",
345
- ...opts
1196
+ return smithyClient.decorateServiceException(exception, body);
1197
+ };
1198
+ const de_AgentsAlreadyRunningAssessmentExceptionRes = async (parsedOutput, context) => {
1199
+ const body = parsedOutput.body;
1200
+ const deserialized = smithyClient._json(body);
1201
+ const exception = new AgentsAlreadyRunningAssessmentException({
1202
+ $metadata: deserializeMetadata(parsedOutput),
1203
+ ...deserialized,
346
1204
  });
347
- Object.setPrototypeOf(this, _InternalException.prototype);
348
- this.canRetry = opts.canRetry;
349
- }
350
- };
351
- var InvalidInputErrorCode = {
352
- ASSESSMENT_TARGET_NAME_ALREADY_TAKEN: "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN",
353
- ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN: "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN",
354
- INVALID_AGENT_ID: "INVALID_AGENT_ID",
355
- INVALID_ASSESSMENT_RUN_ARN: "INVALID_ASSESSMENT_RUN_ARN",
356
- INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE: "INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE",
357
- INVALID_ASSESSMENT_RUN_DURATION_RANGE: "INVALID_ASSESSMENT_RUN_DURATION_RANGE",
358
- INVALID_ASSESSMENT_RUN_START_TIME_RANGE: "INVALID_ASSESSMENT_RUN_START_TIME_RANGE",
359
- INVALID_ASSESSMENT_RUN_STATE: "INVALID_ASSESSMENT_RUN_STATE",
360
- INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE: "INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE",
361
- INVALID_ASSESSMENT_TARGET_ARN: "INVALID_ASSESSMENT_TARGET_ARN",
362
- INVALID_ASSESSMENT_TARGET_NAME: "INVALID_ASSESSMENT_TARGET_NAME",
363
- INVALID_ASSESSMENT_TARGET_NAME_PATTERN: "INVALID_ASSESSMENT_TARGET_NAME_PATTERN",
364
- INVALID_ASSESSMENT_TEMPLATE_ARN: "INVALID_ASSESSMENT_TEMPLATE_ARN",
365
- INVALID_ASSESSMENT_TEMPLATE_DURATION: "INVALID_ASSESSMENT_TEMPLATE_DURATION",
366
- INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE: "INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE",
367
- INVALID_ASSESSMENT_TEMPLATE_NAME: "INVALID_ASSESSMENT_TEMPLATE_NAME",
368
- INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN: "INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN",
369
- INVALID_ATTRIBUTE: "INVALID_ATTRIBUTE",
370
- INVALID_AUTO_SCALING_GROUP: "INVALID_AUTO_SCALING_GROUP",
371
- INVALID_EVENT: "INVALID_EVENT",
372
- INVALID_FINDING_ARN: "INVALID_FINDING_ARN",
373
- INVALID_IAM_ROLE_ARN: "INVALID_IAM_ROLE_ARN",
374
- INVALID_LOCALE: "INVALID_LOCALE",
375
- INVALID_MAX_RESULTS: "INVALID_MAX_RESULTS",
376
- INVALID_NUMBER_OF_AGENT_IDS: "INVALID_NUMBER_OF_AGENT_IDS",
377
- INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS",
378
- INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES: "INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES",
379
- INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS",
380
- INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS",
381
- INVALID_NUMBER_OF_ATTRIBUTES: "INVALID_NUMBER_OF_ATTRIBUTES",
382
- INVALID_NUMBER_OF_AUTO_SCALING_GROUPS: "INVALID_NUMBER_OF_AUTO_SCALING_GROUPS",
383
- INVALID_NUMBER_OF_FINDING_ARNS: "INVALID_NUMBER_OF_FINDING_ARNS",
384
- INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS: "INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS",
385
- INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS: "INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS",
386
- INVALID_NUMBER_OF_RULES_PACKAGE_ARNS: "INVALID_NUMBER_OF_RULES_PACKAGE_ARNS",
387
- INVALID_NUMBER_OF_RULE_NAMES: "INVALID_NUMBER_OF_RULE_NAMES",
388
- INVALID_NUMBER_OF_SEVERITIES: "INVALID_NUMBER_OF_SEVERITIES",
389
- INVALID_NUMBER_OF_TAGS: "INVALID_NUMBER_OF_TAGS",
390
- INVALID_NUMBER_OF_USER_ATTRIBUTES: "INVALID_NUMBER_OF_USER_ATTRIBUTES",
391
- INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
392
- INVALID_RESOURCE_ARN: "INVALID_RESOURCE_ARN",
393
- INVALID_RESOURCE_GROUP_ARN: "INVALID_RESOURCE_GROUP_ARN",
394
- INVALID_RESOURCE_GROUP_TAG_KEY: "INVALID_RESOURCE_GROUP_TAG_KEY",
395
- INVALID_RESOURCE_GROUP_TAG_VALUE: "INVALID_RESOURCE_GROUP_TAG_VALUE",
396
- INVALID_RULES_PACKAGE_ARN: "INVALID_RULES_PACKAGE_ARN",
397
- INVALID_RULE_NAME: "INVALID_RULE_NAME",
398
- INVALID_SEVERITY: "INVALID_SEVERITY",
399
- INVALID_SNS_TOPIC_ARN: "INVALID_SNS_TOPIC_ARN",
400
- INVALID_TAG: "INVALID_TAG",
401
- INVALID_TAG_KEY: "INVALID_TAG_KEY",
402
- INVALID_TAG_VALUE: "INVALID_TAG_VALUE",
403
- INVALID_USER_ATTRIBUTE: "INVALID_USER_ATTRIBUTE",
404
- INVALID_USER_ATTRIBUTE_KEY: "INVALID_USER_ATTRIBUTE_KEY",
405
- INVALID_USER_ATTRIBUTE_VALUE: "INVALID_USER_ATTRIBUTE_VALUE"
406
- };
407
- var InvalidInputException = class _InvalidInputException extends InspectorServiceException {
408
- static {
409
- __name(this, "InvalidInputException");
410
- }
411
- name = "InvalidInputException";
412
- $fault = "client";
413
- /**
414
- * <p>Code that indicates the type of error that is generated.</p>
415
- * @public
416
- */
417
- errorCode;
418
- /**
419
- * <p>You can immediately retry your request.</p>
420
- * @public
421
- */
422
- canRetry;
423
- /**
424
- * @internal
425
- */
426
- constructor(opts) {
427
- super({
428
- name: "InvalidInputException",
429
- $fault: "client",
430
- ...opts
1205
+ return smithyClient.decorateServiceException(exception, body);
1206
+ };
1207
+ const de_AssessmentRunInProgressExceptionRes = async (parsedOutput, context) => {
1208
+ const body = parsedOutput.body;
1209
+ const deserialized = smithyClient._json(body);
1210
+ const exception = new AssessmentRunInProgressException({
1211
+ $metadata: deserializeMetadata(parsedOutput),
1212
+ ...deserialized,
431
1213
  });
432
- Object.setPrototypeOf(this, _InvalidInputException.prototype);
433
- this.errorCode = opts.errorCode;
434
- this.canRetry = opts.canRetry;
435
- }
436
- };
437
- var NoSuchEntityErrorCode = {
438
- ASSESSMENT_RUN_DOES_NOT_EXIST: "ASSESSMENT_RUN_DOES_NOT_EXIST",
439
- ASSESSMENT_TARGET_DOES_NOT_EXIST: "ASSESSMENT_TARGET_DOES_NOT_EXIST",
440
- ASSESSMENT_TEMPLATE_DOES_NOT_EXIST: "ASSESSMENT_TEMPLATE_DOES_NOT_EXIST",
441
- FINDING_DOES_NOT_EXIST: "FINDING_DOES_NOT_EXIST",
442
- IAM_ROLE_DOES_NOT_EXIST: "IAM_ROLE_DOES_NOT_EXIST",
443
- RESOURCE_GROUP_DOES_NOT_EXIST: "RESOURCE_GROUP_DOES_NOT_EXIST",
444
- RULES_PACKAGE_DOES_NOT_EXIST: "RULES_PACKAGE_DOES_NOT_EXIST",
445
- SNS_TOPIC_DOES_NOT_EXIST: "SNS_TOPIC_DOES_NOT_EXIST"
446
- };
447
- var NoSuchEntityException = class _NoSuchEntityException extends InspectorServiceException {
448
- static {
449
- __name(this, "NoSuchEntityException");
450
- }
451
- name = "NoSuchEntityException";
452
- $fault = "client";
453
- /**
454
- * <p>Code that indicates the type of error that is generated.</p>
455
- * @public
456
- */
457
- errorCode;
458
- /**
459
- * <p>You can immediately retry your request.</p>
460
- * @public
461
- */
462
- canRetry;
463
- /**
464
- * @internal
465
- */
466
- constructor(opts) {
467
- super({
468
- name: "NoSuchEntityException",
469
- $fault: "client",
470
- ...opts
1214
+ return smithyClient.decorateServiceException(exception, body);
1215
+ };
1216
+ const de_InternalExceptionRes = async (parsedOutput, context) => {
1217
+ const body = parsedOutput.body;
1218
+ const deserialized = smithyClient._json(body);
1219
+ const exception = new InternalException({
1220
+ $metadata: deserializeMetadata(parsedOutput),
1221
+ ...deserialized,
471
1222
  });
472
- Object.setPrototypeOf(this, _NoSuchEntityException.prototype);
473
- this.errorCode = opts.errorCode;
474
- this.canRetry = opts.canRetry;
475
- }
476
- };
477
- var ServiceTemporarilyUnavailableException = class _ServiceTemporarilyUnavailableException extends InspectorServiceException {
478
- static {
479
- __name(this, "ServiceTemporarilyUnavailableException");
480
- }
481
- name = "ServiceTemporarilyUnavailableException";
482
- $fault = "server";
483
- /**
484
- * <p>You can wait and then retry your request.</p>
485
- * @public
486
- */
487
- canRetry;
488
- /**
489
- * @internal
490
- */
491
- constructor(opts) {
492
- super({
493
- name: "ServiceTemporarilyUnavailableException",
494
- $fault: "server",
495
- ...opts
1223
+ return smithyClient.decorateServiceException(exception, body);
1224
+ };
1225
+ const de_InvalidCrossAccountRoleExceptionRes = async (parsedOutput, context) => {
1226
+ const body = parsedOutput.body;
1227
+ const deserialized = smithyClient._json(body);
1228
+ const exception = new InvalidCrossAccountRoleException({
1229
+ $metadata: deserializeMetadata(parsedOutput),
1230
+ ...deserialized,
496
1231
  });
497
- Object.setPrototypeOf(this, _ServiceTemporarilyUnavailableException.prototype);
498
- this.canRetry = opts.canRetry;
499
- }
500
- };
501
- var AgentHealthCode = {
502
- IDLE: "IDLE",
503
- RUNNING: "RUNNING",
504
- SHUTDOWN: "SHUTDOWN",
505
- THROTTLED: "THROTTLED",
506
- UNHEALTHY: "UNHEALTHY",
507
- UNKNOWN: "UNKNOWN"
508
- };
509
- var AgentHealth = {
510
- HEALTHY: "HEALTHY",
511
- UNHEALTHY: "UNHEALTHY",
512
- UNKNOWN: "UNKNOWN"
513
- };
514
- var AgentsAlreadyRunningAssessmentException = class _AgentsAlreadyRunningAssessmentException extends InspectorServiceException {
515
- static {
516
- __name(this, "AgentsAlreadyRunningAssessmentException");
517
- }
518
- name = "AgentsAlreadyRunningAssessmentException";
519
- $fault = "client";
520
- /**
521
- * <p></p>
522
- * @public
523
- */
524
- agents;
525
- /**
526
- * <p></p>
527
- * @public
528
- */
529
- agentsTruncated;
530
- /**
531
- * <p>You can immediately retry your request.</p>
532
- * @public
533
- */
534
- canRetry;
535
- /**
536
- * @internal
537
- */
538
- constructor(opts) {
539
- super({
540
- name: "AgentsAlreadyRunningAssessmentException",
541
- $fault: "client",
542
- ...opts
1232
+ return smithyClient.decorateServiceException(exception, body);
1233
+ };
1234
+ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
1235
+ const body = parsedOutput.body;
1236
+ const deserialized = smithyClient._json(body);
1237
+ const exception = new InvalidInputException({
1238
+ $metadata: deserializeMetadata(parsedOutput),
1239
+ ...deserialized,
543
1240
  });
544
- Object.setPrototypeOf(this, _AgentsAlreadyRunningAssessmentException.prototype);
545
- this.agents = opts.agents;
546
- this.agentsTruncated = opts.agentsTruncated;
547
- this.canRetry = opts.canRetry;
548
- }
549
- };
550
- var Severity = {
551
- HIGH: "High",
552
- INFORMATIONAL: "Informational",
553
- LOW: "Low",
554
- MEDIUM: "Medium",
555
- UNDEFINED: "Undefined"
556
- };
557
- var InspectorEvent = {
558
- ASSESSMENT_RUN_COMPLETED: "ASSESSMENT_RUN_COMPLETED",
559
- ASSESSMENT_RUN_STARTED: "ASSESSMENT_RUN_STARTED",
560
- ASSESSMENT_RUN_STATE_CHANGED: "ASSESSMENT_RUN_STATE_CHANGED",
561
- FINDING_REPORTED: "FINDING_REPORTED",
562
- OTHER: "OTHER"
563
- };
564
- var AssessmentRunNotificationSnsStatusCode = {
565
- ACCESS_DENIED: "ACCESS_DENIED",
566
- INTERNAL_ERROR: "INTERNAL_ERROR",
567
- SUCCESS: "SUCCESS",
568
- TOPIC_DOES_NOT_EXIST: "TOPIC_DOES_NOT_EXIST"
569
- };
570
- var AssessmentRunState = {
571
- CANCELED: "CANCELED",
572
- COLLECTING_DATA: "COLLECTING_DATA",
573
- COMPLETED: "COMPLETED",
574
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
575
- CREATED: "CREATED",
576
- DATA_COLLECTED: "DATA_COLLECTED",
577
- ERROR: "ERROR",
578
- EVALUATING_RULES: "EVALUATING_RULES",
579
- FAILED: "FAILED",
580
- START_DATA_COLLECTION_IN_PROGRESS: "START_DATA_COLLECTION_IN_PROGRESS",
581
- START_DATA_COLLECTION_PENDING: "START_DATA_COLLECTION_PENDING",
582
- START_EVALUATING_RULES_PENDING: "START_EVALUATING_RULES_PENDING",
583
- STOP_DATA_COLLECTION_PENDING: "STOP_DATA_COLLECTION_PENDING"
584
- };
585
- var AssessmentRunInProgressException = class _AssessmentRunInProgressException extends InspectorServiceException {
586
- static {
587
- __name(this, "AssessmentRunInProgressException");
588
- }
589
- name = "AssessmentRunInProgressException";
590
- $fault = "client";
591
- /**
592
- * <p>The ARNs of the assessment runs that are currently in progress.</p>
593
- * @public
594
- */
595
- assessmentRunArns;
596
- /**
597
- * <p>Boolean value that indicates whether the ARN list of the assessment runs is
598
- * truncated.</p>
599
- * @public
600
- */
601
- assessmentRunArnsTruncated;
602
- /**
603
- * <p>You can immediately retry your request.</p>
604
- * @public
605
- */
606
- canRetry;
607
- /**
608
- * @internal
609
- */
610
- constructor(opts) {
611
- super({
612
- name: "AssessmentRunInProgressException",
613
- $fault: "client",
614
- ...opts
1241
+ return smithyClient.decorateServiceException(exception, body);
1242
+ };
1243
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1244
+ const body = parsedOutput.body;
1245
+ const deserialized = smithyClient._json(body);
1246
+ const exception = new LimitExceededException({
1247
+ $metadata: deserializeMetadata(parsedOutput),
1248
+ ...deserialized,
615
1249
  });
616
- Object.setPrototypeOf(this, _AssessmentRunInProgressException.prototype);
617
- this.assessmentRunArns = opts.assessmentRunArns;
618
- this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
619
- this.canRetry = opts.canRetry;
620
- }
621
- };
622
- var AssetType = {
623
- EC2_INSTANCE: "ec2-instance"
624
- };
625
- var InvalidCrossAccountRoleErrorCode = {
626
- ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP: "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP",
627
- ROLE_DOES_NOT_HAVE_CORRECT_POLICY: "ROLE_DOES_NOT_HAVE_CORRECT_POLICY"
628
- };
629
- var InvalidCrossAccountRoleException = class _InvalidCrossAccountRoleException extends InspectorServiceException {
630
- static {
631
- __name(this, "InvalidCrossAccountRoleException");
632
- }
633
- name = "InvalidCrossAccountRoleException";
634
- $fault = "client";
635
- /**
636
- * <p>Code that indicates the type of error that is generated.</p>
637
- * @public
638
- */
639
- errorCode;
640
- /**
641
- * <p>You can immediately retry your request.</p>
642
- * @public
643
- */
644
- canRetry;
645
- /**
646
- * @internal
647
- */
648
- constructor(opts) {
649
- super({
650
- name: "InvalidCrossAccountRoleException",
651
- $fault: "client",
652
- ...opts
1250
+ return smithyClient.decorateServiceException(exception, body);
1251
+ };
1252
+ const de_NoSuchEntityExceptionRes = async (parsedOutput, context) => {
1253
+ const body = parsedOutput.body;
1254
+ const deserialized = smithyClient._json(body);
1255
+ const exception = new NoSuchEntityException({
1256
+ $metadata: deserializeMetadata(parsedOutput),
1257
+ ...deserialized,
653
1258
  });
654
- Object.setPrototypeOf(this, _InvalidCrossAccountRoleException.prototype);
655
- this.errorCode = opts.errorCode;
656
- this.canRetry = opts.canRetry;
657
- }
658
- };
659
- var LimitExceededErrorCode = {
660
- ASSESSMENT_RUN_LIMIT_EXCEEDED: "ASSESSMENT_RUN_LIMIT_EXCEEDED",
661
- ASSESSMENT_TARGET_LIMIT_EXCEEDED: "ASSESSMENT_TARGET_LIMIT_EXCEEDED",
662
- ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED: "ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED",
663
- EVENT_SUBSCRIPTION_LIMIT_EXCEEDED: "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED",
664
- RESOURCE_GROUP_LIMIT_EXCEEDED: "RESOURCE_GROUP_LIMIT_EXCEEDED"
665
- };
666
- var LimitExceededException = class _LimitExceededException extends InspectorServiceException {
667
- static {
668
- __name(this, "LimitExceededException");
669
- }
670
- name = "LimitExceededException";
671
- $fault = "client";
672
- /**
673
- * <p>Code that indicates the type of error that is generated.</p>
674
- * @public
675
- */
676
- errorCode;
677
- /**
678
- * <p>You can immediately retry your request.</p>
679
- * @public
680
- */
681
- canRetry;
682
- /**
683
- * @internal
684
- */
685
- constructor(opts) {
686
- super({
687
- name: "LimitExceededException",
688
- $fault: "client",
689
- ...opts
1259
+ return smithyClient.decorateServiceException(exception, body);
1260
+ };
1261
+ const de_PreviewGenerationInProgressExceptionRes = async (parsedOutput, context) => {
1262
+ const body = parsedOutput.body;
1263
+ const deserialized = smithyClient._json(body);
1264
+ const exception = new PreviewGenerationInProgressException({
1265
+ $metadata: deserializeMetadata(parsedOutput),
1266
+ ...deserialized,
690
1267
  });
691
- Object.setPrototypeOf(this, _LimitExceededException.prototype);
692
- this.errorCode = opts.errorCode;
693
- this.canRetry = opts.canRetry;
694
- }
695
- };
696
- var PreviewGenerationInProgressException = class _PreviewGenerationInProgressException extends InspectorServiceException {
697
- static {
698
- __name(this, "PreviewGenerationInProgressException");
699
- }
700
- name = "PreviewGenerationInProgressException";
701
- $fault = "client";
702
- /**
703
- * @internal
704
- */
705
- constructor(opts) {
706
- super({
707
- name: "PreviewGenerationInProgressException",
708
- $fault: "client",
709
- ...opts
1268
+ return smithyClient.decorateServiceException(exception, body);
1269
+ };
1270
+ const de_ServiceTemporarilyUnavailableExceptionRes = async (parsedOutput, context) => {
1271
+ const body = parsedOutput.body;
1272
+ const deserialized = smithyClient._json(body);
1273
+ const exception = new ServiceTemporarilyUnavailableException({
1274
+ $metadata: deserializeMetadata(parsedOutput),
1275
+ ...deserialized,
710
1276
  });
711
- Object.setPrototypeOf(this, _PreviewGenerationInProgressException.prototype);
712
- }
713
- };
714
- var Locale = {
715
- EN_US: "EN_US"
716
- };
717
- var ScopeType = {
718
- INSTANCE_ID: "INSTANCE_ID",
719
- RULES_PACKAGE_ARN: "RULES_PACKAGE_ARN"
720
- };
721
- var ReportFileFormat = {
722
- HTML: "HTML",
723
- PDF: "PDF"
724
- };
725
- var ReportType = {
726
- FINDING: "FINDING",
727
- FULL: "FULL"
728
- };
729
- var ReportStatus = {
730
- COMPLETED: "COMPLETED",
731
- FAILED: "FAILED",
732
- WORK_IN_PROGRESS: "WORK_IN_PROGRESS"
733
- };
734
- var UnsupportedFeatureException = class _UnsupportedFeatureException extends InspectorServiceException {
735
- static {
736
- __name(this, "UnsupportedFeatureException");
737
- }
738
- name = "UnsupportedFeatureException";
739
- $fault = "client";
740
- canRetry;
741
- /**
742
- * @internal
743
- */
744
- constructor(opts) {
745
- super({
746
- name: "UnsupportedFeatureException",
747
- $fault: "client",
748
- ...opts
1277
+ return smithyClient.decorateServiceException(exception, body);
1278
+ };
1279
+ const de_UnsupportedFeatureExceptionRes = async (parsedOutput, context) => {
1280
+ const body = parsedOutput.body;
1281
+ const deserialized = smithyClient._json(body);
1282
+ const exception = new UnsupportedFeatureException({
1283
+ $metadata: deserializeMetadata(parsedOutput),
1284
+ ...deserialized,
1285
+ });
1286
+ return smithyClient.decorateServiceException(exception, body);
1287
+ };
1288
+ const se_AssessmentRunFilter = (input, context) => {
1289
+ return smithyClient.take(input, {
1290
+ completionTimeRange: (_) => se_TimestampRange(_),
1291
+ durationRange: smithyClient._json,
1292
+ namePattern: [],
1293
+ rulesPackageArns: smithyClient._json,
1294
+ startTimeRange: (_) => se_TimestampRange(_),
1295
+ stateChangeTimeRange: (_) => se_TimestampRange(_),
1296
+ states: smithyClient._json,
749
1297
  });
750
- Object.setPrototypeOf(this, _UnsupportedFeatureException.prototype);
751
- this.canRetry = opts.canRetry;
752
- }
753
- };
754
- var PreviewStatus = {
755
- COMPLETED: "COMPLETED",
756
- WORK_IN_PROGRESS: "WORK_IN_PROGRESS"
757
- };
758
- var StopAction = {
759
- SKIP_EVALUATION: "SKIP_EVALUATION",
760
- START_EVALUATION: "START_EVALUATION"
761
- };
762
-
763
- // src/protocols/Aws_json1_1.ts
764
- var se_AddAttributesToFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
765
- const headers = sharedHeaders("AddAttributesToFindings");
766
- let body;
767
- body = JSON.stringify((0, import_smithy_client._json)(input));
768
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
769
- }, "se_AddAttributesToFindingsCommand");
770
- var se_CreateAssessmentTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
771
- const headers = sharedHeaders("CreateAssessmentTarget");
772
- let body;
773
- body = JSON.stringify((0, import_smithy_client._json)(input));
774
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
775
- }, "se_CreateAssessmentTargetCommand");
776
- var se_CreateAssessmentTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
777
- const headers = sharedHeaders("CreateAssessmentTemplate");
778
- let body;
779
- body = JSON.stringify((0, import_smithy_client._json)(input));
780
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
781
- }, "se_CreateAssessmentTemplateCommand");
782
- var se_CreateExclusionsPreviewCommand = /* @__PURE__ */ __name(async (input, context) => {
783
- const headers = sharedHeaders("CreateExclusionsPreview");
784
- let body;
785
- body = JSON.stringify((0, import_smithy_client._json)(input));
786
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
787
- }, "se_CreateExclusionsPreviewCommand");
788
- var se_CreateResourceGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
789
- const headers = sharedHeaders("CreateResourceGroup");
790
- let body;
791
- body = JSON.stringify((0, import_smithy_client._json)(input));
792
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
793
- }, "se_CreateResourceGroupCommand");
794
- var se_DeleteAssessmentRunCommand = /* @__PURE__ */ __name(async (input, context) => {
795
- const headers = sharedHeaders("DeleteAssessmentRun");
796
- let body;
797
- body = JSON.stringify((0, import_smithy_client._json)(input));
798
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
799
- }, "se_DeleteAssessmentRunCommand");
800
- var se_DeleteAssessmentTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
801
- const headers = sharedHeaders("DeleteAssessmentTarget");
802
- let body;
803
- body = JSON.stringify((0, import_smithy_client._json)(input));
804
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
805
- }, "se_DeleteAssessmentTargetCommand");
806
- var se_DeleteAssessmentTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
807
- const headers = sharedHeaders("DeleteAssessmentTemplate");
808
- let body;
809
- body = JSON.stringify((0, import_smithy_client._json)(input));
810
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
811
- }, "se_DeleteAssessmentTemplateCommand");
812
- var se_DescribeAssessmentRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
813
- const headers = sharedHeaders("DescribeAssessmentRuns");
814
- let body;
815
- body = JSON.stringify((0, import_smithy_client._json)(input));
816
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
817
- }, "se_DescribeAssessmentRunsCommand");
818
- var se_DescribeAssessmentTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
819
- const headers = sharedHeaders("DescribeAssessmentTargets");
820
- let body;
821
- body = JSON.stringify((0, import_smithy_client._json)(input));
822
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
823
- }, "se_DescribeAssessmentTargetsCommand");
824
- var se_DescribeAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
825
- const headers = sharedHeaders("DescribeAssessmentTemplates");
826
- let body;
827
- body = JSON.stringify((0, import_smithy_client._json)(input));
828
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
829
- }, "se_DescribeAssessmentTemplatesCommand");
830
- var se_DescribeCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
831
- const headers = sharedHeaders("DescribeCrossAccountAccessRole");
832
- const body = "{}";
833
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
834
- }, "se_DescribeCrossAccountAccessRoleCommand");
835
- var se_DescribeExclusionsCommand = /* @__PURE__ */ __name(async (input, context) => {
836
- const headers = sharedHeaders("DescribeExclusions");
837
- let body;
838
- body = JSON.stringify((0, import_smithy_client._json)(input));
839
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
840
- }, "se_DescribeExclusionsCommand");
841
- var se_DescribeFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
842
- const headers = sharedHeaders("DescribeFindings");
843
- let body;
844
- body = JSON.stringify((0, import_smithy_client._json)(input));
845
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
846
- }, "se_DescribeFindingsCommand");
847
- var se_DescribeResourceGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
848
- const headers = sharedHeaders("DescribeResourceGroups");
849
- let body;
850
- body = JSON.stringify((0, import_smithy_client._json)(input));
851
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
852
- }, "se_DescribeResourceGroupsCommand");
853
- var se_DescribeRulesPackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
854
- const headers = sharedHeaders("DescribeRulesPackages");
855
- let body;
856
- body = JSON.stringify((0, import_smithy_client._json)(input));
857
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
858
- }, "se_DescribeRulesPackagesCommand");
859
- var se_GetAssessmentReportCommand = /* @__PURE__ */ __name(async (input, context) => {
860
- const headers = sharedHeaders("GetAssessmentReport");
861
- let body;
862
- body = JSON.stringify((0, import_smithy_client._json)(input));
863
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
864
- }, "se_GetAssessmentReportCommand");
865
- var se_GetExclusionsPreviewCommand = /* @__PURE__ */ __name(async (input, context) => {
866
- const headers = sharedHeaders("GetExclusionsPreview");
867
- let body;
868
- body = JSON.stringify((0, import_smithy_client._json)(input));
869
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
870
- }, "se_GetExclusionsPreviewCommand");
871
- var se_GetTelemetryMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
872
- const headers = sharedHeaders("GetTelemetryMetadata");
873
- let body;
874
- body = JSON.stringify((0, import_smithy_client._json)(input));
875
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
876
- }, "se_GetTelemetryMetadataCommand");
877
- var se_ListAssessmentRunAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
878
- const headers = sharedHeaders("ListAssessmentRunAgents");
879
- let body;
880
- body = JSON.stringify((0, import_smithy_client._json)(input));
881
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
882
- }, "se_ListAssessmentRunAgentsCommand");
883
- var se_ListAssessmentRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
884
- const headers = sharedHeaders("ListAssessmentRuns");
885
- let body;
886
- body = JSON.stringify(se_ListAssessmentRunsRequest(input, context));
887
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
888
- }, "se_ListAssessmentRunsCommand");
889
- var se_ListAssessmentTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
890
- const headers = sharedHeaders("ListAssessmentTargets");
891
- let body;
892
- body = JSON.stringify((0, import_smithy_client._json)(input));
893
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
894
- }, "se_ListAssessmentTargetsCommand");
895
- var se_ListAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
896
- const headers = sharedHeaders("ListAssessmentTemplates");
897
- let body;
898
- body = JSON.stringify((0, import_smithy_client._json)(input));
899
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
900
- }, "se_ListAssessmentTemplatesCommand");
901
- var se_ListEventSubscriptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
902
- const headers = sharedHeaders("ListEventSubscriptions");
903
- let body;
904
- body = JSON.stringify((0, import_smithy_client._json)(input));
905
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
906
- }, "se_ListEventSubscriptionsCommand");
907
- var se_ListExclusionsCommand = /* @__PURE__ */ __name(async (input, context) => {
908
- const headers = sharedHeaders("ListExclusions");
909
- let body;
910
- body = JSON.stringify((0, import_smithy_client._json)(input));
911
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
912
- }, "se_ListExclusionsCommand");
913
- var se_ListFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
914
- const headers = sharedHeaders("ListFindings");
915
- let body;
916
- body = JSON.stringify(se_ListFindingsRequest(input, context));
917
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
918
- }, "se_ListFindingsCommand");
919
- var se_ListRulesPackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
920
- const headers = sharedHeaders("ListRulesPackages");
921
- let body;
922
- body = JSON.stringify((0, import_smithy_client._json)(input));
923
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
924
- }, "se_ListRulesPackagesCommand");
925
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
926
- const headers = sharedHeaders("ListTagsForResource");
927
- let body;
928
- body = JSON.stringify((0, import_smithy_client._json)(input));
929
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
930
- }, "se_ListTagsForResourceCommand");
931
- var se_PreviewAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
932
- const headers = sharedHeaders("PreviewAgents");
933
- let body;
934
- body = JSON.stringify((0, import_smithy_client._json)(input));
935
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
936
- }, "se_PreviewAgentsCommand");
937
- var se_RegisterCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
938
- const headers = sharedHeaders("RegisterCrossAccountAccessRole");
939
- let body;
940
- body = JSON.stringify((0, import_smithy_client._json)(input));
941
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
942
- }, "se_RegisterCrossAccountAccessRoleCommand");
943
- var se_RemoveAttributesFromFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
944
- const headers = sharedHeaders("RemoveAttributesFromFindings");
945
- let body;
946
- body = JSON.stringify((0, import_smithy_client._json)(input));
947
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
948
- }, "se_RemoveAttributesFromFindingsCommand");
949
- var se_SetTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
950
- const headers = sharedHeaders("SetTagsForResource");
951
- let body;
952
- body = JSON.stringify((0, import_smithy_client._json)(input));
953
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
954
- }, "se_SetTagsForResourceCommand");
955
- var se_StartAssessmentRunCommand = /* @__PURE__ */ __name(async (input, context) => {
956
- const headers = sharedHeaders("StartAssessmentRun");
957
- let body;
958
- body = JSON.stringify((0, import_smithy_client._json)(input));
959
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
960
- }, "se_StartAssessmentRunCommand");
961
- var se_StopAssessmentRunCommand = /* @__PURE__ */ __name(async (input, context) => {
962
- const headers = sharedHeaders("StopAssessmentRun");
963
- let body;
964
- body = JSON.stringify((0, import_smithy_client._json)(input));
965
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
966
- }, "se_StopAssessmentRunCommand");
967
- var se_SubscribeToEventCommand = /* @__PURE__ */ __name(async (input, context) => {
968
- const headers = sharedHeaders("SubscribeToEvent");
969
- let body;
970
- body = JSON.stringify((0, import_smithy_client._json)(input));
971
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
972
- }, "se_SubscribeToEventCommand");
973
- var se_UnsubscribeFromEventCommand = /* @__PURE__ */ __name(async (input, context) => {
974
- const headers = sharedHeaders("UnsubscribeFromEvent");
975
- let body;
976
- body = JSON.stringify((0, import_smithy_client._json)(input));
977
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
978
- }, "se_UnsubscribeFromEventCommand");
979
- var se_UpdateAssessmentTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
980
- const headers = sharedHeaders("UpdateAssessmentTarget");
981
- let body;
982
- body = JSON.stringify((0, import_smithy_client._json)(input));
983
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
984
- }, "se_UpdateAssessmentTargetCommand");
985
- var de_AddAttributesToFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
986
- if (output.statusCode >= 300) {
987
- return de_CommandError(output, context);
988
- }
989
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
990
- let contents = {};
991
- contents = (0, import_smithy_client._json)(data);
992
- const response = {
993
- $metadata: deserializeMetadata(output),
994
- ...contents
995
- };
996
- return response;
997
- }, "de_AddAttributesToFindingsCommand");
998
- var de_CreateAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
999
- if (output.statusCode >= 300) {
1000
- return de_CommandError(output, context);
1001
- }
1002
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1003
- let contents = {};
1004
- contents = (0, import_smithy_client._json)(data);
1005
- const response = {
1006
- $metadata: deserializeMetadata(output),
1007
- ...contents
1008
- };
1009
- return response;
1010
- }, "de_CreateAssessmentTargetCommand");
1011
- var de_CreateAssessmentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1012
- if (output.statusCode >= 300) {
1013
- return de_CommandError(output, context);
1014
- }
1015
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1016
- let contents = {};
1017
- contents = (0, import_smithy_client._json)(data);
1018
- const response = {
1019
- $metadata: deserializeMetadata(output),
1020
- ...contents
1021
- };
1022
- return response;
1023
- }, "de_CreateAssessmentTemplateCommand");
1024
- var de_CreateExclusionsPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
1025
- if (output.statusCode >= 300) {
1026
- return de_CommandError(output, context);
1027
- }
1028
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1029
- let contents = {};
1030
- contents = (0, import_smithy_client._json)(data);
1031
- const response = {
1032
- $metadata: deserializeMetadata(output),
1033
- ...contents
1034
- };
1035
- return response;
1036
- }, "de_CreateExclusionsPreviewCommand");
1037
- var de_CreateResourceGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1038
- if (output.statusCode >= 300) {
1039
- return de_CommandError(output, context);
1040
- }
1041
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1042
- let contents = {};
1043
- contents = (0, import_smithy_client._json)(data);
1044
- const response = {
1045
- $metadata: deserializeMetadata(output),
1046
- ...contents
1047
- };
1048
- return response;
1049
- }, "de_CreateResourceGroupCommand");
1050
- var de_DeleteAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
1051
- if (output.statusCode >= 300) {
1052
- return de_CommandError(output, context);
1053
- }
1054
- await (0, import_smithy_client.collectBody)(output.body, context);
1055
- const response = {
1056
- $metadata: deserializeMetadata(output)
1057
- };
1058
- return response;
1059
- }, "de_DeleteAssessmentRunCommand");
1060
- var de_DeleteAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
1061
- if (output.statusCode >= 300) {
1062
- return de_CommandError(output, context);
1063
- }
1064
- await (0, import_smithy_client.collectBody)(output.body, context);
1065
- const response = {
1066
- $metadata: deserializeMetadata(output)
1067
- };
1068
- return response;
1069
- }, "de_DeleteAssessmentTargetCommand");
1070
- var de_DeleteAssessmentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1071
- if (output.statusCode >= 300) {
1072
- return de_CommandError(output, context);
1073
- }
1074
- await (0, import_smithy_client.collectBody)(output.body, context);
1075
- const response = {
1076
- $metadata: deserializeMetadata(output)
1077
- };
1078
- return response;
1079
- }, "de_DeleteAssessmentTemplateCommand");
1080
- var de_DescribeAssessmentRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
1081
- if (output.statusCode >= 300) {
1082
- return de_CommandError(output, context);
1083
- }
1084
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1085
- let contents = {};
1086
- contents = de_DescribeAssessmentRunsResponse(data, context);
1087
- const response = {
1088
- $metadata: deserializeMetadata(output),
1089
- ...contents
1090
- };
1091
- return response;
1092
- }, "de_DescribeAssessmentRunsCommand");
1093
- var de_DescribeAssessmentTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1094
- if (output.statusCode >= 300) {
1095
- return de_CommandError(output, context);
1096
- }
1097
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1098
- let contents = {};
1099
- contents = de_DescribeAssessmentTargetsResponse(data, context);
1100
- const response = {
1101
- $metadata: deserializeMetadata(output),
1102
- ...contents
1103
- };
1104
- return response;
1105
- }, "de_DescribeAssessmentTargetsCommand");
1106
- var de_DescribeAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1107
- if (output.statusCode >= 300) {
1108
- return de_CommandError(output, context);
1109
- }
1110
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1111
- let contents = {};
1112
- contents = de_DescribeAssessmentTemplatesResponse(data, context);
1113
- const response = {
1114
- $metadata: deserializeMetadata(output),
1115
- ...contents
1116
- };
1117
- return response;
1118
- }, "de_DescribeAssessmentTemplatesCommand");
1119
- var de_DescribeCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
1120
- if (output.statusCode >= 300) {
1121
- return de_CommandError(output, context);
1122
- }
1123
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1124
- let contents = {};
1125
- contents = de_DescribeCrossAccountAccessRoleResponse(data, context);
1126
- const response = {
1127
- $metadata: deserializeMetadata(output),
1128
- ...contents
1129
- };
1130
- return response;
1131
- }, "de_DescribeCrossAccountAccessRoleCommand");
1132
- var de_DescribeExclusionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1133
- if (output.statusCode >= 300) {
1134
- return de_CommandError(output, context);
1135
- }
1136
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1137
- let contents = {};
1138
- contents = (0, import_smithy_client._json)(data);
1139
- const response = {
1140
- $metadata: deserializeMetadata(output),
1141
- ...contents
1142
- };
1143
- return response;
1144
- }, "de_DescribeExclusionsCommand");
1145
- var de_DescribeFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1146
- if (output.statusCode >= 300) {
1147
- return de_CommandError(output, context);
1148
- }
1149
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1150
- let contents = {};
1151
- contents = de_DescribeFindingsResponse(data, context);
1152
- const response = {
1153
- $metadata: deserializeMetadata(output),
1154
- ...contents
1155
- };
1156
- return response;
1157
- }, "de_DescribeFindingsCommand");
1158
- var de_DescribeResourceGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1159
- if (output.statusCode >= 300) {
1160
- return de_CommandError(output, context);
1161
- }
1162
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1163
- let contents = {};
1164
- contents = de_DescribeResourceGroupsResponse(data, context);
1165
- const response = {
1166
- $metadata: deserializeMetadata(output),
1167
- ...contents
1168
- };
1169
- return response;
1170
- }, "de_DescribeResourceGroupsCommand");
1171
- var de_DescribeRulesPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1172
- if (output.statusCode >= 300) {
1173
- return de_CommandError(output, context);
1174
- }
1175
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1176
- let contents = {};
1177
- contents = (0, import_smithy_client._json)(data);
1178
- const response = {
1179
- $metadata: deserializeMetadata(output),
1180
- ...contents
1181
- };
1182
- return response;
1183
- }, "de_DescribeRulesPackagesCommand");
1184
- var de_GetAssessmentReportCommand = /* @__PURE__ */ __name(async (output, context) => {
1185
- if (output.statusCode >= 300) {
1186
- return de_CommandError(output, context);
1187
- }
1188
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1189
- let contents = {};
1190
- contents = (0, import_smithy_client._json)(data);
1191
- const response = {
1192
- $metadata: deserializeMetadata(output),
1193
- ...contents
1194
- };
1195
- return response;
1196
- }, "de_GetAssessmentReportCommand");
1197
- var de_GetExclusionsPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
1198
- if (output.statusCode >= 300) {
1199
- return de_CommandError(output, context);
1200
- }
1201
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1202
- let contents = {};
1203
- contents = (0, import_smithy_client._json)(data);
1204
- const response = {
1205
- $metadata: deserializeMetadata(output),
1206
- ...contents
1207
- };
1208
- return response;
1209
- }, "de_GetExclusionsPreviewCommand");
1210
- var de_GetTelemetryMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
1211
- if (output.statusCode >= 300) {
1212
- return de_CommandError(output, context);
1213
- }
1214
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1215
- let contents = {};
1216
- contents = (0, import_smithy_client._json)(data);
1217
- const response = {
1218
- $metadata: deserializeMetadata(output),
1219
- ...contents
1220
- };
1221
- return response;
1222
- }, "de_GetTelemetryMetadataCommand");
1223
- var de_ListAssessmentRunAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1224
- if (output.statusCode >= 300) {
1225
- return de_CommandError(output, context);
1226
- }
1227
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1228
- let contents = {};
1229
- contents = (0, import_smithy_client._json)(data);
1230
- const response = {
1231
- $metadata: deserializeMetadata(output),
1232
- ...contents
1233
- };
1234
- return response;
1235
- }, "de_ListAssessmentRunAgentsCommand");
1236
- var de_ListAssessmentRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
1237
- if (output.statusCode >= 300) {
1238
- return de_CommandError(output, context);
1239
- }
1240
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1241
- let contents = {};
1242
- contents = (0, import_smithy_client._json)(data);
1243
- const response = {
1244
- $metadata: deserializeMetadata(output),
1245
- ...contents
1246
- };
1247
- return response;
1248
- }, "de_ListAssessmentRunsCommand");
1249
- var de_ListAssessmentTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1250
- if (output.statusCode >= 300) {
1251
- return de_CommandError(output, context);
1252
- }
1253
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1254
- let contents = {};
1255
- contents = (0, import_smithy_client._json)(data);
1256
- const response = {
1257
- $metadata: deserializeMetadata(output),
1258
- ...contents
1259
- };
1260
- return response;
1261
- }, "de_ListAssessmentTargetsCommand");
1262
- var de_ListAssessmentTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1263
- if (output.statusCode >= 300) {
1264
- return de_CommandError(output, context);
1265
- }
1266
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1267
- let contents = {};
1268
- contents = (0, import_smithy_client._json)(data);
1269
- const response = {
1270
- $metadata: deserializeMetadata(output),
1271
- ...contents
1272
- };
1273
- return response;
1274
- }, "de_ListAssessmentTemplatesCommand");
1275
- var de_ListEventSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1276
- if (output.statusCode >= 300) {
1277
- return de_CommandError(output, context);
1278
- }
1279
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1280
- let contents = {};
1281
- contents = de_ListEventSubscriptionsResponse(data, context);
1282
- const response = {
1283
- $metadata: deserializeMetadata(output),
1284
- ...contents
1285
- };
1286
- return response;
1287
- }, "de_ListEventSubscriptionsCommand");
1288
- var de_ListExclusionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1289
- if (output.statusCode >= 300) {
1290
- return de_CommandError(output, context);
1291
- }
1292
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1293
- let contents = {};
1294
- contents = (0, import_smithy_client._json)(data);
1295
- const response = {
1296
- $metadata: deserializeMetadata(output),
1297
- ...contents
1298
- };
1299
- return response;
1300
- }, "de_ListExclusionsCommand");
1301
- var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1302
- if (output.statusCode >= 300) {
1303
- return de_CommandError(output, context);
1304
- }
1305
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1306
- let contents = {};
1307
- contents = (0, import_smithy_client._json)(data);
1308
- const response = {
1309
- $metadata: deserializeMetadata(output),
1310
- ...contents
1311
- };
1312
- return response;
1313
- }, "de_ListFindingsCommand");
1314
- var de_ListRulesPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1315
- if (output.statusCode >= 300) {
1316
- return de_CommandError(output, context);
1317
- }
1318
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1319
- let contents = {};
1320
- contents = (0, import_smithy_client._json)(data);
1321
- const response = {
1322
- $metadata: deserializeMetadata(output),
1323
- ...contents
1324
- };
1325
- return response;
1326
- }, "de_ListRulesPackagesCommand");
1327
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1328
- if (output.statusCode >= 300) {
1329
- return de_CommandError(output, context);
1330
- }
1331
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1332
- let contents = {};
1333
- contents = (0, import_smithy_client._json)(data);
1334
- const response = {
1335
- $metadata: deserializeMetadata(output),
1336
- ...contents
1337
- };
1338
- return response;
1339
- }, "de_ListTagsForResourceCommand");
1340
- var de_PreviewAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1341
- if (output.statusCode >= 300) {
1342
- return de_CommandError(output, context);
1343
- }
1344
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1345
- let contents = {};
1346
- contents = (0, import_smithy_client._json)(data);
1347
- const response = {
1348
- $metadata: deserializeMetadata(output),
1349
- ...contents
1350
- };
1351
- return response;
1352
- }, "de_PreviewAgentsCommand");
1353
- var de_RegisterCrossAccountAccessRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
1354
- if (output.statusCode >= 300) {
1355
- return de_CommandError(output, context);
1356
- }
1357
- await (0, import_smithy_client.collectBody)(output.body, context);
1358
- const response = {
1359
- $metadata: deserializeMetadata(output)
1360
- };
1361
- return response;
1362
- }, "de_RegisterCrossAccountAccessRoleCommand");
1363
- var de_RemoveAttributesFromFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1364
- if (output.statusCode >= 300) {
1365
- return de_CommandError(output, context);
1366
- }
1367
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1368
- let contents = {};
1369
- contents = (0, import_smithy_client._json)(data);
1370
- const response = {
1371
- $metadata: deserializeMetadata(output),
1372
- ...contents
1373
- };
1374
- return response;
1375
- }, "de_RemoveAttributesFromFindingsCommand");
1376
- var de_SetTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1377
- if (output.statusCode >= 300) {
1378
- return de_CommandError(output, context);
1379
- }
1380
- await (0, import_smithy_client.collectBody)(output.body, context);
1381
- const response = {
1382
- $metadata: deserializeMetadata(output)
1383
- };
1384
- return response;
1385
- }, "de_SetTagsForResourceCommand");
1386
- var de_StartAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
1387
- if (output.statusCode >= 300) {
1388
- return de_CommandError(output, context);
1389
- }
1390
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1391
- let contents = {};
1392
- contents = (0, import_smithy_client._json)(data);
1393
- const response = {
1394
- $metadata: deserializeMetadata(output),
1395
- ...contents
1396
- };
1397
- return response;
1398
- }, "de_StartAssessmentRunCommand");
1399
- var de_StopAssessmentRunCommand = /* @__PURE__ */ __name(async (output, context) => {
1400
- if (output.statusCode >= 300) {
1401
- return de_CommandError(output, context);
1402
- }
1403
- await (0, import_smithy_client.collectBody)(output.body, context);
1404
- const response = {
1405
- $metadata: deserializeMetadata(output)
1406
- };
1407
- return response;
1408
- }, "de_StopAssessmentRunCommand");
1409
- var de_SubscribeToEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1410
- if (output.statusCode >= 300) {
1411
- return de_CommandError(output, context);
1412
- }
1413
- await (0, import_smithy_client.collectBody)(output.body, context);
1414
- const response = {
1415
- $metadata: deserializeMetadata(output)
1416
- };
1417
- return response;
1418
- }, "de_SubscribeToEventCommand");
1419
- var de_UnsubscribeFromEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1420
- if (output.statusCode >= 300) {
1421
- return de_CommandError(output, context);
1422
- }
1423
- await (0, import_smithy_client.collectBody)(output.body, context);
1424
- const response = {
1425
- $metadata: deserializeMetadata(output)
1426
- };
1427
- return response;
1428
- }, "de_UnsubscribeFromEventCommand");
1429
- var de_UpdateAssessmentTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
1430
- if (output.statusCode >= 300) {
1431
- return de_CommandError(output, context);
1432
- }
1433
- await (0, import_smithy_client.collectBody)(output.body, context);
1434
- const response = {
1435
- $metadata: deserializeMetadata(output)
1436
- };
1437
- return response;
1438
- }, "de_UpdateAssessmentTargetCommand");
1439
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1440
- const parsedOutput = {
1441
- ...output,
1442
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1443
- };
1444
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1445
- switch (errorCode) {
1446
- case "AccessDeniedException":
1447
- case "com.amazonaws.inspector#AccessDeniedException":
1448
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1449
- case "InternalException":
1450
- case "com.amazonaws.inspector#InternalException":
1451
- throw await de_InternalExceptionRes(parsedOutput, context);
1452
- case "InvalidInputException":
1453
- case "com.amazonaws.inspector#InvalidInputException":
1454
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1455
- case "NoSuchEntityException":
1456
- case "com.amazonaws.inspector#NoSuchEntityException":
1457
- throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
1458
- case "ServiceTemporarilyUnavailableException":
1459
- case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
1460
- throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
1461
- case "InvalidCrossAccountRoleException":
1462
- case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
1463
- throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
1464
- case "LimitExceededException":
1465
- case "com.amazonaws.inspector#LimitExceededException":
1466
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1467
- case "PreviewGenerationInProgressException":
1468
- case "com.amazonaws.inspector#PreviewGenerationInProgressException":
1469
- throw await de_PreviewGenerationInProgressExceptionRes(parsedOutput, context);
1470
- case "AssessmentRunInProgressException":
1471
- case "com.amazonaws.inspector#AssessmentRunInProgressException":
1472
- throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
1473
- case "UnsupportedFeatureException":
1474
- case "com.amazonaws.inspector#UnsupportedFeatureException":
1475
- throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
1476
- case "AgentsAlreadyRunningAssessmentException":
1477
- case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException":
1478
- throw await de_AgentsAlreadyRunningAssessmentExceptionRes(parsedOutput, context);
1479
- default:
1480
- const parsedBody = parsedOutput.body;
1481
- return throwDefaultError({
1482
- output,
1483
- parsedBody,
1484
- errorCode
1485
- });
1486
- }
1487
- }, "de_CommandError");
1488
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1489
- const body = parsedOutput.body;
1490
- const deserialized = (0, import_smithy_client._json)(body);
1491
- const exception = new AccessDeniedException({
1492
- $metadata: deserializeMetadata(parsedOutput),
1493
- ...deserialized
1494
- });
1495
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1496
- }, "de_AccessDeniedExceptionRes");
1497
- var de_AgentsAlreadyRunningAssessmentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1498
- const body = parsedOutput.body;
1499
- const deserialized = (0, import_smithy_client._json)(body);
1500
- const exception = new AgentsAlreadyRunningAssessmentException({
1501
- $metadata: deserializeMetadata(parsedOutput),
1502
- ...deserialized
1503
- });
1504
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1505
- }, "de_AgentsAlreadyRunningAssessmentExceptionRes");
1506
- var de_AssessmentRunInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1507
- const body = parsedOutput.body;
1508
- const deserialized = (0, import_smithy_client._json)(body);
1509
- const exception = new AssessmentRunInProgressException({
1510
- $metadata: deserializeMetadata(parsedOutput),
1511
- ...deserialized
1512
- });
1513
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1514
- }, "de_AssessmentRunInProgressExceptionRes");
1515
- var de_InternalExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1516
- const body = parsedOutput.body;
1517
- const deserialized = (0, import_smithy_client._json)(body);
1518
- const exception = new InternalException({
1519
- $metadata: deserializeMetadata(parsedOutput),
1520
- ...deserialized
1521
- });
1522
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1523
- }, "de_InternalExceptionRes");
1524
- var de_InvalidCrossAccountRoleExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1525
- const body = parsedOutput.body;
1526
- const deserialized = (0, import_smithy_client._json)(body);
1527
- const exception = new InvalidCrossAccountRoleException({
1528
- $metadata: deserializeMetadata(parsedOutput),
1529
- ...deserialized
1530
- });
1531
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1532
- }, "de_InvalidCrossAccountRoleExceptionRes");
1533
- var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1534
- const body = parsedOutput.body;
1535
- const deserialized = (0, import_smithy_client._json)(body);
1536
- const exception = new InvalidInputException({
1537
- $metadata: deserializeMetadata(parsedOutput),
1538
- ...deserialized
1539
- });
1540
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1541
- }, "de_InvalidInputExceptionRes");
1542
- var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1543
- const body = parsedOutput.body;
1544
- const deserialized = (0, import_smithy_client._json)(body);
1545
- const exception = new LimitExceededException({
1546
- $metadata: deserializeMetadata(parsedOutput),
1547
- ...deserialized
1548
- });
1549
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1550
- }, "de_LimitExceededExceptionRes");
1551
- var de_NoSuchEntityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1552
- const body = parsedOutput.body;
1553
- const deserialized = (0, import_smithy_client._json)(body);
1554
- const exception = new NoSuchEntityException({
1555
- $metadata: deserializeMetadata(parsedOutput),
1556
- ...deserialized
1557
- });
1558
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1559
- }, "de_NoSuchEntityExceptionRes");
1560
- var de_PreviewGenerationInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1561
- const body = parsedOutput.body;
1562
- const deserialized = (0, import_smithy_client._json)(body);
1563
- const exception = new PreviewGenerationInProgressException({
1564
- $metadata: deserializeMetadata(parsedOutput),
1565
- ...deserialized
1566
- });
1567
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1568
- }, "de_PreviewGenerationInProgressExceptionRes");
1569
- var de_ServiceTemporarilyUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1570
- const body = parsedOutput.body;
1571
- const deserialized = (0, import_smithy_client._json)(body);
1572
- const exception = new ServiceTemporarilyUnavailableException({
1573
- $metadata: deserializeMetadata(parsedOutput),
1574
- ...deserialized
1575
- });
1576
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1577
- }, "de_ServiceTemporarilyUnavailableExceptionRes");
1578
- var de_UnsupportedFeatureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1579
- const body = parsedOutput.body;
1580
- const deserialized = (0, import_smithy_client._json)(body);
1581
- const exception = new UnsupportedFeatureException({
1582
- $metadata: deserializeMetadata(parsedOutput),
1583
- ...deserialized
1584
- });
1585
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1586
- }, "de_UnsupportedFeatureExceptionRes");
1587
- var se_AssessmentRunFilter = /* @__PURE__ */ __name((input, context) => {
1588
- return (0, import_smithy_client.take)(input, {
1589
- completionTimeRange: /* @__PURE__ */ __name((_) => se_TimestampRange(_, context), "completionTimeRange"),
1590
- durationRange: import_smithy_client._json,
1591
- namePattern: [],
1592
- rulesPackageArns: import_smithy_client._json,
1593
- startTimeRange: /* @__PURE__ */ __name((_) => se_TimestampRange(_, context), "startTimeRange"),
1594
- stateChangeTimeRange: /* @__PURE__ */ __name((_) => se_TimestampRange(_, context), "stateChangeTimeRange"),
1595
- states: import_smithy_client._json
1596
- });
1597
- }, "se_AssessmentRunFilter");
1598
- var se_FindingFilter = /* @__PURE__ */ __name((input, context) => {
1599
- return (0, import_smithy_client.take)(input, {
1600
- agentIds: import_smithy_client._json,
1601
- attributes: import_smithy_client._json,
1602
- autoScalingGroups: import_smithy_client._json,
1603
- creationTimeRange: /* @__PURE__ */ __name((_) => se_TimestampRange(_, context), "creationTimeRange"),
1604
- ruleNames: import_smithy_client._json,
1605
- rulesPackageArns: import_smithy_client._json,
1606
- severities: import_smithy_client._json,
1607
- userAttributes: import_smithy_client._json
1608
- });
1609
- }, "se_FindingFilter");
1610
- var se_ListAssessmentRunsRequest = /* @__PURE__ */ __name((input, context) => {
1611
- return (0, import_smithy_client.take)(input, {
1612
- assessmentTemplateArns: import_smithy_client._json,
1613
- filter: /* @__PURE__ */ __name((_) => se_AssessmentRunFilter(_, context), "filter"),
1614
- maxResults: [],
1615
- nextToken: []
1616
- });
1617
- }, "se_ListAssessmentRunsRequest");
1618
- var se_ListFindingsRequest = /* @__PURE__ */ __name((input, context) => {
1619
- return (0, import_smithy_client.take)(input, {
1620
- assessmentRunArns: import_smithy_client._json,
1621
- filter: /* @__PURE__ */ __name((_) => se_FindingFilter(_, context), "filter"),
1622
- maxResults: [],
1623
- nextToken: []
1624
- });
1625
- }, "se_ListFindingsRequest");
1626
- var se_TimestampRange = /* @__PURE__ */ __name((input, context) => {
1627
- return (0, import_smithy_client.take)(input, {
1628
- beginDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "beginDate"),
1629
- endDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "endDate")
1630
- });
1631
- }, "se_TimestampRange");
1632
- var de_AssessmentRun = /* @__PURE__ */ __name((output, context) => {
1633
- return (0, import_smithy_client.take)(output, {
1634
- arn: import_smithy_client.expectString,
1635
- assessmentTemplateArn: import_smithy_client.expectString,
1636
- completedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "completedAt"),
1637
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1638
- dataCollected: import_smithy_client.expectBoolean,
1639
- durationInSeconds: import_smithy_client.expectInt32,
1640
- findingCounts: import_smithy_client._json,
1641
- name: import_smithy_client.expectString,
1642
- notifications: /* @__PURE__ */ __name((_) => de_AssessmentRunNotificationList(_, context), "notifications"),
1643
- rulesPackageArns: import_smithy_client._json,
1644
- startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startedAt"),
1645
- state: import_smithy_client.expectString,
1646
- stateChangedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "stateChangedAt"),
1647
- stateChanges: /* @__PURE__ */ __name((_) => de_AssessmentRunStateChangeList(_, context), "stateChanges"),
1648
- userAttributesForFindings: import_smithy_client._json
1649
- });
1650
- }, "de_AssessmentRun");
1651
- var de_AssessmentRunList = /* @__PURE__ */ __name((output, context) => {
1652
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1653
- return de_AssessmentRun(entry, context);
1654
- });
1655
- return retVal;
1656
- }, "de_AssessmentRunList");
1657
- var de_AssessmentRunNotification = /* @__PURE__ */ __name((output, context) => {
1658
- return (0, import_smithy_client.take)(output, {
1659
- date: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "date"),
1660
- error: import_smithy_client.expectBoolean,
1661
- event: import_smithy_client.expectString,
1662
- message: import_smithy_client.expectString,
1663
- snsPublishStatusCode: import_smithy_client.expectString,
1664
- snsTopicArn: import_smithy_client.expectString
1665
- });
1666
- }, "de_AssessmentRunNotification");
1667
- var de_AssessmentRunNotificationList = /* @__PURE__ */ __name((output, context) => {
1668
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1669
- return de_AssessmentRunNotification(entry, context);
1670
- });
1671
- return retVal;
1672
- }, "de_AssessmentRunNotificationList");
1673
- var de_AssessmentRunStateChange = /* @__PURE__ */ __name((output, context) => {
1674
- return (0, import_smithy_client.take)(output, {
1675
- state: import_smithy_client.expectString,
1676
- stateChangedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "stateChangedAt")
1677
- });
1678
- }, "de_AssessmentRunStateChange");
1679
- var de_AssessmentRunStateChangeList = /* @__PURE__ */ __name((output, context) => {
1680
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1681
- return de_AssessmentRunStateChange(entry, context);
1682
- });
1683
- return retVal;
1684
- }, "de_AssessmentRunStateChangeList");
1685
- var de_AssessmentTarget = /* @__PURE__ */ __name((output, context) => {
1686
- return (0, import_smithy_client.take)(output, {
1687
- arn: import_smithy_client.expectString,
1688
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1689
- name: import_smithy_client.expectString,
1690
- resourceGroupArn: import_smithy_client.expectString,
1691
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
1692
- });
1693
- }, "de_AssessmentTarget");
1694
- var de_AssessmentTargetList = /* @__PURE__ */ __name((output, context) => {
1695
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1696
- return de_AssessmentTarget(entry, context);
1697
- });
1698
- return retVal;
1699
- }, "de_AssessmentTargetList");
1700
- var de_AssessmentTemplate = /* @__PURE__ */ __name((output, context) => {
1701
- return (0, import_smithy_client.take)(output, {
1702
- arn: import_smithy_client.expectString,
1703
- assessmentRunCount: import_smithy_client.expectInt32,
1704
- assessmentTargetArn: import_smithy_client.expectString,
1705
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1706
- durationInSeconds: import_smithy_client.expectInt32,
1707
- lastAssessmentRunArn: import_smithy_client.expectString,
1708
- name: import_smithy_client.expectString,
1709
- rulesPackageArns: import_smithy_client._json,
1710
- userAttributesForFindings: import_smithy_client._json
1711
- });
1712
- }, "de_AssessmentTemplate");
1713
- var de_AssessmentTemplateList = /* @__PURE__ */ __name((output, context) => {
1714
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1715
- return de_AssessmentTemplate(entry, context);
1716
- });
1717
- return retVal;
1718
- }, "de_AssessmentTemplateList");
1719
- var de_DescribeAssessmentRunsResponse = /* @__PURE__ */ __name((output, context) => {
1720
- return (0, import_smithy_client.take)(output, {
1721
- assessmentRuns: /* @__PURE__ */ __name((_) => de_AssessmentRunList(_, context), "assessmentRuns"),
1722
- failedItems: import_smithy_client._json
1723
- });
1724
- }, "de_DescribeAssessmentRunsResponse");
1725
- var de_DescribeAssessmentTargetsResponse = /* @__PURE__ */ __name((output, context) => {
1726
- return (0, import_smithy_client.take)(output, {
1727
- assessmentTargets: /* @__PURE__ */ __name((_) => de_AssessmentTargetList(_, context), "assessmentTargets"),
1728
- failedItems: import_smithy_client._json
1729
- });
1730
- }, "de_DescribeAssessmentTargetsResponse");
1731
- var de_DescribeAssessmentTemplatesResponse = /* @__PURE__ */ __name((output, context) => {
1732
- return (0, import_smithy_client.take)(output, {
1733
- assessmentTemplates: /* @__PURE__ */ __name((_) => de_AssessmentTemplateList(_, context), "assessmentTemplates"),
1734
- failedItems: import_smithy_client._json
1735
- });
1736
- }, "de_DescribeAssessmentTemplatesResponse");
1737
- var de_DescribeCrossAccountAccessRoleResponse = /* @__PURE__ */ __name((output, context) => {
1738
- return (0, import_smithy_client.take)(output, {
1739
- registeredAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "registeredAt"),
1740
- roleArn: import_smithy_client.expectString,
1741
- valid: import_smithy_client.expectBoolean
1742
- });
1743
- }, "de_DescribeCrossAccountAccessRoleResponse");
1744
- var de_DescribeFindingsResponse = /* @__PURE__ */ __name((output, context) => {
1745
- return (0, import_smithy_client.take)(output, {
1746
- failedItems: import_smithy_client._json,
1747
- findings: /* @__PURE__ */ __name((_) => de_FindingList(_, context), "findings")
1748
- });
1749
- }, "de_DescribeFindingsResponse");
1750
- var de_DescribeResourceGroupsResponse = /* @__PURE__ */ __name((output, context) => {
1751
- return (0, import_smithy_client.take)(output, {
1752
- failedItems: import_smithy_client._json,
1753
- resourceGroups: /* @__PURE__ */ __name((_) => de_ResourceGroupList(_, context), "resourceGroups")
1754
- });
1755
- }, "de_DescribeResourceGroupsResponse");
1756
- var de_EventSubscription = /* @__PURE__ */ __name((output, context) => {
1757
- return (0, import_smithy_client.take)(output, {
1758
- event: import_smithy_client.expectString,
1759
- subscribedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "subscribedAt")
1760
- });
1761
- }, "de_EventSubscription");
1762
- var de_EventSubscriptionList = /* @__PURE__ */ __name((output, context) => {
1763
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1764
- return de_EventSubscription(entry, context);
1765
- });
1766
- return retVal;
1767
- }, "de_EventSubscriptionList");
1768
- var de_Finding = /* @__PURE__ */ __name((output, context) => {
1769
- return (0, import_smithy_client.take)(output, {
1770
- arn: import_smithy_client.expectString,
1771
- assetAttributes: import_smithy_client._json,
1772
- assetType: import_smithy_client.expectString,
1773
- attributes: import_smithy_client._json,
1774
- confidence: import_smithy_client.expectInt32,
1775
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1776
- description: import_smithy_client.expectString,
1777
- id: import_smithy_client.expectString,
1778
- indicatorOfCompromise: import_smithy_client.expectBoolean,
1779
- numericSeverity: import_smithy_client.limitedParseDouble,
1780
- recommendation: import_smithy_client.expectString,
1781
- schemaVersion: import_smithy_client.expectInt32,
1782
- service: import_smithy_client.expectString,
1783
- serviceAttributes: import_smithy_client._json,
1784
- severity: import_smithy_client.expectString,
1785
- title: import_smithy_client.expectString,
1786
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
1787
- userAttributes: import_smithy_client._json
1788
- });
1789
- }, "de_Finding");
1790
- var de_FindingList = /* @__PURE__ */ __name((output, context) => {
1791
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1792
- return de_Finding(entry, context);
1793
- });
1794
- return retVal;
1795
- }, "de_FindingList");
1796
- var de_ListEventSubscriptionsResponse = /* @__PURE__ */ __name((output, context) => {
1797
- return (0, import_smithy_client.take)(output, {
1798
- nextToken: import_smithy_client.expectString,
1799
- subscriptions: /* @__PURE__ */ __name((_) => de_SubscriptionList(_, context), "subscriptions")
1800
- });
1801
- }, "de_ListEventSubscriptionsResponse");
1802
- var de_ResourceGroup = /* @__PURE__ */ __name((output, context) => {
1803
- return (0, import_smithy_client.take)(output, {
1804
- arn: import_smithy_client.expectString,
1805
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1806
- tags: import_smithy_client._json
1807
- });
1808
- }, "de_ResourceGroup");
1809
- var de_ResourceGroupList = /* @__PURE__ */ __name((output, context) => {
1810
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1811
- return de_ResourceGroup(entry, context);
1812
- });
1813
- return retVal;
1814
- }, "de_ResourceGroupList");
1815
- var de_Subscription = /* @__PURE__ */ __name((output, context) => {
1816
- return (0, import_smithy_client.take)(output, {
1817
- eventSubscriptions: /* @__PURE__ */ __name((_) => de_EventSubscriptionList(_, context), "eventSubscriptions"),
1818
- resourceArn: import_smithy_client.expectString,
1819
- topicArn: import_smithy_client.expectString
1820
- });
1821
- }, "de_Subscription");
1822
- var de_SubscriptionList = /* @__PURE__ */ __name((output, context) => {
1823
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1824
- return de_Subscription(entry, context);
1825
- });
1826
- return retVal;
1827
- }, "de_SubscriptionList");
1828
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1829
- httpStatusCode: output.statusCode,
1830
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1831
- extendedRequestId: output.headers["x-amz-id-2"],
1832
- cfId: output.headers["x-amz-cf-id"]
1833
- }), "deserializeMetadata");
1834
- var throwDefaultError = (0, import_smithy_client.withBaseException)(InspectorServiceException);
1835
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1836
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1837
- const contents = {
1838
- protocol,
1839
- hostname,
1840
- port,
1841
- method: "POST",
1842
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1843
- headers
1844
- };
1845
- if (resolvedHostname !== void 0) {
1846
- contents.hostname = resolvedHostname;
1847
- }
1848
- if (body !== void 0) {
1849
- contents.body = body;
1850
- }
1851
- return new import_protocol_http.HttpRequest(contents);
1852
- }, "buildHttpRpcRequest");
1853
- function sharedHeaders(operation) {
1854
- return {
1855
- "content-type": "application/x-amz-json-1.1",
1856
- "x-amz-target": `InspectorService.${operation}`
1857
- };
1858
- }
1859
- __name(sharedHeaders, "sharedHeaders");
1860
-
1861
- // src/commands/AddAttributesToFindingsCommand.ts
1862
- var AddAttributesToFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1863
- return [
1864
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1865
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1866
- ];
1867
- }).s("InspectorService", "AddAttributesToFindings", {}).n("InspectorClient", "AddAttributesToFindingsCommand").f(void 0, void 0).ser(se_AddAttributesToFindingsCommand).de(de_AddAttributesToFindingsCommand).build() {
1868
- static {
1869
- __name(this, "AddAttributesToFindingsCommand");
1870
- }
1871
- };
1872
-
1873
- // src/commands/CreateAssessmentTargetCommand.ts
1874
-
1875
-
1876
-
1877
- var CreateAssessmentTargetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1878
- return [
1879
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1880
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1881
- ];
1882
- }).s("InspectorService", "CreateAssessmentTarget", {}).n("InspectorClient", "CreateAssessmentTargetCommand").f(void 0, void 0).ser(se_CreateAssessmentTargetCommand).de(de_CreateAssessmentTargetCommand).build() {
1883
- static {
1884
- __name(this, "CreateAssessmentTargetCommand");
1885
- }
1886
- };
1887
-
1888
- // src/commands/CreateAssessmentTemplateCommand.ts
1889
-
1890
-
1891
-
1892
- var CreateAssessmentTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1893
- return [
1894
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1895
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1896
- ];
1897
- }).s("InspectorService", "CreateAssessmentTemplate", {}).n("InspectorClient", "CreateAssessmentTemplateCommand").f(void 0, void 0).ser(se_CreateAssessmentTemplateCommand).de(de_CreateAssessmentTemplateCommand).build() {
1898
- static {
1899
- __name(this, "CreateAssessmentTemplateCommand");
1900
- }
1901
- };
1902
-
1903
- // src/commands/CreateExclusionsPreviewCommand.ts
1904
-
1905
-
1906
-
1907
- var CreateExclusionsPreviewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1908
- return [
1909
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1910
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1911
- ];
1912
- }).s("InspectorService", "CreateExclusionsPreview", {}).n("InspectorClient", "CreateExclusionsPreviewCommand").f(void 0, void 0).ser(se_CreateExclusionsPreviewCommand).de(de_CreateExclusionsPreviewCommand).build() {
1913
- static {
1914
- __name(this, "CreateExclusionsPreviewCommand");
1915
- }
1916
1298
  };
1917
-
1918
- // src/commands/CreateResourceGroupCommand.ts
1919
-
1920
-
1921
-
1922
- var CreateResourceGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1923
- return [
1924
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1925
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1926
- ];
1927
- }).s("InspectorService", "CreateResourceGroup", {}).n("InspectorClient", "CreateResourceGroupCommand").f(void 0, void 0).ser(se_CreateResourceGroupCommand).de(de_CreateResourceGroupCommand).build() {
1928
- static {
1929
- __name(this, "CreateResourceGroupCommand");
1930
- }
1299
+ const se_FindingFilter = (input, context) => {
1300
+ return smithyClient.take(input, {
1301
+ agentIds: smithyClient._json,
1302
+ attributes: smithyClient._json,
1303
+ autoScalingGroups: smithyClient._json,
1304
+ creationTimeRange: (_) => se_TimestampRange(_),
1305
+ ruleNames: smithyClient._json,
1306
+ rulesPackageArns: smithyClient._json,
1307
+ severities: smithyClient._json,
1308
+ userAttributes: smithyClient._json,
1309
+ });
1931
1310
  };
1932
-
1933
- // src/commands/DeleteAssessmentRunCommand.ts
1934
-
1935
-
1936
-
1937
- var DeleteAssessmentRunCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1938
- return [
1939
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1940
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1941
- ];
1942
- }).s("InspectorService", "DeleteAssessmentRun", {}).n("InspectorClient", "DeleteAssessmentRunCommand").f(void 0, void 0).ser(se_DeleteAssessmentRunCommand).de(de_DeleteAssessmentRunCommand).build() {
1943
- static {
1944
- __name(this, "DeleteAssessmentRunCommand");
1945
- }
1311
+ const se_ListAssessmentRunsRequest = (input, context) => {
1312
+ return smithyClient.take(input, {
1313
+ assessmentTemplateArns: smithyClient._json,
1314
+ filter: (_) => se_AssessmentRunFilter(_),
1315
+ maxResults: [],
1316
+ nextToken: [],
1317
+ });
1946
1318
  };
1947
-
1948
- // src/commands/DeleteAssessmentTargetCommand.ts
1949
-
1950
-
1951
-
1952
- var DeleteAssessmentTargetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1953
- return [
1954
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1955
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1956
- ];
1957
- }).s("InspectorService", "DeleteAssessmentTarget", {}).n("InspectorClient", "DeleteAssessmentTargetCommand").f(void 0, void 0).ser(se_DeleteAssessmentTargetCommand).de(de_DeleteAssessmentTargetCommand).build() {
1958
- static {
1959
- __name(this, "DeleteAssessmentTargetCommand");
1960
- }
1319
+ const se_ListFindingsRequest = (input, context) => {
1320
+ return smithyClient.take(input, {
1321
+ assessmentRunArns: smithyClient._json,
1322
+ filter: (_) => se_FindingFilter(_),
1323
+ maxResults: [],
1324
+ nextToken: [],
1325
+ });
1961
1326
  };
1962
-
1963
- // src/commands/DeleteAssessmentTemplateCommand.ts
1964
-
1965
-
1966
-
1967
- var DeleteAssessmentTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1968
- return [
1969
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1970
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1971
- ];
1972
- }).s("InspectorService", "DeleteAssessmentTemplate", {}).n("InspectorClient", "DeleteAssessmentTemplateCommand").f(void 0, void 0).ser(se_DeleteAssessmentTemplateCommand).de(de_DeleteAssessmentTemplateCommand).build() {
1973
- static {
1974
- __name(this, "DeleteAssessmentTemplateCommand");
1975
- }
1327
+ const se_TimestampRange = (input, context) => {
1328
+ return smithyClient.take(input, {
1329
+ beginDate: (_) => _.getTime() / 1_000,
1330
+ endDate: (_) => _.getTime() / 1_000,
1331
+ });
1976
1332
  };
1977
-
1978
- // src/commands/DescribeAssessmentRunsCommand.ts
1979
-
1980
-
1981
-
1982
- var DescribeAssessmentRunsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1983
- return [
1984
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1985
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1986
- ];
1987
- }).s("InspectorService", "DescribeAssessmentRuns", {}).n("InspectorClient", "DescribeAssessmentRunsCommand").f(void 0, void 0).ser(se_DescribeAssessmentRunsCommand).de(de_DescribeAssessmentRunsCommand).build() {
1988
- static {
1989
- __name(this, "DescribeAssessmentRunsCommand");
1990
- }
1333
+ const de_AssessmentRun = (output, context) => {
1334
+ return smithyClient.take(output, {
1335
+ arn: smithyClient.expectString,
1336
+ assessmentTemplateArn: smithyClient.expectString,
1337
+ completedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1338
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1339
+ dataCollected: smithyClient.expectBoolean,
1340
+ durationInSeconds: smithyClient.expectInt32,
1341
+ findingCounts: smithyClient._json,
1342
+ name: smithyClient.expectString,
1343
+ notifications: (_) => de_AssessmentRunNotificationList(_),
1344
+ rulesPackageArns: smithyClient._json,
1345
+ startedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1346
+ state: smithyClient.expectString,
1347
+ stateChangedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1348
+ stateChanges: (_) => de_AssessmentRunStateChangeList(_),
1349
+ userAttributesForFindings: smithyClient._json,
1350
+ });
1991
1351
  };
1992
-
1993
- // src/commands/DescribeAssessmentTargetsCommand.ts
1994
-
1995
-
1996
-
1997
- var DescribeAssessmentTargetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1998
- return [
1999
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2000
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2001
- ];
2002
- }).s("InspectorService", "DescribeAssessmentTargets", {}).n("InspectorClient", "DescribeAssessmentTargetsCommand").f(void 0, void 0).ser(se_DescribeAssessmentTargetsCommand).de(de_DescribeAssessmentTargetsCommand).build() {
2003
- static {
2004
- __name(this, "DescribeAssessmentTargetsCommand");
2005
- }
1352
+ const de_AssessmentRunList = (output, context) => {
1353
+ const retVal = (output || [])
1354
+ .filter((e) => e != null)
1355
+ .map((entry) => {
1356
+ return de_AssessmentRun(entry);
1357
+ });
1358
+ return retVal;
1359
+ };
1360
+ const de_AssessmentRunNotification = (output, context) => {
1361
+ return smithyClient.take(output, {
1362
+ date: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1363
+ error: smithyClient.expectBoolean,
1364
+ event: smithyClient.expectString,
1365
+ message: smithyClient.expectString,
1366
+ snsPublishStatusCode: smithyClient.expectString,
1367
+ snsTopicArn: smithyClient.expectString,
1368
+ });
2006
1369
  };
2007
-
2008
- // src/commands/DescribeAssessmentTemplatesCommand.ts
2009
-
2010
-
2011
-
2012
- var DescribeAssessmentTemplatesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2013
- return [
2014
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2015
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2016
- ];
2017
- }).s("InspectorService", "DescribeAssessmentTemplates", {}).n("InspectorClient", "DescribeAssessmentTemplatesCommand").f(void 0, void 0).ser(se_DescribeAssessmentTemplatesCommand).de(de_DescribeAssessmentTemplatesCommand).build() {
2018
- static {
2019
- __name(this, "DescribeAssessmentTemplatesCommand");
2020
- }
1370
+ const de_AssessmentRunNotificationList = (output, context) => {
1371
+ const retVal = (output || [])
1372
+ .filter((e) => e != null)
1373
+ .map((entry) => {
1374
+ return de_AssessmentRunNotification(entry);
1375
+ });
1376
+ return retVal;
2021
1377
  };
2022
-
2023
- // src/commands/DescribeCrossAccountAccessRoleCommand.ts
2024
-
2025
-
2026
-
2027
- var DescribeCrossAccountAccessRoleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2028
- return [
2029
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2030
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2031
- ];
2032
- }).s("InspectorService", "DescribeCrossAccountAccessRole", {}).n("InspectorClient", "DescribeCrossAccountAccessRoleCommand").f(void 0, void 0).ser(se_DescribeCrossAccountAccessRoleCommand).de(de_DescribeCrossAccountAccessRoleCommand).build() {
2033
- static {
2034
- __name(this, "DescribeCrossAccountAccessRoleCommand");
2035
- }
1378
+ const de_AssessmentRunStateChange = (output, context) => {
1379
+ return smithyClient.take(output, {
1380
+ state: smithyClient.expectString,
1381
+ stateChangedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1382
+ });
2036
1383
  };
2037
-
2038
- // src/commands/DescribeExclusionsCommand.ts
2039
-
2040
-
2041
-
2042
- var DescribeExclusionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2043
- return [
2044
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2045
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2046
- ];
2047
- }).s("InspectorService", "DescribeExclusions", {}).n("InspectorClient", "DescribeExclusionsCommand").f(void 0, void 0).ser(se_DescribeExclusionsCommand).de(de_DescribeExclusionsCommand).build() {
2048
- static {
2049
- __name(this, "DescribeExclusionsCommand");
2050
- }
1384
+ const de_AssessmentRunStateChangeList = (output, context) => {
1385
+ const retVal = (output || [])
1386
+ .filter((e) => e != null)
1387
+ .map((entry) => {
1388
+ return de_AssessmentRunStateChange(entry);
1389
+ });
1390
+ return retVal;
1391
+ };
1392
+ const de_AssessmentTarget = (output, context) => {
1393
+ return smithyClient.take(output, {
1394
+ arn: smithyClient.expectString,
1395
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1396
+ name: smithyClient.expectString,
1397
+ resourceGroupArn: smithyClient.expectString,
1398
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1399
+ });
2051
1400
  };
2052
-
2053
- // src/commands/DescribeFindingsCommand.ts
2054
-
2055
-
2056
-
2057
- var DescribeFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2058
- return [
2059
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2060
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2061
- ];
2062
- }).s("InspectorService", "DescribeFindings", {}).n("InspectorClient", "DescribeFindingsCommand").f(void 0, void 0).ser(se_DescribeFindingsCommand).de(de_DescribeFindingsCommand).build() {
2063
- static {
2064
- __name(this, "DescribeFindingsCommand");
2065
- }
1401
+ const de_AssessmentTargetList = (output, context) => {
1402
+ const retVal = (output || [])
1403
+ .filter((e) => e != null)
1404
+ .map((entry) => {
1405
+ return de_AssessmentTarget(entry);
1406
+ });
1407
+ return retVal;
1408
+ };
1409
+ const de_AssessmentTemplate = (output, context) => {
1410
+ return smithyClient.take(output, {
1411
+ arn: smithyClient.expectString,
1412
+ assessmentRunCount: smithyClient.expectInt32,
1413
+ assessmentTargetArn: smithyClient.expectString,
1414
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1415
+ durationInSeconds: smithyClient.expectInt32,
1416
+ lastAssessmentRunArn: smithyClient.expectString,
1417
+ name: smithyClient.expectString,
1418
+ rulesPackageArns: smithyClient._json,
1419
+ userAttributesForFindings: smithyClient._json,
1420
+ });
2066
1421
  };
2067
-
2068
- // src/commands/DescribeResourceGroupsCommand.ts
2069
-
2070
-
2071
-
2072
- var DescribeResourceGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2073
- return [
2074
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2075
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2076
- ];
2077
- }).s("InspectorService", "DescribeResourceGroups", {}).n("InspectorClient", "DescribeResourceGroupsCommand").f(void 0, void 0).ser(se_DescribeResourceGroupsCommand).de(de_DescribeResourceGroupsCommand).build() {
2078
- static {
2079
- __name(this, "DescribeResourceGroupsCommand");
2080
- }
1422
+ const de_AssessmentTemplateList = (output, context) => {
1423
+ const retVal = (output || [])
1424
+ .filter((e) => e != null)
1425
+ .map((entry) => {
1426
+ return de_AssessmentTemplate(entry);
1427
+ });
1428
+ return retVal;
2081
1429
  };
2082
-
2083
- // src/commands/DescribeRulesPackagesCommand.ts
2084
-
2085
-
2086
-
2087
- var DescribeRulesPackagesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2088
- return [
2089
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2090
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2091
- ];
2092
- }).s("InspectorService", "DescribeRulesPackages", {}).n("InspectorClient", "DescribeRulesPackagesCommand").f(void 0, void 0).ser(se_DescribeRulesPackagesCommand).de(de_DescribeRulesPackagesCommand).build() {
2093
- static {
2094
- __name(this, "DescribeRulesPackagesCommand");
2095
- }
1430
+ const de_DescribeAssessmentRunsResponse = (output, context) => {
1431
+ return smithyClient.take(output, {
1432
+ assessmentRuns: (_) => de_AssessmentRunList(_),
1433
+ failedItems: smithyClient._json,
1434
+ });
2096
1435
  };
2097
-
2098
- // src/commands/GetAssessmentReportCommand.ts
2099
-
2100
-
2101
-
2102
- var GetAssessmentReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2103
- return [
2104
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2105
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2106
- ];
2107
- }).s("InspectorService", "GetAssessmentReport", {}).n("InspectorClient", "GetAssessmentReportCommand").f(void 0, void 0).ser(se_GetAssessmentReportCommand).de(de_GetAssessmentReportCommand).build() {
2108
- static {
2109
- __name(this, "GetAssessmentReportCommand");
2110
- }
1436
+ const de_DescribeAssessmentTargetsResponse = (output, context) => {
1437
+ return smithyClient.take(output, {
1438
+ assessmentTargets: (_) => de_AssessmentTargetList(_),
1439
+ failedItems: smithyClient._json,
1440
+ });
2111
1441
  };
2112
-
2113
- // src/commands/GetExclusionsPreviewCommand.ts
2114
-
2115
-
2116
-
2117
- var GetExclusionsPreviewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2118
- return [
2119
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2120
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2121
- ];
2122
- }).s("InspectorService", "GetExclusionsPreview", {}).n("InspectorClient", "GetExclusionsPreviewCommand").f(void 0, void 0).ser(se_GetExclusionsPreviewCommand).de(de_GetExclusionsPreviewCommand).build() {
2123
- static {
2124
- __name(this, "GetExclusionsPreviewCommand");
2125
- }
1442
+ const de_DescribeAssessmentTemplatesResponse = (output, context) => {
1443
+ return smithyClient.take(output, {
1444
+ assessmentTemplates: (_) => de_AssessmentTemplateList(_),
1445
+ failedItems: smithyClient._json,
1446
+ });
2126
1447
  };
2127
-
2128
- // src/commands/GetTelemetryMetadataCommand.ts
2129
-
2130
-
2131
-
2132
- var GetTelemetryMetadataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2133
- return [
2134
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2135
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2136
- ];
2137
- }).s("InspectorService", "GetTelemetryMetadata", {}).n("InspectorClient", "GetTelemetryMetadataCommand").f(void 0, void 0).ser(se_GetTelemetryMetadataCommand).de(de_GetTelemetryMetadataCommand).build() {
2138
- static {
2139
- __name(this, "GetTelemetryMetadataCommand");
2140
- }
1448
+ const de_DescribeCrossAccountAccessRoleResponse = (output, context) => {
1449
+ return smithyClient.take(output, {
1450
+ registeredAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1451
+ roleArn: smithyClient.expectString,
1452
+ valid: smithyClient.expectBoolean,
1453
+ });
2141
1454
  };
2142
-
2143
- // src/commands/ListAssessmentRunAgentsCommand.ts
2144
-
2145
-
2146
-
2147
- var ListAssessmentRunAgentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2148
- return [
2149
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2150
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2151
- ];
2152
- }).s("InspectorService", "ListAssessmentRunAgents", {}).n("InspectorClient", "ListAssessmentRunAgentsCommand").f(void 0, void 0).ser(se_ListAssessmentRunAgentsCommand).de(de_ListAssessmentRunAgentsCommand).build() {
2153
- static {
2154
- __name(this, "ListAssessmentRunAgentsCommand");
2155
- }
1455
+ const de_DescribeFindingsResponse = (output, context) => {
1456
+ return smithyClient.take(output, {
1457
+ failedItems: smithyClient._json,
1458
+ findings: (_) => de_FindingList(_),
1459
+ });
2156
1460
  };
2157
-
2158
- // src/commands/ListAssessmentRunsCommand.ts
2159
-
2160
-
2161
-
2162
- var ListAssessmentRunsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2163
- return [
2164
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2165
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2166
- ];
2167
- }).s("InspectorService", "ListAssessmentRuns", {}).n("InspectorClient", "ListAssessmentRunsCommand").f(void 0, void 0).ser(se_ListAssessmentRunsCommand).de(de_ListAssessmentRunsCommand).build() {
2168
- static {
2169
- __name(this, "ListAssessmentRunsCommand");
2170
- }
1461
+ const de_DescribeResourceGroupsResponse = (output, context) => {
1462
+ return smithyClient.take(output, {
1463
+ failedItems: smithyClient._json,
1464
+ resourceGroups: (_) => de_ResourceGroupList(_),
1465
+ });
2171
1466
  };
2172
-
2173
- // src/commands/ListAssessmentTargetsCommand.ts
2174
-
2175
-
2176
-
2177
- var ListAssessmentTargetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2178
- return [
2179
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2180
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2181
- ];
2182
- }).s("InspectorService", "ListAssessmentTargets", {}).n("InspectorClient", "ListAssessmentTargetsCommand").f(void 0, void 0).ser(se_ListAssessmentTargetsCommand).de(de_ListAssessmentTargetsCommand).build() {
2183
- static {
2184
- __name(this, "ListAssessmentTargetsCommand");
2185
- }
1467
+ const de_EventSubscription = (output, context) => {
1468
+ return smithyClient.take(output, {
1469
+ event: smithyClient.expectString,
1470
+ subscribedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1471
+ });
2186
1472
  };
2187
-
2188
- // src/commands/ListAssessmentTemplatesCommand.ts
2189
-
2190
-
2191
-
2192
- var ListAssessmentTemplatesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2193
- return [
2194
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2195
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2196
- ];
2197
- }).s("InspectorService", "ListAssessmentTemplates", {}).n("InspectorClient", "ListAssessmentTemplatesCommand").f(void 0, void 0).ser(se_ListAssessmentTemplatesCommand).de(de_ListAssessmentTemplatesCommand).build() {
2198
- static {
2199
- __name(this, "ListAssessmentTemplatesCommand");
2200
- }
1473
+ const de_EventSubscriptionList = (output, context) => {
1474
+ const retVal = (output || [])
1475
+ .filter((e) => e != null)
1476
+ .map((entry) => {
1477
+ return de_EventSubscription(entry);
1478
+ });
1479
+ return retVal;
1480
+ };
1481
+ const de_Finding = (output, context) => {
1482
+ return smithyClient.take(output, {
1483
+ arn: smithyClient.expectString,
1484
+ assetAttributes: smithyClient._json,
1485
+ assetType: smithyClient.expectString,
1486
+ attributes: smithyClient._json,
1487
+ confidence: smithyClient.expectInt32,
1488
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1489
+ description: smithyClient.expectString,
1490
+ id: smithyClient.expectString,
1491
+ indicatorOfCompromise: smithyClient.expectBoolean,
1492
+ numericSeverity: smithyClient.limitedParseDouble,
1493
+ recommendation: smithyClient.expectString,
1494
+ schemaVersion: smithyClient.expectInt32,
1495
+ service: smithyClient.expectString,
1496
+ serviceAttributes: smithyClient._json,
1497
+ severity: smithyClient.expectString,
1498
+ title: smithyClient.expectString,
1499
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1500
+ userAttributes: smithyClient._json,
1501
+ });
2201
1502
  };
2202
-
2203
- // src/commands/ListEventSubscriptionsCommand.ts
2204
-
2205
-
2206
-
2207
- var ListEventSubscriptionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2208
- return [
2209
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2210
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2211
- ];
2212
- }).s("InspectorService", "ListEventSubscriptions", {}).n("InspectorClient", "ListEventSubscriptionsCommand").f(void 0, void 0).ser(se_ListEventSubscriptionsCommand).de(de_ListEventSubscriptionsCommand).build() {
2213
- static {
2214
- __name(this, "ListEventSubscriptionsCommand");
2215
- }
1503
+ const de_FindingList = (output, context) => {
1504
+ const retVal = (output || [])
1505
+ .filter((e) => e != null)
1506
+ .map((entry) => {
1507
+ return de_Finding(entry);
1508
+ });
1509
+ return retVal;
2216
1510
  };
2217
-
2218
- // src/commands/ListExclusionsCommand.ts
2219
-
2220
-
2221
-
2222
- var ListExclusionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2223
- return [
2224
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2225
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2226
- ];
2227
- }).s("InspectorService", "ListExclusions", {}).n("InspectorClient", "ListExclusionsCommand").f(void 0, void 0).ser(se_ListExclusionsCommand).de(de_ListExclusionsCommand).build() {
2228
- static {
2229
- __name(this, "ListExclusionsCommand");
2230
- }
1511
+ const de_ListEventSubscriptionsResponse = (output, context) => {
1512
+ return smithyClient.take(output, {
1513
+ nextToken: smithyClient.expectString,
1514
+ subscriptions: (_) => de_SubscriptionList(_),
1515
+ });
2231
1516
  };
2232
-
2233
- // src/commands/ListFindingsCommand.ts
2234
-
2235
-
2236
-
2237
- var ListFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2238
- return [
2239
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2240
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2241
- ];
2242
- }).s("InspectorService", "ListFindings", {}).n("InspectorClient", "ListFindingsCommand").f(void 0, void 0).ser(se_ListFindingsCommand).de(de_ListFindingsCommand).build() {
2243
- static {
2244
- __name(this, "ListFindingsCommand");
2245
- }
1517
+ const de_ResourceGroup = (output, context) => {
1518
+ return smithyClient.take(output, {
1519
+ arn: smithyClient.expectString,
1520
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1521
+ tags: smithyClient._json,
1522
+ });
2246
1523
  };
2247
-
2248
- // src/commands/ListRulesPackagesCommand.ts
2249
-
2250
-
2251
-
2252
- var ListRulesPackagesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2253
- return [
2254
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2255
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2256
- ];
2257
- }).s("InspectorService", "ListRulesPackages", {}).n("InspectorClient", "ListRulesPackagesCommand").f(void 0, void 0).ser(se_ListRulesPackagesCommand).de(de_ListRulesPackagesCommand).build() {
2258
- static {
2259
- __name(this, "ListRulesPackagesCommand");
2260
- }
1524
+ const de_ResourceGroupList = (output, context) => {
1525
+ const retVal = (output || [])
1526
+ .filter((e) => e != null)
1527
+ .map((entry) => {
1528
+ return de_ResourceGroup(entry);
1529
+ });
1530
+ return retVal;
2261
1531
  };
2262
-
2263
- // src/commands/ListTagsForResourceCommand.ts
2264
-
2265
-
2266
-
2267
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2268
- return [
2269
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2270
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2271
- ];
2272
- }).s("InspectorService", "ListTagsForResource", {}).n("InspectorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2273
- static {
2274
- __name(this, "ListTagsForResourceCommand");
2275
- }
1532
+ const de_Subscription = (output, context) => {
1533
+ return smithyClient.take(output, {
1534
+ eventSubscriptions: (_) => de_EventSubscriptionList(_),
1535
+ resourceArn: smithyClient.expectString,
1536
+ topicArn: smithyClient.expectString,
1537
+ });
2276
1538
  };
2277
-
2278
- // src/commands/PreviewAgentsCommand.ts
2279
-
2280
-
2281
-
2282
- var PreviewAgentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2283
- return [
2284
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2285
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2286
- ];
2287
- }).s("InspectorService", "PreviewAgents", {}).n("InspectorClient", "PreviewAgentsCommand").f(void 0, void 0).ser(se_PreviewAgentsCommand).de(de_PreviewAgentsCommand).build() {
2288
- static {
2289
- __name(this, "PreviewAgentsCommand");
2290
- }
1539
+ const de_SubscriptionList = (output, context) => {
1540
+ const retVal = (output || [])
1541
+ .filter((e) => e != null)
1542
+ .map((entry) => {
1543
+ return de_Subscription(entry);
1544
+ });
1545
+ return retVal;
2291
1546
  };
2292
-
2293
- // src/commands/RegisterCrossAccountAccessRoleCommand.ts
2294
-
2295
-
2296
-
2297
- var RegisterCrossAccountAccessRoleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2298
- return [
2299
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2300
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2301
- ];
2302
- }).s("InspectorService", "RegisterCrossAccountAccessRole", {}).n("InspectorClient", "RegisterCrossAccountAccessRoleCommand").f(void 0, void 0).ser(se_RegisterCrossAccountAccessRoleCommand).de(de_RegisterCrossAccountAccessRoleCommand).build() {
2303
- static {
2304
- __name(this, "RegisterCrossAccountAccessRoleCommand");
2305
- }
1547
+ const deserializeMetadata = (output) => ({
1548
+ httpStatusCode: output.statusCode,
1549
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1550
+ extendedRequestId: output.headers["x-amz-id-2"],
1551
+ cfId: output.headers["x-amz-cf-id"],
1552
+ });
1553
+ const throwDefaultError = smithyClient.withBaseException(InspectorServiceException);
1554
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1555
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1556
+ const contents = {
1557
+ protocol,
1558
+ hostname,
1559
+ port,
1560
+ method: "POST",
1561
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1562
+ headers,
1563
+ };
1564
+ if (body !== undefined) {
1565
+ contents.body = body;
1566
+ }
1567
+ return new protocolHttp.HttpRequest(contents);
2306
1568
  };
1569
+ function sharedHeaders(operation) {
1570
+ return {
1571
+ "content-type": "application/x-amz-json-1.1",
1572
+ "x-amz-target": `InspectorService.${operation}`,
1573
+ };
1574
+ }
2307
1575
 
2308
- // src/commands/RemoveAttributesFromFindingsCommand.ts
2309
-
1576
+ class AddAttributesToFindingsCommand extends smithyClient.Command
1577
+ .classBuilder()
1578
+ .ep(commonParams)
1579
+ .m(function (Command, cs, config, o) {
1580
+ return [
1581
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1582
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1583
+ ];
1584
+ })
1585
+ .s("InspectorService", "AddAttributesToFindings", {})
1586
+ .n("InspectorClient", "AddAttributesToFindingsCommand")
1587
+ .f(void 0, void 0)
1588
+ .ser(se_AddAttributesToFindingsCommand)
1589
+ .de(de_AddAttributesToFindingsCommand)
1590
+ .build() {
1591
+ }
2310
1592
 
1593
+ class CreateAssessmentTargetCommand extends smithyClient.Command
1594
+ .classBuilder()
1595
+ .ep(commonParams)
1596
+ .m(function (Command, cs, config, o) {
1597
+ return [
1598
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1599
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1600
+ ];
1601
+ })
1602
+ .s("InspectorService", "CreateAssessmentTarget", {})
1603
+ .n("InspectorClient", "CreateAssessmentTargetCommand")
1604
+ .f(void 0, void 0)
1605
+ .ser(se_CreateAssessmentTargetCommand)
1606
+ .de(de_CreateAssessmentTargetCommand)
1607
+ .build() {
1608
+ }
2311
1609
 
2312
- var RemoveAttributesFromFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2313
- return [
2314
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2315
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2316
- ];
2317
- }).s("InspectorService", "RemoveAttributesFromFindings", {}).n("InspectorClient", "RemoveAttributesFromFindingsCommand").f(void 0, void 0).ser(se_RemoveAttributesFromFindingsCommand).de(de_RemoveAttributesFromFindingsCommand).build() {
2318
- static {
2319
- __name(this, "RemoveAttributesFromFindingsCommand");
2320
- }
2321
- };
1610
+ class CreateAssessmentTemplateCommand extends smithyClient.Command
1611
+ .classBuilder()
1612
+ .ep(commonParams)
1613
+ .m(function (Command, cs, config, o) {
1614
+ return [
1615
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1616
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1617
+ ];
1618
+ })
1619
+ .s("InspectorService", "CreateAssessmentTemplate", {})
1620
+ .n("InspectorClient", "CreateAssessmentTemplateCommand")
1621
+ .f(void 0, void 0)
1622
+ .ser(se_CreateAssessmentTemplateCommand)
1623
+ .de(de_CreateAssessmentTemplateCommand)
1624
+ .build() {
1625
+ }
2322
1626
 
2323
- // src/commands/SetTagsForResourceCommand.ts
1627
+ class CreateExclusionsPreviewCommand extends smithyClient.Command
1628
+ .classBuilder()
1629
+ .ep(commonParams)
1630
+ .m(function (Command, cs, config, o) {
1631
+ return [
1632
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1633
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1634
+ ];
1635
+ })
1636
+ .s("InspectorService", "CreateExclusionsPreview", {})
1637
+ .n("InspectorClient", "CreateExclusionsPreviewCommand")
1638
+ .f(void 0, void 0)
1639
+ .ser(se_CreateExclusionsPreviewCommand)
1640
+ .de(de_CreateExclusionsPreviewCommand)
1641
+ .build() {
1642
+ }
2324
1643
 
1644
+ class CreateResourceGroupCommand extends smithyClient.Command
1645
+ .classBuilder()
1646
+ .ep(commonParams)
1647
+ .m(function (Command, cs, config, o) {
1648
+ return [
1649
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1650
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1651
+ ];
1652
+ })
1653
+ .s("InspectorService", "CreateResourceGroup", {})
1654
+ .n("InspectorClient", "CreateResourceGroupCommand")
1655
+ .f(void 0, void 0)
1656
+ .ser(se_CreateResourceGroupCommand)
1657
+ .de(de_CreateResourceGroupCommand)
1658
+ .build() {
1659
+ }
2325
1660
 
1661
+ class DeleteAssessmentRunCommand extends smithyClient.Command
1662
+ .classBuilder()
1663
+ .ep(commonParams)
1664
+ .m(function (Command, cs, config, o) {
1665
+ return [
1666
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1667
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1668
+ ];
1669
+ })
1670
+ .s("InspectorService", "DeleteAssessmentRun", {})
1671
+ .n("InspectorClient", "DeleteAssessmentRunCommand")
1672
+ .f(void 0, void 0)
1673
+ .ser(se_DeleteAssessmentRunCommand)
1674
+ .de(de_DeleteAssessmentRunCommand)
1675
+ .build() {
1676
+ }
2326
1677
 
2327
- var SetTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2328
- return [
2329
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2330
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2331
- ];
2332
- }).s("InspectorService", "SetTagsForResource", {}).n("InspectorClient", "SetTagsForResourceCommand").f(void 0, void 0).ser(se_SetTagsForResourceCommand).de(de_SetTagsForResourceCommand).build() {
2333
- static {
2334
- __name(this, "SetTagsForResourceCommand");
2335
- }
2336
- };
1678
+ class DeleteAssessmentTargetCommand extends smithyClient.Command
1679
+ .classBuilder()
1680
+ .ep(commonParams)
1681
+ .m(function (Command, cs, config, o) {
1682
+ return [
1683
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1684
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1685
+ ];
1686
+ })
1687
+ .s("InspectorService", "DeleteAssessmentTarget", {})
1688
+ .n("InspectorClient", "DeleteAssessmentTargetCommand")
1689
+ .f(void 0, void 0)
1690
+ .ser(se_DeleteAssessmentTargetCommand)
1691
+ .de(de_DeleteAssessmentTargetCommand)
1692
+ .build() {
1693
+ }
2337
1694
 
2338
- // src/commands/StartAssessmentRunCommand.ts
1695
+ class DeleteAssessmentTemplateCommand extends smithyClient.Command
1696
+ .classBuilder()
1697
+ .ep(commonParams)
1698
+ .m(function (Command, cs, config, o) {
1699
+ return [
1700
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1701
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1702
+ ];
1703
+ })
1704
+ .s("InspectorService", "DeleteAssessmentTemplate", {})
1705
+ .n("InspectorClient", "DeleteAssessmentTemplateCommand")
1706
+ .f(void 0, void 0)
1707
+ .ser(se_DeleteAssessmentTemplateCommand)
1708
+ .de(de_DeleteAssessmentTemplateCommand)
1709
+ .build() {
1710
+ }
2339
1711
 
1712
+ class DescribeAssessmentRunsCommand extends smithyClient.Command
1713
+ .classBuilder()
1714
+ .ep(commonParams)
1715
+ .m(function (Command, cs, config, o) {
1716
+ return [
1717
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1718
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1719
+ ];
1720
+ })
1721
+ .s("InspectorService", "DescribeAssessmentRuns", {})
1722
+ .n("InspectorClient", "DescribeAssessmentRunsCommand")
1723
+ .f(void 0, void 0)
1724
+ .ser(se_DescribeAssessmentRunsCommand)
1725
+ .de(de_DescribeAssessmentRunsCommand)
1726
+ .build() {
1727
+ }
2340
1728
 
1729
+ class DescribeAssessmentTargetsCommand extends smithyClient.Command
1730
+ .classBuilder()
1731
+ .ep(commonParams)
1732
+ .m(function (Command, cs, config, o) {
1733
+ return [
1734
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1735
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1736
+ ];
1737
+ })
1738
+ .s("InspectorService", "DescribeAssessmentTargets", {})
1739
+ .n("InspectorClient", "DescribeAssessmentTargetsCommand")
1740
+ .f(void 0, void 0)
1741
+ .ser(se_DescribeAssessmentTargetsCommand)
1742
+ .de(de_DescribeAssessmentTargetsCommand)
1743
+ .build() {
1744
+ }
2341
1745
 
2342
- var StartAssessmentRunCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2343
- return [
2344
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2345
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2346
- ];
2347
- }).s("InspectorService", "StartAssessmentRun", {}).n("InspectorClient", "StartAssessmentRunCommand").f(void 0, void 0).ser(se_StartAssessmentRunCommand).de(de_StartAssessmentRunCommand).build() {
2348
- static {
2349
- __name(this, "StartAssessmentRunCommand");
2350
- }
2351
- };
1746
+ class DescribeAssessmentTemplatesCommand extends smithyClient.Command
1747
+ .classBuilder()
1748
+ .ep(commonParams)
1749
+ .m(function (Command, cs, config, o) {
1750
+ return [
1751
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1752
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1753
+ ];
1754
+ })
1755
+ .s("InspectorService", "DescribeAssessmentTemplates", {})
1756
+ .n("InspectorClient", "DescribeAssessmentTemplatesCommand")
1757
+ .f(void 0, void 0)
1758
+ .ser(se_DescribeAssessmentTemplatesCommand)
1759
+ .de(de_DescribeAssessmentTemplatesCommand)
1760
+ .build() {
1761
+ }
2352
1762
 
2353
- // src/commands/StopAssessmentRunCommand.ts
1763
+ class DescribeCrossAccountAccessRoleCommand extends smithyClient.Command
1764
+ .classBuilder()
1765
+ .ep(commonParams)
1766
+ .m(function (Command, cs, config, o) {
1767
+ return [
1768
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1769
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1770
+ ];
1771
+ })
1772
+ .s("InspectorService", "DescribeCrossAccountAccessRole", {})
1773
+ .n("InspectorClient", "DescribeCrossAccountAccessRoleCommand")
1774
+ .f(void 0, void 0)
1775
+ .ser(se_DescribeCrossAccountAccessRoleCommand)
1776
+ .de(de_DescribeCrossAccountAccessRoleCommand)
1777
+ .build() {
1778
+ }
2354
1779
 
1780
+ class DescribeExclusionsCommand extends smithyClient.Command
1781
+ .classBuilder()
1782
+ .ep(commonParams)
1783
+ .m(function (Command, cs, config, o) {
1784
+ return [
1785
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1786
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1787
+ ];
1788
+ })
1789
+ .s("InspectorService", "DescribeExclusions", {})
1790
+ .n("InspectorClient", "DescribeExclusionsCommand")
1791
+ .f(void 0, void 0)
1792
+ .ser(se_DescribeExclusionsCommand)
1793
+ .de(de_DescribeExclusionsCommand)
1794
+ .build() {
1795
+ }
2355
1796
 
1797
+ class DescribeFindingsCommand extends smithyClient.Command
1798
+ .classBuilder()
1799
+ .ep(commonParams)
1800
+ .m(function (Command, cs, config, o) {
1801
+ return [
1802
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1803
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1804
+ ];
1805
+ })
1806
+ .s("InspectorService", "DescribeFindings", {})
1807
+ .n("InspectorClient", "DescribeFindingsCommand")
1808
+ .f(void 0, void 0)
1809
+ .ser(se_DescribeFindingsCommand)
1810
+ .de(de_DescribeFindingsCommand)
1811
+ .build() {
1812
+ }
2356
1813
 
2357
- var StopAssessmentRunCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2358
- return [
2359
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2360
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2361
- ];
2362
- }).s("InspectorService", "StopAssessmentRun", {}).n("InspectorClient", "StopAssessmentRunCommand").f(void 0, void 0).ser(se_StopAssessmentRunCommand).de(de_StopAssessmentRunCommand).build() {
2363
- static {
2364
- __name(this, "StopAssessmentRunCommand");
2365
- }
2366
- };
1814
+ class DescribeResourceGroupsCommand extends smithyClient.Command
1815
+ .classBuilder()
1816
+ .ep(commonParams)
1817
+ .m(function (Command, cs, config, o) {
1818
+ return [
1819
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1820
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1821
+ ];
1822
+ })
1823
+ .s("InspectorService", "DescribeResourceGroups", {})
1824
+ .n("InspectorClient", "DescribeResourceGroupsCommand")
1825
+ .f(void 0, void 0)
1826
+ .ser(se_DescribeResourceGroupsCommand)
1827
+ .de(de_DescribeResourceGroupsCommand)
1828
+ .build() {
1829
+ }
2367
1830
 
2368
- // src/commands/SubscribeToEventCommand.ts
1831
+ class DescribeRulesPackagesCommand extends smithyClient.Command
1832
+ .classBuilder()
1833
+ .ep(commonParams)
1834
+ .m(function (Command, cs, config, o) {
1835
+ return [
1836
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1837
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1838
+ ];
1839
+ })
1840
+ .s("InspectorService", "DescribeRulesPackages", {})
1841
+ .n("InspectorClient", "DescribeRulesPackagesCommand")
1842
+ .f(void 0, void 0)
1843
+ .ser(se_DescribeRulesPackagesCommand)
1844
+ .de(de_DescribeRulesPackagesCommand)
1845
+ .build() {
1846
+ }
2369
1847
 
1848
+ class GetAssessmentReportCommand extends smithyClient.Command
1849
+ .classBuilder()
1850
+ .ep(commonParams)
1851
+ .m(function (Command, cs, config, o) {
1852
+ return [
1853
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1854
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1855
+ ];
1856
+ })
1857
+ .s("InspectorService", "GetAssessmentReport", {})
1858
+ .n("InspectorClient", "GetAssessmentReportCommand")
1859
+ .f(void 0, void 0)
1860
+ .ser(se_GetAssessmentReportCommand)
1861
+ .de(de_GetAssessmentReportCommand)
1862
+ .build() {
1863
+ }
2370
1864
 
1865
+ class GetExclusionsPreviewCommand extends smithyClient.Command
1866
+ .classBuilder()
1867
+ .ep(commonParams)
1868
+ .m(function (Command, cs, config, o) {
1869
+ return [
1870
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1871
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1872
+ ];
1873
+ })
1874
+ .s("InspectorService", "GetExclusionsPreview", {})
1875
+ .n("InspectorClient", "GetExclusionsPreviewCommand")
1876
+ .f(void 0, void 0)
1877
+ .ser(se_GetExclusionsPreviewCommand)
1878
+ .de(de_GetExclusionsPreviewCommand)
1879
+ .build() {
1880
+ }
2371
1881
 
2372
- var SubscribeToEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2373
- return [
2374
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2375
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2376
- ];
2377
- }).s("InspectorService", "SubscribeToEvent", {}).n("InspectorClient", "SubscribeToEventCommand").f(void 0, void 0).ser(se_SubscribeToEventCommand).de(de_SubscribeToEventCommand).build() {
2378
- static {
2379
- __name(this, "SubscribeToEventCommand");
2380
- }
2381
- };
1882
+ class GetTelemetryMetadataCommand extends smithyClient.Command
1883
+ .classBuilder()
1884
+ .ep(commonParams)
1885
+ .m(function (Command, cs, config, o) {
1886
+ return [
1887
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1888
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1889
+ ];
1890
+ })
1891
+ .s("InspectorService", "GetTelemetryMetadata", {})
1892
+ .n("InspectorClient", "GetTelemetryMetadataCommand")
1893
+ .f(void 0, void 0)
1894
+ .ser(se_GetTelemetryMetadataCommand)
1895
+ .de(de_GetTelemetryMetadataCommand)
1896
+ .build() {
1897
+ }
2382
1898
 
2383
- // src/commands/UnsubscribeFromEventCommand.ts
1899
+ class ListAssessmentRunAgentsCommand extends smithyClient.Command
1900
+ .classBuilder()
1901
+ .ep(commonParams)
1902
+ .m(function (Command, cs, config, o) {
1903
+ return [
1904
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1905
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1906
+ ];
1907
+ })
1908
+ .s("InspectorService", "ListAssessmentRunAgents", {})
1909
+ .n("InspectorClient", "ListAssessmentRunAgentsCommand")
1910
+ .f(void 0, void 0)
1911
+ .ser(se_ListAssessmentRunAgentsCommand)
1912
+ .de(de_ListAssessmentRunAgentsCommand)
1913
+ .build() {
1914
+ }
2384
1915
 
1916
+ class ListAssessmentRunsCommand extends smithyClient.Command
1917
+ .classBuilder()
1918
+ .ep(commonParams)
1919
+ .m(function (Command, cs, config, o) {
1920
+ return [
1921
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1922
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1923
+ ];
1924
+ })
1925
+ .s("InspectorService", "ListAssessmentRuns", {})
1926
+ .n("InspectorClient", "ListAssessmentRunsCommand")
1927
+ .f(void 0, void 0)
1928
+ .ser(se_ListAssessmentRunsCommand)
1929
+ .de(de_ListAssessmentRunsCommand)
1930
+ .build() {
1931
+ }
2385
1932
 
1933
+ class ListAssessmentTargetsCommand extends smithyClient.Command
1934
+ .classBuilder()
1935
+ .ep(commonParams)
1936
+ .m(function (Command, cs, config, o) {
1937
+ return [
1938
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1939
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1940
+ ];
1941
+ })
1942
+ .s("InspectorService", "ListAssessmentTargets", {})
1943
+ .n("InspectorClient", "ListAssessmentTargetsCommand")
1944
+ .f(void 0, void 0)
1945
+ .ser(se_ListAssessmentTargetsCommand)
1946
+ .de(de_ListAssessmentTargetsCommand)
1947
+ .build() {
1948
+ }
2386
1949
 
2387
- var UnsubscribeFromEventCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2388
- return [
2389
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2390
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2391
- ];
2392
- }).s("InspectorService", "UnsubscribeFromEvent", {}).n("InspectorClient", "UnsubscribeFromEventCommand").f(void 0, void 0).ser(se_UnsubscribeFromEventCommand).de(de_UnsubscribeFromEventCommand).build() {
2393
- static {
2394
- __name(this, "UnsubscribeFromEventCommand");
2395
- }
2396
- };
1950
+ class ListAssessmentTemplatesCommand extends smithyClient.Command
1951
+ .classBuilder()
1952
+ .ep(commonParams)
1953
+ .m(function (Command, cs, config, o) {
1954
+ return [
1955
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1956
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1957
+ ];
1958
+ })
1959
+ .s("InspectorService", "ListAssessmentTemplates", {})
1960
+ .n("InspectorClient", "ListAssessmentTemplatesCommand")
1961
+ .f(void 0, void 0)
1962
+ .ser(se_ListAssessmentTemplatesCommand)
1963
+ .de(de_ListAssessmentTemplatesCommand)
1964
+ .build() {
1965
+ }
2397
1966
 
2398
- // src/commands/UpdateAssessmentTargetCommand.ts
1967
+ class ListEventSubscriptionsCommand extends smithyClient.Command
1968
+ .classBuilder()
1969
+ .ep(commonParams)
1970
+ .m(function (Command, cs, config, o) {
1971
+ return [
1972
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1973
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1974
+ ];
1975
+ })
1976
+ .s("InspectorService", "ListEventSubscriptions", {})
1977
+ .n("InspectorClient", "ListEventSubscriptionsCommand")
1978
+ .f(void 0, void 0)
1979
+ .ser(se_ListEventSubscriptionsCommand)
1980
+ .de(de_ListEventSubscriptionsCommand)
1981
+ .build() {
1982
+ }
2399
1983
 
1984
+ class ListExclusionsCommand extends smithyClient.Command
1985
+ .classBuilder()
1986
+ .ep(commonParams)
1987
+ .m(function (Command, cs, config, o) {
1988
+ return [
1989
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1990
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1991
+ ];
1992
+ })
1993
+ .s("InspectorService", "ListExclusions", {})
1994
+ .n("InspectorClient", "ListExclusionsCommand")
1995
+ .f(void 0, void 0)
1996
+ .ser(se_ListExclusionsCommand)
1997
+ .de(de_ListExclusionsCommand)
1998
+ .build() {
1999
+ }
2400
2000
 
2001
+ class ListFindingsCommand extends smithyClient.Command
2002
+ .classBuilder()
2003
+ .ep(commonParams)
2004
+ .m(function (Command, cs, config, o) {
2005
+ return [
2006
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2007
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2008
+ ];
2009
+ })
2010
+ .s("InspectorService", "ListFindings", {})
2011
+ .n("InspectorClient", "ListFindingsCommand")
2012
+ .f(void 0, void 0)
2013
+ .ser(se_ListFindingsCommand)
2014
+ .de(de_ListFindingsCommand)
2015
+ .build() {
2016
+ }
2401
2017
 
2402
- var UpdateAssessmentTargetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2403
- return [
2404
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2405
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2406
- ];
2407
- }).s("InspectorService", "UpdateAssessmentTarget", {}).n("InspectorClient", "UpdateAssessmentTargetCommand").f(void 0, void 0).ser(se_UpdateAssessmentTargetCommand).de(de_UpdateAssessmentTargetCommand).build() {
2408
- static {
2409
- __name(this, "UpdateAssessmentTargetCommand");
2410
- }
2411
- };
2018
+ class ListRulesPackagesCommand extends smithyClient.Command
2019
+ .classBuilder()
2020
+ .ep(commonParams)
2021
+ .m(function (Command, cs, config, o) {
2022
+ return [
2023
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2024
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2025
+ ];
2026
+ })
2027
+ .s("InspectorService", "ListRulesPackages", {})
2028
+ .n("InspectorClient", "ListRulesPackagesCommand")
2029
+ .f(void 0, void 0)
2030
+ .ser(se_ListRulesPackagesCommand)
2031
+ .de(de_ListRulesPackagesCommand)
2032
+ .build() {
2033
+ }
2412
2034
 
2413
- // src/Inspector.ts
2414
- var commands = {
2415
- AddAttributesToFindingsCommand,
2416
- CreateAssessmentTargetCommand,
2417
- CreateAssessmentTemplateCommand,
2418
- CreateExclusionsPreviewCommand,
2419
- CreateResourceGroupCommand,
2420
- DeleteAssessmentRunCommand,
2421
- DeleteAssessmentTargetCommand,
2422
- DeleteAssessmentTemplateCommand,
2423
- DescribeAssessmentRunsCommand,
2424
- DescribeAssessmentTargetsCommand,
2425
- DescribeAssessmentTemplatesCommand,
2426
- DescribeCrossAccountAccessRoleCommand,
2427
- DescribeExclusionsCommand,
2428
- DescribeFindingsCommand,
2429
- DescribeResourceGroupsCommand,
2430
- DescribeRulesPackagesCommand,
2431
- GetAssessmentReportCommand,
2432
- GetExclusionsPreviewCommand,
2433
- GetTelemetryMetadataCommand,
2434
- ListAssessmentRunAgentsCommand,
2435
- ListAssessmentRunsCommand,
2436
- ListAssessmentTargetsCommand,
2437
- ListAssessmentTemplatesCommand,
2438
- ListEventSubscriptionsCommand,
2439
- ListExclusionsCommand,
2440
- ListFindingsCommand,
2441
- ListRulesPackagesCommand,
2442
- ListTagsForResourceCommand,
2443
- PreviewAgentsCommand,
2444
- RegisterCrossAccountAccessRoleCommand,
2445
- RemoveAttributesFromFindingsCommand,
2446
- SetTagsForResourceCommand,
2447
- StartAssessmentRunCommand,
2448
- StopAssessmentRunCommand,
2449
- SubscribeToEventCommand,
2450
- UnsubscribeFromEventCommand,
2451
- UpdateAssessmentTargetCommand
2452
- };
2453
- var Inspector = class extends InspectorClient {
2454
- static {
2455
- __name(this, "Inspector");
2456
- }
2457
- };
2458
- (0, import_smithy_client.createAggregatedClient)(commands, Inspector);
2035
+ class ListTagsForResourceCommand extends smithyClient.Command
2036
+ .classBuilder()
2037
+ .ep(commonParams)
2038
+ .m(function (Command, cs, config, o) {
2039
+ return [
2040
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2041
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2042
+ ];
2043
+ })
2044
+ .s("InspectorService", "ListTagsForResource", {})
2045
+ .n("InspectorClient", "ListTagsForResourceCommand")
2046
+ .f(void 0, void 0)
2047
+ .ser(se_ListTagsForResourceCommand)
2048
+ .de(de_ListTagsForResourceCommand)
2049
+ .build() {
2050
+ }
2459
2051
 
2460
- // src/pagination/GetExclusionsPreviewPaginator.ts
2052
+ class PreviewAgentsCommand extends smithyClient.Command
2053
+ .classBuilder()
2054
+ .ep(commonParams)
2055
+ .m(function (Command, cs, config, o) {
2056
+ return [
2057
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2058
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2059
+ ];
2060
+ })
2061
+ .s("InspectorService", "PreviewAgents", {})
2062
+ .n("InspectorClient", "PreviewAgentsCommand")
2063
+ .f(void 0, void 0)
2064
+ .ser(se_PreviewAgentsCommand)
2065
+ .de(de_PreviewAgentsCommand)
2066
+ .build() {
2067
+ }
2461
2068
 
2462
- var paginateGetExclusionsPreview = (0, import_core.createPaginator)(InspectorClient, GetExclusionsPreviewCommand, "nextToken", "nextToken", "maxResults");
2069
+ class RegisterCrossAccountAccessRoleCommand extends smithyClient.Command
2070
+ .classBuilder()
2071
+ .ep(commonParams)
2072
+ .m(function (Command, cs, config, o) {
2073
+ return [
2074
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2075
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2076
+ ];
2077
+ })
2078
+ .s("InspectorService", "RegisterCrossAccountAccessRole", {})
2079
+ .n("InspectorClient", "RegisterCrossAccountAccessRoleCommand")
2080
+ .f(void 0, void 0)
2081
+ .ser(se_RegisterCrossAccountAccessRoleCommand)
2082
+ .de(de_RegisterCrossAccountAccessRoleCommand)
2083
+ .build() {
2084
+ }
2463
2085
 
2464
- // src/pagination/ListAssessmentRunAgentsPaginator.ts
2086
+ class RemoveAttributesFromFindingsCommand extends smithyClient.Command
2087
+ .classBuilder()
2088
+ .ep(commonParams)
2089
+ .m(function (Command, cs, config, o) {
2090
+ return [
2091
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2092
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2093
+ ];
2094
+ })
2095
+ .s("InspectorService", "RemoveAttributesFromFindings", {})
2096
+ .n("InspectorClient", "RemoveAttributesFromFindingsCommand")
2097
+ .f(void 0, void 0)
2098
+ .ser(se_RemoveAttributesFromFindingsCommand)
2099
+ .de(de_RemoveAttributesFromFindingsCommand)
2100
+ .build() {
2101
+ }
2465
2102
 
2466
- var paginateListAssessmentRunAgents = (0, import_core.createPaginator)(InspectorClient, ListAssessmentRunAgentsCommand, "nextToken", "nextToken", "maxResults");
2103
+ class SetTagsForResourceCommand extends smithyClient.Command
2104
+ .classBuilder()
2105
+ .ep(commonParams)
2106
+ .m(function (Command, cs, config, o) {
2107
+ return [
2108
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2109
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2110
+ ];
2111
+ })
2112
+ .s("InspectorService", "SetTagsForResource", {})
2113
+ .n("InspectorClient", "SetTagsForResourceCommand")
2114
+ .f(void 0, void 0)
2115
+ .ser(se_SetTagsForResourceCommand)
2116
+ .de(de_SetTagsForResourceCommand)
2117
+ .build() {
2118
+ }
2467
2119
 
2468
- // src/pagination/ListAssessmentRunsPaginator.ts
2120
+ class StartAssessmentRunCommand extends smithyClient.Command
2121
+ .classBuilder()
2122
+ .ep(commonParams)
2123
+ .m(function (Command, cs, config, o) {
2124
+ return [
2125
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2126
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2127
+ ];
2128
+ })
2129
+ .s("InspectorService", "StartAssessmentRun", {})
2130
+ .n("InspectorClient", "StartAssessmentRunCommand")
2131
+ .f(void 0, void 0)
2132
+ .ser(se_StartAssessmentRunCommand)
2133
+ .de(de_StartAssessmentRunCommand)
2134
+ .build() {
2135
+ }
2469
2136
 
2470
- var paginateListAssessmentRuns = (0, import_core.createPaginator)(InspectorClient, ListAssessmentRunsCommand, "nextToken", "nextToken", "maxResults");
2137
+ class StopAssessmentRunCommand extends smithyClient.Command
2138
+ .classBuilder()
2139
+ .ep(commonParams)
2140
+ .m(function (Command, cs, config, o) {
2141
+ return [
2142
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2143
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2144
+ ];
2145
+ })
2146
+ .s("InspectorService", "StopAssessmentRun", {})
2147
+ .n("InspectorClient", "StopAssessmentRunCommand")
2148
+ .f(void 0, void 0)
2149
+ .ser(se_StopAssessmentRunCommand)
2150
+ .de(de_StopAssessmentRunCommand)
2151
+ .build() {
2152
+ }
2471
2153
 
2472
- // src/pagination/ListAssessmentTargetsPaginator.ts
2154
+ class SubscribeToEventCommand extends smithyClient.Command
2155
+ .classBuilder()
2156
+ .ep(commonParams)
2157
+ .m(function (Command, cs, config, o) {
2158
+ return [
2159
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2160
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2161
+ ];
2162
+ })
2163
+ .s("InspectorService", "SubscribeToEvent", {})
2164
+ .n("InspectorClient", "SubscribeToEventCommand")
2165
+ .f(void 0, void 0)
2166
+ .ser(se_SubscribeToEventCommand)
2167
+ .de(de_SubscribeToEventCommand)
2168
+ .build() {
2169
+ }
2473
2170
 
2474
- var paginateListAssessmentTargets = (0, import_core.createPaginator)(InspectorClient, ListAssessmentTargetsCommand, "nextToken", "nextToken", "maxResults");
2171
+ class UnsubscribeFromEventCommand extends smithyClient.Command
2172
+ .classBuilder()
2173
+ .ep(commonParams)
2174
+ .m(function (Command, cs, config, o) {
2175
+ return [
2176
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2177
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2178
+ ];
2179
+ })
2180
+ .s("InspectorService", "UnsubscribeFromEvent", {})
2181
+ .n("InspectorClient", "UnsubscribeFromEventCommand")
2182
+ .f(void 0, void 0)
2183
+ .ser(se_UnsubscribeFromEventCommand)
2184
+ .de(de_UnsubscribeFromEventCommand)
2185
+ .build() {
2186
+ }
2475
2187
 
2476
- // src/pagination/ListAssessmentTemplatesPaginator.ts
2188
+ class UpdateAssessmentTargetCommand extends smithyClient.Command
2189
+ .classBuilder()
2190
+ .ep(commonParams)
2191
+ .m(function (Command, cs, config, o) {
2192
+ return [
2193
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2194
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2195
+ ];
2196
+ })
2197
+ .s("InspectorService", "UpdateAssessmentTarget", {})
2198
+ .n("InspectorClient", "UpdateAssessmentTargetCommand")
2199
+ .f(void 0, void 0)
2200
+ .ser(se_UpdateAssessmentTargetCommand)
2201
+ .de(de_UpdateAssessmentTargetCommand)
2202
+ .build() {
2203
+ }
2477
2204
 
2478
- var paginateListAssessmentTemplates = (0, import_core.createPaginator)(InspectorClient, ListAssessmentTemplatesCommand, "nextToken", "nextToken", "maxResults");
2205
+ const commands = {
2206
+ AddAttributesToFindingsCommand,
2207
+ CreateAssessmentTargetCommand,
2208
+ CreateAssessmentTemplateCommand,
2209
+ CreateExclusionsPreviewCommand,
2210
+ CreateResourceGroupCommand,
2211
+ DeleteAssessmentRunCommand,
2212
+ DeleteAssessmentTargetCommand,
2213
+ DeleteAssessmentTemplateCommand,
2214
+ DescribeAssessmentRunsCommand,
2215
+ DescribeAssessmentTargetsCommand,
2216
+ DescribeAssessmentTemplatesCommand,
2217
+ DescribeCrossAccountAccessRoleCommand,
2218
+ DescribeExclusionsCommand,
2219
+ DescribeFindingsCommand,
2220
+ DescribeResourceGroupsCommand,
2221
+ DescribeRulesPackagesCommand,
2222
+ GetAssessmentReportCommand,
2223
+ GetExclusionsPreviewCommand,
2224
+ GetTelemetryMetadataCommand,
2225
+ ListAssessmentRunAgentsCommand,
2226
+ ListAssessmentRunsCommand,
2227
+ ListAssessmentTargetsCommand,
2228
+ ListAssessmentTemplatesCommand,
2229
+ ListEventSubscriptionsCommand,
2230
+ ListExclusionsCommand,
2231
+ ListFindingsCommand,
2232
+ ListRulesPackagesCommand,
2233
+ ListTagsForResourceCommand,
2234
+ PreviewAgentsCommand,
2235
+ RegisterCrossAccountAccessRoleCommand,
2236
+ RemoveAttributesFromFindingsCommand,
2237
+ SetTagsForResourceCommand,
2238
+ StartAssessmentRunCommand,
2239
+ StopAssessmentRunCommand,
2240
+ SubscribeToEventCommand,
2241
+ UnsubscribeFromEventCommand,
2242
+ UpdateAssessmentTargetCommand,
2243
+ };
2244
+ class Inspector extends InspectorClient {
2245
+ }
2246
+ smithyClient.createAggregatedClient(commands, Inspector);
2479
2247
 
2480
- // src/pagination/ListEventSubscriptionsPaginator.ts
2248
+ const paginateGetExclusionsPreview = core.createPaginator(InspectorClient, GetExclusionsPreviewCommand, "nextToken", "nextToken", "maxResults");
2481
2249
 
2482
- var paginateListEventSubscriptions = (0, import_core.createPaginator)(InspectorClient, ListEventSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
2250
+ const paginateListAssessmentRunAgents = core.createPaginator(InspectorClient, ListAssessmentRunAgentsCommand, "nextToken", "nextToken", "maxResults");
2483
2251
 
2484
- // src/pagination/ListExclusionsPaginator.ts
2252
+ const paginateListAssessmentRuns = core.createPaginator(InspectorClient, ListAssessmentRunsCommand, "nextToken", "nextToken", "maxResults");
2485
2253
 
2486
- var paginateListExclusions = (0, import_core.createPaginator)(InspectorClient, ListExclusionsCommand, "nextToken", "nextToken", "maxResults");
2254
+ const paginateListAssessmentTargets = core.createPaginator(InspectorClient, ListAssessmentTargetsCommand, "nextToken", "nextToken", "maxResults");
2487
2255
 
2488
- // src/pagination/ListFindingsPaginator.ts
2256
+ const paginateListAssessmentTemplates = core.createPaginator(InspectorClient, ListAssessmentTemplatesCommand, "nextToken", "nextToken", "maxResults");
2489
2257
 
2490
- var paginateListFindings = (0, import_core.createPaginator)(InspectorClient, ListFindingsCommand, "nextToken", "nextToken", "maxResults");
2258
+ const paginateListEventSubscriptions = core.createPaginator(InspectorClient, ListEventSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
2491
2259
 
2492
- // src/pagination/ListRulesPackagesPaginator.ts
2260
+ const paginateListExclusions = core.createPaginator(InspectorClient, ListExclusionsCommand, "nextToken", "nextToken", "maxResults");
2493
2261
 
2494
- var paginateListRulesPackages = (0, import_core.createPaginator)(InspectorClient, ListRulesPackagesCommand, "nextToken", "nextToken", "maxResults");
2262
+ const paginateListFindings = core.createPaginator(InspectorClient, ListFindingsCommand, "nextToken", "nextToken", "maxResults");
2495
2263
 
2496
- // src/pagination/PreviewAgentsPaginator.ts
2264
+ const paginateListRulesPackages = core.createPaginator(InspectorClient, ListRulesPackagesCommand, "nextToken", "nextToken", "maxResults");
2497
2265
 
2498
- var paginatePreviewAgents = (0, import_core.createPaginator)(InspectorClient, PreviewAgentsCommand, "nextToken", "nextToken", "maxResults");
2499
- // Annotate the CommonJS export names for ESM import in node:
2266
+ const paginatePreviewAgents = core.createPaginator(InspectorClient, PreviewAgentsCommand, "nextToken", "nextToken", "maxResults");
2500
2267
 
2501
- 0 && (module.exports = {
2502
- InspectorServiceException,
2503
- __Client,
2504
- InspectorClient,
2505
- Inspector,
2506
- $Command,
2507
- AddAttributesToFindingsCommand,
2508
- CreateAssessmentTargetCommand,
2509
- CreateAssessmentTemplateCommand,
2510
- CreateExclusionsPreviewCommand,
2511
- CreateResourceGroupCommand,
2512
- DeleteAssessmentRunCommand,
2513
- DeleteAssessmentTargetCommand,
2514
- DeleteAssessmentTemplateCommand,
2515
- DescribeAssessmentRunsCommand,
2516
- DescribeAssessmentTargetsCommand,
2517
- DescribeAssessmentTemplatesCommand,
2518
- DescribeCrossAccountAccessRoleCommand,
2519
- DescribeExclusionsCommand,
2520
- DescribeFindingsCommand,
2521
- DescribeResourceGroupsCommand,
2522
- DescribeRulesPackagesCommand,
2523
- GetAssessmentReportCommand,
2524
- GetExclusionsPreviewCommand,
2525
- GetTelemetryMetadataCommand,
2526
- ListAssessmentRunAgentsCommand,
2527
- ListAssessmentRunsCommand,
2528
- ListAssessmentTargetsCommand,
2529
- ListAssessmentTemplatesCommand,
2530
- ListEventSubscriptionsCommand,
2531
- ListExclusionsCommand,
2532
- ListFindingsCommand,
2533
- ListRulesPackagesCommand,
2534
- ListTagsForResourceCommand,
2535
- PreviewAgentsCommand,
2536
- RegisterCrossAccountAccessRoleCommand,
2537
- RemoveAttributesFromFindingsCommand,
2538
- SetTagsForResourceCommand,
2539
- StartAssessmentRunCommand,
2540
- StopAssessmentRunCommand,
2541
- SubscribeToEventCommand,
2542
- UnsubscribeFromEventCommand,
2543
- UpdateAssessmentTargetCommand,
2544
- paginateGetExclusionsPreview,
2545
- paginateListAssessmentRunAgents,
2546
- paginateListAssessmentRuns,
2547
- paginateListAssessmentTargets,
2548
- paginateListAssessmentTemplates,
2549
- paginateListEventSubscriptions,
2550
- paginateListExclusions,
2551
- paginateListFindings,
2552
- paginateListRulesPackages,
2553
- paginatePreviewAgents,
2554
- AccessDeniedErrorCode,
2555
- AccessDeniedException,
2556
- FailedItemErrorCode,
2557
- InternalException,
2558
- InvalidInputErrorCode,
2559
- InvalidInputException,
2560
- NoSuchEntityErrorCode,
2561
- NoSuchEntityException,
2562
- ServiceTemporarilyUnavailableException,
2563
- AgentHealthCode,
2564
- AgentHealth,
2565
- AgentsAlreadyRunningAssessmentException,
2566
- Severity,
2567
- InspectorEvent,
2568
- AssessmentRunNotificationSnsStatusCode,
2569
- AssessmentRunState,
2570
- AssessmentRunInProgressException,
2571
- AssetType,
2572
- InvalidCrossAccountRoleErrorCode,
2573
- InvalidCrossAccountRoleException,
2574
- LimitExceededErrorCode,
2575
- LimitExceededException,
2576
- PreviewGenerationInProgressException,
2577
- Locale,
2578
- ScopeType,
2579
- ReportFileFormat,
2580
- ReportType,
2581
- ReportStatus,
2582
- UnsupportedFeatureException,
2583
- PreviewStatus,
2584
- StopAction
2268
+ Object.defineProperty(exports, "$Command", {
2269
+ enumerable: true,
2270
+ get: function () { return smithyClient.Command; }
2585
2271
  });
2586
-
2272
+ Object.defineProperty(exports, "__Client", {
2273
+ enumerable: true,
2274
+ get: function () { return smithyClient.Client; }
2275
+ });
2276
+ exports.AccessDeniedErrorCode = AccessDeniedErrorCode;
2277
+ exports.AccessDeniedException = AccessDeniedException;
2278
+ exports.AddAttributesToFindingsCommand = AddAttributesToFindingsCommand;
2279
+ exports.AgentHealth = AgentHealth;
2280
+ exports.AgentHealthCode = AgentHealthCode;
2281
+ exports.AgentsAlreadyRunningAssessmentException = AgentsAlreadyRunningAssessmentException;
2282
+ exports.AssessmentRunInProgressException = AssessmentRunInProgressException;
2283
+ exports.AssessmentRunNotificationSnsStatusCode = AssessmentRunNotificationSnsStatusCode;
2284
+ exports.AssessmentRunState = AssessmentRunState;
2285
+ exports.AssetType = AssetType;
2286
+ exports.CreateAssessmentTargetCommand = CreateAssessmentTargetCommand;
2287
+ exports.CreateAssessmentTemplateCommand = CreateAssessmentTemplateCommand;
2288
+ exports.CreateExclusionsPreviewCommand = CreateExclusionsPreviewCommand;
2289
+ exports.CreateResourceGroupCommand = CreateResourceGroupCommand;
2290
+ exports.DeleteAssessmentRunCommand = DeleteAssessmentRunCommand;
2291
+ exports.DeleteAssessmentTargetCommand = DeleteAssessmentTargetCommand;
2292
+ exports.DeleteAssessmentTemplateCommand = DeleteAssessmentTemplateCommand;
2293
+ exports.DescribeAssessmentRunsCommand = DescribeAssessmentRunsCommand;
2294
+ exports.DescribeAssessmentTargetsCommand = DescribeAssessmentTargetsCommand;
2295
+ exports.DescribeAssessmentTemplatesCommand = DescribeAssessmentTemplatesCommand;
2296
+ exports.DescribeCrossAccountAccessRoleCommand = DescribeCrossAccountAccessRoleCommand;
2297
+ exports.DescribeExclusionsCommand = DescribeExclusionsCommand;
2298
+ exports.DescribeFindingsCommand = DescribeFindingsCommand;
2299
+ exports.DescribeResourceGroupsCommand = DescribeResourceGroupsCommand;
2300
+ exports.DescribeRulesPackagesCommand = DescribeRulesPackagesCommand;
2301
+ exports.FailedItemErrorCode = FailedItemErrorCode;
2302
+ exports.GetAssessmentReportCommand = GetAssessmentReportCommand;
2303
+ exports.GetExclusionsPreviewCommand = GetExclusionsPreviewCommand;
2304
+ exports.GetTelemetryMetadataCommand = GetTelemetryMetadataCommand;
2305
+ exports.Inspector = Inspector;
2306
+ exports.InspectorClient = InspectorClient;
2307
+ exports.InspectorEvent = InspectorEvent;
2308
+ exports.InspectorServiceException = InspectorServiceException;
2309
+ exports.InternalException = InternalException;
2310
+ exports.InvalidCrossAccountRoleErrorCode = InvalidCrossAccountRoleErrorCode;
2311
+ exports.InvalidCrossAccountRoleException = InvalidCrossAccountRoleException;
2312
+ exports.InvalidInputErrorCode = InvalidInputErrorCode;
2313
+ exports.InvalidInputException = InvalidInputException;
2314
+ exports.LimitExceededErrorCode = LimitExceededErrorCode;
2315
+ exports.LimitExceededException = LimitExceededException;
2316
+ exports.ListAssessmentRunAgentsCommand = ListAssessmentRunAgentsCommand;
2317
+ exports.ListAssessmentRunsCommand = ListAssessmentRunsCommand;
2318
+ exports.ListAssessmentTargetsCommand = ListAssessmentTargetsCommand;
2319
+ exports.ListAssessmentTemplatesCommand = ListAssessmentTemplatesCommand;
2320
+ exports.ListEventSubscriptionsCommand = ListEventSubscriptionsCommand;
2321
+ exports.ListExclusionsCommand = ListExclusionsCommand;
2322
+ exports.ListFindingsCommand = ListFindingsCommand;
2323
+ exports.ListRulesPackagesCommand = ListRulesPackagesCommand;
2324
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2325
+ exports.Locale = Locale;
2326
+ exports.NoSuchEntityErrorCode = NoSuchEntityErrorCode;
2327
+ exports.NoSuchEntityException = NoSuchEntityException;
2328
+ exports.PreviewAgentsCommand = PreviewAgentsCommand;
2329
+ exports.PreviewGenerationInProgressException = PreviewGenerationInProgressException;
2330
+ exports.PreviewStatus = PreviewStatus;
2331
+ exports.RegisterCrossAccountAccessRoleCommand = RegisterCrossAccountAccessRoleCommand;
2332
+ exports.RemoveAttributesFromFindingsCommand = RemoveAttributesFromFindingsCommand;
2333
+ exports.ReportFileFormat = ReportFileFormat;
2334
+ exports.ReportStatus = ReportStatus;
2335
+ exports.ReportType = ReportType;
2336
+ exports.ScopeType = ScopeType;
2337
+ exports.ServiceTemporarilyUnavailableException = ServiceTemporarilyUnavailableException;
2338
+ exports.SetTagsForResourceCommand = SetTagsForResourceCommand;
2339
+ exports.Severity = Severity;
2340
+ exports.StartAssessmentRunCommand = StartAssessmentRunCommand;
2341
+ exports.StopAction = StopAction;
2342
+ exports.StopAssessmentRunCommand = StopAssessmentRunCommand;
2343
+ exports.SubscribeToEventCommand = SubscribeToEventCommand;
2344
+ exports.UnsubscribeFromEventCommand = UnsubscribeFromEventCommand;
2345
+ exports.UnsupportedFeatureException = UnsupportedFeatureException;
2346
+ exports.UpdateAssessmentTargetCommand = UpdateAssessmentTargetCommand;
2347
+ exports.paginateGetExclusionsPreview = paginateGetExclusionsPreview;
2348
+ exports.paginateListAssessmentRunAgents = paginateListAssessmentRunAgents;
2349
+ exports.paginateListAssessmentRuns = paginateListAssessmentRuns;
2350
+ exports.paginateListAssessmentTargets = paginateListAssessmentTargets;
2351
+ exports.paginateListAssessmentTemplates = paginateListAssessmentTemplates;
2352
+ exports.paginateListEventSubscriptions = paginateListEventSubscriptions;
2353
+ exports.paginateListExclusions = paginateListExclusions;
2354
+ exports.paginateListFindings = paginateListFindings;
2355
+ exports.paginateListRulesPackages = paginateListRulesPackages;
2356
+ exports.paginatePreviewAgents = paginatePreviewAgents;