@aws-sdk/client-glacier 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.
@@ -15,6 +15,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
15
15
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
16
16
  export { __Client };
17
17
  export class GlacierClient extends __Client {
18
+ config;
18
19
  constructor(...[configuration]) {
19
20
  const _config_0 = __getRuntimeConfig(configuration || {});
20
21
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,55 +1,63 @@
1
1
  import { GlacierServiceException as __BaseException } from "./GlacierServiceException";
2
2
  export class InvalidParameterValueException extends __BaseException {
3
+ name = "InvalidParameterValueException";
4
+ $fault = "client";
5
+ type;
6
+ code;
3
7
  constructor(opts) {
4
8
  super({
5
9
  name: "InvalidParameterValueException",
6
10
  $fault: "client",
7
11
  ...opts,
8
12
  });
9
- this.name = "InvalidParameterValueException";
10
- this.$fault = "client";
11
13
  Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
12
14
  this.type = opts.type;
13
15
  this.code = opts.code;
14
16
  }
15
17
  }
16
18
  export class MissingParameterValueException extends __BaseException {
19
+ name = "MissingParameterValueException";
20
+ $fault = "client";
21
+ type;
22
+ code;
17
23
  constructor(opts) {
18
24
  super({
19
25
  name: "MissingParameterValueException",
20
26
  $fault: "client",
21
27
  ...opts,
22
28
  });
23
- this.name = "MissingParameterValueException";
24
- this.$fault = "client";
25
29
  Object.setPrototypeOf(this, MissingParameterValueException.prototype);
26
30
  this.type = opts.type;
27
31
  this.code = opts.code;
28
32
  }
29
33
  }
30
34
  export class ResourceNotFoundException extends __BaseException {
35
+ name = "ResourceNotFoundException";
36
+ $fault = "client";
37
+ type;
38
+ code;
31
39
  constructor(opts) {
32
40
  super({
33
41
  name: "ResourceNotFoundException",
34
42
  $fault: "client",
35
43
  ...opts,
36
44
  });
37
- this.name = "ResourceNotFoundException";
38
- this.$fault = "client";
39
45
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
40
46
  this.type = opts.type;
41
47
  this.code = opts.code;
42
48
  }
43
49
  }
44
50
  export class ServiceUnavailableException extends __BaseException {
51
+ name = "ServiceUnavailableException";
52
+ $fault = "server";
53
+ type;
54
+ code;
45
55
  constructor(opts) {
46
56
  super({
47
57
  name: "ServiceUnavailableException",
48
58
  $fault: "server",
49
59
  ...opts,
50
60
  });
51
- this.name = "ServiceUnavailableException";
52
- this.$fault = "server";
53
61
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
54
62
  this.type = opts.type;
55
63
  this.code = opts.code;
@@ -73,14 +81,16 @@ export const ActionCode = {
73
81
  Select: "Select",
74
82
  };
75
83
  export class LimitExceededException extends __BaseException {
84
+ name = "LimitExceededException";
85
+ $fault = "client";
86
+ type;
87
+ code;
76
88
  constructor(opts) {
77
89
  super({
78
90
  name: "LimitExceededException",
79
91
  $fault: "client",
80
92
  ...opts,
81
93
  });
82
- this.name = "LimitExceededException";
83
- this.$fault = "client";
84
94
  Object.setPrototypeOf(this, LimitExceededException.prototype);
85
95
  this.type = opts.type;
86
96
  this.code = opts.code;
@@ -122,42 +132,48 @@ export const StatusCode = {
122
132
  Succeeded: "Succeeded",
123
133
  };
124
134
  export class InsufficientCapacityException extends __BaseException {
135
+ name = "InsufficientCapacityException";
136
+ $fault = "client";
137
+ type;
138
+ code;
125
139
  constructor(opts) {
126
140
  super({
127
141
  name: "InsufficientCapacityException",
128
142
  $fault: "client",
129
143
  ...opts,
130
144
  });
131
- this.name = "InsufficientCapacityException";
132
- this.$fault = "client";
133
145
  Object.setPrototypeOf(this, InsufficientCapacityException.prototype);
134
146
  this.type = opts.type;
135
147
  this.code = opts.code;
136
148
  }
137
149
  }
138
150
  export class PolicyEnforcedException extends __BaseException {
151
+ name = "PolicyEnforcedException";
152
+ $fault = "client";
153
+ type;
154
+ code;
139
155
  constructor(opts) {
140
156
  super({
141
157
  name: "PolicyEnforcedException",
142
158
  $fault: "client",
143
159
  ...opts,
144
160
  });
145
- this.name = "PolicyEnforcedException";
146
- this.$fault = "client";
147
161
  Object.setPrototypeOf(this, PolicyEnforcedException.prototype);
148
162
  this.type = opts.type;
149
163
  this.code = opts.code;
150
164
  }
151
165
  }
152
166
  export class RequestTimeoutException extends __BaseException {
167
+ name = "RequestTimeoutException";
168
+ $fault = "client";
169
+ type;
170
+ code;
153
171
  constructor(opts) {
154
172
  super({
155
173
  name: "RequestTimeoutException",
156
174
  $fault: "client",
157
175
  ...opts,
158
176
  });
159
- this.name = "RequestTimeoutException";
160
- this.$fault = "client";
161
177
  Object.setPrototypeOf(this, RequestTimeoutException.prototype);
162
178
  this.type = opts.type;
163
179
  this.code = opts.code;
@@ -11,7 +11,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
11
11
  utf8Decoder: import("@smithy/types").Decoder;
12
12
  }) => Promise<[string, string]>;
13
13
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
14
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
15
15
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
16
16
  maxAttempts: number | import("@smithy/types").Provider<number>;
17
17
  region: string | import("@smithy/types").Provider<any>;
@@ -11,7 +11,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
11
11
  utf8Decoder: import("@smithy/types").Decoder;
12
12
  }) => Promise<[string, string]>;
13
13
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
14
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
15
15
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
16
16
  maxAttempts: number | import("@smithy/types").Provider<number>;
17
17
  region: string | import("@smithy/types").Provider<string>;
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
26
26
  utf8Decoder: import("@smithy/types").Decoder;
27
27
  }) => Promise<[string, string]>;
28
28
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
29
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
29
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
30
30
  maxAttempts: number | import("@smithy/types").Provider<number>;
31
31
  retryMode: string | import("@smithy/types").Provider<string>;
32
32
  logger: import("@smithy/types").Logger;
@@ -36,7 +36,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
36
36
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
37
37
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
38
38
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
- 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;
39
+ 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;
40
40
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
41
41
  logger?: import("@smithy/types").Logger | undefined;
42
42
  }) => import("@smithy/types").EndpointV2;
