@aws-sdk/client-inspector 3.934.0 → 3.936.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/dist-cjs/index.js +175 -174
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +174 -0
- package/dist-es/models/errors.js +171 -0
- package/dist-es/models/models_0.js +1 -345
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +334 -0
- package/dist-types/models/errors.d.ts +239 -0
- package/dist-types/models/models_0.d.ts +1 -571
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +205 -0
- package/dist-types/ts3.4/models/errors.d.ts +119 -0
- package/dist-types/ts3.4/models/models_0.d.ts +17 -316
- package/package.json +19 -19
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { InspectorServiceException as __BaseException } from "./InspectorServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
errorCode;
|
|
6
|
+
canRetry;
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
14
|
+
this.errorCode = opts.errorCode;
|
|
15
|
+
this.canRetry = opts.canRetry;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export class InternalException extends __BaseException {
|
|
19
|
+
name = "InternalException";
|
|
20
|
+
$fault = "server";
|
|
21
|
+
canRetry;
|
|
22
|
+
constructor(opts) {
|
|
23
|
+
super({
|
|
24
|
+
name: "InternalException",
|
|
25
|
+
$fault: "server",
|
|
26
|
+
...opts,
|
|
27
|
+
});
|
|
28
|
+
Object.setPrototypeOf(this, InternalException.prototype);
|
|
29
|
+
this.canRetry = opts.canRetry;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export class InvalidInputException extends __BaseException {
|
|
33
|
+
name = "InvalidInputException";
|
|
34
|
+
$fault = "client";
|
|
35
|
+
errorCode;
|
|
36
|
+
canRetry;
|
|
37
|
+
constructor(opts) {
|
|
38
|
+
super({
|
|
39
|
+
name: "InvalidInputException",
|
|
40
|
+
$fault: "client",
|
|
41
|
+
...opts,
|
|
42
|
+
});
|
|
43
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
44
|
+
this.errorCode = opts.errorCode;
|
|
45
|
+
this.canRetry = opts.canRetry;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export class NoSuchEntityException extends __BaseException {
|
|
49
|
+
name = "NoSuchEntityException";
|
|
50
|
+
$fault = "client";
|
|
51
|
+
errorCode;
|
|
52
|
+
canRetry;
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "NoSuchEntityException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
Object.setPrototypeOf(this, NoSuchEntityException.prototype);
|
|
60
|
+
this.errorCode = opts.errorCode;
|
|
61
|
+
this.canRetry = opts.canRetry;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export class ServiceTemporarilyUnavailableException extends __BaseException {
|
|
65
|
+
name = "ServiceTemporarilyUnavailableException";
|
|
66
|
+
$fault = "server";
|
|
67
|
+
canRetry;
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "ServiceTemporarilyUnavailableException",
|
|
71
|
+
$fault: "server",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
Object.setPrototypeOf(this, ServiceTemporarilyUnavailableException.prototype);
|
|
75
|
+
this.canRetry = opts.canRetry;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export class AgentsAlreadyRunningAssessmentException extends __BaseException {
|
|
79
|
+
name = "AgentsAlreadyRunningAssessmentException";
|
|
80
|
+
$fault = "client";
|
|
81
|
+
agents;
|
|
82
|
+
agentsTruncated;
|
|
83
|
+
canRetry;
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "AgentsAlreadyRunningAssessmentException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
Object.setPrototypeOf(this, AgentsAlreadyRunningAssessmentException.prototype);
|
|
91
|
+
this.agents = opts.agents;
|
|
92
|
+
this.agentsTruncated = opts.agentsTruncated;
|
|
93
|
+
this.canRetry = opts.canRetry;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export class AssessmentRunInProgressException extends __BaseException {
|
|
97
|
+
name = "AssessmentRunInProgressException";
|
|
98
|
+
$fault = "client";
|
|
99
|
+
assessmentRunArns;
|
|
100
|
+
assessmentRunArnsTruncated;
|
|
101
|
+
canRetry;
|
|
102
|
+
constructor(opts) {
|
|
103
|
+
super({
|
|
104
|
+
name: "AssessmentRunInProgressException",
|
|
105
|
+
$fault: "client",
|
|
106
|
+
...opts,
|
|
107
|
+
});
|
|
108
|
+
Object.setPrototypeOf(this, AssessmentRunInProgressException.prototype);
|
|
109
|
+
this.assessmentRunArns = opts.assessmentRunArns;
|
|
110
|
+
this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
|
|
111
|
+
this.canRetry = opts.canRetry;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export class InvalidCrossAccountRoleException extends __BaseException {
|
|
115
|
+
name = "InvalidCrossAccountRoleException";
|
|
116
|
+
$fault = "client";
|
|
117
|
+
errorCode;
|
|
118
|
+
canRetry;
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "InvalidCrossAccountRoleException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
Object.setPrototypeOf(this, InvalidCrossAccountRoleException.prototype);
|
|
126
|
+
this.errorCode = opts.errorCode;
|
|
127
|
+
this.canRetry = opts.canRetry;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export class LimitExceededException extends __BaseException {
|
|
131
|
+
name = "LimitExceededException";
|
|
132
|
+
$fault = "client";
|
|
133
|
+
errorCode;
|
|
134
|
+
canRetry;
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "LimitExceededException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
142
|
+
this.errorCode = opts.errorCode;
|
|
143
|
+
this.canRetry = opts.canRetry;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export class PreviewGenerationInProgressException extends __BaseException {
|
|
147
|
+
name = "PreviewGenerationInProgressException";
|
|
148
|
+
$fault = "client";
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "PreviewGenerationInProgressException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, PreviewGenerationInProgressException.prototype);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export class UnsupportedFeatureException extends __BaseException {
|
|
159
|
+
name = "UnsupportedFeatureException";
|
|
160
|
+
$fault = "client";
|
|
161
|
+
canRetry;
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "UnsupportedFeatureException",
|
|
165
|
+
$fault: "client",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
Object.setPrototypeOf(this, UnsupportedFeatureException.prototype);
|
|
169
|
+
this.canRetry = opts.canRetry;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -1,345 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const AccessDeniedErrorCode = {
|
|
3
|
-
ACCESS_DENIED_TO_ASSESSMENT_RUN: "ACCESS_DENIED_TO_ASSESSMENT_RUN",
|
|
4
|
-
ACCESS_DENIED_TO_ASSESSMENT_TARGET: "ACCESS_DENIED_TO_ASSESSMENT_TARGET",
|
|
5
|
-
ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE: "ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE",
|
|
6
|
-
ACCESS_DENIED_TO_FINDING: "ACCESS_DENIED_TO_FINDING",
|
|
7
|
-
ACCESS_DENIED_TO_IAM_ROLE: "ACCESS_DENIED_TO_IAM_ROLE",
|
|
8
|
-
ACCESS_DENIED_TO_RESOURCE_GROUP: "ACCESS_DENIED_TO_RESOURCE_GROUP",
|
|
9
|
-
ACCESS_DENIED_TO_RULES_PACKAGE: "ACCESS_DENIED_TO_RULES_PACKAGE",
|
|
10
|
-
ACCESS_DENIED_TO_SNS_TOPIC: "ACCESS_DENIED_TO_SNS_TOPIC",
|
|
11
|
-
};
|
|
12
|
-
export class AccessDeniedException extends __BaseException {
|
|
13
|
-
name = "AccessDeniedException";
|
|
14
|
-
$fault = "client";
|
|
15
|
-
errorCode;
|
|
16
|
-
canRetry;
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "AccessDeniedException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
24
|
-
this.errorCode = opts.errorCode;
|
|
25
|
-
this.canRetry = opts.canRetry;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export const FailedItemErrorCode = {
|
|
29
|
-
ACCESS_DENIED: "ACCESS_DENIED",
|
|
30
|
-
DUPLICATE_ARN: "DUPLICATE_ARN",
|
|
31
|
-
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
32
|
-
INVALID_ARN: "INVALID_ARN",
|
|
33
|
-
ITEM_DOES_NOT_EXIST: "ITEM_DOES_NOT_EXIST",
|
|
34
|
-
LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
|
|
35
|
-
};
|
|
36
|
-
export class InternalException extends __BaseException {
|
|
37
|
-
name = "InternalException";
|
|
38
|
-
$fault = "server";
|
|
39
|
-
canRetry;
|
|
40
|
-
constructor(opts) {
|
|
41
|
-
super({
|
|
42
|
-
name: "InternalException",
|
|
43
|
-
$fault: "server",
|
|
44
|
-
...opts,
|
|
45
|
-
});
|
|
46
|
-
Object.setPrototypeOf(this, InternalException.prototype);
|
|
47
|
-
this.canRetry = opts.canRetry;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export const InvalidInputErrorCode = {
|
|
51
|
-
ASSESSMENT_TARGET_NAME_ALREADY_TAKEN: "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN",
|
|
52
|
-
ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN: "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN",
|
|
53
|
-
INVALID_AGENT_ID: "INVALID_AGENT_ID",
|
|
54
|
-
INVALID_ASSESSMENT_RUN_ARN: "INVALID_ASSESSMENT_RUN_ARN",
|
|
55
|
-
INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE: "INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE",
|
|
56
|
-
INVALID_ASSESSMENT_RUN_DURATION_RANGE: "INVALID_ASSESSMENT_RUN_DURATION_RANGE",
|
|
57
|
-
INVALID_ASSESSMENT_RUN_START_TIME_RANGE: "INVALID_ASSESSMENT_RUN_START_TIME_RANGE",
|
|
58
|
-
INVALID_ASSESSMENT_RUN_STATE: "INVALID_ASSESSMENT_RUN_STATE",
|
|
59
|
-
INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE: "INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE",
|
|
60
|
-
INVALID_ASSESSMENT_TARGET_ARN: "INVALID_ASSESSMENT_TARGET_ARN",
|
|
61
|
-
INVALID_ASSESSMENT_TARGET_NAME: "INVALID_ASSESSMENT_TARGET_NAME",
|
|
62
|
-
INVALID_ASSESSMENT_TARGET_NAME_PATTERN: "INVALID_ASSESSMENT_TARGET_NAME_PATTERN",
|
|
63
|
-
INVALID_ASSESSMENT_TEMPLATE_ARN: "INVALID_ASSESSMENT_TEMPLATE_ARN",
|
|
64
|
-
INVALID_ASSESSMENT_TEMPLATE_DURATION: "INVALID_ASSESSMENT_TEMPLATE_DURATION",
|
|
65
|
-
INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE: "INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE",
|
|
66
|
-
INVALID_ASSESSMENT_TEMPLATE_NAME: "INVALID_ASSESSMENT_TEMPLATE_NAME",
|
|
67
|
-
INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN: "INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN",
|
|
68
|
-
INVALID_ATTRIBUTE: "INVALID_ATTRIBUTE",
|
|
69
|
-
INVALID_AUTO_SCALING_GROUP: "INVALID_AUTO_SCALING_GROUP",
|
|
70
|
-
INVALID_EVENT: "INVALID_EVENT",
|
|
71
|
-
INVALID_FINDING_ARN: "INVALID_FINDING_ARN",
|
|
72
|
-
INVALID_IAM_ROLE_ARN: "INVALID_IAM_ROLE_ARN",
|
|
73
|
-
INVALID_LOCALE: "INVALID_LOCALE",
|
|
74
|
-
INVALID_MAX_RESULTS: "INVALID_MAX_RESULTS",
|
|
75
|
-
INVALID_NUMBER_OF_AGENT_IDS: "INVALID_NUMBER_OF_AGENT_IDS",
|
|
76
|
-
INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS",
|
|
77
|
-
INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES: "INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES",
|
|
78
|
-
INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS",
|
|
79
|
-
INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS: "INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS",
|
|
80
|
-
INVALID_NUMBER_OF_ATTRIBUTES: "INVALID_NUMBER_OF_ATTRIBUTES",
|
|
81
|
-
INVALID_NUMBER_OF_AUTO_SCALING_GROUPS: "INVALID_NUMBER_OF_AUTO_SCALING_GROUPS",
|
|
82
|
-
INVALID_NUMBER_OF_FINDING_ARNS: "INVALID_NUMBER_OF_FINDING_ARNS",
|
|
83
|
-
INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS: "INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS",
|
|
84
|
-
INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS: "INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS",
|
|
85
|
-
INVALID_NUMBER_OF_RULES_PACKAGE_ARNS: "INVALID_NUMBER_OF_RULES_PACKAGE_ARNS",
|
|
86
|
-
INVALID_NUMBER_OF_RULE_NAMES: "INVALID_NUMBER_OF_RULE_NAMES",
|
|
87
|
-
INVALID_NUMBER_OF_SEVERITIES: "INVALID_NUMBER_OF_SEVERITIES",
|
|
88
|
-
INVALID_NUMBER_OF_TAGS: "INVALID_NUMBER_OF_TAGS",
|
|
89
|
-
INVALID_NUMBER_OF_USER_ATTRIBUTES: "INVALID_NUMBER_OF_USER_ATTRIBUTES",
|
|
90
|
-
INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
|
|
91
|
-
INVALID_RESOURCE_ARN: "INVALID_RESOURCE_ARN",
|
|
92
|
-
INVALID_RESOURCE_GROUP_ARN: "INVALID_RESOURCE_GROUP_ARN",
|
|
93
|
-
INVALID_RESOURCE_GROUP_TAG_KEY: "INVALID_RESOURCE_GROUP_TAG_KEY",
|
|
94
|
-
INVALID_RESOURCE_GROUP_TAG_VALUE: "INVALID_RESOURCE_GROUP_TAG_VALUE",
|
|
95
|
-
INVALID_RULES_PACKAGE_ARN: "INVALID_RULES_PACKAGE_ARN",
|
|
96
|
-
INVALID_RULE_NAME: "INVALID_RULE_NAME",
|
|
97
|
-
INVALID_SEVERITY: "INVALID_SEVERITY",
|
|
98
|
-
INVALID_SNS_TOPIC_ARN: "INVALID_SNS_TOPIC_ARN",
|
|
99
|
-
INVALID_TAG: "INVALID_TAG",
|
|
100
|
-
INVALID_TAG_KEY: "INVALID_TAG_KEY",
|
|
101
|
-
INVALID_TAG_VALUE: "INVALID_TAG_VALUE",
|
|
102
|
-
INVALID_USER_ATTRIBUTE: "INVALID_USER_ATTRIBUTE",
|
|
103
|
-
INVALID_USER_ATTRIBUTE_KEY: "INVALID_USER_ATTRIBUTE_KEY",
|
|
104
|
-
INVALID_USER_ATTRIBUTE_VALUE: "INVALID_USER_ATTRIBUTE_VALUE",
|
|
105
|
-
};
|
|
106
|
-
export class InvalidInputException extends __BaseException {
|
|
107
|
-
name = "InvalidInputException";
|
|
108
|
-
$fault = "client";
|
|
109
|
-
errorCode;
|
|
110
|
-
canRetry;
|
|
111
|
-
constructor(opts) {
|
|
112
|
-
super({
|
|
113
|
-
name: "InvalidInputException",
|
|
114
|
-
$fault: "client",
|
|
115
|
-
...opts,
|
|
116
|
-
});
|
|
117
|
-
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
118
|
-
this.errorCode = opts.errorCode;
|
|
119
|
-
this.canRetry = opts.canRetry;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export const NoSuchEntityErrorCode = {
|
|
123
|
-
ASSESSMENT_RUN_DOES_NOT_EXIST: "ASSESSMENT_RUN_DOES_NOT_EXIST",
|
|
124
|
-
ASSESSMENT_TARGET_DOES_NOT_EXIST: "ASSESSMENT_TARGET_DOES_NOT_EXIST",
|
|
125
|
-
ASSESSMENT_TEMPLATE_DOES_NOT_EXIST: "ASSESSMENT_TEMPLATE_DOES_NOT_EXIST",
|
|
126
|
-
FINDING_DOES_NOT_EXIST: "FINDING_DOES_NOT_EXIST",
|
|
127
|
-
IAM_ROLE_DOES_NOT_EXIST: "IAM_ROLE_DOES_NOT_EXIST",
|
|
128
|
-
RESOURCE_GROUP_DOES_NOT_EXIST: "RESOURCE_GROUP_DOES_NOT_EXIST",
|
|
129
|
-
RULES_PACKAGE_DOES_NOT_EXIST: "RULES_PACKAGE_DOES_NOT_EXIST",
|
|
130
|
-
SNS_TOPIC_DOES_NOT_EXIST: "SNS_TOPIC_DOES_NOT_EXIST",
|
|
131
|
-
};
|
|
132
|
-
export class NoSuchEntityException extends __BaseException {
|
|
133
|
-
name = "NoSuchEntityException";
|
|
134
|
-
$fault = "client";
|
|
135
|
-
errorCode;
|
|
136
|
-
canRetry;
|
|
137
|
-
constructor(opts) {
|
|
138
|
-
super({
|
|
139
|
-
name: "NoSuchEntityException",
|
|
140
|
-
$fault: "client",
|
|
141
|
-
...opts,
|
|
142
|
-
});
|
|
143
|
-
Object.setPrototypeOf(this, NoSuchEntityException.prototype);
|
|
144
|
-
this.errorCode = opts.errorCode;
|
|
145
|
-
this.canRetry = opts.canRetry;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
export class ServiceTemporarilyUnavailableException extends __BaseException {
|
|
149
|
-
name = "ServiceTemporarilyUnavailableException";
|
|
150
|
-
$fault = "server";
|
|
151
|
-
canRetry;
|
|
152
|
-
constructor(opts) {
|
|
153
|
-
super({
|
|
154
|
-
name: "ServiceTemporarilyUnavailableException",
|
|
155
|
-
$fault: "server",
|
|
156
|
-
...opts,
|
|
157
|
-
});
|
|
158
|
-
Object.setPrototypeOf(this, ServiceTemporarilyUnavailableException.prototype);
|
|
159
|
-
this.canRetry = opts.canRetry;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
export const AgentHealthCode = {
|
|
163
|
-
IDLE: "IDLE",
|
|
164
|
-
RUNNING: "RUNNING",
|
|
165
|
-
SHUTDOWN: "SHUTDOWN",
|
|
166
|
-
THROTTLED: "THROTTLED",
|
|
167
|
-
UNHEALTHY: "UNHEALTHY",
|
|
168
|
-
UNKNOWN: "UNKNOWN",
|
|
169
|
-
};
|
|
170
|
-
export const AgentHealth = {
|
|
171
|
-
HEALTHY: "HEALTHY",
|
|
172
|
-
UNHEALTHY: "UNHEALTHY",
|
|
173
|
-
UNKNOWN: "UNKNOWN",
|
|
174
|
-
};
|
|
175
|
-
export class AgentsAlreadyRunningAssessmentException extends __BaseException {
|
|
176
|
-
name = "AgentsAlreadyRunningAssessmentException";
|
|
177
|
-
$fault = "client";
|
|
178
|
-
agents;
|
|
179
|
-
agentsTruncated;
|
|
180
|
-
canRetry;
|
|
181
|
-
constructor(opts) {
|
|
182
|
-
super({
|
|
183
|
-
name: "AgentsAlreadyRunningAssessmentException",
|
|
184
|
-
$fault: "client",
|
|
185
|
-
...opts,
|
|
186
|
-
});
|
|
187
|
-
Object.setPrototypeOf(this, AgentsAlreadyRunningAssessmentException.prototype);
|
|
188
|
-
this.agents = opts.agents;
|
|
189
|
-
this.agentsTruncated = opts.agentsTruncated;
|
|
190
|
-
this.canRetry = opts.canRetry;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
export const Severity = {
|
|
194
|
-
HIGH: "High",
|
|
195
|
-
INFORMATIONAL: "Informational",
|
|
196
|
-
LOW: "Low",
|
|
197
|
-
MEDIUM: "Medium",
|
|
198
|
-
UNDEFINED: "Undefined",
|
|
199
|
-
};
|
|
200
|
-
export const InspectorEvent = {
|
|
201
|
-
ASSESSMENT_RUN_COMPLETED: "ASSESSMENT_RUN_COMPLETED",
|
|
202
|
-
ASSESSMENT_RUN_STARTED: "ASSESSMENT_RUN_STARTED",
|
|
203
|
-
ASSESSMENT_RUN_STATE_CHANGED: "ASSESSMENT_RUN_STATE_CHANGED",
|
|
204
|
-
FINDING_REPORTED: "FINDING_REPORTED",
|
|
205
|
-
OTHER: "OTHER",
|
|
206
|
-
};
|
|
207
|
-
export const AssessmentRunNotificationSnsStatusCode = {
|
|
208
|
-
ACCESS_DENIED: "ACCESS_DENIED",
|
|
209
|
-
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
210
|
-
SUCCESS: "SUCCESS",
|
|
211
|
-
TOPIC_DOES_NOT_EXIST: "TOPIC_DOES_NOT_EXIST",
|
|
212
|
-
};
|
|
213
|
-
export const AssessmentRunState = {
|
|
214
|
-
CANCELED: "CANCELED",
|
|
215
|
-
COLLECTING_DATA: "COLLECTING_DATA",
|
|
216
|
-
COMPLETED: "COMPLETED",
|
|
217
|
-
COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
|
|
218
|
-
CREATED: "CREATED",
|
|
219
|
-
DATA_COLLECTED: "DATA_COLLECTED",
|
|
220
|
-
ERROR: "ERROR",
|
|
221
|
-
EVALUATING_RULES: "EVALUATING_RULES",
|
|
222
|
-
FAILED: "FAILED",
|
|
223
|
-
START_DATA_COLLECTION_IN_PROGRESS: "START_DATA_COLLECTION_IN_PROGRESS",
|
|
224
|
-
START_DATA_COLLECTION_PENDING: "START_DATA_COLLECTION_PENDING",
|
|
225
|
-
START_EVALUATING_RULES_PENDING: "START_EVALUATING_RULES_PENDING",
|
|
226
|
-
STOP_DATA_COLLECTION_PENDING: "STOP_DATA_COLLECTION_PENDING",
|
|
227
|
-
};
|
|
228
|
-
export class AssessmentRunInProgressException extends __BaseException {
|
|
229
|
-
name = "AssessmentRunInProgressException";
|
|
230
|
-
$fault = "client";
|
|
231
|
-
assessmentRunArns;
|
|
232
|
-
assessmentRunArnsTruncated;
|
|
233
|
-
canRetry;
|
|
234
|
-
constructor(opts) {
|
|
235
|
-
super({
|
|
236
|
-
name: "AssessmentRunInProgressException",
|
|
237
|
-
$fault: "client",
|
|
238
|
-
...opts,
|
|
239
|
-
});
|
|
240
|
-
Object.setPrototypeOf(this, AssessmentRunInProgressException.prototype);
|
|
241
|
-
this.assessmentRunArns = opts.assessmentRunArns;
|
|
242
|
-
this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
|
|
243
|
-
this.canRetry = opts.canRetry;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
export const AssetType = {
|
|
247
|
-
EC2_INSTANCE: "ec2-instance",
|
|
248
|
-
};
|
|
249
|
-
export const InvalidCrossAccountRoleErrorCode = {
|
|
250
|
-
ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP: "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP",
|
|
251
|
-
ROLE_DOES_NOT_HAVE_CORRECT_POLICY: "ROLE_DOES_NOT_HAVE_CORRECT_POLICY",
|
|
252
|
-
};
|
|
253
|
-
export class InvalidCrossAccountRoleException extends __BaseException {
|
|
254
|
-
name = "InvalidCrossAccountRoleException";
|
|
255
|
-
$fault = "client";
|
|
256
|
-
errorCode;
|
|
257
|
-
canRetry;
|
|
258
|
-
constructor(opts) {
|
|
259
|
-
super({
|
|
260
|
-
name: "InvalidCrossAccountRoleException",
|
|
261
|
-
$fault: "client",
|
|
262
|
-
...opts,
|
|
263
|
-
});
|
|
264
|
-
Object.setPrototypeOf(this, InvalidCrossAccountRoleException.prototype);
|
|
265
|
-
this.errorCode = opts.errorCode;
|
|
266
|
-
this.canRetry = opts.canRetry;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
export const LimitExceededErrorCode = {
|
|
270
|
-
ASSESSMENT_RUN_LIMIT_EXCEEDED: "ASSESSMENT_RUN_LIMIT_EXCEEDED",
|
|
271
|
-
ASSESSMENT_TARGET_LIMIT_EXCEEDED: "ASSESSMENT_TARGET_LIMIT_EXCEEDED",
|
|
272
|
-
ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED: "ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED",
|
|
273
|
-
EVENT_SUBSCRIPTION_LIMIT_EXCEEDED: "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED",
|
|
274
|
-
RESOURCE_GROUP_LIMIT_EXCEEDED: "RESOURCE_GROUP_LIMIT_EXCEEDED",
|
|
275
|
-
};
|
|
276
|
-
export class LimitExceededException extends __BaseException {
|
|
277
|
-
name = "LimitExceededException";
|
|
278
|
-
$fault = "client";
|
|
279
|
-
errorCode;
|
|
280
|
-
canRetry;
|
|
281
|
-
constructor(opts) {
|
|
282
|
-
super({
|
|
283
|
-
name: "LimitExceededException",
|
|
284
|
-
$fault: "client",
|
|
285
|
-
...opts,
|
|
286
|
-
});
|
|
287
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
288
|
-
this.errorCode = opts.errorCode;
|
|
289
|
-
this.canRetry = opts.canRetry;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
export class PreviewGenerationInProgressException extends __BaseException {
|
|
293
|
-
name = "PreviewGenerationInProgressException";
|
|
294
|
-
$fault = "client";
|
|
295
|
-
constructor(opts) {
|
|
296
|
-
super({
|
|
297
|
-
name: "PreviewGenerationInProgressException",
|
|
298
|
-
$fault: "client",
|
|
299
|
-
...opts,
|
|
300
|
-
});
|
|
301
|
-
Object.setPrototypeOf(this, PreviewGenerationInProgressException.prototype);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
export const Locale = {
|
|
305
|
-
EN_US: "EN_US",
|
|
306
|
-
};
|
|
307
|
-
export const ScopeType = {
|
|
308
|
-
INSTANCE_ID: "INSTANCE_ID",
|
|
309
|
-
RULES_PACKAGE_ARN: "RULES_PACKAGE_ARN",
|
|
310
|
-
};
|
|
311
|
-
export const ReportFileFormat = {
|
|
312
|
-
HTML: "HTML",
|
|
313
|
-
PDF: "PDF",
|
|
314
|
-
};
|
|
315
|
-
export const ReportType = {
|
|
316
|
-
FINDING: "FINDING",
|
|
317
|
-
FULL: "FULL",
|
|
318
|
-
};
|
|
319
|
-
export const ReportStatus = {
|
|
320
|
-
COMPLETED: "COMPLETED",
|
|
321
|
-
FAILED: "FAILED",
|
|
322
|
-
WORK_IN_PROGRESS: "WORK_IN_PROGRESS",
|
|
323
|
-
};
|
|
324
|
-
export class UnsupportedFeatureException extends __BaseException {
|
|
325
|
-
name = "UnsupportedFeatureException";
|
|
326
|
-
$fault = "client";
|
|
327
|
-
canRetry;
|
|
328
|
-
constructor(opts) {
|
|
329
|
-
super({
|
|
330
|
-
name: "UnsupportedFeatureException",
|
|
331
|
-
$fault: "client",
|
|
332
|
-
...opts,
|
|
333
|
-
});
|
|
334
|
-
Object.setPrototypeOf(this, UnsupportedFeatureException.prototype);
|
|
335
|
-
this.canRetry = opts.canRetry;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
export const PreviewStatus = {
|
|
339
|
-
COMPLETED: "COMPLETED",
|
|
340
|
-
WORK_IN_PROGRESS: "WORK_IN_PROGRESS",
|
|
341
|
-
};
|
|
342
|
-
export const StopAction = {
|
|
343
|
-
SKIP_EVALUATION: "SKIP_EVALUATION",
|
|
344
|
-
START_EVALUATION: "START_EVALUATION",
|
|
345
|
-
};
|
|
1
|
+
export {};
|
|
@@ -320,7 +320,7 @@ const _va = "valid";
|
|
|
320
320
|
const _ve = "version";
|
|
321
321
|
const n0 = "com.amazonaws.inspector";
|
|
322
322
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
323
|
-
import { AccessDeniedException as __AccessDeniedException, AgentsAlreadyRunningAssessmentException as __AgentsAlreadyRunningAssessmentException, AssessmentRunInProgressException as __AssessmentRunInProgressException, InternalException as __InternalException, InvalidCrossAccountRoleException as __InvalidCrossAccountRoleException, InvalidInputException as __InvalidInputException, LimitExceededException as __LimitExceededException, NoSuchEntityException as __NoSuchEntityException, PreviewGenerationInProgressException as __PreviewGenerationInProgressException, ServiceTemporarilyUnavailableException as __ServiceTemporarilyUnavailableException, UnsupportedFeatureException as __UnsupportedFeatureException, } from "../models/
|
|
323
|
+
import { AccessDeniedException as __AccessDeniedException, AgentsAlreadyRunningAssessmentException as __AgentsAlreadyRunningAssessmentException, AssessmentRunInProgressException as __AssessmentRunInProgressException, InternalException as __InternalException, InvalidCrossAccountRoleException as __InvalidCrossAccountRoleException, InvalidInputException as __InvalidInputException, LimitExceededException as __LimitExceededException, NoSuchEntityException as __NoSuchEntityException, PreviewGenerationInProgressException as __PreviewGenerationInProgressException, ServiceTemporarilyUnavailableException as __ServiceTemporarilyUnavailableException, UnsupportedFeatureException as __UnsupportedFeatureException, } from "../models/errors";
|
|
324
324
|
import { InspectorServiceException as __InspectorServiceException } from "../models/InspectorServiceException";
|
|
325
325
|
export var AccessDeniedException = [
|
|
326
326
|
-3,
|
package/dist-types/index.d.ts
CHANGED
|
@@ -13,5 +13,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
13
13
|
export type { InspectorExtensionConfiguration } from "./extensionConfiguration";
|
|
14
14
|
export * from "./commands";
|
|
15
15
|
export * from "./pagination";
|
|
16
|
-
export * from "./models";
|
|
16
|
+
export * from "./models/enums";
|
|
17
|
+
export * from "./models/errors";
|
|
18
|
+
export type * from "./models/models_0";
|
|
17
19
|
export { InspectorServiceException } from "./models/InspectorServiceException";
|