@aws-sdk/client-inspector2 3.325.0 → 3.327.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 (76) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Inspector2.js +10 -0
  3. package/dist-cjs/commands/BatchGetMemberEc2DeepInspectionStatusCommand.js +45 -0
  4. package/dist-cjs/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.js +45 -0
  5. package/dist-cjs/commands/GetEc2DeepInspectionConfigurationCommand.js +45 -0
  6. package/dist-cjs/commands/UpdateEc2DeepInspectionConfigurationCommand.js +45 -0
  7. package/dist-cjs/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.js +45 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/endpoint/ruleset.js +3 -3
  10. package/dist-cjs/models/models_0.js +15 -2
  11. package/dist-cjs/protocols/Aws_restJson1.js +327 -2
  12. package/dist-es/Inspector2.js +10 -0
  13. package/dist-es/commands/BatchGetMemberEc2DeepInspectionStatusCommand.js +41 -0
  14. package/dist-es/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.js +41 -0
  15. package/dist-es/commands/GetEc2DeepInspectionConfigurationCommand.js +41 -0
  16. package/dist-es/commands/UpdateEc2DeepInspectionConfigurationCommand.js +41 -0
  17. package/dist-es/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.js +41 -0
  18. package/dist-es/commands/index.js +5 -0
  19. package/dist-es/endpoint/ruleset.js +3 -3
  20. package/dist-es/models/models_0.js +13 -0
  21. package/dist-es/protocols/Aws_restJson1.js +315 -0
  22. package/dist-types/Inspector2.d.ts +35 -0
  23. package/dist-types/Inspector2Client.d.ts +7 -2
  24. package/dist-types/commands/AssociateMemberCommand.d.ts +7 -1
  25. package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +45 -0
  26. package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +25 -0
  27. package/dist-types/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +97 -0
  28. package/dist-types/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +100 -0
  29. package/dist-types/commands/CancelFindingsReportCommand.d.ts +6 -0
  30. package/dist-types/commands/CreateFilterCommand.d.ts +6 -0
  31. package/dist-types/commands/CreateFindingsReportCommand.d.ts +7 -1
  32. package/dist-types/commands/DeleteFilterCommand.d.ts +6 -0
  33. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +11 -0
  34. package/dist-types/commands/DisableCommand.d.ts +29 -0
  35. package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +6 -0
  36. package/dist-types/commands/DisassociateMemberCommand.d.ts +6 -0
  37. package/dist-types/commands/EnableCommand.d.ts +29 -0
  38. package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +6 -0
  39. package/dist-types/commands/GetConfigurationCommand.d.ts +12 -0
  40. package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +9 -0
  41. package/dist-types/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +87 -0
  42. package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +133 -0
  43. package/dist-types/commands/GetMemberCommand.d.ts +11 -0
  44. package/dist-types/commands/ListAccountPermissionsCommand.d.ts +12 -0
  45. package/dist-types/commands/ListCoverageCommand.d.ts +46 -0
  46. package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +13 -0
  47. package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +12 -0
  48. package/dist-types/commands/ListFiltersCommand.d.ts +140 -0
  49. package/dist-types/commands/ListFindingAggregationsCommand.d.ts +114 -0
  50. package/dist-types/commands/ListFindingsCommand.d.ts +164 -0
  51. package/dist-types/commands/ListMembersCommand.d.ts +14 -0
  52. package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -0
  53. package/dist-types/commands/ListUsageTotalsCommand.d.ts +19 -0
  54. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  55. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  56. package/dist-types/commands/UpdateConfigurationCommand.d.ts +4 -0
  57. package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +92 -0
  58. package/dist-types/commands/UpdateFilterCommand.d.ts +6 -0
  59. package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +82 -0
  60. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +10 -0
  61. package/dist-types/commands/index.d.ts +5 -0
  62. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  63. package/dist-types/models/models_0.d.ts +200 -3
  64. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  65. package/dist-types/ts3.4/Inspector2.d.ts +115 -0
  66. package/dist-types/ts3.4/Inspector2Client.d.ts +30 -0
  67. package/dist-types/ts3.4/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +41 -0
  68. package/dist-types/ts3.4/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +41 -0
  69. package/dist-types/ts3.4/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +41 -0
  70. package/dist-types/ts3.4/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +41 -0
  71. package/dist-types/ts3.4/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +41 -0
  72. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  73. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  74. package/dist-types/ts3.4/models/models_0.d.ts +64 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  76. package/package.json +7 -7
@@ -1,6 +1,8 @@
1
1
  export * from "./AssociateMemberCommand";
2
2
  export * from "./BatchGetAccountStatusCommand";
