@aws-sdk/client-inspector 3.50.0 → 3.53.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 (75) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/InspectorServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +166 -3
  5. package/dist-cjs/protocols/Aws_json1_1.js +403 -1415
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/InspectorServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +153 -1
  9. package/dist-es/protocols/Aws_json1_1.js +860 -1542
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/InspectorServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +79 -72
  13. package/dist-types/ts3.4/Inspector.d.ts +190 -0
  14. package/dist-types/ts3.4/InspectorClient.d.ts +110 -0
  15. package/dist-types/ts3.4/commands/AddAttributesToFindingsCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/CreateAssessmentTargetCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/CreateAssessmentTemplateCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/CreateExclusionsPreviewCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/CreateResourceGroupCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/DeleteAssessmentRunCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/DeleteAssessmentTargetCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/DeleteAssessmentTemplateCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/DescribeAssessmentRunsCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/DescribeAssessmentTargetsCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/DescribeAssessmentTemplatesCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/DescribeCrossAccountAccessRoleCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/DescribeExclusionsCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/DescribeFindingsCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/DescribeResourceGroupsCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/DescribeRulesPackagesCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/GetAssessmentReportCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/GetExclusionsPreviewCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/GetTelemetryMetadataCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/ListAssessmentRunAgentsCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/ListAssessmentRunsCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/ListAssessmentTargetsCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/ListAssessmentTemplatesCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/ListEventSubscriptionsCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/ListExclusionsCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/ListRulesPackagesCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/PreviewAgentsCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/RegisterCrossAccountAccessRoleCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/RemoveAttributesFromFindingsCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/SetTagsForResourceCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/StartAssessmentRunCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/StopAssessmentRunCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/SubscribeToEventCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/UnsubscribeFromEventCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/UpdateAssessmentTargetCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/index.d.ts +37 -0
  53. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  54. package/dist-types/ts3.4/index.d.ts +6 -0
  55. package/dist-types/ts3.4/models/InspectorServiceException.d.ts +6 -0
  56. package/dist-types/ts3.4/models/index.d.ts +1 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +1506 -0
  58. package/dist-types/ts3.4/pagination/GetExclusionsPreviewPaginator.d.ts +4 -0
  59. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  60. package/dist-types/ts3.4/pagination/ListAssessmentRunAgentsPaginator.d.ts +4 -0
  61. package/dist-types/ts3.4/pagination/ListAssessmentRunsPaginator.d.ts +4 -0
  62. package/dist-types/ts3.4/pagination/ListAssessmentTargetsPaginator.d.ts +4 -0
  63. package/dist-types/ts3.4/pagination/ListAssessmentTemplatesPaginator.d.ts +4 -0
  64. package/dist-types/ts3.4/pagination/ListEventSubscriptionsPaginator.d.ts +4 -0
  65. package/dist-types/ts3.4/pagination/ListExclusionsPaginator.d.ts +4 -0
  66. package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +4 -0
  67. package/dist-types/ts3.4/pagination/ListRulesPackagesPaginator.d.ts +4 -0
  68. package/dist-types/ts3.4/pagination/PreviewAgentsPaginator.d.ts +4 -0
  69. package/dist-types/ts3.4/pagination/index.d.ts +11 -0
  70. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +113 -0
  71. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  72. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  73. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  74. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  75. package/package.json +33 -33
package/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./InspectorClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { InspectorServiceException } from "./models/InspectorServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var InspectorServiceException = (function (_super) {
4
+ __extends(InspectorServiceException, _super);
5
+ function InspectorServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, InspectorServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return InspectorServiceException;
11
+ }(__ServiceException));
12
+ export { InspectorServiceException };
@@ -1,4 +1,5 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { InspectorServiceException as __BaseException } from "./InspectorServiceException";
2
3
  export var AccessDeniedErrorCode;
3
4
  (function (AccessDeniedErrorCode) {
4
5
  AccessDeniedErrorCode["ACCESS_DENIED_TO_ASSESSMENT_RUN"] = "ACCESS_DENIED_TO_ASSESSMENT_RUN";
@@ -10,6 +11,20 @@ export var AccessDeniedErrorCode;
10
11
  AccessDeniedErrorCode["ACCESS_DENIED_TO_RULES_PACKAGE"] = "ACCESS_DENIED_TO_RULES_PACKAGE";
11
12
  AccessDeniedErrorCode["ACCESS_DENIED_TO_SNS_TOPIC"] = "ACCESS_DENIED_TO_SNS_TOPIC";
12
13
  })(AccessDeniedErrorCode || (AccessDeniedErrorCode = {}));
