@aws-sdk/client-cloudcontrol 3.1075.0 → 3.1076.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.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultCloudControlHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CancelResourceRequest$, CreateResource$, DeleteResource$, GetResource$, GetResourceRequestStatus$, ListResourceRequests$, ListResources$, UpdateResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { CloudControlServiceException } = require("./models/CloudControlServiceException");
18
- exports.CloudControlServiceException = CloudControlServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultCloudControlHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "cloudcontrolapi",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultCloudControlHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,797 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://cloudcontrolapi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://cloudcontrolapi-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://cloudcontrolapi.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://cloudcontrolapi.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class CloudControlServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, CloudControlServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AlreadyExistsException extends CloudControlServiceException {
140
+ name = "AlreadyExistsException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "AlreadyExistsException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AlreadyExistsException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class ConcurrentModificationException extends CloudControlServiceException {
154
+ name = "ConcurrentModificationException";
155
+ $fault = "server";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ConcurrentModificationException",
160
+ $fault: "server",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class RequestTokenNotFoundException extends CloudControlServiceException {
168
+ name = "RequestTokenNotFoundException";
169
+ $fault = "client";
170
+ Message;
171
+ constructor(opts) {
172
+ super({
173
+ name: "RequestTokenNotFoundException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, RequestTokenNotFoundException.prototype);
178
+ this.Message = opts.Message;
179
+ }
180
+ }
181
+ class ClientTokenConflictException extends CloudControlServiceException {
182
+ name = "ClientTokenConflictException";
183
+ $fault = "client";
184
+ Message;
185
+ constructor(opts) {
186
+ super({
187
+ name: "ClientTokenConflictException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, ClientTokenConflictException.prototype);
192
+ this.Message = opts.Message;
193
+ }
194
+ }
195
+ class ConcurrentOperationException extends CloudControlServiceException {
196
+ name = "ConcurrentOperationException";
197
+ $fault = "client";
198
+ Message;
199
+ constructor(opts) {
200
+ super({
201
+ name: "ConcurrentOperationException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, ConcurrentOperationException.prototype);
206
+ this.Message = opts.Message;
207
+ }
208
+ }
209
+ class GeneralServiceException extends CloudControlServiceException {
210
+ name = "GeneralServiceException";
211
+ $fault = "client";
212
+ Message;
213
+ constructor(opts) {
214
+ super({
215
+ name: "GeneralServiceException",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ Object.setPrototypeOf(this, GeneralServiceException.prototype);
220
+ this.Message = opts.Message;
221
+ }
222
+ }
223
+ class HandlerFailureException extends CloudControlServiceException {
224
+ name = "HandlerFailureException";
225
+ $fault = "server";
226
+ Message;
227
+ constructor(opts) {
228
+ super({
229
+ name: "HandlerFailureException",
230
+ $fault: "server",
231
+ ...opts,
232
+ });
233
+ Object.setPrototypeOf(this, HandlerFailureException.prototype);
234
+ this.Message = opts.Message;
235
+ }
236
+ }
237
+ class HandlerInternalFailureException extends CloudControlServiceException {
238
+ name = "HandlerInternalFailureException";
239
+ $fault = "server";
240
+ Message;
241
+ constructor(opts) {
242
+ super({
243
+ name: "HandlerInternalFailureException",
244
+ $fault: "server",
245
+ ...opts,
246
+ });
247
+ Object.setPrototypeOf(this, HandlerInternalFailureException.prototype);
248
+ this.Message = opts.Message;
249
+ }
250
+ }
251
+ class InvalidCredentialsException extends CloudControlServiceException {
252
+ name = "InvalidCredentialsException";
253
+ $fault = "client";
254
+ Message;
255
+ constructor(opts) {
256
+ super({
257
+ name: "InvalidCredentialsException",
258
+ $fault: "client",
259
+ ...opts,
260
+ });
261
+ Object.setPrototypeOf(this, InvalidCredentialsException.prototype);
262
+ this.Message = opts.Message;
263
+ }
264
+ }
265
+ class InvalidRequestException extends CloudControlServiceException {
266
+ name = "InvalidRequestException";
267
+ $fault = "client";
268
+ Message;
269
+ constructor(opts) {
270
+ super({
271
+ name: "InvalidRequestException",
272
+ $fault: "client",
273
+ ...opts,
274
+ });
275
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
276
+ this.Message = opts.Message;
277
+ }
278
+ }
279
+ class NetworkFailureException extends CloudControlServiceException {
280
+ name = "NetworkFailureException";
281
+ $fault = "server";
282
+ Message;
283
+ constructor(opts) {
284
+ super({
285
+ name: "NetworkFailureException",
286
+ $fault: "server",
287
+ ...opts,
288
+ });
289
+ Object.setPrototypeOf(this, NetworkFailureException.prototype);
290
+ this.Message = opts.Message;
291
+ }
292
+ }
293
+ class NotStabilizedException extends CloudControlServiceException {
294
+ name = "NotStabilizedException";
295
+ $fault = "client";
296
+ Message;
297
+ constructor(opts) {
298
+ super({
299
+ name: "NotStabilizedException",
300
+ $fault: "client",
301
+ ...opts,
302
+ });
303
+ Object.setPrototypeOf(this, NotStabilizedException.prototype);
304
+ this.Message = opts.Message;
305
+ }
306
+ }
307
+ class NotUpdatableException extends CloudControlServiceException {
308
+ name = "NotUpdatableException";
309
+ $fault = "client";
310
+ Message;
311
+ constructor(opts) {
312
+ super({
313
+ name: "NotUpdatableException",
314
+ $fault: "client",
315
+ ...opts,
316
+ });
317
+ Object.setPrototypeOf(this, NotUpdatableException.prototype);
318
+ this.Message = opts.Message;
319
+ }
320
+ }
321
+ class PrivateTypeException extends CloudControlServiceException {
322
+ name = "PrivateTypeException";
323
+ $fault = "client";
324
+ Message;
325
+ constructor(opts) {
326
+ super({
327
+ name: "PrivateTypeException",
328
+ $fault: "client",
329
+ ...opts,
330
+ });
331
+ Object.setPrototypeOf(this, PrivateTypeException.prototype);
332
+ this.Message = opts.Message;
333
+ }
334
+ }
335
+ class ResourceConflictException extends CloudControlServiceException {
336
+ name = "ResourceConflictException";
337
+ $fault = "client";
338
+ Message;
339
+ constructor(opts) {
340
+ super({
341
+ name: "ResourceConflictException",
342
+ $fault: "client",
343
+ ...opts,
344
+ });
345
+ Object.setPrototypeOf(this, ResourceConflictException.prototype);
346
+ this.Message = opts.Message;
347
+ }
348
+ }
349
+ class ResourceNotFoundException extends CloudControlServiceException {
350
+ name = "ResourceNotFoundException";
351
+ $fault = "client";
352
+ Message;
353
+ constructor(opts) {
354
+ super({
355
+ name: "ResourceNotFoundException",
356
+ $fault: "client",
357
+ ...opts,
358
+ });
359
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
360
+ this.Message = opts.Message;
361
+ }
362
+ }
363
+ class ServiceInternalErrorException extends CloudControlServiceException {
364
+ name = "ServiceInternalErrorException";
365
+ $fault = "server";
366
+ Message;
367
+ constructor(opts) {
368
+ super({
369
+ name: "ServiceInternalErrorException",
370
+ $fault: "server",
371
+ ...opts,
372
+ });
373
+ Object.setPrototypeOf(this, ServiceInternalErrorException.prototype);
374
+ this.Message = opts.Message;
375
+ }
376
+ }
377
+ class ServiceLimitExceededException extends CloudControlServiceException {
378
+ name = "ServiceLimitExceededException";
379
+ $fault = "client";
380
+ Message;
381
+ constructor(opts) {
382
+ super({
383
+ name: "ServiceLimitExceededException",
384
+ $fault: "client",
385
+ ...opts,
386
+ });
387
+ Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
388
+ this.Message = opts.Message;
389
+ }
390
+ }
391
+ class ThrottlingException extends CloudControlServiceException {
392
+ name = "ThrottlingException";
393
+ $fault = "client";
394
+ Message;
395
+ constructor(opts) {
396
+ super({
397
+ name: "ThrottlingException",
398
+ $fault: "client",
399
+ ...opts,
400
+ });
401
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
402
+ this.Message = opts.Message;
403
+ }
404
+ }
405
+ class TypeNotFoundException extends CloudControlServiceException {
406
+ name = "TypeNotFoundException";
407
+ $fault = "client";
408
+ Message;
409
+ constructor(opts) {
410
+ super({
411
+ name: "TypeNotFoundException",
412
+ $fault: "client",
413
+ ...opts,
414
+ });
415
+ Object.setPrototypeOf(this, TypeNotFoundException.prototype);
416
+ this.Message = opts.Message;
417
+ }
418
+ }
419
+ class UnsupportedActionException extends CloudControlServiceException {
420
+ name = "UnsupportedActionException";
421
+ $fault = "client";
422
+ Message;
423
+ constructor(opts) {
424
+ super({
425
+ name: "UnsupportedActionException",
426
+ $fault: "client",
427
+ ...opts,
428
+ });
429
+ Object.setPrototypeOf(this, UnsupportedActionException.prototype);
430
+ this.Message = opts.Message;
431
+ }
432
+ }
433
+
434
+ const _AEE = "AlreadyExistsException";
435
+ const _CME = "ConcurrentModificationException";
436
+ const _COE = "ConcurrentOperationException";
437
+ const _CR = "CreateResource";
438
+ const _CRI = "CreateResourceInput";
439
+ const _CRO = "CreateResourceOutput";
440
+ const _CRR = "CancelResourceRequest";
441
+ const _CRRI = "CancelResourceRequestInput";
442
+ const _CRRO = "CancelResourceRequestOutput";
443
+ const _CT = "ClientToken";
444
+ const _CTCE = "ClientTokenConflictException";
445
+ const _DR = "DeleteResource";
446
+ const _DRI = "DeleteResourceInput";
447
+ const _DRO = "DeleteResourceOutput";
448
+ const _DS = "DesiredState";
449
+ const _EC = "ErrorCode";
450
+ const _ET = "EventTime";
451
+ const _FM = "FailureMode";
452
+ const _GR = "GetResource";
453
+ const _GRI = "GetResourceInput";
454
+ const _GRO = "GetResourceOutput";
455
+ const _GRRS = "GetResourceRequestStatus";
456
+ const _GRRSI = "GetResourceRequestStatusInput";
457
+ const _GRRSO = "GetResourceRequestStatusOutput";
458
+ const _GSE = "GeneralServiceException";
459
+ const _HET = "HookEventTime";
460
+ const _HFE = "HandlerFailureException";
461
+ const _HIFE = "HandlerInternalFailureException";
462
+ const _HPE = "HooksProgressEvent";
463
+ const _HPEo = "HookProgressEvent";
464
+ const _HRT = "HooksRequestToken";
465
+ const _HS = "HookStatus";
466
+ const _HSM = "HookStatusMessage";
467
+ const _HTA = "HookTypeArn";
468
+ const _HTN = "HookTypeName";
469
+ const _HTVI = "HookTypeVersionId";
470
+ const _I = "Identifier";
471
+ const _ICE = "InvalidCredentialsException";
472
+ const _IP = "InvocationPoint";
473
+ const _IRE = "InvalidRequestException";
474
+ const _LR = "ListResources";
475
+ const _LRI = "ListResourcesInput";
476
+ const _LRO = "ListResourcesOutput";
477
+ const _LRR = "ListResourceRequests";
478
+ const _LRRI = "ListResourceRequestsInput";
479
+ const _LRRO = "ListResourceRequestsOutput";
480
+ const _M = "Message";
481
+ const _MR = "MaxResults";
482
+ const _NFE = "NetworkFailureException";
483
+ const _NSE = "NotStabilizedException";
484
+ const _NT = "NextToken";
485
+ const _NUE = "NotUpdatableException";
486
+ const _O = "Operation";
487
+ const _OS = "OperationStatus";
488
+ const _OSp = "OperationStatuses";
489
+ const _Op = "Operations";
490
+ const _P = "Properties";
491
+ const _PD = "PatchDocument";
492
+ const _PE = "ProgressEvent";
493
+ const _PTE = "PrivateTypeException";
494
+ const _RA = "RoleArn";
495
+ const _RAe = "RetryAfter";
496
+ const _RCE = "ResourceConflictException";
497
+ const _RD = "ResourceDescription";
498
+ const _RDe = "ResourceDescriptions";
499
+ const _RM = "ResourceModel";
500
+ const _RNFE = "ResourceNotFoundException";
501
+ const _RRSF = "ResourceRequestStatusFilter";
502
+ const _RRSS = "ResourceRequestStatusSummaries";
503
+ const _RT = "RequestToken";
504
+ const _RTNFE = "RequestTokenNotFoundException";
505
+ const _SIEE = "ServiceInternalErrorException";
506
+ const _SLEE = "ServiceLimitExceededException";
507
+ const _SM = "StatusMessage";
508
+ const _TE = "ThrottlingException";
509
+ const _TN = "TypeName";
510
+ const _TNFE = "TypeNotFoundException";
511
+ const _TVI = "TypeVersionId";
512
+ const _UAE = "UnsupportedActionException";
513
+ const _UR = "UpdateResource";
514
+ const _URI = "UpdateResourceInput";
515
+ const _URO = "UpdateResourceOutput";
516
+ const _aQE = "awsQueryError";
517
+ const _c = "client";
518
+ const _e = "error";
519
+ const _hE = "httpError";
520
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudcontrol";
521
+ const _se = "server";
522
+ const n0 = "com.amazonaws.cloudcontrol";
523
+ const _s_registry = TypeRegistry.for(_s);
524
+ var CloudControlServiceException$ = [-3, _s, "CloudControlServiceException", 0, [], []];
525
+ _s_registry.registerError(CloudControlServiceException$, CloudControlServiceException);
526
+ const n0_registry = TypeRegistry.for(n0);
527
+ var AlreadyExistsException$ = [-3, n0, _AEE,
528
+ { [_aQE]: [`AlreadyExistsException`, 400], [_e]: _c, [_hE]: 400 },
529
+ [_M],
530
+ [0]
531
+ ];
532
+ n0_registry.registerError(AlreadyExistsException$, AlreadyExistsException);
533
+ var ClientTokenConflictException$ = [-3, n0, _CTCE,
534
+ { [_aQE]: [`ClientTokenConflictException`, 409], [_e]: _c, [_hE]: 409 },
535
+ [_M],
536
+ [0]
537
+ ];
538
+ n0_registry.registerError(ClientTokenConflictException$, ClientTokenConflictException);
539
+ var ConcurrentModificationException$ = [-3, n0, _CME,
540
+ { [_aQE]: [`ConcurrentModificationException`, 500], [_e]: _se, [_hE]: 500 },
541
+ [_M],
542
+ [0]
543
+ ];
544
+ n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
545
+ var ConcurrentOperationException$ = [-3, n0, _COE,
546
+ { [_aQE]: [`ConcurrentOperationException`, 409], [_e]: _c, [_hE]: 409 },
547
+ [_M],
548
+ [0]
549
+ ];
550
+ n0_registry.registerError(ConcurrentOperationException$, ConcurrentOperationException);
551
+ var GeneralServiceException$ = [-3, n0, _GSE,
552
+ { [_aQE]: [`GeneralServiceException`, 400], [_e]: _c, [_hE]: 400 },
553
+ [_M],
554
+ [0]
555
+ ];
556
+ n0_registry.registerError(GeneralServiceException$, GeneralServiceException);
557
+ var HandlerFailureException$ = [-3, n0, _HFE,
558
+ { [_aQE]: [`HandlerFailureException`, 502], [_e]: _se, [_hE]: 502 },
559
+ [_M],
560
+ [0]
561
+ ];
562
+ n0_registry.registerError(HandlerFailureException$, HandlerFailureException);
563
+ var HandlerInternalFailureException$ = [-3, n0, _HIFE,
564
+ { [_aQE]: [`HandlerInternalFailureException`, 502], [_e]: _se, [_hE]: 502 },
565
+ [_M],
566
+ [0]
567
+ ];
568
+ n0_registry.registerError(HandlerInternalFailureException$, HandlerInternalFailureException);
569
+ var InvalidCredentialsException$ = [-3, n0, _ICE,
570
+ { [_aQE]: [`InvalidCredentialsException`, 401], [_e]: _c, [_hE]: 401 },
571
+ [_M],
572
+ [0]
573
+ ];
574
+ n0_registry.registerError(InvalidCredentialsException$, InvalidCredentialsException);
575
+ var InvalidRequestException$ = [-3, n0, _IRE,
576
+ { [_aQE]: [`InvalidRequestException`, 400], [_e]: _c, [_hE]: 400 },
577
+ [_M],
578
+ [0]
579
+ ];
580
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
581
+ var NetworkFailureException$ = [-3, n0, _NFE,
582
+ { [_aQE]: [`NetworkFailureException`, 502], [_e]: _se, [_hE]: 502 },
583
+ [_M],
584
+ [0]
585
+ ];
586
+ n0_registry.registerError(NetworkFailureException$, NetworkFailureException);
587
+ var NotStabilizedException$ = [-3, n0, _NSE,
588
+ { [_aQE]: [`NotStabilizedException`, 400], [_e]: _c, [_hE]: 400 },
589
+ [_M],
590
+ [0]
591
+ ];
592
+ n0_registry.registerError(NotStabilizedException$, NotStabilizedException);
593
+ var NotUpdatableException$ = [-3, n0, _NUE,
594
+ { [_aQE]: [`NotUpdatableException`, 400], [_e]: _c, [_hE]: 400 },
595
+ [_M],
596
+ [0]
597
+ ];
598
+ n0_registry.registerError(NotUpdatableException$, NotUpdatableException);
599
+ var PrivateTypeException$ = [-3, n0, _PTE,
600
+ { [_aQE]: [`PrivateTypeException`, 400], [_e]: _c, [_hE]: 400 },
601
+ [_M],
602
+ [0]
603
+ ];
604
+ n0_registry.registerError(PrivateTypeException$, PrivateTypeException);
605
+ var RequestTokenNotFoundException$ = [-3, n0, _RTNFE,
606
+ { [_aQE]: [`RequestTokenNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
607
+ [_M],
608
+ [0]
609
+ ];
610
+ n0_registry.registerError(RequestTokenNotFoundException$, RequestTokenNotFoundException);
611
+ var ResourceConflictException$ = [-3, n0, _RCE,
612
+ { [_aQE]: [`ResourceConflictException`, 409], [_e]: _c, [_hE]: 409 },
613
+ [_M],
614
+ [0]
615
+ ];
616
+ n0_registry.registerError(ResourceConflictException$, ResourceConflictException);
617
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
618
+ { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
619
+ [_M],
620
+ [0]
621
+ ];
622
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
623
+ var ServiceInternalErrorException$ = [-3, n0, _SIEE,
624
+ { [_aQE]: [`ServiceInternalErrorException`, 502], [_e]: _se, [_hE]: 502 },
625
+ [_M],
626
+ [0]
627
+ ];
628
+ n0_registry.registerError(ServiceInternalErrorException$, ServiceInternalErrorException);
629
+ var ServiceLimitExceededException$ = [-3, n0, _SLEE,
630
+ { [_aQE]: [`ServiceLimitExceededException`, 400], [_e]: _c, [_hE]: 400 },
631
+ [_M],
632
+ [0]
633
+ ];
634
+ n0_registry.registerError(ServiceLimitExceededException$, ServiceLimitExceededException);
635
+ var ThrottlingException$ = [-3, n0, _TE,
636
+ { [_aQE]: [`ThrottlingException`, 429], [_e]: _c, [_hE]: 429 },
637
+ [_M],
638
+ [0]
639
+ ];
640
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
641
+ var TypeNotFoundException$ = [-3, n0, _TNFE,
642
+ { [_aQE]: [`TypeNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
643
+ [_M],
644
+ [0]
645
+ ];
646
+ n0_registry.registerError(TypeNotFoundException$, TypeNotFoundException);
647
+ var UnsupportedActionException$ = [-3, n0, _UAE,
648
+ { [_aQE]: [`UnsupportedActionException`, 405], [_e]: _c, [_hE]: 405 },
649
+ [_M],
650
+ [0]
651
+ ];
652
+ n0_registry.registerError(UnsupportedActionException$, UnsupportedActionException);
653
+ const errorTypeRegistries = [
654
+ _s_registry,
655
+ n0_registry,
656
+ ];
657
+ var PatchDocument = [0, n0, _PD, 8, 0];
658
+ var Properties = [0, n0, _P, 8, 0];
659
+ var CancelResourceRequestInput$ = [3, n0, _CRRI,
660
+ 0,
661
+ [_RT],
662
+ [0], 1
663
+ ];
664
+ var CancelResourceRequestOutput$ = [3, n0, _CRRO,
665
+ 0,
666
+ [_PE],
667
+ [[() => ProgressEvent$, 0]]
668
+ ];
669
+ var CreateResourceInput$ = [3, n0, _CRI,
670
+ 0,
671
+ [_TN, _DS, _TVI, _RA, _CT],
672
+ [0, [() => Properties, 0], 0, 0, [0, 4]], 2
673
+ ];
674
+ var CreateResourceOutput$ = [3, n0, _CRO,
675
+ 0,
676
+ [_PE],
677
+ [[() => ProgressEvent$, 0]]
678
+ ];
679
+ var DeleteResourceInput$ = [3, n0, _DRI,
680
+ 0,
681
+ [_TN, _I, _TVI, _RA, _CT],
682
+ [0, 0, 0, 0, [0, 4]], 2
683
+ ];
684
+ var DeleteResourceOutput$ = [3, n0, _DRO,
685
+ 0,
686
+ [_PE],
687
+ [[() => ProgressEvent$, 0]]
688
+ ];
689
+ var GetResourceInput$ = [3, n0, _GRI,
690
+ 0,
691
+ [_TN, _I, _TVI, _RA],
692
+ [0, 0, 0, 0], 2
693
+ ];
694
+ var GetResourceOutput$ = [3, n0, _GRO,
695
+ 0,
696
+ [_TN, _RD],
697
+ [0, [() => ResourceDescription$, 0]]
698
+ ];
699
+ var GetResourceRequestStatusInput$ = [3, n0, _GRRSI,
700
+ 0,
701
+ [_RT],
702
+ [0], 1
703
+ ];
704
+ var GetResourceRequestStatusOutput$ = [3, n0, _GRRSO,
705
+ 0,
706
+ [_PE, _HPE],
707
+ [[() => ProgressEvent$, 0], () => HooksProgressEvent]
708
+ ];
709
+ var HookProgressEvent$ = [3, n0, _HPEo,
710
+ 0,
711
+ [_HTN, _HTVI, _HTA, _IP, _HS, _HET, _HSM, _FM],
712
+ [0, 0, 0, 0, 0, 4, 0, 0]
713
+ ];
714
+ var ListResourceRequestsInput$ = [3, n0, _LRRI,
715
+ 0,
716
+ [_MR, _NT, _RRSF],
717
+ [1, 0, () => ResourceRequestStatusFilter$]
718
+ ];
719
+ var ListResourceRequestsOutput$ = [3, n0, _LRRO,
720
+ 0,
721
+ [_RRSS, _NT],
722
+ [[() => ResourceRequestStatusSummaries, 0], 0]
723
+ ];
724
+ var ListResourcesInput$ = [3, n0, _LRI,
725
+ 0,
726
+ [_TN, _TVI, _RA, _NT, _MR, _RM],
727
+ [0, 0, 0, 0, 1, [() => Properties, 0]], 1
728
+ ];
729
+ var ListResourcesOutput$ = [3, n0, _LRO,
730
+ 0,
731
+ [_TN, _RDe, _NT],
732
+ [0, [() => ResourceDescriptions, 0], 0]
733
+ ];
734
+ var ProgressEvent$ = [3, n0, _PE,
735
+ 0,
736
+ [_TN, _I, _RT, _HRT, _O, _OS, _ET, _RM, _SM, _EC, _RAe],
737
+ [0, 0, 0, 0, 0, 0, 4, [() => Properties, 0], 0, 0, 4]
738
+ ];
739
+ var ResourceDescription$ = [3, n0, _RD,
740
+ 0,
741
+ [_I, _P],
742
+ [0, [() => Properties, 0]]
743
+ ];
744
+ var ResourceRequestStatusFilter$ = [3, n0, _RRSF,
745
+ 0,
746
+ [_Op, _OSp],
747
+ [64 | 0, 64 | 0]
748
+ ];
749
+ var UpdateResourceInput$ = [3, n0, _URI,
750
+ 0,
751
+ [_TN, _I, _PD, _TVI, _RA, _CT],
752
+ [0, 0, [() => PatchDocument, 0], 0, 0, [0, 4]], 3
753
+ ];
754
+ var UpdateResourceOutput$ = [3, n0, _URO,
755
+ 0,
756
+ [_PE],
757
+ [[() => ProgressEvent$, 0]]
758
+ ];
759
+ var HooksProgressEvent = [1, n0, _HPE,
760
+ 0, () => HookProgressEvent$
761
+ ];
762
+ var ResourceDescriptions = [1, n0, _RDe,
763
+ 0, [() => ResourceDescription$,
764
+ 0]
765
+ ];
766
+ var ResourceRequestStatusSummaries = [1, n0, _RRSS,
767
+ 0, [() => ProgressEvent$,
768
+ 0]
769
+ ];
770
+ var CancelResourceRequest$ = [9, n0, _CRR,
771
+ 2, () => CancelResourceRequestInput$, () => CancelResourceRequestOutput$
772
+ ];
773
+ var CreateResource$ = [9, n0, _CR,
774
+ 0, () => CreateResourceInput$, () => CreateResourceOutput$
775
+ ];
776
+ var DeleteResource$ = [9, n0, _DR,
777
+ 0, () => DeleteResourceInput$, () => DeleteResourceOutput$
778
+ ];
779
+ var GetResource$ = [9, n0, _GR,
780
+ 0, () => GetResourceInput$, () => GetResourceOutput$
781
+ ];
782
+ var GetResourceRequestStatus$ = [9, n0, _GRRS,
783
+ 0, () => GetResourceRequestStatusInput$, () => GetResourceRequestStatusOutput$
784
+ ];
785
+ var ListResourceRequests$ = [9, n0, _LRR,
786
+ 0, () => ListResourceRequestsInput$, () => ListResourceRequestsOutput$
787
+ ];
788
+ var ListResources$ = [9, n0, _LR,
789
+ 0, () => ListResourcesInput$, () => ListResourcesOutput$
790
+ ];
791
+ var UpdateResource$ = [9, n0, _UR,
792
+ 0, () => UpdateResourceInput$, () => UpdateResourceOutput$
793
+ ];
794
+
795
+ const getRuntimeConfig$1 = (config) => {
796
+ return {
797
+ apiVersion: "2021-09-30",
798
+ base64Decoder: config?.base64Decoder ?? fromBase64,
799
+ base64Encoder: config?.base64Encoder ?? toBase64,
800
+ disableHostPrefix: config?.disableHostPrefix ?? false,
801
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
802
+ extensions: config?.extensions ?? [],
803
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCloudControlHttpAuthSchemeProvider,
804
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
805
+ {
806
+ schemeId: "aws.auth#sigv4",
807
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
808
+ signer: new AwsSdkSigV4Signer(),
809
+ },
810
+ ],
811
+ logger: config?.logger ?? new NoOpLogger(),
812
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
813
+ protocolSettings: config?.protocolSettings ?? {
814
+ defaultNamespace: "com.amazonaws.cloudcontrol",
815
+ errorTypeRegistries,
816
+ version: "2021-09-30",
817
+ serviceTarget: "CloudApiService",
818
+ },
819
+ serviceId: config?.serviceId ?? "CloudControl",
820
+ urlParser: config?.urlParser ?? parseUrl,
821
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
822
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
823
+ };
824
+ };
825
+
826
+ const getRuntimeConfig = (config) => {
827
+ emitWarningIfUnsupportedVersion(process.version);
828
+ const defaultsMode = resolveDefaultsModeConfig(config);
829
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
830
+ const clientSharedValues = getRuntimeConfig$1(config);
831
+ emitWarningIfUnsupportedVersion$1(process.version);
832
+ const loaderConfig = {
833
+ profile: config?.profile,
834
+ logger: clientSharedValues.logger,
835
+ };
836
+ return {
837
+ ...clientSharedValues,
838
+ ...config,
839
+ runtime: "node",
840
+ defaultsMode,
841
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
842
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
843
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
844
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
845
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
846
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
847
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
848
+ retryMode: config?.retryMode ??
849
+ loadConfig({
850
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
851
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
852
+ }, config),
853
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
854
+ streamCollector: config?.streamCollector ?? streamCollector,
855
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
856
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
857
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
858
+ };
859
+ };
860
+
34
861
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
862
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
863
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -312,19 +1139,92 @@ const OperationStatus = {
312
1139
  SUCCESS: "SUCCESS",
313
1140
  };
314
1141
 
1142
+ exports.AlreadyExistsException = AlreadyExistsException;
1143
+ exports.AlreadyExistsException$ = AlreadyExistsException$;
1144
+ exports.CancelResourceRequest$ = CancelResourceRequest$;
315
1145
  exports.CancelResourceRequestCommand = CancelResourceRequestCommand;
1146
+ exports.CancelResourceRequestInput$ = CancelResourceRequestInput$;
1147
+ exports.CancelResourceRequestOutput$ = CancelResourceRequestOutput$;
1148
+ exports.ClientTokenConflictException = ClientTokenConflictException;
1149
+ exports.ClientTokenConflictException$ = ClientTokenConflictException$;
316
1150
  exports.CloudControl = CloudControl;
317
1151
  exports.CloudControlClient = CloudControlClient;
1152
+ exports.CloudControlServiceException = CloudControlServiceException;
1153
+ exports.CloudControlServiceException$ = CloudControlServiceException$;
1154
+ exports.ConcurrentModificationException = ConcurrentModificationException;
1155
+ exports.ConcurrentModificationException$ = ConcurrentModificationException$;
1156
+ exports.ConcurrentOperationException = ConcurrentOperationException;
1157
+ exports.ConcurrentOperationException$ = ConcurrentOperationException$;
1158
+ exports.CreateResource$ = CreateResource$;
318
1159
  exports.CreateResourceCommand = CreateResourceCommand;
1160
+ exports.CreateResourceInput$ = CreateResourceInput$;
1161
+ exports.CreateResourceOutput$ = CreateResourceOutput$;
1162
+ exports.DeleteResource$ = DeleteResource$;
319
1163
  exports.DeleteResourceCommand = DeleteResourceCommand;
1164
+ exports.DeleteResourceInput$ = DeleteResourceInput$;
1165
+ exports.DeleteResourceOutput$ = DeleteResourceOutput$;
1166
+ exports.GeneralServiceException = GeneralServiceException;
1167
+ exports.GeneralServiceException$ = GeneralServiceException$;
1168
+ exports.GetResource$ = GetResource$;
320
1169
  exports.GetResourceCommand = GetResourceCommand;
1170
+ exports.GetResourceInput$ = GetResourceInput$;
1171
+ exports.GetResourceOutput$ = GetResourceOutput$;
1172
+ exports.GetResourceRequestStatus$ = GetResourceRequestStatus$;
321
1173
  exports.GetResourceRequestStatusCommand = GetResourceRequestStatusCommand;
1174
+ exports.GetResourceRequestStatusInput$ = GetResourceRequestStatusInput$;
1175
+ exports.GetResourceRequestStatusOutput$ = GetResourceRequestStatusOutput$;
322
1176
  exports.HandlerErrorCode = HandlerErrorCode;
1177
+ exports.HandlerFailureException = HandlerFailureException;
1178
+ exports.HandlerFailureException$ = HandlerFailureException$;
1179
+ exports.HandlerInternalFailureException = HandlerInternalFailureException;
1180
+ exports.HandlerInternalFailureException$ = HandlerInternalFailureException$;
1181
+ exports.HookProgressEvent$ = HookProgressEvent$;
1182
+ exports.InvalidCredentialsException = InvalidCredentialsException;
1183
+ exports.InvalidCredentialsException$ = InvalidCredentialsException$;
1184
+ exports.InvalidRequestException = InvalidRequestException;
1185
+ exports.InvalidRequestException$ = InvalidRequestException$;
1186
+ exports.ListResourceRequests$ = ListResourceRequests$;
323
1187
  exports.ListResourceRequestsCommand = ListResourceRequestsCommand;
1188
+ exports.ListResourceRequestsInput$ = ListResourceRequestsInput$;
1189
+ exports.ListResourceRequestsOutput$ = ListResourceRequestsOutput$;
1190
+ exports.ListResources$ = ListResources$;
324
1191
  exports.ListResourcesCommand = ListResourcesCommand;
1192
+ exports.ListResourcesInput$ = ListResourcesInput$;
1193
+ exports.ListResourcesOutput$ = ListResourcesOutput$;
1194
+ exports.NetworkFailureException = NetworkFailureException;
1195
+ exports.NetworkFailureException$ = NetworkFailureException$;
1196
+ exports.NotStabilizedException = NotStabilizedException;
1197
+ exports.NotStabilizedException$ = NotStabilizedException$;
1198
+ exports.NotUpdatableException = NotUpdatableException;
1199
+ exports.NotUpdatableException$ = NotUpdatableException$;
325
1200
  exports.Operation = Operation;
326
1201
  exports.OperationStatus = OperationStatus;
1202
+ exports.PrivateTypeException = PrivateTypeException;
1203
+ exports.PrivateTypeException$ = PrivateTypeException$;
1204
+ exports.ProgressEvent$ = ProgressEvent$;
1205
+ exports.RequestTokenNotFoundException = RequestTokenNotFoundException;
1206
+ exports.RequestTokenNotFoundException$ = RequestTokenNotFoundException$;
1207
+ exports.ResourceConflictException = ResourceConflictException;
1208
+ exports.ResourceConflictException$ = ResourceConflictException$;
1209
+ exports.ResourceDescription$ = ResourceDescription$;
1210
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1211
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1212
+ exports.ResourceRequestStatusFilter$ = ResourceRequestStatusFilter$;
1213
+ exports.ServiceInternalErrorException = ServiceInternalErrorException;
1214
+ exports.ServiceInternalErrorException$ = ServiceInternalErrorException$;
1215
+ exports.ServiceLimitExceededException = ServiceLimitExceededException;
1216
+ exports.ServiceLimitExceededException$ = ServiceLimitExceededException$;
1217
+ exports.ThrottlingException = ThrottlingException;
1218
+ exports.ThrottlingException$ = ThrottlingException$;
1219
+ exports.TypeNotFoundException = TypeNotFoundException;
1220
+ exports.TypeNotFoundException$ = TypeNotFoundException$;
1221
+ exports.UnsupportedActionException = UnsupportedActionException;
1222
+ exports.UnsupportedActionException$ = UnsupportedActionException$;
1223
+ exports.UpdateResource$ = UpdateResource$;
327
1224
  exports.UpdateResourceCommand = UpdateResourceCommand;
1225
+ exports.UpdateResourceInput$ = UpdateResourceInput$;
1226
+ exports.UpdateResourceOutput$ = UpdateResourceOutput$;
1227
+ exports.errorTypeRegistries = errorTypeRegistries;
328
1228
  exports.paginateListResourceRequests = paginateListResourceRequests;
329
1229
  exports.paginateListResources = paginateListResources;
330
1230
  exports.waitForResourceRequestSuccess = waitForResourceRequestSuccess;