3
3
  export * from "./BatchGetFreeTrialInfoCommand";
4
+ export * from "./BatchGetMemberEc2DeepInspectionStatusCommand";
5
+ export * from "./BatchUpdateMemberEc2DeepInspectionStatusCommand";
4
6
  export * from "./CancelFindingsReportCommand";
5
7
  export * from "./CreateFilterCommand";
6
8
  export * from "./CreateFindingsReportCommand";
@@ -13,6 +15,7 @@ export * from "./EnableCommand";
13
15
  export * from "./EnableDelegatedAdminAccountCommand";
14
16
  export * from "./GetConfigurationCommand";
15
17
  export * from "./GetDelegatedAdminAccountCommand";
18
+ export * from "./GetEc2DeepInspectionConfigurationCommand";
16
19
  export * from "./GetFindingsReportStatusCommand";
17
20
  export * from "./GetMemberCommand";
18
21
  export * from "./ListAccountPermissionsCommand";
@@ -28,5 +31,7 @@ export * from "./ListUsageTotalsCommand";
28
31
  export * from "./TagResourceCommand";
29
32
  export * from "./UntagResourceCommand";
30
33
  export * from "./UpdateConfigurationCommand";
34
+ export * from "./UpdateEc2DeepInspectionConfigurationCommand";
31
35
  export * from "./UpdateFilterCommand";
36
+ export * from "./UpdateOrgEc2DeepInspectionConfigurationCommand";
32
37
  export * from "./UpdateOrganizationConfigurationCommand";
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -292,6 +292,12 @@ export const FreeTrialInfoErrorCode = {
292
292
  ACCESS_DENIED: "ACCESS_DENIED",
293
293
  INTERNAL_ERROR: "INTERNAL_ERROR",
294
294
  };