14
+ var AccessDeniedException = (function (_super) {
15
+ __extends(AccessDeniedException, _super);
16
+ function AccessDeniedException(opts) {
17
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
18
+ _this.name = "AccessDeniedException";
19
+ _this.$fault = "client";
20
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
21
+ _this.errorCode = opts.errorCode;
22
+ _this.canRetry = opts.canRetry;
23
+ return _this;
24
+ }
25
+ return AccessDeniedException;
26
+ }(__BaseException));
27
+ export { AccessDeniedException };
13
28
  export var Attribute;
14
29
  (function (Attribute) {
15
30
  Attribute.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -35,6 +50,19 @@ export var AddAttributesToFindingsResponse;
35
50
  (function (AddAttributesToFindingsResponse) {
36
51
  AddAttributesToFindingsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
52
  })(AddAttributesToFindingsResponse || (AddAttributesToFindingsResponse = {}));
53
+ var InternalException = (function (_super) {
54
+ __extends(InternalException, _super);
55
+ function InternalException(opts) {
56
+ var _this = _super.call(this, __assign({ name: "InternalException", $fault: "server" }, opts)) || this;
57
+ _this.name = "InternalException";
58
+ _this.$fault = "server";
59
+ Object.setPrototypeOf(_this, InternalException.prototype);
60
+ _this.canRetry = opts.canRetry;
61
+ return _this;
62
+ }
63
+ return InternalException;
64
+ }(__BaseException));
65
+ export { InternalException };
38
66
  export var InvalidInputErrorCode;
39
67
  (function (InvalidInputErrorCode) {
40
68
  InvalidInputErrorCode["ASSESSMENT_TARGET_NAME_ALREADY_TAKEN"] = "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN";
@@ -92,6 +120,20 @@ export var InvalidInputErrorCode;
92
120
  InvalidInputErrorCode["INVALID_USER_ATTRIBUTE_KEY"] = "INVALID_USER_ATTRIBUTE_KEY";
93
121
  InvalidInputErrorCode["INVALID_USER_ATTRIBUTE_VALUE"] = "INVALID_USER_ATTRIBUTE_VALUE";
94
122
  })(InvalidInputErrorCode || (InvalidInputErrorCode = {}));
123
+ var InvalidInputException = (function (_super) {
124
+ __extends(InvalidInputException, _super);
125
+ function InvalidInputException(opts) {
126
+ var _this = _super.call(this, __assign({ name: "InvalidInputException", $fault: "client" }, opts)) || this;
127
+ _this.name = "InvalidInputException";
128
+ _this.$fault = "client";
129
+ Object.setPrototypeOf(_this, InvalidInputException.prototype);
130
+ _this.errorCode = opts.errorCode;
131
+ _this.canRetry = opts.canRetry;
132
+ return _this;
133
+ }
134
+ return InvalidInputException;
135
+ }(__BaseException));
136
+ export { InvalidInputException };
95
137
  export var NoSuchEntityErrorCode;
96
138
  (function (NoSuchEntityErrorCode) {
97
139
  NoSuchEntityErrorCode["ASSESSMENT_RUN_DOES_NOT_EXIST"] = "ASSESSMENT_RUN_DOES_NOT_EXIST";
@@ -103,6 +145,33 @@ export var NoSuchEntityErrorCode;
103
145
  NoSuchEntityErrorCode["RULES_PACKAGE_DOES_NOT_EXIST"] = "RULES_PACKAGE_DOES_NOT_EXIST";
104
146
  NoSuchEntityErrorCode["SNS_TOPIC_DOES_NOT_EXIST"] = "SNS_TOPIC_DOES_NOT_EXIST";
105
147
  })(NoSuchEntityErrorCode || (NoSuchEntityErrorCode = {}));
148
+ var NoSuchEntityException = (function (_super) {
149
+ __extends(NoSuchEntityException, _super);
150
+ function NoSuchEntityException(opts) {
151
+ var _this = _super.call(this, __assign({ name: "NoSuchEntityException", $fault: "client" }, opts)) || this;
152
+ _this.name = "NoSuchEntityException";
153
+ _this.$fault = "client";
154
+ Object.setPrototypeOf(_this, NoSuchEntityException.prototype);
155
+ _this.errorCode = opts.errorCode;
156
+ _this.canRetry = opts.canRetry;
157
+ return _this;
158
+ }
159
+ return NoSuchEntityException;
160
+ }(__BaseException));
161
+ export { NoSuchEntityException };
162
+ var ServiceTemporarilyUnavailableException = (function (_super) {
163
+ __extends(ServiceTemporarilyUnavailableException, _super);
164
+ function ServiceTemporarilyUnavailableException(opts) {
165
+ var _this = _super.call(this, __assign({ name: "ServiceTemporarilyUnavailableException", $fault: "server" }, opts)) || this;
166
+ _this.name = "ServiceTemporarilyUnavailableException";
167
+ _this.$fault = "server";
168
+ Object.setPrototypeOf(_this, ServiceTemporarilyUnavailableException.prototype);
169
+ _this.canRetry = opts.canRetry;
170
+ return _this;
171
+ }
172
+ return ServiceTemporarilyUnavailableException;
173
+ }(__BaseException));
174
+ export { ServiceTemporarilyUnavailableException };
106
175
  export var AgentAlreadyRunningAssessment;
107
176
  (function (AgentAlreadyRunningAssessment) {
108
177
  AgentAlreadyRunningAssessment.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -130,6 +199,21 @@ export var AgentPreview;
130
199
  (function (AgentPreview) {
131
200
  AgentPreview.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
201
  })(AgentPreview || (AgentPreview = {}));
202
+ var AgentsAlreadyRunningAssessmentException = (function (_super) {
203
+ __extends(AgentsAlreadyRunningAssessmentException, _super);
204
+ function AgentsAlreadyRunningAssessmentException(opts) {
205
+ var _this = _super.call(this, __assign({ name: "AgentsAlreadyRunningAssessmentException", $fault: "client" }, opts)) || this;
206
+ _this.name = "AgentsAlreadyRunningAssessmentException";
207
+ _this.$fault = "client";
208
+ Object.setPrototypeOf(_this, AgentsAlreadyRunningAssessmentException.prototype);
209
+ _this.agents = opts.agents;
210
+ _this.agentsTruncated = opts.agentsTruncated;
211
+ _this.canRetry = opts.canRetry;
212
+ return _this;
213
+ }
214
+ return AgentsAlreadyRunningAssessmentException;
215
+ }(__BaseException));
216
+ export { AgentsAlreadyRunningAssessmentException };
133
217
  export var Severity;
134
218
  (function (Severity) {
135
219
  Severity["HIGH"] = "High";
@@ -201,6 +285,21 @@ export var AssessmentRunFilter;
201
285
  (function (AssessmentRunFilter) {
202
286
  AssessmentRunFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
287
  })(AssessmentRunFilter || (AssessmentRunFilter = {}));
288
+ var AssessmentRunInProgressException = (function (_super) {
289
+ __extends(AssessmentRunInProgressException, _super);
290
+ function AssessmentRunInProgressException(opts) {
291
+ var _this = _super.call(this, __assign({ name: "AssessmentRunInProgressException", $fault: "client" }, opts)) || this;
292
+ _this.name = "AssessmentRunInProgressException";
293
+ _this.$fault = "client";
294
+ Object.setPrototypeOf(_this, AssessmentRunInProgressException.prototype);
295
+ _this.assessmentRunArns = opts.assessmentRunArns;
296
+ _this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
297
+ _this.canRetry = opts.canRetry;
298
+ return _this;
299
+ }
300
+ return AssessmentRunInProgressException;
301
+ }(__BaseException));
302
+ export { AssessmentRunInProgressException };
204
303
  export var AssessmentTarget;
205
304
  (function (AssessmentTarget) {
206
305
  AssessmentTarget.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -254,6 +353,20 @@ export var InvalidCrossAccountRoleErrorCode;
254
353
  InvalidCrossAccountRoleErrorCode["ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP"] = "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP";
255
354
  InvalidCrossAccountRoleErrorCode["ROLE_DOES_NOT_HAVE_CORRECT_POLICY"] = "ROLE_DOES_NOT_HAVE_CORRECT_POLICY";
256
355
  })(InvalidCrossAccountRoleErrorCode || (InvalidCrossAccountRoleErrorCode = {}));
356
+ var InvalidCrossAccountRoleException = (function (_super) {
357
+ __extends(InvalidCrossAccountRoleException, _super);
358
+ function InvalidCrossAccountRoleException(opts) {
359
+ var _this = _super.call(this, __assign({ name: "InvalidCrossAccountRoleException", $fault: "client" }, opts)) || this;
360
+ _this.name = "InvalidCrossAccountRoleException";
361
+ _this.$fault = "client";
362
+ Object.setPrototypeOf(_this, InvalidCrossAccountRoleException.prototype);
363
+ _this.errorCode = opts.errorCode;
364
+ _this.canRetry = opts.canRetry;
365
+ return _this;
366
+ }
367
+ return InvalidCrossAccountRoleException;
368
+ }(__BaseException));
369
+ export { InvalidCrossAccountRoleException };
257
370
  export var LimitExceededErrorCode;
258
371
  (function (LimitExceededErrorCode) {
259
372
  LimitExceededErrorCode["ASSESSMENT_RUN_LIMIT_EXCEEDED"] = "ASSESSMENT_RUN_LIMIT_EXCEEDED";
@@ -262,6 +375,20 @@ export var LimitExceededErrorCode;
262
375
  LimitExceededErrorCode["EVENT_SUBSCRIPTION_LIMIT_EXCEEDED"] = "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED";
263
376
  LimitExceededErrorCode["RESOURCE_GROUP_LIMIT_EXCEEDED"] = "RESOURCE_GROUP_LIMIT_EXCEEDED";
264
377
  })(LimitExceededErrorCode || (LimitExceededErrorCode = {}));
378
+ var LimitExceededException = (function (_super) {
379
+ __extends(LimitExceededException, _super);
380
+ function LimitExceededException(opts) {
381
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
382
+ _this.name = "LimitExceededException";
383
+ _this.$fault = "client";
384
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
385
+ _this.errorCode = opts.errorCode;
386
+ _this.canRetry = opts.canRetry;
387
+ return _this;
388
+ }
389
+ return LimitExceededException;
390
+ }(__BaseException));
391
+ export { LimitExceededException };
265
392
  export var CreateAssessmentTemplateRequest;
266
393
  (function (CreateAssessmentTemplateRequest) {
267
394
  CreateAssessmentTemplateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -278,6 +405,18 @@ export var CreateExclusionsPreviewResponse;
278
405
  (function (CreateExclusionsPreviewResponse) {
279
406
  CreateExclusionsPreviewResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
407
  })(CreateExclusionsPreviewResponse || (CreateExclusionsPreviewResponse = {}));
408
+ var PreviewGenerationInProgressException = (function (_super) {
409
+ __extends(PreviewGenerationInProgressException, _super);
410
+ function PreviewGenerationInProgressException(opts) {
411
+ var _this = _super.call(this, __assign({ name: "PreviewGenerationInProgressException", $fault: "client" }, opts)) || this;
412
+ _this.name = "PreviewGenerationInProgressException";
413
+ _this.$fault = "client";
414
+ Object.setPrototypeOf(_this, PreviewGenerationInProgressException.prototype);
415
+ return _this;
416
+ }
417
+ return PreviewGenerationInProgressException;
418
+ }(__BaseException));
419
+ export { PreviewGenerationInProgressException };
281
420
  export var ResourceGroupTag;
282
421
  (function (ResourceGroupTag) {
283
422
  ResourceGroupTag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -431,6 +570,19 @@ export var GetAssessmentReportResponse;
431
570
  (function (GetAssessmentReportResponse) {
432
571
  GetAssessmentReportResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
433
572
  })(GetAssessmentReportResponse || (GetAssessmentReportResponse = {}));
573
+ var UnsupportedFeatureException = (function (_super) {
574
+ __extends(UnsupportedFeatureException, _super);
575
+ function UnsupportedFeatureException(opts) {
576
+ var _this = _super.call(this, __assign({ name: "UnsupportedFeatureException", $fault: "client" }, opts)) || this;
577
+ _this.name = "UnsupportedFeatureException";
578
+ _this.$fault = "client";
579
+ Object.setPrototypeOf(_this, UnsupportedFeatureException.prototype);
580
+ _this.canRetry = opts.canRetry;
581
+ return _this;
582
+ }
583
+ return UnsupportedFeatureException;
584
+ }(__BaseException));
585
+ export { UnsupportedFeatureException };
434
586
  export var GetExclusionsPreviewRequest;
435
587
  (function (GetExclusionsPreviewRequest) {
436
588
  GetExclusionsPreviewRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };