@aws-sdk/client-inspector 3.721.0 → 3.723.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.
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class InspectorClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -10,14 +10,16 @@ export const AccessDeniedErrorCode = {
10
10
  ACCESS_DENIED_TO_SNS_TOPIC: "ACCESS_DENIED_TO_SNS_TOPIC",
11
11
  };
12
12
  export class AccessDeniedException extends __BaseException {
13
+ name = "AccessDeniedException";
14
+ $fault = "client";
15
+ errorCode;
16
+ canRetry;
13
17
  constructor(opts) {
14
18
  super({
15
19
  name: "AccessDeniedException",
16
20
  $fault: "client",
17
21
  ...opts,
18
22
  });
19
- this.name = "AccessDeniedException";
20
- this.$fault = "client";
21
23
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
22
24
  this.errorCode = opts.errorCode;
23
25
  this.canRetry = opts.canRetry;
@@ -32,14 +34,15 @@ export const FailedItemErrorCode = {
32
34
  LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
33
35
  };
34
36
  export class InternalException extends __BaseException {
37
+ name = "InternalException";
38
+ $fault = "server";
39
+ canRetry;
35
40
  constructor(opts) {
36
41
  super({
37
42
  name: "InternalException",
38
43
  $fault: "server",
39
44
  ...opts,
40
45
  });
41
- this.name = "InternalException";
42
- this.$fault = "server";
43
46
  Object.setPrototypeOf(this, InternalException.prototype);
44
47
  this.canRetry = opts.canRetry;
45
48
  }
@@ -101,14 +104,16 @@ export const InvalidInputErrorCode = {
101
104
  INVALID_USER_ATTRIBUTE_VALUE: "INVALID_USER_ATTRIBUTE_VALUE",
102
105
  };
103
106
  export class InvalidInputException extends __BaseException {
107
+ name = "InvalidInputException";
108
+ $fault = "client";
109
+ errorCode;
110
+ canRetry;
104
111
  constructor(opts) {
105
112
  super({
106
113
  name: "InvalidInputException",
107
114
  $fault: "client",
108
115
  ...opts,
109
116
  });
110
- this.name = "InvalidInputException";
111
- this.$fault = "client";
112
117
  Object.setPrototypeOf(this, InvalidInputException.prototype);
113
118
  this.errorCode = opts.errorCode;
114
119
  this.canRetry = opts.canRetry;
@@ -125,28 +130,31 @@ export const NoSuchEntityErrorCode = {
125
130
  SNS_TOPIC_DOES_NOT_EXIST: "SNS_TOPIC_DOES_NOT_EXIST",
126
131
  };
127
132
  export class NoSuchEntityException extends __BaseException {
133
+ name = "NoSuchEntityException";
134
+ $fault = "client";
135
+ errorCode;
136
+ canRetry;
128
137
  constructor(opts) {
129
138
  super({
130
139
  name: "NoSuchEntityException",
131
140
  $fault: "client",
132
141
  ...opts,
133
142
  });
134
- this.name = "NoSuchEntityException";
135
- this.$fault = "client";
136
143
  Object.setPrototypeOf(this, NoSuchEntityException.prototype);
137
144
  this.errorCode = opts.errorCode;
138
145
  this.canRetry = opts.canRetry;
139
146
  }
140
147
  }
141
148
  export class ServiceTemporarilyUnavailableException extends __BaseException {
149
+ name = "ServiceTemporarilyUnavailableException";
150
+ $fault = "server";
151
+ canRetry;
142
152
  constructor(opts) {
143
153
  super({
144
154
  name: "ServiceTemporarilyUnavailableException",
145
155
  $fault: "server",
146
156
  ...opts,
147
157
  });
148
- this.name = "ServiceTemporarilyUnavailableException";
149
- this.$fault = "server";
150
158
  Object.setPrototypeOf(this, ServiceTemporarilyUnavailableException.prototype);
151
159
  this.canRetry = opts.canRetry;
152
160
  }
@@ -165,14 +173,17 @@ export const AgentHealth = {
165
173
  UNKNOWN: "UNKNOWN",
166
174
  };
167
175
  export class AgentsAlreadyRunningAssessmentException extends __BaseException {
176
+ name = "AgentsAlreadyRunningAssessmentException";
177
+ $fault = "client";
178
+ agents;
179
+ agentsTruncated;
180
+ canRetry;
168
181
  constructor(opts) {
169
182
  super({
170
183
  name: "AgentsAlreadyRunningAssessmentException",
171
184
  $fault: "client",
172
185
  ...opts,
173
186
  });
174
- this.name = "AgentsAlreadyRunningAssessmentException";
175
- this.$fault = "client";
176
187
  Object.setPrototypeOf(this, AgentsAlreadyRunningAssessmentException.prototype);
177
188
  this.agents = opts.agents;
178
189
  this.agentsTruncated = opts.agentsTruncated;
@@ -215,14 +226,17 @@ export const AssessmentRunState = {
215
226
  STOP_DATA_COLLECTION_PENDING: "STOP_DATA_COLLECTION_PENDING",
216
227
  };
217
228
  export class AssessmentRunInProgressException extends __BaseException {
229
+ name = "AssessmentRunInProgressException";
230
+ $fault = "client";
231
+ assessmentRunArns;
232
+ assessmentRunArnsTruncated;
233
+ canRetry;
218
234
  constructor(opts) {
219
235
  super({
220
236
  name: "AssessmentRunInProgressException",
221
237
  $fault: "client",
222
238
  ...opts,
223
239
  });
224
- this.name = "AssessmentRunInProgressException";
225
- this.$fault = "client";
226
240
  Object.setPrototypeOf(this, AssessmentRunInProgressException.prototype);
227
241
  this.assessmentRunArns = opts.assessmentRunArns;
228
242
  this.assessmentRunArnsTruncated = opts.assessmentRunArnsTruncated;
@@ -237,14 +251,16 @@ export const InvalidCrossAccountRoleErrorCode = {
237
251
  ROLE_DOES_NOT_HAVE_CORRECT_POLICY: "ROLE_DOES_NOT_HAVE_CORRECT_POLICY",
238
252
  };
239
253
  export class InvalidCrossAccountRoleException extends __BaseException {
254
+ name = "InvalidCrossAccountRoleException";
255
+ $fault = "client";
256
+ errorCode;
257
+ canRetry;
240
258
  constructor(opts) {
241
259
  super({
242
260
  name: "InvalidCrossAccountRoleException",
243
261
  $fault: "client",
244
262
  ...opts,
245
263
  });
246
- this.name = "InvalidCrossAccountRoleException";
247
- this.$fault = "client";
248
264
  Object.setPrototypeOf(this, InvalidCrossAccountRoleException.prototype);
249
265
  this.errorCode = opts.errorCode;
250
266
  this.canRetry = opts.canRetry;
@@ -258,28 +274,30 @@ export const LimitExceededErrorCode = {
258
274
  RESOURCE_GROUP_LIMIT_EXCEEDED: "RESOURCE_GROUP_LIMIT_EXCEEDED",
259
275
  };
260
276
  export class LimitExceededException extends __BaseException {
277
+ name = "LimitExceededException";
278
+ $fault = "client";
279
+ errorCode;
280
+ canRetry;
261
281
  constructor(opts) {
262
282
  super({
263
283
  name: "LimitExceededException",
264
284
  $fault: "client",
265
285
  ...opts,
266
286
  });
267
- this.name = "LimitExceededException";
268
- this.$fault = "client";
269
287
  Object.setPrototypeOf(this, LimitExceededException.prototype);
270
288
  this.errorCode = opts.errorCode;
271
289
  this.canRetry = opts.canRetry;
272
290
  }
273
291
  }
274
292
  export class PreviewGenerationInProgressException extends __BaseException {
293
+ name = "PreviewGenerationInProgressException";
294
+ $fault = "client";
275
295
  constructor(opts) {
276
296
  super({
277
297
  name: "PreviewGenerationInProgressException",
278
298
  $fault: "client",
279
299
  ...opts,
280
300
  });
281
- this.name = "PreviewGenerationInProgressException";
282
- this.$fault = "client";
283
301
  Object.setPrototypeOf(this, PreviewGenerationInProgressException.prototype);
284
302
  }
285
303
  }
@@ -304,14 +322,15 @@ export const ReportStatus = {
304
322
  WORK_IN_PROGRESS: "WORK_IN_PROGRESS",
305
323
  };
306
324
  export class UnsupportedFeatureException extends __BaseException {
325
+ name = "UnsupportedFeatureException";
326
+ $fault = "client";
327
+ canRetry;
307
328
  constructor(opts) {
308
329
  super({
309
330
  name: "UnsupportedFeatureException",
310
331
  $fault: "client",
311
332
  ...opts,
312
333
  });
313
- this.name = "UnsupportedFeatureException";
314
- this.$fault = "client";
315
334
  Object.setPrototypeOf(this, UnsupportedFeatureException.prototype);
316
335
  this.canRetry = opts.canRetry;
317
336
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: InspectorClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: InspectorClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: InspectorClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: InspectorClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: InspectorClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: InspectorClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: InspectorClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: InspectorClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-inspector",
3
3
  "description": "AWS SDK for JavaScript Inspector Client for Node.js, Browser and React Native",
4
- "version": "3.721.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-inspector",
@@ -20,56 +20,56 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.721.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tsconfig/node16": "16.1.3",
65
- "@types/node": "^16.18.96",
64
+ "@tsconfig/node18": "18.2.4",
65
+ "@types/node": "^18.19.69",
66
66
  "concurrently": "7.0.0",
67
67
  "downlevel-dts": "0.10.1",
68
68
  "rimraf": "3.0.2",
69
- "typescript": "~4.9.5"
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16.0.0"
72
+ "node": ">=18.0.0"
73
73
  },
74
74
  "typesVersions": {
75
75
  "<4.0": {