295
+ export const Ec2DeepInspectionStatus = {
296
+ ACTIVATED: "ACTIVATED",
297
+ DEACTIVATED: "DEACTIVATED",
298
+ FAILED: "FAILED",
299
+ PENDING: "PENDING",
300
+ };
295
301
  export class ConflictException extends __BaseException {
296
302
  constructor(opts) {
297
303
  super({
@@ -338,6 +344,10 @@ export const EcrScanFrequency = {
338
344
  };
339
345
  export const ScanStatusReason = {
340
346
  ACCESS_DENIED: "ACCESS_DENIED",
347
+ DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED",
348
+ DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED: "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED",
349
+ DEEP_INSPECTION_NO_INVENTORY: "DEEP_INSPECTION_NO_INVENTORY",
350
+ DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED: "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED",
341
351
  EC2_INSTANCE_STOPPED: "EC2_INSTANCE_STOPPED",
342
352
  EXCLUDED_BY_TAG: "EXCLUDED_BY_TAG",
343
353
  IMAGE_SIZE_EXCEEDED: "IMAGE_SIZE_EXCEEDED",
@@ -353,6 +363,8 @@ export const ScanStatusReason = {
353
363
  STALE_INVENTORY: "STALE_INVENTORY",
354
364
  SUCCESSFUL: "SUCCESSFUL",
355
365
  UNMANAGED_EC2_INSTANCE: "UNMANAGED_EC2_INSTANCE",
366
+ UNSUPPORTED_CONFIG_FILE: "UNSUPPORTED_CONFIG_FILE",
367
+ UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE",
356
368
  UNSUPPORTED_OS: "UNSUPPORTED_OS",
357
369
  UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME",
358
370
  };
@@ -444,6 +456,7 @@ export const PackageManager = {
444
456
  BUNDLER: "BUNDLER",
445
457
  CARGO: "CARGO",
446
458
  COMPOSER: "COMPOSER",
459
+ GEMSPEC: "GEMSPEC",
447
460
  GOBINARY: "GOBINARY",
448
461
  GOMOD: "GOMOD",
449
462
  JAR: "JAR",
@@ -63,6 +63,47 @@ export const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
63
63
  body,
64
64
  });
65
65
  };
66
+ export const se_BatchGetMemberEc2DeepInspectionStatusCommand = async (input, context) => {
67
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
+ const headers = {
69
+ "content-type": "application/json",
70
+ };
71
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ec2deepinspectionstatus/member/batch/get";
72
+ let body;
73
+ body = JSON.stringify(take(input, {
74
+ accountIds: (_) => _json(_),
75
+ }));
76
+ return new __HttpRequest({
77
+ protocol,
78
+ hostname,
79
+ port,
80
+ method: "POST",
81
+ headers,
82
+ path: resolvedPath,
83
+ body,
84
+ });
85
+ };
86
+ export const se_BatchUpdateMemberEc2DeepInspectionStatusCommand = async (input, context) => {
87
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
88
+ const headers = {
89
+ "content-type": "application/json",
90
+ };
91
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
92
+ "/ec2deepinspectionstatus/member/batch/update";
93
+ let body;
94
+ body = JSON.stringify(take(input, {
95
+ accountIds: (_) => _json(_),
96
+ }));
97
+ return new __HttpRequest({
98
+ protocol,
99
+ hostname,
100
+ port,
101
+ method: "POST",
102
+ headers,
103
+ path: resolvedPath,
104
+ body,
105
+ });
106
+ };
66
107
  export const se_CancelFindingsReportCommand = async (input, context) => {
67
108
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
109
  const headers = {
@@ -308,6 +349,24 @@ export const se_GetDelegatedAdminAccountCommand = async (input, context) => {
308
349
  body,
309
350
  });
310
351
  };
352
+ export const se_GetEc2DeepInspectionConfigurationCommand = async (input, context) => {
353
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
+ const headers = {
355
+ "content-type": "application/json",
356
+ };
357
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ec2deepinspectionconfiguration/get";
358
+ let body;
359
+ body = "";
360
+ return new __HttpRequest({
361
+ protocol,
362
+ hostname,
363
+ port,
364
+ method: "POST",
365
+ headers,
366
+ path: resolvedPath,
367
+ body,
368
+ });
369
+ };
311
370
  export const se_GetFindingsReportStatusCommand = async (input, context) => {
312
371
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
372
  const headers = {
@@ -629,6 +688,27 @@ export const se_UpdateConfigurationCommand = async (input, context) => {
629
688
  body,
630
689
  });
631
690
  };
691
+ export const se_UpdateEc2DeepInspectionConfigurationCommand = async (input, context) => {
692
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
693
+ const headers = {
694
+ "content-type": "application/json",
695
+ };
696
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ec2deepinspectionconfiguration/update";
697
+ let body;
698
+ body = JSON.stringify(take(input, {
699
+ activateDeepInspection: [],
700
+ packagePaths: (_) => _json(_),
701
+ }));
702
+ return new __HttpRequest({
703
+ protocol,
704
+ hostname,
705
+ port,
706
+ method: "POST",
707
+ headers,
708
+ path: resolvedPath,
709
+ body,
710
+ });
711
+ };
632
712
  export const se_UpdateFilterCommand = async (input, context) => {
633
713
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
634
714
  const headers = {
@@ -674,6 +754,27 @@ export const se_UpdateOrganizationConfigurationCommand = async (input, context)
674
754
  body,
675
755
  });
676
756
  };
757
+ export const se_UpdateOrgEc2DeepInspectionConfigurationCommand = async (input, context) => {
758
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
+ const headers = {
760
+ "content-type": "application/json",
761
+ };
762
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
763
+ "/ec2deepinspectionconfiguration/org/update";
764
+ let body;
765
+ body = JSON.stringify(take(input, {
766
+ orgPackagePaths: (_) => _json(_),
767
+ }));
768
+ return new __HttpRequest({
769
+ protocol,
770
+ hostname,
771
+ port,
772
+ method: "POST",
773
+ headers,
774
+ path: resolvedPath,
775
+ body,
776
+ });
777
+ };
677
778
  export const de_AssociateMemberCommand = async (output, context) => {
678
779
  if (output.statusCode !== 200 && output.statusCode >= 300) {
679
780
  return de_AssociateMemberCommandError(output, context);
@@ -805,6 +906,92 @@ const de_BatchGetFreeTrialInfoCommandError = async (output, context) => {
805
906
  });
806
907
  }
807
908
  };
909
+ export const de_BatchGetMemberEc2DeepInspectionStatusCommand = async (output, context) => {
910
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
911
+ return de_BatchGetMemberEc2DeepInspectionStatusCommandError(output, context);
912
+ }
913
+ const contents = map({
914
+ $metadata: deserializeMetadata(output),
915
+ });
916
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
917
+ const doc = take(data, {
918
+ accountIds: _json,
919
+ failedAccountIds: _json,
920
+ });
921
+ Object.assign(contents, doc);
922
+ return contents;
923
+ };
924
+ const de_BatchGetMemberEc2DeepInspectionStatusCommandError = async (output, context) => {
925
+ const parsedOutput = {
926
+ ...output,
927
+ body: await parseErrorBody(output.body, context),
928
+ };
929
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
930
+ switch (errorCode) {
931
+ case "AccessDeniedException":
932
+ case "com.amazonaws.inspector2#AccessDeniedException":
933
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
934
+ case "InternalServerException":
935
+ case "com.amazonaws.inspector2#InternalServerException":
936
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
937
+ case "ThrottlingException":
938
+ case "com.amazonaws.inspector2#ThrottlingException":
939
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
940
+ case "ValidationException":
941
+ case "com.amazonaws.inspector2#ValidationException":
942
+ throw await de_ValidationExceptionRes(parsedOutput, context);
943
+ default:
944
+ const parsedBody = parsedOutput.body;
945
+ return throwDefaultError({
946
+ output,
947
+ parsedBody,
948
+ errorCode,
949
+ });
950
+ }
951
+ };
952
+ export const de_BatchUpdateMemberEc2DeepInspectionStatusCommand = async (output, context) => {
953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
954
+ return de_BatchUpdateMemberEc2DeepInspectionStatusCommandError(output, context);
955
+ }
956
+ const contents = map({
957
+ $metadata: deserializeMetadata(output),
958
+ });
959
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
960
+ const doc = take(data, {
961
+ accountIds: _json,
962
+ failedAccountIds: _json,
963
+ });
964
+ Object.assign(contents, doc);
965
+ return contents;
966
+ };
967
+ const de_BatchUpdateMemberEc2DeepInspectionStatusCommandError = async (output, context) => {
968
+ const parsedOutput = {
969
+ ...output,
970
+ body: await parseErrorBody(output.body, context),
971
+ };
972
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
973
+ switch (errorCode) {
974
+ case "AccessDeniedException":
975
+ case "com.amazonaws.inspector2#AccessDeniedException":
976
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
977
+ case "InternalServerException":
978
+ case "com.amazonaws.inspector2#InternalServerException":
979
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
980
+ case "ThrottlingException":
981
+ case "com.amazonaws.inspector2#ThrottlingException":
982
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
983
+ case "ValidationException":
984
+ case "com.amazonaws.inspector2#ValidationException":
985
+ throw await de_ValidationExceptionRes(parsedOutput, context);
986
+ default:
987
+ const parsedBody = parsedOutput.body;
988
+ return throwDefaultError({
989
+ output,
990
+ parsedBody,
991
+ errorCode,
992
+ });
993
+ }
994
+ };
808
995
  export const de_CancelFindingsReportCommand = async (output, context) => {
809
996
  if (output.statusCode !== 200 && output.statusCode >= 300) {
810
997
  return de_CancelFindingsReportCommandError(output, context);
@@ -1345,6 +1532,51 @@ const de_GetDelegatedAdminAccountCommandError = async (output, context) => {
1345
1532
  });
1346
1533
  }
