@aws-sdk/client-shield 3.721.0 → 3.726.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 ShieldClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,25 +1,25 @@
1
1
  import { ShieldServiceException as __BaseException } from "./ShieldServiceException";
2
2
  export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
3
5
  constructor(opts) {
4
6
  super({
5
7
  name: "AccessDeniedException",
6
8
  $fault: "client",
7
9
  ...opts,
8
10
  });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
14
14
  export class AccessDeniedForDependencyException extends __BaseException {
15
+ name = "AccessDeniedForDependencyException";
16
+ $fault = "client";
15
17
  constructor(opts) {
16
18
  super({
17
19
  name: "AccessDeniedForDependencyException",
18
20
  $fault: "client",
19
21
  ...opts,
20
22
  });
21
- this.name = "AccessDeniedForDependencyException";
22
- this.$fault = "client";
23
23
  Object.setPrototypeOf(this, AccessDeniedForDependencyException.prototype);
24
24
  }
25
25
  }
@@ -28,26 +28,26 @@ export const ApplicationLayerAutomaticResponseStatus = {
28
28
  ENABLED: "ENABLED",
29
29
  };
30
30
  export class InternalErrorException extends __BaseException {
31
+ name = "InternalErrorException";
32
+ $fault = "server";
31
33
  constructor(opts) {
32
34
  super({
33
35
  name: "InternalErrorException",
34
36
  $fault: "server",
35
37
  ...opts,
36
38
  });
37
- this.name = "InternalErrorException";
38
- this.$fault = "server";
39
39
  Object.setPrototypeOf(this, InternalErrorException.prototype);
40
40
  }
41
41
  }
42
42
  export class InvalidOperationException extends __BaseException {
43
+ name = "InvalidOperationException";
44
+ $fault = "client";
43
45
  constructor(opts) {
44
46
  super({
45
47
  name: "InvalidOperationException",
46
48
  $fault: "client",
47
49
  ...opts,
48
50
  });
49
- this.name = "InvalidOperationException";
50
- this.$fault = "client";
51
51
  Object.setPrototypeOf(this, InvalidOperationException.prototype);
52
52
  }
53
53
  }
@@ -56,79 +56,84 @@ export const ValidationExceptionReason = {
56
56
  OTHER: "OTHER",
57
57
  };
58
58
  export class InvalidParameterException extends __BaseException {
59
+ name = "InvalidParameterException";
60
+ $fault = "client";
61
+ reason;
62
+ fields;
59
63
  constructor(opts) {
60
64
  super({
61
65
  name: "InvalidParameterException",
62
66
  $fault: "client",
63
67
  ...opts,
64
68
  });
65
- this.name = "InvalidParameterException";
66
- this.$fault = "client";
67
69
  Object.setPrototypeOf(this, InvalidParameterException.prototype);
68
70
  this.reason = opts.reason;
69
71
  this.fields = opts.fields;
70
72
  }
71
73
  }
72
74
  export class LimitsExceededException extends __BaseException {
75
+ name = "LimitsExceededException";
76
+ $fault = "client";
77
+ Type;
78
+ Limit;
73
79
  constructor(opts) {
74
80
  super({
75
81
  name: "LimitsExceededException",
76
82
  $fault: "client",
77
83
  ...opts,
78
84
  });
79
- this.name = "LimitsExceededException";
80
- this.$fault = "client";
81
85
  Object.setPrototypeOf(this, LimitsExceededException.prototype);
82
86
  this.Type = opts.Type;
83
87
  this.Limit = opts.Limit;
84
88
  }
85
89
  }
86
90
  export class NoAssociatedRoleException extends __BaseException {
91
+ name = "NoAssociatedRoleException";
92
+ $fault = "client";
87
93
  constructor(opts) {
88
94
  super({
89
95
  name: "NoAssociatedRoleException",
90
96
  $fault: "client",
91
97
  ...opts,
92
98
  });
93
- this.name = "NoAssociatedRoleException";
94
- this.$fault = "client";
95
99
  Object.setPrototypeOf(this, NoAssociatedRoleException.prototype);
96
100
  }
97
101
  }
98
102
  export class OptimisticLockException extends __BaseException {
103
+ name = "OptimisticLockException";
104
+ $fault = "client";
99
105
  constructor(opts) {
100
106
  super({
101
107
  name: "OptimisticLockException",
102
108
  $fault: "client",
103
109
  ...opts,
104
110
  });
105
- this.name = "OptimisticLockException";
106
- this.$fault = "client";
107
111
  Object.setPrototypeOf(this, OptimisticLockException.prototype);
108
112
  }
109
113
  }
110
114
  export class ResourceNotFoundException extends __BaseException {
115
+ name = "ResourceNotFoundException";
116
+ $fault = "client";
117
+ resourceType;
111
118
  constructor(opts) {
112
119
  super({
113
120
  name: "ResourceNotFoundException",
114
121
  $fault: "client",
115
122
  ...opts,
116
123
  });
117
- this.name = "ResourceNotFoundException";
118
- this.$fault = "client";
119
124
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
120
125
  this.resourceType = opts.resourceType;
121
126
  }
122
127
  }
123
128
  export class InvalidResourceException extends __BaseException {
129
+ name = "InvalidResourceException";
130
+ $fault = "client";
124
131
  constructor(opts) {
125
132
  super({
126
133
  name: "InvalidResourceException",
127
134
  $fault: "client",
128
135
  ...opts,
129
136
  });
130
- this.name = "InvalidResourceException";
131
- this.$fault = "client";
132
137
  Object.setPrototypeOf(this, InvalidResourceException.prototype);
133
138
  }
134
139
  }
@@ -161,14 +166,15 @@ export const AutoRenew = {
161
166
  ENABLED: "ENABLED",
162
167
  };
163
168
  export class ResourceAlreadyExistsException extends __BaseException {
169
+ name = "ResourceAlreadyExistsException";
170
+ $fault = "client";
171
+ resourceType;
164
172
  constructor(opts) {
165
173
  super({
166
174
  name: "ResourceAlreadyExistsException",
167
175
  $fault: "client",
168
176
  ...opts,
169
177
  });
170
- this.name = "ResourceAlreadyExistsException";
171
- this.$fault = "client";
172
178
  Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
173
179
  this.resourceType = opts.resourceType;
174
180
  }
@@ -192,14 +198,14 @@ export const ProtectedResourceType = {
192
198
  ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE",
193
199
  };
194
200
  export class LockedSubscriptionException extends __BaseException {
201
+ name = "LockedSubscriptionException";
202
+ $fault = "client";
195
203
  constructor(opts) {
196
204
  super({
197
205
  name: "LockedSubscriptionException",
198
206
  $fault: "client",
199
207
  ...opts,
200
208
  });
201
- this.name = "LockedSubscriptionException";
202
- this.$fault = "client";
203
209
  Object.setPrototypeOf(this, LockedSubscriptionException.prototype);
204
210
  }
205
211
  }
@@ -213,14 +219,14 @@ export const SubscriptionState = {
213
219
  INACTIVE: "INACTIVE",
214
220
  };
215
221
  export class InvalidPaginationTokenException extends __BaseException {
222
+ name = "InvalidPaginationTokenException";
223
+ $fault = "client";
216
224
  constructor(opts) {
217
225
  super({
218
226
  name: "InvalidPaginationTokenException",
219
227
  $fault: "client",
220
228
  ...opts,
221
229
  });
222
- this.name = "InvalidPaginationTokenException";
223
- this.$fault = "client";
224
230
  Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
225
231
  }
226
232
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: ShieldClientConfig) => {
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: ShieldClientConfig) => {
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: ShieldClientConfig) => {
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: ShieldClientConfig) => {
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: ShieldClientConfig) => {
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: ShieldClientConfig) => {
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: ShieldClientConfig) => {
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: ShieldClientConfig) => {
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-shield",
3
3
  "description": "AWS SDK for JavaScript Shield Client for Node.js, Browser and React Native",
4
- "version": "3.721.0",
4
+ "version": "3.726.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-shield",
@@ -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.726.0",
24
+ "@aws-sdk/client-sts": "3.726.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.726.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.726.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.726.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.726.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": {