@aws-sdk/client-cloudformation 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.CloudFormationServiceException = 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 CloudFormationServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, CloudFormationServiceException.prototype);
10
+ }
11
+ }
12
+ exports.CloudFormationServiceException = CloudFormationServiceException;
@@ -0,0 +1,439 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceScanLimitExceededException = exports.OperationStatusCheckFailedException = exports.InvalidStateTransitionException = exports.ResourceScanInProgressException = exports.StackNotFoundException = exports.HookResultNotFoundException = exports.StackRefactorNotFoundException = exports.StackInstanceNotFoundException = exports.ResourceScanNotFoundException = exports.StackSetNotEmptyException = exports.GeneratedTemplateNotFoundException = exports.InvalidChangeSetStatusException = exports.NameAlreadyExistsException = exports.CreatedButModifiedException = exports.StaleRequestException = exports.StackSetNotFoundException = exports.OperationInProgressException = exports.OperationIdAlreadyExistsException = exports.ConcurrentResourcesLimitExceededException = exports.LimitExceededException = exports.InsufficientCapabilitiesException = exports.ChangeSetNotFoundException = exports.TokenAlreadyExistsException = exports.TypeConfigurationNotFoundException = exports.AlreadyExistsException = exports.TypeNotFoundException = exports.CFNRegistryException = exports.OperationNotFoundException = exports.InvalidOperationException = void 0;
4
+ const CloudFormationServiceException_1 = require("./CloudFormationServiceException");
5
+ class InvalidOperationException extends CloudFormationServiceException_1.CloudFormationServiceException {
6
+ name = "InvalidOperationException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "InvalidOperationException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, InvalidOperationException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.InvalidOperationException = InvalidOperationException;
20
+ class OperationNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
21
+ name = "OperationNotFoundException";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "OperationNotFoundException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, OperationNotFoundException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.OperationNotFoundException = OperationNotFoundException;
35
+ class CFNRegistryException extends CloudFormationServiceException_1.CloudFormationServiceException {
36
+ name = "CFNRegistryException";
37
+ $fault = "client";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "CFNRegistryException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, CFNRegistryException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.CFNRegistryException = CFNRegistryException;
50
+ class TypeNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
51
+ name = "TypeNotFoundException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "TypeNotFoundException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, TypeNotFoundException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.TypeNotFoundException = TypeNotFoundException;
65
+ class AlreadyExistsException extends CloudFormationServiceException_1.CloudFormationServiceException {
66
+ name = "AlreadyExistsException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "AlreadyExistsException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, AlreadyExistsException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.AlreadyExistsException = AlreadyExistsException;
80
+ class TypeConfigurationNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
81
+ name = "TypeConfigurationNotFoundException";
82
+ $fault = "client";
83
+ Message;
84
+ constructor(opts) {
85
+ super({
86
+ name: "TypeConfigurationNotFoundException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ Object.setPrototypeOf(this, TypeConfigurationNotFoundException.prototype);
91
+ this.Message = opts.Message;
92
+ }
93
+ }
94
+ exports.TypeConfigurationNotFoundException = TypeConfigurationNotFoundException;
95
+ class TokenAlreadyExistsException extends CloudFormationServiceException_1.CloudFormationServiceException {
96
+ name = "TokenAlreadyExistsException";
97
+ $fault = "client";
98
+ Message;
99
+ constructor(opts) {
100
+ super({
101
+ name: "TokenAlreadyExistsException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, TokenAlreadyExistsException.prototype);
106
+ this.Message = opts.Message;
107
+ }
108
+ }
109
+ exports.TokenAlreadyExistsException = TokenAlreadyExistsException;
110
+ class ChangeSetNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
111
+ name = "ChangeSetNotFoundException";
112
+ $fault = "client";
113
+ Message;
114
+ constructor(opts) {
115
+ super({
116
+ name: "ChangeSetNotFoundException",
117
+ $fault: "client",
118
+ ...opts,
119
+ });
120
+ Object.setPrototypeOf(this, ChangeSetNotFoundException.prototype);
121
+ this.Message = opts.Message;
122
+ }
123
+ }
124
+ exports.ChangeSetNotFoundException = ChangeSetNotFoundException;
125
+ class InsufficientCapabilitiesException extends CloudFormationServiceException_1.CloudFormationServiceException {
126
+ name = "InsufficientCapabilitiesException";
127
+ $fault = "client";
128
+ Message;
129
+ constructor(opts) {
130
+ super({
131
+ name: "InsufficientCapabilitiesException",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, InsufficientCapabilitiesException.prototype);
136
+ this.Message = opts.Message;
137
+ }
138
+ }
139
+ exports.InsufficientCapabilitiesException = InsufficientCapabilitiesException;
140
+ class LimitExceededException extends CloudFormationServiceException_1.CloudFormationServiceException {
141
+ name = "LimitExceededException";
142
+ $fault = "client";
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "LimitExceededException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
151
+ this.Message = opts.Message;
152
+ }
153
+ }
154
+ exports.LimitExceededException = LimitExceededException;
155
+ class ConcurrentResourcesLimitExceededException extends CloudFormationServiceException_1.CloudFormationServiceException {
156
+ name = "ConcurrentResourcesLimitExceededException";
157
+ $fault = "client";
158
+ Message;
159
+ constructor(opts) {
160
+ super({
161
+ name: "ConcurrentResourcesLimitExceededException",
162
+ $fault: "client",
163
+ ...opts,
164
+ });
165
+ Object.setPrototypeOf(this, ConcurrentResourcesLimitExceededException.prototype);
166
+ this.Message = opts.Message;
167
+ }
168
+ }
169
+ exports.ConcurrentResourcesLimitExceededException = ConcurrentResourcesLimitExceededException;
170
+ class OperationIdAlreadyExistsException extends CloudFormationServiceException_1.CloudFormationServiceException {
171
+ name = "OperationIdAlreadyExistsException";
172
+ $fault = "client";
173
+ Message;
174
+ constructor(opts) {
175
+ super({
176
+ name: "OperationIdAlreadyExistsException",
177
+ $fault: "client",
178
+ ...opts,
179
+ });
180
+ Object.setPrototypeOf(this, OperationIdAlreadyExistsException.prototype);
181
+ this.Message = opts.Message;
182
+ }
183
+ }
184
+ exports.OperationIdAlreadyExistsException = OperationIdAlreadyExistsException;
185
+ class OperationInProgressException extends CloudFormationServiceException_1.CloudFormationServiceException {
186
+ name = "OperationInProgressException";
187
+ $fault = "client";
188
+ Message;
189
+ constructor(opts) {
190
+ super({
191
+ name: "OperationInProgressException",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ Object.setPrototypeOf(this, OperationInProgressException.prototype);
196
+ this.Message = opts.Message;
197
+ }
198
+ }
199
+ exports.OperationInProgressException = OperationInProgressException;
200
+ class StackSetNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
201
+ name = "StackSetNotFoundException";
202
+ $fault = "client";
203
+ Message;
204
+ constructor(opts) {
205
+ super({
206
+ name: "StackSetNotFoundException",
207
+ $fault: "client",
208
+ ...opts,
209
+ });
210
+ Object.setPrototypeOf(this, StackSetNotFoundException.prototype);
211
+ this.Message = opts.Message;
212
+ }
213
+ }
214
+ exports.StackSetNotFoundException = StackSetNotFoundException;
215
+ class StaleRequestException extends CloudFormationServiceException_1.CloudFormationServiceException {
216
+ name = "StaleRequestException";
217
+ $fault = "client";
218
+ Message;
219
+ constructor(opts) {
220
+ super({
221
+ name: "StaleRequestException",
222
+ $fault: "client",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, StaleRequestException.prototype);
226
+ this.Message = opts.Message;
227
+ }
228
+ }
229
+ exports.StaleRequestException = StaleRequestException;
230
+ class CreatedButModifiedException extends CloudFormationServiceException_1.CloudFormationServiceException {
231
+ name = "CreatedButModifiedException";
232
+ $fault = "client";
233
+ Message;
234
+ constructor(opts) {
235
+ super({
236
+ name: "CreatedButModifiedException",
237
+ $fault: "client",
238
+ ...opts,
239
+ });
240
+ Object.setPrototypeOf(this, CreatedButModifiedException.prototype);
241
+ this.Message = opts.Message;
242
+ }
243
+ }
244
+ exports.CreatedButModifiedException = CreatedButModifiedException;
245
+ class NameAlreadyExistsException extends CloudFormationServiceException_1.CloudFormationServiceException {
246
+ name = "NameAlreadyExistsException";
247
+ $fault = "client";
248
+ Message;
249
+ constructor(opts) {
250
+ super({
251
+ name: "NameAlreadyExistsException",
252
+ $fault: "client",
253
+ ...opts,
254
+ });
255
+ Object.setPrototypeOf(this, NameAlreadyExistsException.prototype);
256
+ this.Message = opts.Message;
257
+ }
258
+ }
259
+ exports.NameAlreadyExistsException = NameAlreadyExistsException;
260
+ class InvalidChangeSetStatusException extends CloudFormationServiceException_1.CloudFormationServiceException {
261
+ name = "InvalidChangeSetStatusException";
262
+ $fault = "client";
263
+ Message;
264
+ constructor(opts) {
265
+ super({
266
+ name: "InvalidChangeSetStatusException",
267
+ $fault: "client",
268
+ ...opts,
269
+ });
270
+ Object.setPrototypeOf(this, InvalidChangeSetStatusException.prototype);
271
+ this.Message = opts.Message;
272
+ }
273
+ }
274
+ exports.InvalidChangeSetStatusException = InvalidChangeSetStatusException;
275
+ class GeneratedTemplateNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
276
+ name = "GeneratedTemplateNotFoundException";
277
+ $fault = "client";
278
+ Message;
279
+ constructor(opts) {
280
+ super({
281
+ name: "GeneratedTemplateNotFoundException",
282
+ $fault: "client",
283
+ ...opts,
284
+ });
285
+ Object.setPrototypeOf(this, GeneratedTemplateNotFoundException.prototype);
286
+ this.Message = opts.Message;
287
+ }
288
+ }
289
+ exports.GeneratedTemplateNotFoundException = GeneratedTemplateNotFoundException;
290
+ class StackSetNotEmptyException extends CloudFormationServiceException_1.CloudFormationServiceException {
291
+ name = "StackSetNotEmptyException";
292
+ $fault = "client";
293
+ Message;
294
+ constructor(opts) {
295
+ super({
296
+ name: "StackSetNotEmptyException",
297
+ $fault: "client",
298
+ ...opts,
299
+ });
300
+ Object.setPrototypeOf(this, StackSetNotEmptyException.prototype);
301
+ this.Message = opts.Message;
302
+ }
303
+ }
304
+ exports.StackSetNotEmptyException = StackSetNotEmptyException;
305
+ class ResourceScanNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
306
+ name = "ResourceScanNotFoundException";
307
+ $fault = "client";
308
+ Message;
309
+ constructor(opts) {
310
+ super({
311
+ name: "ResourceScanNotFoundException",
312
+ $fault: "client",
313
+ ...opts,
314
+ });
315
+ Object.setPrototypeOf(this, ResourceScanNotFoundException.prototype);
316
+ this.Message = opts.Message;
317
+ }
318
+ }
319
+ exports.ResourceScanNotFoundException = ResourceScanNotFoundException;
320
+ class StackInstanceNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
321
+ name = "StackInstanceNotFoundException";
322
+ $fault = "client";
323
+ Message;
324
+ constructor(opts) {
325
+ super({
326
+ name: "StackInstanceNotFoundException",
327
+ $fault: "client",
328
+ ...opts,
329
+ });
330
+ Object.setPrototypeOf(this, StackInstanceNotFoundException.prototype);
331
+ this.Message = opts.Message;
332
+ }
333
+ }
334
+ exports.StackInstanceNotFoundException = StackInstanceNotFoundException;
335
+ class StackRefactorNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
336
+ name = "StackRefactorNotFoundException";
337
+ $fault = "client";
338
+ Message;
339
+ constructor(opts) {
340
+ super({
341
+ name: "StackRefactorNotFoundException",
342
+ $fault: "client",
343
+ ...opts,
344
+ });
345
+ Object.setPrototypeOf(this, StackRefactorNotFoundException.prototype);
346
+ this.Message = opts.Message;
347
+ }
348
+ }
349
+ exports.StackRefactorNotFoundException = StackRefactorNotFoundException;
350
+ class HookResultNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
351
+ name = "HookResultNotFoundException";
352
+ $fault = "client";
353
+ Message;
354
+ constructor(opts) {
355
+ super({
356
+ name: "HookResultNotFoundException",
357
+ $fault: "client",
358
+ ...opts,
359
+ });
360
+ Object.setPrototypeOf(this, HookResultNotFoundException.prototype);
361
+ this.Message = opts.Message;
362
+ }
363
+ }
364
+ exports.HookResultNotFoundException = HookResultNotFoundException;
365
+ class StackNotFoundException extends CloudFormationServiceException_1.CloudFormationServiceException {
366
+ name = "StackNotFoundException";
367
+ $fault = "client";
368
+ Message;
369
+ constructor(opts) {
370
+ super({
371
+ name: "StackNotFoundException",
372
+ $fault: "client",
373
+ ...opts,
374
+ });
375
+ Object.setPrototypeOf(this, StackNotFoundException.prototype);
376
+ this.Message = opts.Message;
377
+ }
378
+ }
379
+ exports.StackNotFoundException = StackNotFoundException;
380
+ class ResourceScanInProgressException extends CloudFormationServiceException_1.CloudFormationServiceException {
381
+ name = "ResourceScanInProgressException";
382
+ $fault = "client";
383
+ Message;
384
+ constructor(opts) {
385
+ super({
386
+ name: "ResourceScanInProgressException",
387
+ $fault: "client",
388
+ ...opts,
389
+ });
390
+ Object.setPrototypeOf(this, ResourceScanInProgressException.prototype);
391
+ this.Message = opts.Message;
392
+ }
393
+ }
394
+ exports.ResourceScanInProgressException = ResourceScanInProgressException;
395
+ class InvalidStateTransitionException extends CloudFormationServiceException_1.CloudFormationServiceException {
396
+ name = "InvalidStateTransitionException";
397
+ $fault = "client";
398
+ Message;
399
+ constructor(opts) {
400
+ super({
401
+ name: "InvalidStateTransitionException",
402
+ $fault: "client",
403
+ ...opts,
404
+ });
405
+ Object.setPrototypeOf(this, InvalidStateTransitionException.prototype);
406
+ this.Message = opts.Message;
407
+ }
408
+ }
409
+ exports.InvalidStateTransitionException = InvalidStateTransitionException;
410
+ class OperationStatusCheckFailedException extends CloudFormationServiceException_1.CloudFormationServiceException {
411
+ name = "OperationStatusCheckFailedException";
412
+ $fault = "client";
413
+ Message;
414
+ constructor(opts) {
415
+ super({
416
+ name: "OperationStatusCheckFailedException",
417
+ $fault: "client",
418
+ ...opts,
419
+ });
420
+ Object.setPrototypeOf(this, OperationStatusCheckFailedException.prototype);
421
+ this.Message = opts.Message;
422
+ }
423
+ }
424
+ exports.OperationStatusCheckFailedException = OperationStatusCheckFailedException;
425
+ class ResourceScanLimitExceededException extends CloudFormationServiceException_1.CloudFormationServiceException {
426
+ name = "ResourceScanLimitExceededException";
427
+ $fault = "client";
428
+ Message;
429
+ constructor(opts) {
430
+ super({
431
+ name: "ResourceScanLimitExceededException",
432
+ $fault: "client",
433
+ ...opts,
434
+ });
435
+ Object.setPrototypeOf(this, ResourceScanLimitExceededException.prototype);
436
+ this.Message = opts.Message;
437
+ }
438
+ }
439
+ exports.ResourceScanLimitExceededException = ResourceScanLimitExceededException;
@@ -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: "2010-05-15",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.cloudformation",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  xmlNamespace: "http://cloudformation.amazonaws.com/doc/2010-05-15/",
33
35
  version: "2010-05-15",
34
36
  serviceTarget: "CloudFormation",