1347
1534
  };
1535
+ export const de_GetEc2DeepInspectionConfigurationCommand = async (output, context) => {
1536
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1537
+ return de_GetEc2DeepInspectionConfigurationCommandError(output, context);
1538
+ }
1539
+ const contents = map({
1540
+ $metadata: deserializeMetadata(output),
1541
+ });
1542
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1543
+ const doc = take(data, {
1544
+ errorMessage: __expectString,
1545
+ orgPackagePaths: _json,
1546
+ packagePaths: _json,
1547
+ status: __expectString,
1548
+ });
1549
+ Object.assign(contents, doc);
1550
+ return contents;
1551
+ };
1552
+ const de_GetEc2DeepInspectionConfigurationCommandError = async (output, context) => {
1553
+ const parsedOutput = {
1554
+ ...output,
1555
+ body: await parseErrorBody(output.body, context),
1556
+ };
1557
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1558
+ switch (errorCode) {
1559
+ case "AccessDeniedException":
1560
+ case "com.amazonaws.inspector2#AccessDeniedException":
1561
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1562
+ case "InternalServerException":
1563
+ case "com.amazonaws.inspector2#InternalServerException":
1564
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1565
+ case "ResourceNotFoundException":
1566
+ case "com.amazonaws.inspector2#ResourceNotFoundException":
1567
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1568
+ case "ThrottlingException":
1569
+ case "com.amazonaws.inspector2#ThrottlingException":
1570
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1571
+ default:
1572
+ const parsedBody = parsedOutput.body;
1573
+ return throwDefaultError({
1574
+ output,
1575
+ parsedBody,
1576
+ errorCode,
1577
+ });
1578
+ }
1579
+ };
1348
1580
  export const de_GetFindingsReportStatusCommand = async (output, context) => {
1349
1581
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1350
1582
  return de_GetFindingsReportStatusCommandError(output, context);
@@ -1976,6 +2208,51 @@ const de_UpdateConfigurationCommandError = async (output, context) => {
1976
2208
  });
1977
2209
  }
1978
2210
  };
