@aws-sdk/client-glacier 3.987.0 → 3.988.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlacierServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class GlacierServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, GlacierServiceException.prototype);
10
+ }
11
+ }
12
+ exports.GlacierServiceException = GlacierServiceException;
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RequestTimeoutException = exports.PolicyEnforcedException = exports.InsufficientCapacityException = exports.LimitExceededException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.NoLongerSupportedException = exports.MissingParameterValueException = exports.InvalidParameterValueException = void 0;
4
+ const GlacierServiceException_1 = require("./GlacierServiceException");
5
+ class InvalidParameterValueException extends GlacierServiceException_1.GlacierServiceException {
6
+ name = "InvalidParameterValueException";
7
+ $fault = "client";
8
+ type;
9
+ code;
10
+ constructor(opts) {
11
+ super({
12
+ name: "InvalidParameterValueException",
13
+ $fault: "client",
14
+ ...opts,
15
+ });
16
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
17
+ this.type = opts.type;
18
+ this.code = opts.code;
19
+ }
20
+ }
21
+ exports.InvalidParameterValueException = InvalidParameterValueException;
22
+ class MissingParameterValueException extends GlacierServiceException_1.GlacierServiceException {
23
+ name = "MissingParameterValueException";
24
+ $fault = "client";
25
+ type;
26
+ code;
27
+ constructor(opts) {
28
+ super({
29
+ name: "MissingParameterValueException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ Object.setPrototypeOf(this, MissingParameterValueException.prototype);
34
+ this.type = opts.type;
35
+ this.code = opts.code;
36
+ }
37
+ }
38
+ exports.MissingParameterValueException = MissingParameterValueException;
39
+ class NoLongerSupportedException extends GlacierServiceException_1.GlacierServiceException {
40
+ name = "NoLongerSupportedException";
41
+ $fault = "client";
42
+ type;
43
+ code;
44
+ constructor(opts) {
45
+ super({
46
+ name: "NoLongerSupportedException",
47
+ $fault: "client",
48
+ ...opts,
49
+ });
50
+ Object.setPrototypeOf(this, NoLongerSupportedException.prototype);
51
+ this.type = opts.type;
52
+ this.code = opts.code;
53
+ }
54
+ }
55
+ exports.NoLongerSupportedException = NoLongerSupportedException;
56
+ class ResourceNotFoundException extends GlacierServiceException_1.GlacierServiceException {
57
+ name = "ResourceNotFoundException";
58
+ $fault = "client";
59
+ type;
60
+ code;
61
+ constructor(opts) {
62
+ super({
63
+ name: "ResourceNotFoundException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
68
+ this.type = opts.type;
69
+ this.code = opts.code;
70
+ }
71
+ }
72
+ exports.ResourceNotFoundException = ResourceNotFoundException;
73
+ class ServiceUnavailableException extends GlacierServiceException_1.GlacierServiceException {
74
+ name = "ServiceUnavailableException";
75
+ $fault = "server";
76
+ type;
77
+ code;
78
+ constructor(opts) {
79
+ super({
80
+ name: "ServiceUnavailableException",
81
+ $fault: "server",
82
+ ...opts,
83
+ });
84
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
85
+ this.type = opts.type;
86
+ this.code = opts.code;
87
+ }
88
+ }
89
+ exports.ServiceUnavailableException = ServiceUnavailableException;
90
+ class LimitExceededException extends GlacierServiceException_1.GlacierServiceException {
91
+ name = "LimitExceededException";
92
+ $fault = "client";
93
+ type;
94
+ code;
95
+ constructor(opts) {
96
+ super({
97
+ name: "LimitExceededException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
102
+ this.type = opts.type;
103
+ this.code = opts.code;
104
+ }
105
+ }
106
+ exports.LimitExceededException = LimitExceededException;
107
+ class InsufficientCapacityException extends GlacierServiceException_1.GlacierServiceException {
108
+ name = "InsufficientCapacityException";
109
+ $fault = "client";
110
+ type;
111
+ code;
112
+ constructor(opts) {
113
+ super({
114
+ name: "InsufficientCapacityException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, InsufficientCapacityException.prototype);
119
+ this.type = opts.type;
120
+ this.code = opts.code;
121
+ }
122
+ }
123
+ exports.InsufficientCapacityException = InsufficientCapacityException;
124
+ class PolicyEnforcedException extends GlacierServiceException_1.GlacierServiceException {
125
+ name = "PolicyEnforcedException";
126
+ $fault = "client";
127
+ type;
128
+ code;
129
+ constructor(opts) {
130
+ super({
131
+ name: "PolicyEnforcedException",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, PolicyEnforcedException.prototype);
136
+ this.type = opts.type;
137
+ this.code = opts.code;
138
+ }
139
+ }
140
+ exports.PolicyEnforcedException = PolicyEnforcedException;
141
+ class RequestTimeoutException extends GlacierServiceException_1.GlacierServiceException {
142
+ name = "RequestTimeoutException";
143
+ $fault = "client";
144
+ type;
145
+ code;
146
+ constructor(opts) {
147
+ super({
148
+ name: "RequestTimeoutException",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, RequestTimeoutException.prototype);
153
+ this.type = opts.type;
154
+ this.code = opts.code;
155
+ }
156
+ }
157
+ exports.RequestTimeoutException = RequestTimeoutException;
@@ -10,6 +10,7 @@ const util_stream_1 = require("@smithy/util-stream");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2012-06-01",
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
30
31
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
32
  protocolSettings: config?.protocolSettings ?? {
32
33
  defaultNamespace: "com.amazonaws.glacier",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  xmlNamespace: "http://glacier.amazonaws.com/doc/2012-06-01/",
34
36
  version: "2012-06-01",
35
37
  serviceTarget: "Glacier",