@aws-sdk/client-backup 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 BackupClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -6,14 +6,20 @@ export const AggregationPeriod = {
6
6
  SEVEN_DAYS: "SEVEN_DAYS",
7
7
  };
8
8
  export class AlreadyExistsException extends __BaseException {
9
+ name = "AlreadyExistsException";
10
+ $fault = "client";
11
+ Code;
12
+ Message;
13
+ CreatorRequestId;
14
+ Arn;
15
+ Type;
16
+ Context;
9
17
  constructor(opts) {
10
18
  super({
11
19
  name: "AlreadyExistsException",
12
20
  $fault: "client",
13
21
  ...opts,
14
22
  });
15
- this.name = "AlreadyExistsException";
16
- this.$fault = "client";
17
23
  Object.setPrototypeOf(this, AlreadyExistsException.prototype);
18
24
  this.Code = opts.Code;
19
25
  this.Message = opts.Message;
@@ -79,14 +85,18 @@ export const VaultType = {
79
85
  LOGICALLY_AIR_GAPPED_BACKUP_VAULT: "LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
80
86
  };
81
87
  export class InvalidParameterValueException extends __BaseException {
88
+ name = "InvalidParameterValueException";
89
+ $fault = "client";
90
+ Code;
91
+ Message;
92
+ Type;
93
+ Context;
82
94
  constructor(opts) {
83
95
  super({
84
96
  name: "InvalidParameterValueException",
85
97
  $fault: "client",
86
98
  ...opts,
87
99
  });
88
- this.name = "InvalidParameterValueException";
89
- this.$fault = "client";
90
100
  Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
91
101
  this.Code = opts.Code;
92
102
  this.Message = opts.Message;
@@ -95,14 +105,18 @@ export class InvalidParameterValueException extends __BaseException {
95
105
  }
96
106
  }
97
107
  export class InvalidResourceStateException extends __BaseException {
108
+ name = "InvalidResourceStateException";
109
+ $fault = "client";
110
+ Code;
111
+ Message;
112
+ Type;
113
+ Context;
98
114
  constructor(opts) {
99
115
  super({
100
116
  name: "InvalidResourceStateException",
101
117
  $fault: "client",
102
118
  ...opts,
103
119
  });
104
- this.name = "InvalidResourceStateException";
105
- this.$fault = "client";
106
120
  Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
107
121
  this.Code = opts.Code;
108
122
  this.Message = opts.Message;
@@ -111,14 +125,18 @@ export class InvalidResourceStateException extends __BaseException {
111
125
  }
112
126
  }
113
127
  export class MissingParameterValueException extends __BaseException {
128
+ name = "MissingParameterValueException";
129
+ $fault = "client";
130
+ Code;
131
+ Message;
132
+ Type;
133
+ Context;
114
134
  constructor(opts) {
115
135
  super({
116
136
  name: "MissingParameterValueException",
117
137
  $fault: "client",
118
138
  ...opts,
119
139
  });
120
- this.name = "MissingParameterValueException";
121
- this.$fault = "client";
122
140
  Object.setPrototypeOf(this, MissingParameterValueException.prototype);
123
141
  this.Code = opts.Code;
124
142
  this.Message = opts.Message;
@@ -127,14 +145,18 @@ export class MissingParameterValueException extends __BaseException {
127
145
  }
128
146
  }
129
147
  export class ResourceNotFoundException extends __BaseException {
148
+ name = "ResourceNotFoundException";
149
+ $fault = "client";
150
+ Code;
151
+ Message;
152
+ Type;
153
+ Context;
130
154
  constructor(opts) {
131
155
  super({
132
156
  name: "ResourceNotFoundException",
133
157
  $fault: "client",
134
158
  ...opts,
135
159
  });
136
- this.name = "ResourceNotFoundException";
137
- this.$fault = "client";
138
160
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
139
161
  this.Code = opts.Code;
140
162
  this.Message = opts.Message;
@@ -143,14 +165,18 @@ export class ResourceNotFoundException extends __BaseException {
143
165
  }
144
166
  }
145
167
  export class ServiceUnavailableException extends __BaseException {
168
+ name = "ServiceUnavailableException";
169
+ $fault = "server";
170
+ Code;
171
+ Message;
172
+ Type;
173
+ Context;
146
174
  constructor(opts) {
147
175
  super({
148
176
  name: "ServiceUnavailableException",
149
177
  $fault: "server",
150
178
  ...opts,
151
179
  });
152
- this.name = "ServiceUnavailableException";
153
- this.$fault = "server";
154
180
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
155
181
  this.Code = opts.Code;
156
182
  this.Message = opts.Message;
@@ -159,14 +185,18 @@ export class ServiceUnavailableException extends __BaseException {
159
185
  }
160
186
  }
161
187
  export class ConflictException extends __BaseException {
188
+ name = "ConflictException";
189
+ $fault = "client";
190
+ Code;
191
+ Message;
192
+ Type;
193
+ Context;
162
194
  constructor(opts) {
163
195
  super({
164
196
  name: "ConflictException",
165
197
  $fault: "client",
166
198
  ...opts,
167
199
  });
168
- this.name = "ConflictException";
169
- this.$fault = "client";
170
200
  Object.setPrototypeOf(this, ConflictException.prototype);
171
201
  this.Code = opts.Code;
172
202
  this.Message = opts.Message;
@@ -195,14 +225,18 @@ export const CopyJobStatus = {
195
225
  RUNNING: "RUNNING",
196
226
  };
197
227
  export class LimitExceededException extends __BaseException {
228
+ name = "LimitExceededException";
229
+ $fault = "client";
230
+ Code;
231
+ Message;
232
+ Type;
233
+ Context;
198
234
  constructor(opts) {
199
235
  super({
200
236
  name: "LimitExceededException",
201
237
  $fault: "client",
202
238
  ...opts,
203
239
  });
204
- this.name = "LimitExceededException";
205
- this.$fault = "client";
206
240
  Object.setPrototypeOf(this, LimitExceededException.prototype);
207
241
  this.Code = opts.Code;
208
242
  this.Message = opts.Message;
@@ -217,14 +251,18 @@ export const LegalHoldStatus = {
217
251
  CREATING: "CREATING",
218
252
  };
219
253
  export class InvalidRequestException extends __BaseException {
254
+ name = "InvalidRequestException";
255
+ $fault = "client";
256
+ Code;
257
+ Message;
258
+ Type;
259
+ Context;
220
260
  constructor(opts) {
221
261
  super({
222
262
  name: "InvalidRequestException",
223
263
  $fault: "client",
224
264
  ...opts,
225
265
  });
226
- this.name = "InvalidRequestException";
227
- this.$fault = "client";
228
266
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
229
267
  this.Code = opts.Code;
230
268
  this.Message = opts.Message;
@@ -241,14 +279,18 @@ export const RestoreTestingRecoveryPointType = {
241
279
  SNAPSHOT: "SNAPSHOT",
242
280
  };
243
281
  export class DependencyFailureException extends __BaseException {
282
+ name = "DependencyFailureException";
283
+ $fault = "server";
284
+ Code;
285
+ Message;
286
+ Type;
287
+ Context;
244
288
  constructor(opts) {
245
289
  super({
246
290
  name: "DependencyFailureException",
247
291
  $fault: "server",
248
292
  ...opts,
249
293
  });
250
- this.name = "DependencyFailureException";
251
- this.$fault = "server";
252
294
  Object.setPrototypeOf(this, DependencyFailureException.prototype);
253
295
  this.Code = opts.Code;
254
296
  this.Message = opts.Message;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: BackupClientConfig) => {
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: BackupClientConfig) => {
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: BackupClientConfig) => {
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: BackupClientConfig) => {
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: BackupClientConfig) => {
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: BackupClientConfig) => {
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: BackupClientConfig) => {
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: BackupClientConfig) => {
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-backup",
3
3
  "description": "AWS SDK for JavaScript Backup 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-backup",
@@ -20,58 +20,58 @@
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
  "@types/uuid": "^9.0.1",
62
62
  "tslib": "^2.6.2",
63
63
  "uuid": "^9.0.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@tsconfig/node16": "16.1.3",
67
- "@types/node": "^16.18.96",
66
+ "@tsconfig/node18": "18.2.4",
67
+ "@types/node": "^18.19.69",
68
68
  "concurrently": "7.0.0",
69
69
  "downlevel-dts": "0.10.1",
70
70
  "rimraf": "3.0.2",
71
- "typescript": "~4.9.5"
71
+ "typescript": "~5.2.2"
72
72
  },
73
73
  "engines": {
74
- "node": ">=16.0.0"
74
+ "node": ">=18.0.0"
75
75
  },
76
76
  "typesVersions": {
77
77
  "<4.0": {