2211
+ export const de_UpdateEc2DeepInspectionConfigurationCommand = async (output, context) => {
2212
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2213
+ return de_UpdateEc2DeepInspectionConfigurationCommandError(output, context);
2214
+ }
2215
+ const contents = map({
2216
+ $metadata: deserializeMetadata(output),
2217
+ });
2218
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2219
+ const doc = take(data, {
2220
+ errorMessage: __expectString,
2221
+ orgPackagePaths: _json,
2222
+ packagePaths: _json,
2223
+ status: __expectString,
2224
+ });
2225
+ Object.assign(contents, doc);
2226
+ return contents;
2227
+ };
2228
+ const de_UpdateEc2DeepInspectionConfigurationCommandError = async (output, context) => {
2229
+ const parsedOutput = {
2230
+ ...output,
2231
+ body: await parseErrorBody(output.body, context),
2232
+ };
2233
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2234
+ switch (errorCode) {
2235
+ case "AccessDeniedException":
2236
+ case "com.amazonaws.inspector2#AccessDeniedException":
2237
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2238
+ case "InternalServerException":
2239
+ case "com.amazonaws.inspector2#InternalServerException":
2240
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2241
+ case "ThrottlingException":
2242
+ case "com.amazonaws.inspector2#ThrottlingException":
2243
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2244
+ case "ValidationException":
2245
+ case "com.amazonaws.inspector2#ValidationException":
2246
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2247
+ default:
2248
+ const parsedBody = parsedOutput.body;
2249
+ return throwDefaultError({
2250
+ output,
2251
+ parsedBody,
2252
+ errorCode,
2253
+ });
2254
+ }
2255
+ };
1979
2256
  export const de_UpdateFilterCommand = async (output, context) => {
1980
2257
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1981
2258
  return de_UpdateFilterCommandError(output, context);
@@ -2063,6 +2340,44 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
2063
2340
  });
2064
2341
  }
2065
2342
  };
2343
+ export const de_UpdateOrgEc2DeepInspectionConfigurationCommand = async (output, context) => {
2344
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2345
+ return de_UpdateOrgEc2DeepInspectionConfigurationCommandError(output, context);
2346
+ }
2347
+ const contents = map({
2348
+ $metadata: deserializeMetadata(output),
2349
+ });
2350
+ await collectBody(output.body, context);
2351
+ return contents;
2352
+ };
2353
+ const de_UpdateOrgEc2DeepInspectionConfigurationCommandError = async (output, context) => {
2354
+ const parsedOutput = {
2355
+ ...output,
2356
+ body: await parseErrorBody(output.body, context),
2357
+ };
2358
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2359
+ switch (errorCode) {
2360
+ case "AccessDeniedException":
2361
+ case "com.amazonaws.inspector2#AccessDeniedException":
2362
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2363
+ case "InternalServerException":
2364
+ case "com.amazonaws.inspector2#InternalServerException":
2365
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2366
+ case "ThrottlingException":
2367
+ case "com.amazonaws.inspector2#ThrottlingException":
2368
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2369
+ case "ValidationException":
2370
+ case "com.amazonaws.inspector2#ValidationException":
2371
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2372
+ default:
2373
+ const parsedBody = parsedOutput.body;
2374
+ return throwDefaultError({
2375
+ output,
2376
+ parsedBody,
2377
+ errorCode,
2378
+ });
2379
+ }
2380
+ };
2066
2381
  const throwDefaultError = withBaseException(__BaseException);
2067
2382
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2068
2383
  const contents = map({});
@@ -2,6 +2,8 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AssociateMemberCommandInput, AssociateMemberCommandOutput } from "./commands/AssociateMemberCommand";
3
3
  import { BatchGetAccountStatusCommandInput, BatchGetAccountStatusCommandOutput } from "./commands/BatchGetAccountStatusCommand";
4
4
  import { BatchGetFreeTrialInfoCommandInput, BatchGetFreeTrialInfoCommandOutput } from "./commands/BatchGetFreeTrialInfoCommand";
