@aws-sdk/client-imagebuilder 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.ImagebuilderServiceException = 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 ImagebuilderServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ImagebuilderServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ImagebuilderServiceException = ImagebuilderServiceException;
@@ -0,0 +1,264 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidParameterValueException = exports.InvalidParameterException = exports.InvalidPaginationTokenException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.ResourceAlreadyExistsException = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.DryRunOperationException = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CallRateLimitExceededException = exports.AccessDeniedException = void 0;
4
+ const ImagebuilderServiceException_1 = require("./ImagebuilderServiceException");
5
+ class AccessDeniedException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class CallRateLimitExceededException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
19
+ name = "CallRateLimitExceededException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "CallRateLimitExceededException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, CallRateLimitExceededException.prototype);
28
+ }
29
+ }
30
+ exports.CallRateLimitExceededException = CallRateLimitExceededException;
31
+ class ClientException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
32
+ name = "ClientException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "ClientException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, ClientException.prototype);
41
+ }
42
+ }
43
+ exports.ClientException = ClientException;
44
+ class ForbiddenException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
45
+ name = "ForbiddenException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "ForbiddenException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
54
+ }
55
+ }
56
+ exports.ForbiddenException = ForbiddenException;
57
+ class IdempotentParameterMismatchException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
58
+ name = "IdempotentParameterMismatchException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "IdempotentParameterMismatchException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
67
+ }
68
+ }
69
+ exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
70
+ class InvalidRequestException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
71
+ name = "InvalidRequestException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "InvalidRequestException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
80
+ }
81
+ }
82
+ exports.InvalidRequestException = InvalidRequestException;
83
+ class ResourceInUseException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
84
+ name = "ResourceInUseException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "ResourceInUseException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
93
+ }
94
+ }
95
+ exports.ResourceInUseException = ResourceInUseException;
96
+ class ServiceException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
97
+ name = "ServiceException";
98
+ $fault = "server";
99
+ constructor(opts) {
100
+ super({
101
+ name: "ServiceException",
102
+ $fault: "server",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, ServiceException.prototype);
106
+ }
107
+ }
108
+ exports.ServiceException = ServiceException;
109
+ class ServiceUnavailableException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
110
+ name = "ServiceUnavailableException";
111
+ $fault = "server";
112
+ constructor(opts) {
113
+ super({
114
+ name: "ServiceUnavailableException",
115
+ $fault: "server",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
119
+ }
120
+ }
121
+ exports.ServiceUnavailableException = ServiceUnavailableException;
122
+ class DryRunOperationException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
123
+ name = "DryRunOperationException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "DryRunOperationException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, DryRunOperationException.prototype);
132
+ }
133
+ }
134
+ exports.DryRunOperationException = DryRunOperationException;
135
+ class InvalidParameterCombinationException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
136
+ name = "InvalidParameterCombinationException";
137
+ $fault = "client";
138
+ constructor(opts) {
139
+ super({
140
+ name: "InvalidParameterCombinationException",
141
+ $fault: "client",
142
+ ...opts,
143
+ });
144
+ Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
145
+ }
146
+ }
147
+ exports.InvalidParameterCombinationException = InvalidParameterCombinationException;
148
+ class InvalidVersionNumberException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
149
+ name = "InvalidVersionNumberException";
150
+ $fault = "client";
151
+ constructor(opts) {
152
+ super({
153
+ name: "InvalidVersionNumberException",
154
+ $fault: "client",
155
+ ...opts,
156
+ });
157
+ Object.setPrototypeOf(this, InvalidVersionNumberException.prototype);
158
+ }
159
+ }
160
+ exports.InvalidVersionNumberException = InvalidVersionNumberException;
161
+ class ServiceQuotaExceededException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
162
+ name = "ServiceQuotaExceededException";
163
+ $fault = "client";
164
+ constructor(opts) {
165
+ super({
166
+ name: "ServiceQuotaExceededException",
167
+ $fault: "client",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
171
+ }
172
+ }
173
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
174
+ class ResourceAlreadyExistsException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
175
+ name = "ResourceAlreadyExistsException";
176
+ $fault = "client";
177
+ constructor(opts) {
178
+ super({
179
+ name: "ResourceAlreadyExistsException",
180
+ $fault: "client",
181
+ ...opts,
182
+ });
183
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
184
+ }
185
+ }
186
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
187
+ class ResourceDependencyException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
188
+ name = "ResourceDependencyException";
189
+ $fault = "client";
190
+ constructor(opts) {
191
+ super({
192
+ name: "ResourceDependencyException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, ResourceDependencyException.prototype);
197
+ }
198
+ }
199
+ exports.ResourceDependencyException = ResourceDependencyException;
200
+ class ResourceNotFoundException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
201
+ name = "ResourceNotFoundException";
202
+ $fault = "client";
203
+ constructor(opts) {
204
+ super({
205
+ name: "ResourceNotFoundException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
210
+ }
211
+ }
212
+ exports.ResourceNotFoundException = ResourceNotFoundException;
213
+ class TooManyRequestsException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
214
+ name = "TooManyRequestsException";
215
+ $fault = "client";
216
+ constructor(opts) {
217
+ super({
218
+ name: "TooManyRequestsException",
219
+ $fault: "client",
220
+ ...opts,
221
+ });
222
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
223
+ }
224
+ }
225
+ exports.TooManyRequestsException = TooManyRequestsException;
226
+ class InvalidPaginationTokenException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
227
+ name = "InvalidPaginationTokenException";
228
+ $fault = "client";
229
+ constructor(opts) {
230
+ super({
231
+ name: "InvalidPaginationTokenException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
236
+ }
237
+ }
238
+ exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
239
+ class InvalidParameterException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
240
+ name = "InvalidParameterException";
241
+ $fault = "client";
242
+ constructor(opts) {
243
+ super({
244
+ name: "InvalidParameterException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
249
+ }
250
+ }
251
+ exports.InvalidParameterException = InvalidParameterException;
252
+ class InvalidParameterValueException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
253
+ name = "InvalidParameterValueException";
254
+ $fault = "client";
255
+ constructor(opts) {
256
+ super({
257
+ name: "InvalidParameterValueException",
258
+ $fault: "client",
259
+ ...opts,
260
+ });
261
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
262
+ }
263
+ }
264
+ exports.InvalidParameterValueException = InvalidParameterValueException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2019-12-02",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.imagebuilder",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2019-12-02",
33
35
  serviceTarget: "imagebuilder",
34
36
  },