@aws-sdk/client-inspector2 3.495.0 → 3.498.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -0
- package/dist-cjs/commands/CreateCisScanConfigurationCommand.js +1 -0
- package/dist-cjs/commands/DeleteCisScanConfigurationCommand.js +1 -0
- package/dist-cjs/commands/GetCisScanReportCommand.js +1 -0
- package/dist-cjs/commands/GetCisScanResultDetailsCommand.js +1 -0
- package/dist-cjs/commands/ListCisScanConfigurationsCommand.js +1 -0
- package/dist-cjs/commands/ListCisScanResultsAggregatedByChecksCommand.js +1 -0
- package/dist-cjs/commands/ListCisScanResultsAggregatedByTargetResourceCommand.js +1 -0
- package/dist-cjs/commands/ListCisScansCommand.js +1 -0
- package/dist-cjs/commands/SendCisSessionHealthCommand.js +1 -0
- package/dist-cjs/commands/SendCisSessionTelemetryCommand.js +1 -0
- package/dist-cjs/commands/StartCisSessionCommand.js +1 -0
- package/dist-cjs/commands/StopCisSessionCommand.js +1 -0
- package/dist-cjs/commands/UpdateCisScanConfigurationCommand.js +1 -0
- package/dist-cjs/index.js +1722 -397
- package/dist-cjs/models/models_1.js +1 -0
- package/dist-cjs/pagination/GetCisScanResultDetailsPaginator.js +1 -0
- package/dist-cjs/pagination/ListCisScanConfigurationsPaginator.js +1 -0
- package/dist-cjs/pagination/ListCisScanResultsAggregatedByChecksPaginator.js +1 -0
- package/dist-cjs/pagination/ListCisScanResultsAggregatedByTargetResourcePaginator.js +1 -0
- package/dist-cjs/pagination/ListCisScansPaginator.js +1 -0
- package/dist-es/Inspector2.js +26 -0
- package/dist-es/commands/CreateCisScanConfigurationCommand.js +24 -0
- package/dist-es/commands/DeleteCisScanConfigurationCommand.js +24 -0
- package/dist-es/commands/GetCisScanReportCommand.js +24 -0
- package/dist-es/commands/GetCisScanResultDetailsCommand.js +24 -0
- package/dist-es/commands/ListCisScanConfigurationsCommand.js +24 -0
- package/dist-es/commands/ListCisScanResultsAggregatedByChecksCommand.js +24 -0
- package/dist-es/commands/ListCisScanResultsAggregatedByTargetResourceCommand.js +24 -0
- package/dist-es/commands/ListCisScansCommand.js +24 -0
- package/dist-es/commands/SendCisSessionHealthCommand.js +24 -0
- package/dist-es/commands/SendCisSessionTelemetryCommand.js +24 -0
- package/dist-es/commands/StartCisSessionCommand.js +24 -0
- package/dist-es/commands/StopCisSessionCommand.js +24 -0
- package/dist-es/commands/UpdateCisScanConfigurationCommand.js +24 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +126 -28
- package/dist-es/models/models_1.js +35 -0
- package/dist-es/pagination/GetCisScanResultDetailsPaginator.js +4 -0
- package/dist-es/pagination/ListCisScanConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/ListCisScanResultsAggregatedByChecksPaginator.js +4 -0
- package/dist-es/pagination/ListCisScanResultsAggregatedByTargetResourcePaginator.js +4 -0
- package/dist-es/pagination/ListCisScansPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +847 -20
- package/dist-types/Inspector2.d.ts +91 -0
- package/dist-types/Inspector2Client.d.ts +15 -2
- package/dist-types/commands/CreateCisScanConfigurationCommand.d.ts +110 -0
- package/dist-types/commands/DeleteCisScanConfigurationCommand.d.ts +74 -0
- package/dist-types/commands/GetCisScanReportCommand.d.ts +75 -0
- package/dist-types/commands/GetCisScanResultDetailsCommand.d.ts +125 -0
- package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +141 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +129 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +152 -0
- package/dist-types/commands/ListCisScansCommand.d.ts +158 -0
- package/dist-types/commands/ListCoverageCommand.d.ts +2 -1
- package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +1 -1
- package/dist-types/commands/ListFiltersCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingsCommand.d.ts +1 -1
- package/dist-types/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListUsageTotalsCommand.d.ts +1 -1
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +1 -1
- package/dist-types/commands/SendCisSessionHealthCommand.d.ts +77 -0
- package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +84 -0
- package/dist-types/commands/StartCisSessionCommand.d.ts +79 -0
- package/dist-types/commands/StopCisSessionCommand.d.ts +98 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCisScanConfigurationCommand.d.ts +111 -0
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFilterCommand.d.ts +1 -1
- package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2223 -1516
- package/dist-types/models/models_1.d.ts +1053 -0
- package/dist-types/pagination/GetCisScanResultDetailsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCisScanConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCisScanResultsAggregatedByChecksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCisScanResultsAggregatedByTargetResourcePaginator.d.ts +7 -0
- package/dist-types/pagination/ListCisScansPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
- package/dist-types/ts3.4/Inspector2.d.ts +233 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +78 -0
- package/dist-types/ts3.4/commands/CreateCisScanConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteCisScanConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetCisScanReportCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/GetCisScanResultDetailsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListCisScanConfigurationsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListCisScansCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListCoverageStatisticsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListDelegatedAdminAccountsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFiltersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFindingAggregationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUsageTotalsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ResetEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchVulnerabilitiesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SendCisSessionHealthCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/SendCisSessionTelemetryCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/StartCisSessionCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/StopCisSessionCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateCisScanConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +449 -192
- package/dist-types/ts3.4/models/models_1.d.ts +309 -0
- package/dist-types/ts3.4/pagination/GetCisScanResultDetailsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCisScanConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCisScanResultsAggregatedByChecksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCisScanResultsAggregatedByTargetResourcePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCisScansPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +39 -39
|
@@ -121,6 +121,23 @@ export const se_CancelSbomExportCommand = async (input, context) => {
|
|
|
121
121
|
b.m("POST").h(headers).b(body);
|
|
122
122
|
return b.build();
|
|
123
123
|
};
|
|
124
|
+
export const se_CreateCisScanConfigurationCommand = async (input, context) => {
|
|
125
|
+
const b = rb(input, context);
|
|
126
|
+
const headers = {
|
|
127
|
+
"content-type": "application/json",
|
|
128
|
+
};
|
|
129
|
+
b.bp("/cis/scan-configuration/create");
|
|
130
|
+
let body;
|
|
131
|
+
body = JSON.stringify(take(input, {
|
|
132
|
+
scanName: [],
|
|
133
|
+
schedule: (_) => _json(_),
|
|
134
|
+
securityLevel: [],
|
|
135
|
+
tags: (_) => _json(_),
|
|
136
|
+
targets: (_) => _json(_),
|
|
137
|
+
}));
|
|
138
|
+
b.m("POST").h(headers).b(body);
|
|
139
|
+
return b.build();
|
|
140
|
+
};
|
|
124
141
|
export const se_CreateFilterCommand = async (input, context) => {
|
|
125
142
|
const b = rb(input, context);
|
|
126
143
|
const headers = {
|
|
@@ -169,6 +186,19 @@ export const se_CreateSbomExportCommand = async (input, context) => {
|
|
|
169
186
|
b.m("POST").h(headers).b(body);
|
|
170
187
|
return b.build();
|
|
171
188
|
};
|
|
189
|
+
export const se_DeleteCisScanConfigurationCommand = async (input, context) => {
|
|
190
|
+
const b = rb(input, context);
|
|
191
|
+
const headers = {
|
|
192
|
+
"content-type": "application/json",
|
|
193
|
+
};
|
|
194
|
+
b.bp("/cis/scan-configuration/delete");
|
|
195
|
+
let body;
|
|
196
|
+
body = JSON.stringify(take(input, {
|
|
197
|
+
scanConfigurationArn: [],
|
|
198
|
+
}));
|
|
199
|
+
b.m("POST").h(headers).b(body);
|
|
200
|
+
return b.build();
|
|
201
|
+
};
|
|
172
202
|
export const se_DeleteFilterCommand = async (input, context) => {
|
|
173
203
|
const b = rb(input, context);
|
|
174
204
|
const headers = {
|
|
@@ -262,6 +292,40 @@ export const se_EnableDelegatedAdminAccountCommand = async (input, context) => {
|
|
|
262
292
|
b.m("POST").h(headers).b(body);
|
|
263
293
|
return b.build();
|
|
264
294
|
};
|
|
295
|
+
export const se_GetCisScanReportCommand = async (input, context) => {
|
|
296
|
+
const b = rb(input, context);
|
|
297
|
+
const headers = {
|
|
298
|
+
"content-type": "application/json",
|
|
299
|
+
};
|
|
300
|
+
b.bp("/cis/scan/report/get");
|
|
301
|
+
let body;
|
|
302
|
+
body = JSON.stringify(take(input, {
|
|
303
|
+
scanArn: [],
|
|
304
|
+
targetAccounts: (_) => _json(_),
|
|
305
|
+
}));
|
|
306
|
+
b.m("POST").h(headers).b(body);
|
|
307
|
+
return b.build();
|
|
308
|
+
};
|
|
309
|
+
export const se_GetCisScanResultDetailsCommand = async (input, context) => {
|
|
310
|
+
const b = rb(input, context);
|
|
311
|
+
const headers = {
|
|
312
|
+
"content-type": "application/json",
|
|
313
|
+
};
|
|
314
|
+
b.bp("/cis/scan-result/details/get");
|
|
315
|
+
let body;
|
|
316
|
+
body = JSON.stringify(take(input, {
|
|
317
|
+
accountId: [],
|
|
318
|
+
filterCriteria: (_) => _json(_),
|
|
319
|
+
maxResults: [],
|
|
320
|
+
nextToken: [],
|
|
321
|
+
scanArn: [],
|
|
322
|
+
sortBy: [],
|
|
323
|
+
sortOrder: [],
|
|
324
|
+
targetResourceId: [],
|
|
325
|
+
}));
|
|
326
|
+
b.m("POST").h(headers).b(body);
|
|
327
|
+
return b.build();
|
|
328
|
+
};
|
|
265
329
|
export const se_GetConfigurationCommand = async (input, context) => {
|
|
266
330
|
const b = rb(input, context);
|
|
267
331
|
const headers = {
|
|
@@ -361,6 +425,77 @@ export const se_ListAccountPermissionsCommand = async (input, context) => {
|
|
|
361
425
|
b.m("POST").h(headers).b(body);
|
|
362
426
|
return b.build();
|
|
363
427
|
};
|
|
428
|
+
export const se_ListCisScanConfigurationsCommand = async (input, context) => {
|
|
429
|
+
const b = rb(input, context);
|
|
430
|
+
const headers = {
|
|
431
|
+
"content-type": "application/json",
|
|
432
|
+
};
|
|
433
|
+
b.bp("/cis/scan-configuration/list");
|
|
434
|
+
let body;
|
|
435
|
+
body = JSON.stringify(take(input, {
|
|
436
|
+
filterCriteria: (_) => _json(_),
|
|
437
|
+
maxResults: [],
|
|
438
|
+
nextToken: [],
|
|
439
|
+
sortBy: [],
|
|
440
|
+
sortOrder: [],
|
|
441
|
+
}));
|
|
442
|
+
b.m("POST").h(headers).b(body);
|
|
443
|
+
return b.build();
|
|
444
|
+
};
|
|
445
|
+
export const se_ListCisScanResultsAggregatedByChecksCommand = async (input, context) => {
|
|
446
|
+
const b = rb(input, context);
|
|
447
|
+
const headers = {
|
|
448
|
+
"content-type": "application/json",
|
|
449
|
+
};
|
|
450
|
+
b.bp("/cis/scan-result/check/list");
|
|
451
|
+
let body;
|
|
452
|
+
body = JSON.stringify(take(input, {
|
|
453
|
+
filterCriteria: (_) => _json(_),
|
|
454
|
+
maxResults: [],
|
|
455
|
+
nextToken: [],
|
|
456
|
+
scanArn: [],
|
|
457
|
+
sortBy: [],
|
|
458
|
+
sortOrder: [],
|
|
459
|
+
}));
|
|
460
|
+
b.m("POST").h(headers).b(body);
|
|
461
|
+
return b.build();
|
|
462
|
+
};
|
|
463
|
+
export const se_ListCisScanResultsAggregatedByTargetResourceCommand = async (input, context) => {
|
|
464
|
+
const b = rb(input, context);
|
|
465
|
+
const headers = {
|
|
466
|
+
"content-type": "application/json",
|
|
467
|
+
};
|
|
468
|
+
b.bp("/cis/scan-result/resource/list");
|
|
469
|
+
let body;
|
|
470
|
+
body = JSON.stringify(take(input, {
|
|
471
|
+
filterCriteria: (_) => _json(_),
|
|
472
|
+
maxResults: [],
|
|
473
|
+
nextToken: [],
|
|
474
|
+
scanArn: [],
|
|
475
|
+
sortBy: [],
|
|
476
|
+
sortOrder: [],
|
|
477
|
+
}));
|
|
478
|
+
b.m("POST").h(headers).b(body);
|
|
479
|
+
return b.build();
|
|
480
|
+
};
|
|
481
|
+
export const se_ListCisScansCommand = async (input, context) => {
|
|
482
|
+
const b = rb(input, context);
|
|
483
|
+
const headers = {
|
|
484
|
+
"content-type": "application/json",
|
|
485
|
+
};
|
|
486
|
+
b.bp("/cis/scan/list");
|
|
487
|
+
let body;
|
|
488
|
+
body = JSON.stringify(take(input, {
|
|
489
|
+
detailLevel: [],
|
|
490
|
+
filterCriteria: (_) => se_ListCisScansFilterCriteria(_, context),
|
|
491
|
+
maxResults: [],
|
|
492
|
+
nextToken: [],
|
|
493
|
+
sortBy: [],
|
|
494
|
+
sortOrder: [],
|
|
495
|
+
}));
|
|
496
|
+
b.m("POST").h(headers).b(body);
|
|
497
|
+
return b.build();
|
|
498
|
+
};
|
|
364
499
|
export const se_ListCoverageCommand = async (input, context) => {
|
|
365
500
|
const b = rb(input, context);
|
|
366
501
|
const headers = {
|
|
@@ -521,6 +656,64 @@ export const se_SearchVulnerabilitiesCommand = async (input, context) => {
|
|
|
521
656
|
b.m("POST").h(headers).b(body);
|
|
522
657
|
return b.build();
|
|
523
658
|
};
|
|
659
|
+
export const se_SendCisSessionHealthCommand = async (input, context) => {
|
|
660
|
+
const b = rb(input, context);
|
|
661
|
+
const headers = {
|
|
662
|
+
"content-type": "application/json",
|
|
663
|
+
};
|
|
664
|
+
b.bp("/cissession/health/send");
|
|
665
|
+
let body;
|
|
666
|
+
body = JSON.stringify(take(input, {
|
|
667
|
+
scanJobId: [],
|
|
668
|
+
sessionToken: [],
|
|
669
|
+
}));
|
|
670
|
+
b.m("PUT").h(headers).b(body);
|
|
671
|
+
return b.build();
|
|
672
|
+
};
|
|
673
|
+
export const se_SendCisSessionTelemetryCommand = async (input, context) => {
|
|
674
|
+
const b = rb(input, context);
|
|
675
|
+
const headers = {
|
|
676
|
+
"content-type": "application/json",
|
|
677
|
+
};
|
|
678
|
+
b.bp("/cissession/telemetry/send");
|
|
679
|
+
let body;
|
|
680
|
+
body = JSON.stringify(take(input, {
|
|
681
|
+
messages: (_) => se_CisSessionMessages(_, context),
|
|
682
|
+
scanJobId: [],
|
|
683
|
+
sessionToken: [],
|
|
684
|
+
}));
|
|
685
|
+
b.m("PUT").h(headers).b(body);
|
|
686
|
+
return b.build();
|
|
687
|
+
};
|
|
688
|
+
export const se_StartCisSessionCommand = async (input, context) => {
|
|
689
|
+
const b = rb(input, context);
|
|
690
|
+
const headers = {
|
|
691
|
+
"content-type": "application/json",
|
|
692
|
+
};
|
|
693
|
+
b.bp("/cissession/start");
|
|
694
|
+
let body;
|
|
695
|
+
body = JSON.stringify(take(input, {
|
|
696
|
+
message: (_) => _json(_),
|
|
697
|
+
scanJobId: [],
|
|
698
|
+
}));
|
|
699
|
+
b.m("PUT").h(headers).b(body);
|
|
700
|
+
return b.build();
|
|
701
|
+
};
|
|
702
|
+
export const se_StopCisSessionCommand = async (input, context) => {
|
|
703
|
+
const b = rb(input, context);
|
|
704
|
+
const headers = {
|
|
705
|
+
"content-type": "application/json",
|
|
706
|
+
};
|
|
707
|
+
b.bp("/cissession/stop");
|
|
708
|
+
let body;
|
|
709
|
+
body = JSON.stringify(take(input, {
|
|
710
|
+
message: (_) => _json(_),
|
|
711
|
+
scanJobId: [],
|
|
712
|
+
sessionToken: [],
|
|
713
|
+
}));
|
|
714
|
+
b.m("PUT").h(headers).b(body);
|
|
715
|
+
return b.build();
|
|
716
|
+
};
|
|
524
717
|
export const se_TagResourceCommand = async (input, context) => {
|
|
525
718
|
const b = rb(input, context);
|
|
526
719
|
const headers = {
|
|
@@ -550,6 +743,23 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
550
743
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
551
744
|
return b.build();
|
|
552
745
|
};
|
|
746
|
+
export const se_UpdateCisScanConfigurationCommand = async (input, context) => {
|
|
747
|
+
const b = rb(input, context);
|
|
748
|
+
const headers = {
|
|
749
|
+
"content-type": "application/json",
|
|
750
|
+
};
|
|
751
|
+
b.bp("/cis/scan-configuration/update");
|
|
752
|
+
let body;
|
|
753
|
+
body = JSON.stringify(take(input, {
|
|
754
|
+
scanConfigurationArn: [],
|
|
755
|
+
scanName: [],
|
|
756
|
+
schedule: (_) => _json(_),
|
|
757
|
+
securityLevel: [],
|
|
758
|
+
targets: (_) => _json(_),
|
|
759
|
+
}));
|
|
760
|
+
b.m("POST").h(headers).b(body);
|
|
761
|
+
return b.build();
|
|
762
|
+
};
|
|
553
763
|
export const se_UpdateConfigurationCommand = async (input, context) => {
|
|
554
764
|
const b = rb(input, context);
|
|
555
765
|
const headers = {
|
|
@@ -1029,6 +1239,48 @@ const de_CancelSbomExportCommandError = async (output, context) => {
|
|
|
1029
1239
|
});
|
|
1030
1240
|
}
|
|
1031
1241
|
};
|
|
1242
|
+
export const de_CreateCisScanConfigurationCommand = async (output, context) => {
|
|
1243
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1244
|
+
return de_CreateCisScanConfigurationCommandError(output, context);
|
|
1245
|
+
}
|
|
1246
|
+
const contents = map({
|
|
1247
|
+
$metadata: deserializeMetadata(output),
|
|
1248
|
+
});
|
|
1249
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1250
|
+
const doc = take(data, {
|
|
1251
|
+
scanConfigurationArn: __expectString,
|
|
1252
|
+
});
|
|
1253
|
+
Object.assign(contents, doc);
|
|
1254
|
+
return contents;
|
|
1255
|
+
};
|
|
1256
|
+
const de_CreateCisScanConfigurationCommandError = async (output, context) => {
|
|
1257
|
+
const parsedOutput = {
|
|
1258
|
+
...output,
|
|
1259
|
+
body: await parseErrorBody(output.body, context),
|
|
1260
|
+
};
|
|
1261
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
+
switch (errorCode) {
|
|
1263
|
+
case "AccessDeniedException":
|
|
1264
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1265
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1266
|
+
case "InternalServerException":
|
|
1267
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1268
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1269
|
+
case "ThrottlingException":
|
|
1270
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1271
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1272
|
+
case "ValidationException":
|
|
1273
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1274
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1275
|
+
default:
|
|
1276
|
+
const parsedBody = parsedOutput.body;
|
|
1277
|
+
return throwDefaultError({
|
|
1278
|
+
output,
|
|
1279
|
+
parsedBody,
|
|
1280
|
+
errorCode,
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1032
1284
|
export const de_CreateFilterCommand = async (output, context) => {
|
|
1033
1285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1034
1286
|
return de_CreateFilterCommandError(output, context);
|
|
@@ -1167,6 +1419,51 @@ const de_CreateSbomExportCommandError = async (output, context) => {
|
|
|
1167
1419
|
});
|
|
1168
1420
|
}
|
|
1169
1421
|
};
|
|
1422
|
+
export const de_DeleteCisScanConfigurationCommand = async (output, context) => {
|
|
1423
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1424
|
+
return de_DeleteCisScanConfigurationCommandError(output, context);
|
|
1425
|
+
}
|
|
1426
|
+
const contents = map({
|
|
1427
|
+
$metadata: deserializeMetadata(output),
|
|
1428
|
+
});
|
|
1429
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1430
|
+
const doc = take(data, {
|
|
1431
|
+
scanConfigurationArn: __expectString,
|
|
1432
|
+
});
|
|
1433
|
+
Object.assign(contents, doc);
|
|
1434
|
+
return contents;
|
|
1435
|
+
};
|
|
1436
|
+
const de_DeleteCisScanConfigurationCommandError = async (output, context) => {
|
|
1437
|
+
const parsedOutput = {
|
|
1438
|
+
...output,
|
|
1439
|
+
body: await parseErrorBody(output.body, context),
|
|
1440
|
+
};
|
|
1441
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
+
switch (errorCode) {
|
|
1443
|
+
case "AccessDeniedException":
|
|
1444
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1445
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1446
|
+
case "InternalServerException":
|
|
1447
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1448
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1449
|
+
case "ResourceNotFoundException":
|
|
1450
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1451
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1452
|
+
case "ThrottlingException":
|
|
1453
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1454
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1455
|
+
case "ValidationException":
|
|
1456
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1457
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1458
|
+
default:
|
|
1459
|
+
const parsedBody = parsedOutput.body;
|
|
1460
|
+
return throwDefaultError({
|
|
1461
|
+
output,
|
|
1462
|
+
parsedBody,
|
|
1463
|
+
errorCode,
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
};
|
|
1170
1467
|
export const de_DeleteFilterCommand = async (output, context) => {
|
|
1171
1468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1172
1469
|
return de_DeleteFilterCommandError(output, context);
|
|
@@ -1485,36 +1782,40 @@ const de_EnableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1485
1782
|
});
|
|
1486
1783
|
}
|
|
1487
1784
|
};
|
|
1488
|
-
export const
|
|
1785
|
+
export const de_GetCisScanReportCommand = async (output, context) => {
|
|
1489
1786
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1490
|
-
return
|
|
1787
|
+
return de_GetCisScanReportCommandError(output, context);
|
|
1491
1788
|
}
|
|
1492
1789
|
const contents = map({
|
|
1493
1790
|
$metadata: deserializeMetadata(output),
|
|
1494
1791
|
});
|
|
1495
1792
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1496
1793
|
const doc = take(data, {
|
|
1497
|
-
|
|
1794
|
+
status: __expectString,
|
|
1795
|
+
url: __expectString,
|
|
1498
1796
|
});
|
|
1499
1797
|
Object.assign(contents, doc);
|
|
1500
1798
|
return contents;
|
|
1501
1799
|
};
|
|
1502
|
-
const
|
|
1800
|
+
const de_GetCisScanReportCommandError = async (output, context) => {
|
|
1503
1801
|
const parsedOutput = {
|
|
1504
1802
|
...output,
|
|
1505
1803
|
body: await parseErrorBody(output.body, context),
|
|
1506
1804
|
};
|
|
1507
1805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
1806
|
switch (errorCode) {
|
|
1807
|
+
case "AccessDeniedException":
|
|
1808
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1809
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1509
1810
|
case "InternalServerException":
|
|
1510
1811
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1511
1812
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "ResourceNotFoundException":
|
|
1513
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1514
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1515
1813
|
case "ThrottlingException":
|
|
1516
1814
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1517
1815
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1816
|
+
case "ValidationException":
|
|
1817
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1818
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
1819
|
default:
|
|
1519
1820
|
const parsedBody = parsedOutput.body;
|
|
1520
1821
|
return throwDefaultError({
|
|
@@ -1524,21 +1825,22 @@ const de_GetConfigurationCommandError = async (output, context) => {
|
|
|
1524
1825
|
});
|
|
1525
1826
|
}
|
|
1526
1827
|
};
|
|
1527
|
-
export const
|
|
1828
|
+
export const de_GetCisScanResultDetailsCommand = async (output, context) => {
|
|
1528
1829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
1830
|
+
return de_GetCisScanResultDetailsCommandError(output, context);
|
|
1530
1831
|
}
|
|
1531
1832
|
const contents = map({
|
|
1532
1833
|
$metadata: deserializeMetadata(output),
|
|
1533
1834
|
});
|
|
1534
1835
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1535
1836
|
const doc = take(data, {
|
|
1536
|
-
|
|
1837
|
+
nextToken: __expectString,
|
|
1838
|
+
scanResultDetails: _json,
|
|
1537
1839
|
});
|
|
1538
1840
|
Object.assign(contents, doc);
|
|
1539
1841
|
return contents;
|
|
1540
1842
|
};
|
|
1541
|
-
const
|
|
1843
|
+
const de_GetCisScanResultDetailsCommandError = async (output, context) => {
|
|
1542
1844
|
const parsedOutput = {
|
|
1543
1845
|
...output,
|
|
1544
1846
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1551,9 +1853,6 @@ const de_GetDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1551
1853
|
case "InternalServerException":
|
|
1552
1854
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1553
1855
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "ResourceNotFoundException":
|
|
1555
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1557
1856
|
case "ThrottlingException":
|
|
1558
1857
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1559
1858
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1569,19 +1868,103 @@ const de_GetDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1569
1868
|
});
|
|
1570
1869
|
}
|
|
1571
1870
|
};
|
|
1572
|
-
export const
|
|
1871
|
+
export const de_GetConfigurationCommand = async (output, context) => {
|
|
1573
1872
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1574
|
-
return
|
|
1873
|
+
return de_GetConfigurationCommandError(output, context);
|
|
1575
1874
|
}
|
|
1576
1875
|
const contents = map({
|
|
1577
1876
|
$metadata: deserializeMetadata(output),
|
|
1578
1877
|
});
|
|
1579
1878
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1580
1879
|
const doc = take(data, {
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1880
|
+
ecrConfiguration: (_) => de_EcrConfigurationState(_, context),
|
|
1881
|
+
});
|
|
1882
|
+
Object.assign(contents, doc);
|
|
1883
|
+
return contents;
|
|
1884
|
+
};
|
|
1885
|
+
const de_GetConfigurationCommandError = async (output, context) => {
|
|
1886
|
+
const parsedOutput = {
|
|
1887
|
+
...output,
|
|
1888
|
+
body: await parseErrorBody(output.body, context),
|
|
1889
|
+
};
|
|
1890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
|
+
switch (errorCode) {
|
|
1892
|
+
case "InternalServerException":
|
|
1893
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1894
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1895
|
+
case "ResourceNotFoundException":
|
|
1896
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1897
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "ThrottlingException":
|
|
1899
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1900
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1901
|
+
default:
|
|
1902
|
+
const parsedBody = parsedOutput.body;
|
|
1903
|
+
return throwDefaultError({
|
|
1904
|
+
output,
|
|
1905
|
+
parsedBody,
|
|
1906
|
+
errorCode,
|
|
1907
|
+
});
|
|
1908
|
+
}
|
|
1909
|
+
};
|
|
1910
|
+
export const de_GetDelegatedAdminAccountCommand = async (output, context) => {
|
|
1911
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1912
|
+
return de_GetDelegatedAdminAccountCommandError(output, context);
|
|
1913
|
+
}
|
|
1914
|
+
const contents = map({
|
|
1915
|
+
$metadata: deserializeMetadata(output),
|
|
1916
|
+
});
|
|
1917
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1918
|
+
const doc = take(data, {
|
|
1919
|
+
delegatedAdmin: _json,
|
|
1920
|
+
});
|
|
1921
|
+
Object.assign(contents, doc);
|
|
1922
|
+
return contents;
|
|
1923
|
+
};
|
|
1924
|
+
const de_GetDelegatedAdminAccountCommandError = async (output, context) => {
|
|
1925
|
+
const parsedOutput = {
|
|
1926
|
+
...output,
|
|
1927
|
+
body: await parseErrorBody(output.body, context),
|
|
1928
|
+
};
|
|
1929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1930
|
+
switch (errorCode) {
|
|
1931
|
+
case "AccessDeniedException":
|
|
1932
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1933
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1934
|
+
case "InternalServerException":
|
|
1935
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1936
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1937
|
+
case "ResourceNotFoundException":
|
|
1938
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1939
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1940
|
+
case "ThrottlingException":
|
|
1941
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1942
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1943
|
+
case "ValidationException":
|
|
1944
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1945
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1946
|
+
default:
|
|
1947
|
+
const parsedBody = parsedOutput.body;
|
|
1948
|
+
return throwDefaultError({
|
|
1949
|
+
output,
|
|
1950
|
+
parsedBody,
|
|
1951
|
+
errorCode,
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
export const de_GetEc2DeepInspectionConfigurationCommand = async (output, context) => {
|
|
1956
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1957
|
+
return de_GetEc2DeepInspectionConfigurationCommandError(output, context);
|
|
1958
|
+
}
|
|
1959
|
+
const contents = map({
|
|
1960
|
+
$metadata: deserializeMetadata(output),
|
|
1961
|
+
});
|
|
1962
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1963
|
+
const doc = take(data, {
|
|
1964
|
+
errorMessage: __expectString,
|
|
1965
|
+
orgPackagePaths: _json,
|
|
1966
|
+
packagePaths: _json,
|
|
1967
|
+
status: __expectString,
|
|
1585
1968
|
});
|
|
1586
1969
|
Object.assign(contents, doc);
|
|
1587
1970
|
return contents;
|
|
@@ -1848,6 +2231,178 @@ const de_ListAccountPermissionsCommandError = async (output, context) => {
|
|
|
1848
2231
|
});
|
|
1849
2232
|
}
|
|
1850
2233
|
};
|
|
2234
|
+
export const de_ListCisScanConfigurationsCommand = async (output, context) => {
|
|
2235
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2236
|
+
return de_ListCisScanConfigurationsCommandError(output, context);
|
|
2237
|
+
}
|
|
2238
|
+
const contents = map({
|
|
2239
|
+
$metadata: deserializeMetadata(output),
|
|
2240
|
+
});
|
|
2241
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2242
|
+
const doc = take(data, {
|
|
2243
|
+
nextToken: __expectString,
|
|
2244
|
+
scanConfigurations: _json,
|
|
2245
|
+
});
|
|
2246
|
+
Object.assign(contents, doc);
|
|
2247
|
+
return contents;
|
|
2248
|
+
};
|
|
2249
|
+
const de_ListCisScanConfigurationsCommandError = async (output, context) => {
|
|
2250
|
+
const parsedOutput = {
|
|
2251
|
+
...output,
|
|
2252
|
+
body: await parseErrorBody(output.body, context),
|
|
2253
|
+
};
|
|
2254
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2255
|
+
switch (errorCode) {
|
|
2256
|
+
case "AccessDeniedException":
|
|
2257
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2258
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2259
|
+
case "InternalServerException":
|
|
2260
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2261
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2262
|
+
case "ThrottlingException":
|
|
2263
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2264
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2265
|
+
case "ValidationException":
|
|
2266
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2267
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2268
|
+
default:
|
|
2269
|
+
const parsedBody = parsedOutput.body;
|
|
2270
|
+
return throwDefaultError({
|
|
2271
|
+
output,
|
|
2272
|
+
parsedBody,
|
|
2273
|
+
errorCode,
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
};
|
|
2277
|
+
export const de_ListCisScanResultsAggregatedByChecksCommand = async (output, context) => {
|
|
2278
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2279
|
+
return de_ListCisScanResultsAggregatedByChecksCommandError(output, context);
|
|
2280
|
+
}
|
|
2281
|
+
const contents = map({
|
|
2282
|
+
$metadata: deserializeMetadata(output),
|
|
2283
|
+
});
|
|
2284
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2285
|
+
const doc = take(data, {
|
|
2286
|
+
checkAggregations: _json,
|
|
2287
|
+
nextToken: __expectString,
|
|
2288
|
+
});
|
|
2289
|
+
Object.assign(contents, doc);
|
|
2290
|
+
return contents;
|
|
2291
|
+
};
|
|
2292
|
+
const de_ListCisScanResultsAggregatedByChecksCommandError = async (output, context) => {
|
|
2293
|
+
const parsedOutput = {
|
|
2294
|
+
...output,
|
|
2295
|
+
body: await parseErrorBody(output.body, context),
|
|
2296
|
+
};
|
|
2297
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
|
+
switch (errorCode) {
|
|
2299
|
+
case "AccessDeniedException":
|
|
2300
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2301
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2302
|
+
case "InternalServerException":
|
|
2303
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2304
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2305
|
+
case "ThrottlingException":
|
|
2306
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2307
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2308
|
+
case "ValidationException":
|
|
2309
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2310
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2311
|
+
default:
|
|
2312
|
+
const parsedBody = parsedOutput.body;
|
|
2313
|
+
return throwDefaultError({
|
|
2314
|
+
output,
|
|
2315
|
+
parsedBody,
|
|
2316
|
+
errorCode,
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
};
|
|
2320
|
+
export const de_ListCisScanResultsAggregatedByTargetResourceCommand = async (output, context) => {
|
|
2321
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2322
|
+
return de_ListCisScanResultsAggregatedByTargetResourceCommandError(output, context);
|
|
2323
|
+
}
|
|
2324
|
+
const contents = map({
|
|
2325
|
+
$metadata: deserializeMetadata(output),
|
|
2326
|
+
});
|
|
2327
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2328
|
+
const doc = take(data, {
|
|
2329
|
+
nextToken: __expectString,
|
|
2330
|
+
targetResourceAggregations: _json,
|
|
2331
|
+
});
|
|
2332
|
+
Object.assign(contents, doc);
|
|
2333
|
+
return contents;
|
|
2334
|
+
};
|
|
2335
|
+
const de_ListCisScanResultsAggregatedByTargetResourceCommandError = async (output, context) => {
|
|
2336
|
+
const parsedOutput = {
|
|
2337
|
+
...output,
|
|
2338
|
+
body: await parseErrorBody(output.body, context),
|
|
2339
|
+
};
|
|
2340
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2341
|
+
switch (errorCode) {
|
|
2342
|
+
case "AccessDeniedException":
|
|
2343
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2344
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2345
|
+
case "InternalServerException":
|
|
2346
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2347
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2348
|
+
case "ThrottlingException":
|
|
2349
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2350
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2351
|
+
case "ValidationException":
|
|
2352
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2353
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2354
|
+
default:
|
|
2355
|
+
const parsedBody = parsedOutput.body;
|
|
2356
|
+
return throwDefaultError({
|
|
2357
|
+
output,
|
|
2358
|
+
parsedBody,
|
|
2359
|
+
errorCode,
|
|
2360
|
+
});
|
|
2361
|
+
}
|
|
2362
|
+
};
|
|
2363
|
+
export const de_ListCisScansCommand = async (output, context) => {
|
|
2364
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2365
|
+
return de_ListCisScansCommandError(output, context);
|
|
2366
|
+
}
|
|
2367
|
+
const contents = map({
|
|
2368
|
+
$metadata: deserializeMetadata(output),
|
|
2369
|
+
});
|
|
2370
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2371
|
+
const doc = take(data, {
|
|
2372
|
+
nextToken: __expectString,
|
|
2373
|
+
scans: (_) => de_CisScanList(_, context),
|
|
2374
|
+
});
|
|
2375
|
+
Object.assign(contents, doc);
|
|
2376
|
+
return contents;
|
|
2377
|
+
};
|
|
2378
|
+
const de_ListCisScansCommandError = async (output, context) => {
|
|
2379
|
+
const parsedOutput = {
|
|
2380
|
+
...output,
|
|
2381
|
+
body: await parseErrorBody(output.body, context),
|
|
2382
|
+
};
|
|
2383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
|
+
switch (errorCode) {
|
|
2385
|
+
case "AccessDeniedException":
|
|
2386
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2387
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2388
|
+
case "InternalServerException":
|
|
2389
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2390
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2391
|
+
case "ThrottlingException":
|
|
2392
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2393
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2394
|
+
case "ValidationException":
|
|
2395
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2396
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2397
|
+
default:
|
|
2398
|
+
const parsedBody = parsedOutput.body;
|
|
2399
|
+
return throwDefaultError({
|
|
2400
|
+
output,
|
|
2401
|
+
parsedBody,
|
|
2402
|
+
errorCode,
|
|
2403
|
+
});
|
|
2404
|
+
}
|
|
2405
|
+
};
|
|
1851
2406
|
export const de_ListCoverageCommand = async (output, context) => {
|
|
1852
2407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1853
2408
|
return de_ListCoverageCommandError(output, context);
|
|
@@ -2308,6 +2863,170 @@ const de_SearchVulnerabilitiesCommandError = async (output, context) => {
|
|
|
2308
2863
|
});
|
|
2309
2864
|
}
|
|
2310
2865
|
};
|
|
2866
|
+
export const de_SendCisSessionHealthCommand = async (output, context) => {
|
|
2867
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2868
|
+
return de_SendCisSessionHealthCommandError(output, context);
|
|
2869
|
+
}
|
|
2870
|
+
const contents = map({
|
|
2871
|
+
$metadata: deserializeMetadata(output),
|
|
2872
|
+
});
|
|
2873
|
+
await collectBody(output.body, context);
|
|
2874
|
+
return contents;
|
|
2875
|
+
};
|
|
2876
|
+
const de_SendCisSessionHealthCommandError = async (output, context) => {
|
|
2877
|
+
const parsedOutput = {
|
|
2878
|
+
...output,
|
|
2879
|
+
body: await parseErrorBody(output.body, context),
|
|
2880
|
+
};
|
|
2881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2882
|
+
switch (errorCode) {
|
|
2883
|
+
case "AccessDeniedException":
|
|
2884
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2885
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2886
|
+
case "ConflictException":
|
|
2887
|
+
case "com.amazonaws.inspector2#ConflictException":
|
|
2888
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2889
|
+
case "InternalServerException":
|
|
2890
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2891
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2892
|
+
case "ThrottlingException":
|
|
2893
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2894
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2895
|
+
case "ValidationException":
|
|
2896
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2897
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2898
|
+
default:
|
|
2899
|
+
const parsedBody = parsedOutput.body;
|
|
2900
|
+
return throwDefaultError({
|
|
2901
|
+
output,
|
|
2902
|
+
parsedBody,
|
|
2903
|
+
errorCode,
|
|
2904
|
+
});
|
|
2905
|
+
}
|
|
2906
|
+
};
|
|
2907
|
+
export const de_SendCisSessionTelemetryCommand = async (output, context) => {
|
|
2908
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2909
|
+
return de_SendCisSessionTelemetryCommandError(output, context);
|
|
2910
|
+
}
|
|
2911
|
+
const contents = map({
|
|
2912
|
+
$metadata: deserializeMetadata(output),
|
|
2913
|
+
});
|
|
2914
|
+
await collectBody(output.body, context);
|
|
2915
|
+
return contents;
|
|
2916
|
+
};
|
|
2917
|
+
const de_SendCisSessionTelemetryCommandError = async (output, context) => {
|
|
2918
|
+
const parsedOutput = {
|
|
2919
|
+
...output,
|
|
2920
|
+
body: await parseErrorBody(output.body, context),
|
|
2921
|
+
};
|
|
2922
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2923
|
+
switch (errorCode) {
|
|
2924
|
+
case "AccessDeniedException":
|
|
2925
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2926
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2927
|
+
case "ConflictException":
|
|
2928
|
+
case "com.amazonaws.inspector2#ConflictException":
|
|
2929
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2930
|
+
case "InternalServerException":
|
|
2931
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2932
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2933
|
+
case "ThrottlingException":
|
|
2934
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2935
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2936
|
+
case "ValidationException":
|
|
2937
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2938
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2939
|
+
default:
|
|
2940
|
+
const parsedBody = parsedOutput.body;
|
|
2941
|
+
return throwDefaultError({
|
|
2942
|
+
output,
|
|
2943
|
+
parsedBody,
|
|
2944
|
+
errorCode,
|
|
2945
|
+
});
|
|
2946
|
+
}
|
|
2947
|
+
};
|
|
2948
|
+
export const de_StartCisSessionCommand = async (output, context) => {
|
|
2949
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2950
|
+
return de_StartCisSessionCommandError(output, context);
|
|
2951
|
+
}
|
|
2952
|
+
const contents = map({
|
|
2953
|
+
$metadata: deserializeMetadata(output),
|
|
2954
|
+
});
|
|
2955
|
+
await collectBody(output.body, context);
|
|
2956
|
+
return contents;
|
|
2957
|
+
};
|
|
2958
|
+
const de_StartCisSessionCommandError = async (output, context) => {
|
|
2959
|
+
const parsedOutput = {
|
|
2960
|
+
...output,
|
|
2961
|
+
body: await parseErrorBody(output.body, context),
|
|
2962
|
+
};
|
|
2963
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2964
|
+
switch (errorCode) {
|
|
2965
|
+
case "AccessDeniedException":
|
|
2966
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2967
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2968
|
+
case "ConflictException":
|
|
2969
|
+
case "com.amazonaws.inspector2#ConflictException":
|
|
2970
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2971
|
+
case "InternalServerException":
|
|
2972
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2973
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2974
|
+
case "ThrottlingException":
|
|
2975
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2976
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2977
|
+
case "ValidationException":
|
|
2978
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2979
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2980
|
+
default:
|
|
2981
|
+
const parsedBody = parsedOutput.body;
|
|
2982
|
+
return throwDefaultError({
|
|
2983
|
+
output,
|
|
2984
|
+
parsedBody,
|
|
2985
|
+
errorCode,
|
|
2986
|
+
});
|
|
2987
|
+
}
|
|
2988
|
+
};
|
|
2989
|
+
export const de_StopCisSessionCommand = async (output, context) => {
|
|
2990
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2991
|
+
return de_StopCisSessionCommandError(output, context);
|
|
2992
|
+
}
|
|
2993
|
+
const contents = map({
|
|
2994
|
+
$metadata: deserializeMetadata(output),
|
|
2995
|
+
});
|
|
2996
|
+
await collectBody(output.body, context);
|
|
2997
|
+
return contents;
|
|
2998
|
+
};
|
|
2999
|
+
const de_StopCisSessionCommandError = async (output, context) => {
|
|
3000
|
+
const parsedOutput = {
|
|
3001
|
+
...output,
|
|
3002
|
+
body: await parseErrorBody(output.body, context),
|
|
3003
|
+
};
|
|
3004
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
|
+
switch (errorCode) {
|
|
3006
|
+
case "AccessDeniedException":
|
|
3007
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3008
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3009
|
+
case "ConflictException":
|
|
3010
|
+
case "com.amazonaws.inspector2#ConflictException":
|
|
3011
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3012
|
+
case "InternalServerException":
|
|
3013
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
3014
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3015
|
+
case "ThrottlingException":
|
|
3016
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3017
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3018
|
+
case "ValidationException":
|
|
3019
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
3020
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3021
|
+
default:
|
|
3022
|
+
const parsedBody = parsedOutput.body;
|
|
3023
|
+
return throwDefaultError({
|
|
3024
|
+
output,
|
|
3025
|
+
parsedBody,
|
|
3026
|
+
errorCode,
|
|
3027
|
+
});
|
|
3028
|
+
}
|
|
3029
|
+
};
|
|
2311
3030
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2312
3031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2313
3032
|
return de_TagResourceCommandError(output, context);
|
|
@@ -2387,6 +3106,51 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2387
3106
|
});
|
|
2388
3107
|
}
|
|
2389
3108
|
};
|
|
3109
|
+
export const de_UpdateCisScanConfigurationCommand = async (output, context) => {
|
|
3110
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3111
|
+
return de_UpdateCisScanConfigurationCommandError(output, context);
|
|
3112
|
+
}
|
|
3113
|
+
const contents = map({
|
|
3114
|
+
$metadata: deserializeMetadata(output),
|
|
3115
|
+
});
|
|
3116
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3117
|
+
const doc = take(data, {
|
|
3118
|
+
scanConfigurationArn: __expectString,
|
|
3119
|
+
});
|
|
3120
|
+
Object.assign(contents, doc);
|
|
3121
|
+
return contents;
|
|
3122
|
+
};
|
|
3123
|
+
const de_UpdateCisScanConfigurationCommandError = async (output, context) => {
|
|
3124
|
+
const parsedOutput = {
|
|
3125
|
+
...output,
|
|
3126
|
+
body: await parseErrorBody(output.body, context),
|
|
3127
|
+
};
|
|
3128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3129
|
+
switch (errorCode) {
|
|
3130
|
+
case "AccessDeniedException":
|
|
3131
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3132
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3133
|
+
case "InternalServerException":
|
|
3134
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
3135
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3136
|
+
case "ResourceNotFoundException":
|
|
3137
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3138
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3139
|
+
case "ThrottlingException":
|
|
3140
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3141
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3142
|
+
case "ValidationException":
|
|
3143
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
3144
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3145
|
+
default:
|
|
3146
|
+
const parsedBody = parsedOutput.body;
|
|
3147
|
+
return throwDefaultError({
|
|
3148
|
+
output,
|
|
3149
|
+
parsedBody,
|
|
3150
|
+
errorCode,
|
|
3151
|
+
});
|
|
3152
|
+
}
|
|
3153
|
+
};
|
|
2390
3154
|
export const de_UpdateConfigurationCommand = async (output, context) => {
|
|
2391
3155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2392
3156
|
return de_UpdateConfigurationCommandError(output, context);
|
|
@@ -2750,6 +3514,33 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
2750
3514
|
});
|
|
2751
3515
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2752
3516
|
};
|
|
3517
|
+
const se_CisDateFilter = (input, context) => {
|
|
3518
|
+
return take(input, {
|
|
3519
|
+
earliestScanStartTime: (_) => Math.round(_.getTime() / 1000),
|
|
3520
|
+
latestScanStartTime: (_) => Math.round(_.getTime() / 1000),
|
|
3521
|
+
});
|
|
3522
|
+
};
|
|
3523
|
+
const se_CisScanDateFilterList = (input, context) => {
|
|
3524
|
+
return input
|
|
3525
|
+
.filter((e) => e != null)
|
|
3526
|
+
.map((entry) => {
|
|
3527
|
+
return se_CisDateFilter(entry, context);
|
|
3528
|
+
});
|
|
3529
|
+
};
|
|
3530
|
+
const se_CisSessionMessage = (input, context) => {
|
|
3531
|
+
return take(input, {
|
|
3532
|
+
cisRuleDetails: context.base64Encoder,
|
|
3533
|
+
ruleId: [],
|
|
3534
|
+
status: [],
|
|
3535
|
+
});
|
|
3536
|
+
};
|
|
3537
|
+
const se_CisSessionMessages = (input, context) => {
|
|
3538
|
+
return input
|
|
3539
|
+
.filter((e) => e != null)
|
|
3540
|
+
.map((entry) => {
|
|
3541
|
+
return se_CisSessionMessage(entry, context);
|
|
3542
|
+
});
|
|
3543
|
+
};
|
|
2753
3544
|
const se_CoverageDateFilter = (input, context) => {
|
|
2754
3545
|
return take(input, {
|
|
2755
3546
|
endInclusive: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -2839,6 +3630,20 @@ const se_FilterCriteria = (input, context) => {
|
|
|
2839
3630
|
vulnerablePackages: (_) => se_PackageFilterList(_, context),
|
|
2840
3631
|
});
|
|
2841
3632
|
};
|
|
3633
|
+
const se_ListCisScansFilterCriteria = (input, context) => {
|
|
3634
|
+
return take(input, {
|
|
3635
|
+
failedChecksFilters: _json,
|
|
3636
|
+
scanArnFilters: _json,
|
|
3637
|
+
scanAtFilters: (_) => se_CisScanDateFilterList(_, context),
|
|
3638
|
+
scanConfigurationArnFilters: _json,
|
|
3639
|
+
scanNameFilters: _json,
|
|
3640
|
+
scanStatusFilters: _json,
|
|
3641
|
+
scheduledByFilters: _json,
|
|
3642
|
+
targetAccountIdFilters: _json,
|
|
3643
|
+
targetResourceIdFilters: _json,
|
|
3644
|
+
targetResourceTagFilters: _json,
|
|
3645
|
+
});
|
|
3646
|
+
};
|
|
2842
3647
|
const se_NumberFilter = (input, context) => {
|
|
2843
3648
|
return take(input, {
|
|
2844
3649
|
lowerInclusive: __serializeFloat,
|
|
@@ -2991,6 +3796,28 @@ const de_CisaData = (output, context) => {
|
|
|
2991
3796
|
dateDue: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2992
3797
|
});
|
|
2993
3798
|
};
|
|
3799
|
+
const de_CisScan = (output, context) => {
|
|
3800
|
+
return take(output, {
|
|
3801
|
+
failedChecks: __expectInt32,
|
|
3802
|
+
scanArn: __expectString,
|
|
3803
|
+
scanConfigurationArn: __expectString,
|
|
3804
|
+
scanDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3805
|
+
scanName: __expectString,
|
|
3806
|
+
scheduledBy: __expectString,
|
|
3807
|
+
securityLevel: __expectString,
|
|
3808
|
+
status: __expectString,
|
|
3809
|
+
targets: _json,
|
|
3810
|
+
totalChecks: __expectInt32,
|
|
3811
|
+
});
|
|
3812
|
+
};
|
|
3813
|
+
const de_CisScanList = (output, context) => {
|
|
3814
|
+
const retVal = (output || [])
|
|
3815
|
+
.filter((e) => e != null)
|
|
3816
|
+
.map((entry) => {
|
|
3817
|
+
return de_CisScan(entry, context);
|
|
3818
|
+
});
|
|
3819
|
+
return retVal;
|
|
3820
|
+
};
|
|
2994
3821
|
const de_CoveredResource = (output, context) => {
|
|
2995
3822
|
return take(output, {
|
|
2996
3823
|
accountId: __expectString,
|