5
+ import { BatchGetMemberEc2DeepInspectionStatusCommandInput, BatchGetMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchGetMemberEc2DeepInspectionStatusCommand";
6
+ import { BatchUpdateMemberEc2DeepInspectionStatusCommandInput, BatchUpdateMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
5
7
  import { CancelFindingsReportCommandInput, CancelFindingsReportCommandOutput } from "./commands/CancelFindingsReportCommand";
6
8
  import { CreateFilterCommandInput, CreateFilterCommandOutput } from "./commands/CreateFilterCommand";
7
9
  import { CreateFindingsReportCommandInput, CreateFindingsReportCommandOutput } from "./commands/CreateFindingsReportCommand";
@@ -14,6 +16,7 @@ import { EnableCommandInput, EnableCommandOutput } from "./commands/EnableComman
14
16
  import { EnableDelegatedAdminAccountCommandInput, EnableDelegatedAdminAccountCommandOutput } from "./commands/EnableDelegatedAdminAccountCommand";
15
17
  import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "./commands/GetConfigurationCommand";
16
18
  import { GetDelegatedAdminAccountCommandInput, GetDelegatedAdminAccountCommandOutput } from "./commands/GetDelegatedAdminAccountCommand";
19
+ import { GetEc2DeepInspectionConfigurationCommandInput, GetEc2DeepInspectionConfigurationCommandOutput } from "./commands/GetEc2DeepInspectionConfigurationCommand";
17
20
  import { GetFindingsReportStatusCommandInput, GetFindingsReportStatusCommandOutput } from "./commands/GetFindingsReportStatusCommand";
18
21
  import { GetMemberCommandInput, GetMemberCommandOutput } from "./commands/GetMemberCommand";
19
22
  import { ListAccountPermissionsCommandInput, ListAccountPermissionsCommandOutput } from "./commands/ListAccountPermissionsCommand";
@@ -29,8 +32,10 @@ import { ListUsageTotalsCommandInput, ListUsageTotalsCommandOutput } from "./com
29
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
30
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
31
34
  import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
35
+ import { UpdateEc2DeepInspectionConfigurationCommandInput, UpdateEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateEc2DeepInspectionConfigurationCommand";
32
36
  import { UpdateFilterCommandInput, UpdateFilterCommandOutput } from "./commands/UpdateFilterCommand";
33
37
  import { UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput } from "./commands/UpdateOrganizationConfigurationCommand";
38
+ import { UpdateOrgEc2DeepInspectionConfigurationCommandInput, UpdateOrgEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateOrgEc2DeepInspectionConfigurationCommand";
34
39
  import { Inspector2Client } from "./Inspector2Client";
35
40
  export interface Inspector2 {
36
41
  /**
@@ -51,6 +56,18 @@ export interface Inspector2 {
51
56
  batchGetFreeTrialInfo(args: BatchGetFreeTrialInfoCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetFreeTrialInfoCommandOutput>;
52
57
  batchGetFreeTrialInfo(args: BatchGetFreeTrialInfoCommandInput, cb: (err: any, data?: BatchGetFreeTrialInfoCommandOutput) => void): void;
53
58
  batchGetFreeTrialInfo(args: BatchGetFreeTrialInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetFreeTrialInfoCommandOutput) => void): void;
59
+ /**
60
+ * @see {@link BatchGetMemberEc2DeepInspectionStatusCommand}
61
+ */
62
+ batchGetMemberEc2DeepInspectionStatus(args: BatchGetMemberEc2DeepInspectionStatusCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetMemberEc2DeepInspectionStatusCommandOutput>;
63
+ batchGetMemberEc2DeepInspectionStatus(args: BatchGetMemberEc2DeepInspectionStatusCommandInput, cb: (err: any, data?: BatchGetMemberEc2DeepInspectionStatusCommandOutput) => void): void;
64
+ batchGetMemberEc2DeepInspectionStatus(args: BatchGetMemberEc2DeepInspectionStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetMemberEc2DeepInspectionStatusCommandOutput) => void): void;
65
+ /**
66
+ * @see {@link BatchUpdateMemberEc2DeepInspectionStatusCommand}
67
+ */
68
+ batchUpdateMemberEc2DeepInspectionStatus(args: BatchUpdateMemberEc2DeepInspectionStatusCommandInput, options?: __HttpHandlerOptions): Promise<BatchUpdateMemberEc2DeepInspectionStatusCommandOutput>;
69
+ batchUpdateMemberEc2DeepInspectionStatus(args: BatchUpdateMemberEc2DeepInspectionStatusCommandInput, cb: (err: any, data?: BatchUpdateMemberEc2DeepInspectionStatusCommandOutput) => void): void;
70
+ batchUpdateMemberEc2DeepInspectionStatus(args: BatchUpdateMemberEc2DeepInspectionStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchUpdateMemberEc2DeepInspectionStatusCommandOutput) => void): void;
54
71
  /**
55
72
  * @see {@link CancelFindingsReportCommand}
56
73
  */
@@ -123,6 +140,12 @@ export interface Inspector2 {
123
140
  getDelegatedAdminAccount(args: GetDelegatedAdminAccountCommandInput, options?: __HttpHandlerOptions): Promise<GetDelegatedAdminAccountCommandOutput>;
124
141
  getDelegatedAdminAccount(args: GetDelegatedAdminAccountCommandInput, cb: (err: any, data?: GetDelegatedAdminAccountCommandOutput) => void): void;
125
142
  getDelegatedAdminAccount(args: GetDelegatedAdminAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDelegatedAdminAccountCommandOutput) => void): void;
143
+ /**
144
+ * @see {@link GetEc2DeepInspectionConfigurationCommand}
145
+ */
146
+ getEc2DeepInspectionConfiguration(args: GetEc2DeepInspectionConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetEc2DeepInspectionConfigurationCommandOutput>;
147
+ getEc2DeepInspectionConfiguration(args: GetEc2DeepInspectionConfigurationCommandInput, cb: (err: any, data?: GetEc2DeepInspectionConfigurationCommandOutput) => void): void;
148
+ getEc2DeepInspectionConfiguration(args: GetEc2DeepInspectionConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEc2DeepInspectionConfigurationCommandOutput) => void): void;
126
149
  /**
127
150
  * @see {@link GetFindingsReportStatusCommand}
128
151
  */
@@ -213,6 +236,12 @@ export interface Inspector2 {
213
236
  updateConfiguration(args: UpdateConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConfigurationCommandOutput>;
214
237
  updateConfiguration(args: UpdateConfigurationCommandInput, cb: (err: any, data?: UpdateConfigurationCommandOutput) => void): void;
215
238
  updateConfiguration(args: UpdateConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConfigurationCommandOutput) => void): void;
239
+ /**
240
+ * @see {@link UpdateEc2DeepInspectionConfigurationCommand}
241
+ */
242
+ updateEc2DeepInspectionConfiguration(args: UpdateEc2DeepInspectionConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEc2DeepInspectionConfigurationCommandOutput>;
243
+ updateEc2DeepInspectionConfiguration(args: UpdateEc2DeepInspectionConfigurationCommandInput, cb: (err: any, data?: UpdateEc2DeepInspectionConfigurationCommandOutput) => void): void;
244
+ updateEc2DeepInspectionConfiguration(args: UpdateEc2DeepInspectionConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEc2DeepInspectionConfigurationCommandOutput) => void): void;
216
245
  /**
217
246
  * @see {@link UpdateFilterCommand}
218
247
  */
@@ -225,6 +254,12 @@ export interface Inspector2 {
225
254
  updateOrganizationConfiguration(args: UpdateOrganizationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOrganizationConfigurationCommandOutput>;
226
255
  updateOrganizationConfiguration(args: UpdateOrganizationConfigurationCommandInput, cb: (err: any, data?: UpdateOrganizationConfigurationCommandOutput) => void): void;
227
256
  updateOrganizationConfiguration(args: UpdateOrganizationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOrganizationConfigurationCommandOutput) => void): void;
257
+ /**
258
+ * @see {@link UpdateOrgEc2DeepInspectionConfigurationCommand}
259
+ */
260
+ updateOrgEc2DeepInspectionConfiguration(args: UpdateOrgEc2DeepInspectionConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOrgEc2DeepInspectionConfigurationCommandOutput>;
261
+ updateOrgEc2DeepInspectionConfiguration(args: UpdateOrgEc2DeepInspectionConfigurationCommandInput, cb: (err: any, data?: UpdateOrgEc2DeepInspectionConfigurationCommandOutput) => void): void;
262
+ updateOrgEc2DeepInspectionConfiguration(args: UpdateOrgEc2DeepInspectionConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOrgEc2DeepInspectionConfigurationCommandOutput) => void): void;
228
263
  }
229
264
  /**
230
265
  * @public
@@ -10,6 +10,8 @@ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as
10
10
  import { AssociateMemberCommandInput, AssociateMemberCommandOutput } from "./commands/AssociateMemberCommand";
11
11
  import { BatchGetAccountStatusCommandInput, BatchGetAccountStatusCommandOutput } from "./commands/BatchGetAccountStatusCommand";
12
12
  import { BatchGetFreeTrialInfoCommandInput, BatchGetFreeTrialInfoCommandOutput } from "./commands/BatchGetFreeTrialInfoCommand";
13
+ import { BatchGetMemberEc2DeepInspectionStatusCommandInput, BatchGetMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchGetMemberEc2DeepInspectionStatusCommand";
14
+ import { BatchUpdateMemberEc2DeepInspectionStatusCommandInput, BatchUpdateMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
13
15
  import { CancelFindingsReportCommandInput, CancelFindingsReportCommandOutput } from "./commands/CancelFindingsReportCommand";
14
16
  import { CreateFilterCommandInput, CreateFilterCommandOutput } from "./commands/CreateFilterCommand";
15
17
  import { CreateFindingsReportCommandInput, CreateFindingsReportCommandOutput } from "./commands/CreateFindingsReportCommand";
@@ -22,6 +24,7 @@ import { EnableCommandInput, EnableCommandOutput } from "./commands/EnableComman
22
24
  import { EnableDelegatedAdminAccountCommandInput, EnableDelegatedAdminAccountCommandOutput } from "./commands/EnableDelegatedAdminAccountCommand";
23
25
  import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "./commands/GetConfigurationCommand";
24
26
  import { GetDelegatedAdminAccountCommandInput, GetDelegatedAdminAccountCommandOutput } from "./commands/GetDelegatedAdminAccountCommand";
27
+ import { GetEc2DeepInspectionConfigurationCommandInput, GetEc2DeepInspectionConfigurationCommandOutput } from "./commands/GetEc2DeepInspectionConfigurationCommand";
25
28
  import { GetFindingsReportStatusCommandInput, GetFindingsReportStatusCommandOutput } from "./commands/GetFindingsReportStatusCommand";
26
29
  import { GetMemberCommandInput, GetMemberCommandOutput } from "./commands/GetMemberCommand";
27
30
  import { ListAccountPermissionsCommandInput, ListAccountPermissionsCommandOutput } from "./commands/ListAccountPermissionsCommand";
@@ -37,17 +40,19 @@ import { ListUsageTotalsCommandInput, ListUsageTotalsCommandOutput } from "./com
37
40
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
38
41
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
39
42
  import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
43
+ import { UpdateEc2DeepInspectionConfigurationCommandInput, UpdateEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateEc2DeepInspectionConfigurationCommand";
40
44
  import { UpdateFilterCommandInput, UpdateFilterCommandOutput } from "./commands/UpdateFilterCommand";
41
45
  import { UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput } from "./commands/UpdateOrganizationConfigurationCommand";
46
+ import { UpdateOrgEc2DeepInspectionConfigurationCommandInput, UpdateOrgEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateOrgEc2DeepInspectionConfigurationCommand";
42
47
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
43
48
  /**
44
49
  * @public
45
50
  */
46
- export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetFreeTrialInfoCommandInput | CancelFindingsReportCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | ListAccountPermissionsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationCommandInput | UpdateFilterCommandInput | UpdateOrganizationConfigurationCommandInput;
51
+ export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | ListAccountPermissionsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
47
52
  /**
48
53
  * @public
49
54
  */
50
- export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetFreeTrialInfoCommandOutput | CancelFindingsReportCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | ListAccountPermissionsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationCommandOutput | UpdateFilterCommandOutput | UpdateOrganizationConfigurationCommandOutput;
55
+ export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | ListAccountPermissionsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
51
56
  /**
52
57
  * @public
53
58
  */
@@ -19,7 +19,7 @@ export interface AssociateMemberCommandOutput extends AssociateMemberResponse, _
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Associates an Amazon Web Services account with an Amazon Inspector delegated administrator.</p>
22
+ * <p>Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using <a href="https://docs.aws.amazon.com/inspector/v2/APIReference/API_ListMembers.html">ListMembers</a> for multiple accounts or <a href="https://docs.aws.amazon.com/inspector/v2/APIReference/API_GetMember.html">GetMembers</a> for a single account.</p>
23
23
  * @example
24
24
  * Use a bare-bones client and the command you need to make an API call.
25
25
  * ```javascript
@@ -31,6 +31,10 @@ export interface AssociateMemberCommandOutput extends AssociateMemberResponse, _
31
31
  * };
32
32
  * const command = new AssociateMemberCommand(input);
33
33
  * const response = await client.send(command);
34
+ * // { // AssociateMemberResponse
35
+ * // accountId: "STRING_VALUE", // required
36
+ * // };
37
+ *
34
38
  * ```
35
39
  *
36
40
  * @param AssociateMemberCommandInput - {@link AssociateMemberCommandInput}
@@ -52,6 +56,8 @@ export interface AssociateMemberCommandOutput extends AssociateMemberResponse, _
52
56
  * <p>The request has failed validation due to missing required fields or having invalid
53
57
  * inputs.</p>
54
58
  *
59
+ * @throws {@link Inspector2ServiceException}
60
+ * <p>Base exception class for all service exceptions from Inspector2 service.</p>
55
61
  *
56
62
  */
57
63
  export declare class AssociateMemberCommand extends $Command<AssociateMemberCommandInput, AssociateMemberCommandOutput, Inspector2ClientResolvedConfig> {