@@ -15,9 +15,11 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
15
15
  }
16
16
  ) => Promise<[string, string]>;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- credentialDefaultProvider: (
19
- input: any
20
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
18
+ credentialDefaultProvider:
19
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
20
+ | ((
21
+ _: unknown
22
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
21
23
  defaultUserAgentProvider: (
22
24
  config?:
23
25
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -15,13 +15,15 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
15
15
  }
16
16
  ) => Promise<[string, string]>;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- credentialDefaultProvider: (
19
- init?:
20
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
21
- | undefined
22
- ) => import("@smithy/types").MemoizedProvider<
23
- import("@smithy/types").AwsCredentialIdentity
24
- >;
18
+ credentialDefaultProvider:
19
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
20
+ | ((
21
+ init?:
22
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
23
+ | undefined
24
+ ) => import("@smithy/types").MemoizedProvider<
25
+ import("@smithy/types").AwsCredentialIdentity
26
+ >);
25
27
  defaultUserAgentProvider: (
26
28
  config?:
27
29
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -37,9 +37,11 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
37
37
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
38
38
  | undefined
39
39
  ) => Promise<import("@smithy/types").UserAgent>;
40
- credentialDefaultProvider: (
41
- input: any
42
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
40
+ credentialDefaultProvider:
41
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
42
+ | ((
43
+ _: unknown
44
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
43
45
  maxAttempts: number | import("@smithy/types").Provider<number>;
44
46
  retryMode: string | import("@smithy/types").Provider<string>;
45
47
  logger: import("@smithy/types").Logger;
@@ -60,11 +62,21 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
60
62
  | import("@smithy/types").RetryStrategyV2
61
63
  | undefined;
62
64
  endpoint?:
63
- | string
64
- | import("@smithy/types").Endpoint
65
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
66
- | import("@smithy/types").EndpointV2
67
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
65
+ | ((
66
+ | string
67
+ | import("@smithy/types").Endpoint
68
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
69
+ | import("@smithy/types").EndpointV2
70
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
71
+ ) &
72
+ (
73
+ | string
74
+ | import("@smithy/types").Provider<string>
75
+ | import("@smithy/types").Endpoint
76
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
77
+ | import("@smithy/types").EndpointV2
78
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
79
+ ))
68
80
  | undefined;
69
81
  endpointProvider: (
70
82
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-glacier",
3
3
  "description": "AWS SDK for JavaScript Glacier 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-glacier",
@@ -20,61 +20,61 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/body-checksum-browser": "3.714.0",
24
- "@aws-sdk/body-checksum-node": "3.714.0",
25
- "@aws-sdk/client-sso-oidc": "3.721.0",
26
- "@aws-sdk/client-sts": "3.721.0",
27
- "@aws-sdk/core": "3.716.0",
28
- "@aws-sdk/credential-provider-node": "3.721.0",
29
- "@aws-sdk/middleware-host-header": "3.714.0",
30
- "@aws-sdk/middleware-logger": "3.714.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
32
- "@aws-sdk/middleware-sdk-glacier": "3.714.0",
33
- "@aws-sdk/middleware-user-agent": "3.721.0",
34
- "@aws-sdk/region-config-resolver": "3.714.0",
35
- "@aws-sdk/types": "3.714.0",
36
- "@aws-sdk/util-endpoints": "3.714.0",
37
- "@aws-sdk/util-user-agent-browser": "3.714.0",
38
- "@aws-sdk/util-user-agent-node": "3.721.0",
39
- "@smithy/config-resolver": "^3.0.13",
40
- "@smithy/core": "^2.5.5",
41
- "@smithy/fetch-http-handler": "^4.1.2",
42
- "@smithy/hash-node": "^3.0.11",
43
- "@smithy/invalid-dependency": "^3.0.11",
44
- "@smithy/middleware-content-length": "^3.0.13",
45
- "@smithy/middleware-endpoint": "^3.2.6",
46
- "@smithy/middleware-retry": "^3.0.31",
47
- "@smithy/middleware-serde": "^3.0.11",
48
- "@smithy/middleware-stack": "^3.0.11",
49
- "@smithy/node-config-provider": "^3.1.12",
50
- "@smithy/node-http-handler": "^3.3.2",
51
- "@smithy/protocol-http": "^4.1.8",
52
- "@smithy/smithy-client": "^3.5.1",
53
- "@smithy/types": "^3.7.2",
54
- "@smithy/url-parser": "^3.0.11",
55
- "@smithy/util-base64": "^3.0.0",
56
- "@smithy/util-body-length-browser": "^3.0.0",
57
- "@smithy/util-body-length-node": "^3.0.0",
58
- "@smithy/util-defaults-mode-browser": "^3.0.31",
59
- "@smithy/util-defaults-mode-node": "^3.0.31",
60
- "@smithy/util-endpoints": "^2.1.7",
61
- "@smithy/util-middleware": "^3.0.11",
62
- "@smithy/util-retry": "^3.0.11",
63
- "@smithy/util-stream": "^3.3.2",
64
- "@smithy/util-utf8": "^3.0.0",
65
- "@smithy/util-waiter": "^3.2.0",
23
+ "@aws-sdk/body-checksum-browser": "3.723.0",
24
+ "@aws-sdk/body-checksum-node": "3.723.0",
25
+ "@aws-sdk/client-sso-oidc": "3.723.0",
26
+ "@aws-sdk/client-sts": "3.723.0",
27
+ "@aws-sdk/core": "3.723.0",
28
+ "@aws-sdk/credential-provider-node": "3.723.0",
29
+ "@aws-sdk/middleware-host-header": "3.723.0",
30
+ "@aws-sdk/middleware-logger": "3.723.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
32
+ "@aws-sdk/middleware-sdk-glacier": "3.723.0",
33
+ "@aws-sdk/middleware-user-agent": "3.723.0",
34
+ "@aws-sdk/region-config-resolver": "3.723.0",
35
+ "@aws-sdk/types": "3.723.0",
36
+ "@aws-sdk/util-endpoints": "3.723.0",
37
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
38
+ "@aws-sdk/util-user-agent-node": "3.723.0",
39
+ "@smithy/config-resolver": "^4.0.0",
40
+ "@smithy/core": "^3.0.0",
41
+ "@smithy/fetch-http-handler": "^5.0.0",
42
+ "@smithy/hash-node": "^4.0.0",
43
+ "@smithy/invalid-dependency": "^4.0.0",
44
+ "@smithy/middleware-content-length": "^4.0.0",
45
+ "@smithy/middleware-endpoint": "^4.0.0",
46
+ "@smithy/middleware-retry": "^4.0.0",
47
+ "@smithy/middleware-serde": "^4.0.0",
48
+ "@smithy/middleware-stack": "^4.0.0",
49
+ "@smithy/node-config-provider": "^4.0.0",
50
+ "@smithy/node-http-handler": "^4.0.0",
51
+ "@smithy/protocol-http": "^5.0.0",
52
+ "@smithy/smithy-client": "^4.0.0",
53
+ "@smithy/types": "^4.0.0",
54
+ "@smithy/url-parser": "^4.0.0",
55
+ "@smithy/util-base64": "^4.0.0",
56
+ "@smithy/util-body-length-browser": "^4.0.0",
57
+ "@smithy/util-body-length-node": "^4.0.0",
58
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
59
+ "@smithy/util-defaults-mode-node": "^4.0.0",
60
+ "@smithy/util-endpoints": "^3.0.0",
61
+ "@smithy/util-middleware": "^4.0.0",
62
+ "@smithy/util-retry": "^4.0.0",
63
+ "@smithy/util-stream": "^4.0.0",
64
+ "@smithy/util-utf8": "^4.0.0",
65
+ "@smithy/util-waiter": "^4.0.0",
66
66
  "tslib": "^2.6.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@tsconfig/node16": "16.1.3",
70
- "@types/node": "^16.18.96",
69
+ "@tsconfig/node18": "18.2.4",
70
+ "@types/node": "^18.19.69",
71
71
  "concurrently": "7.0.0",
72
72
  "downlevel-dts": "0.10.1",
73
73
  "rimraf": "3.0.2",
74
- "typescript": "~4.9.5"
74
+ "typescript": "~5.2.2"
75
75
  },
76
76
  "engines": {
77
- "node": ">=16.0.0"
77
+ "node": ">=18.0.0"
78
78
  },
79
79
  "typesVersions": {
80
80
  "<4.0": {