@aws-sdk/client-cloudcontrol 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,369 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListResources$ = exports.ListResourceRequests$ = exports.GetResourceRequestStatus$ = exports.GetResource$ = exports.DeleteResource$ = exports.CreateResource$ = exports.CancelResourceRequest$ = exports.UpdateResourceOutput$ = exports.UpdateResourceInput$ = exports.ResourceRequestStatusFilter$ = exports.ResourceDescription$ = exports.ProgressEvent$ = exports.ListResourcesOutput$ = exports.ListResourcesInput$ = exports.ListResourceRequestsOutput$ = exports.ListResourceRequestsInput$ = exports.HookProgressEvent$ = exports.GetResourceRequestStatusOutput$ = exports.GetResourceRequestStatusInput$ = exports.GetResourceOutput$ = exports.GetResourceInput$ = exports.DeleteResourceOutput$ = exports.DeleteResourceInput$ = exports.CreateResourceOutput$ = exports.CreateResourceInput$ = exports.CancelResourceRequestOutput$ = exports.CancelResourceRequestInput$ = exports.errorTypeRegistries = exports.UnsupportedActionException$ = exports.TypeNotFoundException$ = exports.ThrottlingException$ = exports.ServiceLimitExceededException$ = exports.ServiceInternalErrorException$ = exports.ResourceNotFoundException$ = exports.ResourceConflictException$ = exports.RequestTokenNotFoundException$ = exports.PrivateTypeException$ = exports.NotUpdatableException$ = exports.NotStabilizedException$ = exports.NetworkFailureException$ = exports.InvalidRequestException$ = exports.InvalidCredentialsException$ = exports.HandlerInternalFailureException$ = exports.HandlerFailureException$ = exports.GeneralServiceException$ = exports.ConcurrentOperationException$ = exports.ConcurrentModificationException$ = exports.ClientTokenConflictException$ = exports.AlreadyExistsException$ = exports.CloudControlServiceException$ = void 0;
4
+ exports.UpdateResource$ = void 0;
5
+ const _AEE = "AlreadyExistsException";
6
+ const _CME = "ConcurrentModificationException";
7
+ const _COE = "ConcurrentOperationException";
8
+ const _CR = "CreateResource";
9
+ const _CRI = "CreateResourceInput";
10
+ const _CRO = "CreateResourceOutput";
11
+ const _CRR = "CancelResourceRequest";
12
+ const _CRRI = "CancelResourceRequestInput";
13
+ const _CRRO = "CancelResourceRequestOutput";
14
+ const _CT = "ClientToken";
15
+ const _CTCE = "ClientTokenConflictException";
16
+ const _DR = "DeleteResource";
17
+ const _DRI = "DeleteResourceInput";
18
+ const _DRO = "DeleteResourceOutput";
19
+ const _DS = "DesiredState";
20
+ const _EC = "ErrorCode";
21
+ const _ET = "EventTime";
22
+ const _FM = "FailureMode";
23
+ const _GR = "GetResource";
24
+ const _GRI = "GetResourceInput";
25
+ const _GRO = "GetResourceOutput";
26
+ const _GRRS = "GetResourceRequestStatus";
27
+ const _GRRSI = "GetResourceRequestStatusInput";
28
+ const _GRRSO = "GetResourceRequestStatusOutput";
29
+ const _GSE = "GeneralServiceException";
30
+ const _HET = "HookEventTime";
31
+ const _HFE = "HandlerFailureException";
32
+ const _HIFE = "HandlerInternalFailureException";
33
+ const _HPE = "HooksProgressEvent";
34
+ const _HPEo = "HookProgressEvent";
35
+ const _HRT = "HooksRequestToken";
36
+ const _HS = "HookStatus";
37
+ const _HSM = "HookStatusMessage";
38
+ const _HTA = "HookTypeArn";
39
+ const _HTN = "HookTypeName";
40
+ const _HTVI = "HookTypeVersionId";
41
+ const _I = "Identifier";
42
+ const _ICE = "InvalidCredentialsException";
43
+ const _IP = "InvocationPoint";
44
+ const _IRE = "InvalidRequestException";
45
+ const _LR = "ListResources";
46
+ const _LRI = "ListResourcesInput";
47
+ const _LRO = "ListResourcesOutput";
48
+ const _LRR = "ListResourceRequests";
49
+ const _LRRI = "ListResourceRequestsInput";
50
+ const _LRRO = "ListResourceRequestsOutput";
51
+ const _M = "Message";
52
+ const _MR = "MaxResults";
53
+ const _NFE = "NetworkFailureException";
54
+ const _NSE = "NotStabilizedException";
55
+ const _NT = "NextToken";
56
+ const _NUE = "NotUpdatableException";
57
+ const _O = "Operation";
58
+ const _OS = "OperationStatus";
59
+ const _OSp = "OperationStatuses";
60
+ const _Op = "Operations";
61
+ const _P = "Properties";
62
+ const _PD = "PatchDocument";
63
+ const _PE = "ProgressEvent";
64
+ const _PTE = "PrivateTypeException";
65
+ const _RA = "RoleArn";
66
+ const _RAe = "RetryAfter";
67
+ const _RCE = "ResourceConflictException";
68
+ const _RD = "ResourceDescription";
69
+ const _RDe = "ResourceDescriptions";
70
+ const _RM = "ResourceModel";
71
+ const _RNFE = "ResourceNotFoundException";
72
+ const _RRSF = "ResourceRequestStatusFilter";
73
+ const _RRSS = "ResourceRequestStatusSummaries";
74
+ const _RT = "RequestToken";
75
+ const _RTNFE = "RequestTokenNotFoundException";
76
+ const _SIEE = "ServiceInternalErrorException";
77
+ const _SLEE = "ServiceLimitExceededException";
78
+ const _SM = "StatusMessage";
79
+ const _TE = "ThrottlingException";
80
+ const _TN = "TypeName";
81
+ const _TNFE = "TypeNotFoundException";
82
+ const _TVI = "TypeVersionId";
83
+ const _UAE = "UnsupportedActionException";
84
+ const _UR = "UpdateResource";
85
+ const _URI = "UpdateResourceInput";
86
+ const _URO = "UpdateResourceOutput";
87
+ const _aQE = "awsQueryError";
88
+ const _c = "client";
89
+ const _e = "error";
90
+ const _hE = "httpError";
91
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudcontrol";
92
+ const _se = "server";
93
+ const n0 = "com.amazonaws.cloudcontrol";
94
+ const schema_1 = require("@smithy/core/schema");
95
+ const CloudControlServiceException_1 = require("../models/CloudControlServiceException");
96
+ const errors_1 = require("../models/errors");
97
+ const _s_registry = schema_1.TypeRegistry.for(_s);
98
+ exports.CloudControlServiceException$ = [-3, _s, "CloudControlServiceException", 0, [], []];
99
+ _s_registry.registerError(exports.CloudControlServiceException$, CloudControlServiceException_1.CloudControlServiceException);
100
+ const n0_registry = schema_1.TypeRegistry.for(n0);
101
+ exports.AlreadyExistsException$ = [-3, n0, _AEE,
102
+ { [_aQE]: [`AlreadyExistsException`, 400], [_e]: _c, [_hE]: 400 },
103
+ [_M],
104
+ [0]
105
+ ];
106
+ n0_registry.registerError(exports.AlreadyExistsException$, errors_1.AlreadyExistsException);
107
+ exports.ClientTokenConflictException$ = [-3, n0, _CTCE,
108
+ { [_aQE]: [`ClientTokenConflictException`, 409], [_e]: _c, [_hE]: 409 },
109
+ [_M],
110
+ [0]
111
+ ];
112
+ n0_registry.registerError(exports.ClientTokenConflictException$, errors_1.ClientTokenConflictException);
113
+ exports.ConcurrentModificationException$ = [-3, n0, _CME,
114
+ { [_aQE]: [`ConcurrentModificationException`, 500], [_e]: _se, [_hE]: 500 },
115
+ [_M],
116
+ [0]
117
+ ];
118
+ n0_registry.registerError(exports.ConcurrentModificationException$, errors_1.ConcurrentModificationException);
119
+ exports.ConcurrentOperationException$ = [-3, n0, _COE,
120
+ { [_aQE]: [`ConcurrentOperationException`, 409], [_e]: _c, [_hE]: 409 },
121
+ [_M],
122
+ [0]
123
+ ];
124
+ n0_registry.registerError(exports.ConcurrentOperationException$, errors_1.ConcurrentOperationException);
125
+ exports.GeneralServiceException$ = [-3, n0, _GSE,
126
+ { [_aQE]: [`GeneralServiceException`, 400], [_e]: _c, [_hE]: 400 },
127
+ [_M],
128
+ [0]
129
+ ];
130
+ n0_registry.registerError(exports.GeneralServiceException$, errors_1.GeneralServiceException);
131
+ exports.HandlerFailureException$ = [-3, n0, _HFE,
132
+ { [_aQE]: [`HandlerFailureException`, 502], [_e]: _se, [_hE]: 502 },
133
+ [_M],
134
+ [0]
135
+ ];
136
+ n0_registry.registerError(exports.HandlerFailureException$, errors_1.HandlerFailureException);
137
+ exports.HandlerInternalFailureException$ = [-3, n0, _HIFE,
138
+ { [_aQE]: [`HandlerInternalFailureException`, 502], [_e]: _se, [_hE]: 502 },
139
+ [_M],
140
+ [0]
141
+ ];
142
+ n0_registry.registerError(exports.HandlerInternalFailureException$, errors_1.HandlerInternalFailureException);
143
+ exports.InvalidCredentialsException$ = [-3, n0, _ICE,
144
+ { [_aQE]: [`InvalidCredentialsException`, 401], [_e]: _c, [_hE]: 401 },
145
+ [_M],
146
+ [0]
147
+ ];
148
+ n0_registry.registerError(exports.InvalidCredentialsException$, errors_1.InvalidCredentialsException);
149
+ exports.InvalidRequestException$ = [-3, n0, _IRE,
150
+ { [_aQE]: [`InvalidRequestException`, 400], [_e]: _c, [_hE]: 400 },
151
+ [_M],
152
+ [0]
153
+ ];
154
+ n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
155
+ exports.NetworkFailureException$ = [-3, n0, _NFE,
156
+ { [_aQE]: [`NetworkFailureException`, 502], [_e]: _se, [_hE]: 502 },
157
+ [_M],
158
+ [0]
159
+ ];
160
+ n0_registry.registerError(exports.NetworkFailureException$, errors_1.NetworkFailureException);
161
+ exports.NotStabilizedException$ = [-3, n0, _NSE,
162
+ { [_aQE]: [`NotStabilizedException`, 400], [_e]: _c, [_hE]: 400 },
163
+ [_M],
164
+ [0]
165
+ ];
166
+ n0_registry.registerError(exports.NotStabilizedException$, errors_1.NotStabilizedException);
167
+ exports.NotUpdatableException$ = [-3, n0, _NUE,
168
+ { [_aQE]: [`NotUpdatableException`, 400], [_e]: _c, [_hE]: 400 },
169
+ [_M],
170
+ [0]
171
+ ];
172
+ n0_registry.registerError(exports.NotUpdatableException$, errors_1.NotUpdatableException);
173
+ exports.PrivateTypeException$ = [-3, n0, _PTE,
174
+ { [_aQE]: [`PrivateTypeException`, 400], [_e]: _c, [_hE]: 400 },
175
+ [_M],
176
+ [0]
177
+ ];
178
+ n0_registry.registerError(exports.PrivateTypeException$, errors_1.PrivateTypeException);
179
+ exports.RequestTokenNotFoundException$ = [-3, n0, _RTNFE,
180
+ { [_aQE]: [`RequestTokenNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
181
+ [_M],
182
+ [0]
183
+ ];
184
+ n0_registry.registerError(exports.RequestTokenNotFoundException$, errors_1.RequestTokenNotFoundException);
185
+ exports.ResourceConflictException$ = [-3, n0, _RCE,
186
+ { [_aQE]: [`ResourceConflictException`, 409], [_e]: _c, [_hE]: 409 },
187
+ [_M],
188
+ [0]
189
+ ];
190
+ n0_registry.registerError(exports.ResourceConflictException$, errors_1.ResourceConflictException);
191
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
192
+ { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
193
+ [_M],
194
+ [0]
195
+ ];
196
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
197
+ exports.ServiceInternalErrorException$ = [-3, n0, _SIEE,
198
+ { [_aQE]: [`ServiceInternalErrorException`, 502], [_e]: _se, [_hE]: 502 },
199
+ [_M],
200
+ [0]
201
+ ];
202
+ n0_registry.registerError(exports.ServiceInternalErrorException$, errors_1.ServiceInternalErrorException);
203
+ exports.ServiceLimitExceededException$ = [-3, n0, _SLEE,
204
+ { [_aQE]: [`ServiceLimitExceededException`, 400], [_e]: _c, [_hE]: 400 },
205
+ [_M],
206
+ [0]
207
+ ];
208
+ n0_registry.registerError(exports.ServiceLimitExceededException$, errors_1.ServiceLimitExceededException);
209
+ exports.ThrottlingException$ = [-3, n0, _TE,
210
+ { [_aQE]: [`ThrottlingException`, 429], [_e]: _c, [_hE]: 429 },
211
+ [_M],
212
+ [0]
213
+ ];
214
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
215
+ exports.TypeNotFoundException$ = [-3, n0, _TNFE,
216
+ { [_aQE]: [`TypeNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
217
+ [_M],
218
+ [0]
219
+ ];
220
+ n0_registry.registerError(exports.TypeNotFoundException$, errors_1.TypeNotFoundException);
221
+ exports.UnsupportedActionException$ = [-3, n0, _UAE,
222
+ { [_aQE]: [`UnsupportedActionException`, 405], [_e]: _c, [_hE]: 405 },
223
+ [_M],
224
+ [0]
225
+ ];
226
+ n0_registry.registerError(exports.UnsupportedActionException$, errors_1.UnsupportedActionException);
227
+ exports.errorTypeRegistries = [
228
+ _s_registry,
229
+ n0_registry,
230
+ ];
231
+ var PatchDocument = [0, n0, _PD, 8, 0];
232
+ var Properties = [0, n0, _P, 8, 0];
233
+ exports.CancelResourceRequestInput$ = [3, n0, _CRRI,
234
+ 0,
235
+ [_RT],
236
+ [0], 1
237
+ ];
238
+ exports.CancelResourceRequestOutput$ = [3, n0, _CRRO,
239
+ 0,
240
+ [_PE],
241
+ [[() => exports.ProgressEvent$, 0]]
242
+ ];
243
+ exports.CreateResourceInput$ = [3, n0, _CRI,
244
+ 0,
245
+ [_TN, _DS, _TVI, _RA, _CT],
246
+ [0, [() => Properties, 0], 0, 0, [0, 4]], 2
247
+ ];
248
+ exports.CreateResourceOutput$ = [3, n0, _CRO,
249
+ 0,
250
+ [_PE],
251
+ [[() => exports.ProgressEvent$, 0]]
252
+ ];
253
+ exports.DeleteResourceInput$ = [3, n0, _DRI,
254
+ 0,
255
+ [_TN, _I, _TVI, _RA, _CT],
256
+ [0, 0, 0, 0, [0, 4]], 2
257
+ ];
258
+ exports.DeleteResourceOutput$ = [3, n0, _DRO,
259
+ 0,
260
+ [_PE],
261
+ [[() => exports.ProgressEvent$, 0]]
262
+ ];
263
+ exports.GetResourceInput$ = [3, n0, _GRI,
264
+ 0,
265
+ [_TN, _I, _TVI, _RA],
266
+ [0, 0, 0, 0], 2
267
+ ];
268
+ exports.GetResourceOutput$ = [3, n0, _GRO,
269
+ 0,
270
+ [_TN, _RD],
271
+ [0, [() => exports.ResourceDescription$, 0]]
272
+ ];
273
+ exports.GetResourceRequestStatusInput$ = [3, n0, _GRRSI,
274
+ 0,
275
+ [_RT],
276
+ [0], 1
277
+ ];
278
+ exports.GetResourceRequestStatusOutput$ = [3, n0, _GRRSO,
279
+ 0,
280
+ [_PE, _HPE],
281
+ [[() => exports.ProgressEvent$, 0], () => HooksProgressEvent]
282
+ ];
283
+ exports.HookProgressEvent$ = [3, n0, _HPEo,
284
+ 0,
285
+ [_HTN, _HTVI, _HTA, _IP, _HS, _HET, _HSM, _FM],
286
+ [0, 0, 0, 0, 0, 4, 0, 0]
287
+ ];
288
+ exports.ListResourceRequestsInput$ = [3, n0, _LRRI,
289
+ 0,
290
+ [_MR, _NT, _RRSF],
291
+ [1, 0, () => exports.ResourceRequestStatusFilter$]
292
+ ];
293
+ exports.ListResourceRequestsOutput$ = [3, n0, _LRRO,
294
+ 0,
295
+ [_RRSS, _NT],
296
+ [[() => ResourceRequestStatusSummaries, 0], 0]
297
+ ];
298
+ exports.ListResourcesInput$ = [3, n0, _LRI,
299
+ 0,
300
+ [_TN, _TVI, _RA, _NT, _MR, _RM],
301
+ [0, 0, 0, 0, 1, [() => Properties, 0]], 1
302
+ ];
303
+ exports.ListResourcesOutput$ = [3, n0, _LRO,
304
+ 0,
305
+ [_TN, _RDe, _NT],
306
+ [0, [() => ResourceDescriptions, 0], 0]
307
+ ];
308
+ exports.ProgressEvent$ = [3, n0, _PE,
309
+ 0,
310
+ [_TN, _I, _RT, _HRT, _O, _OS, _ET, _RM, _SM, _EC, _RAe],
311
+ [0, 0, 0, 0, 0, 0, 4, [() => Properties, 0], 0, 0, 4]
312
+ ];
313
+ exports.ResourceDescription$ = [3, n0, _RD,
314
+ 0,
315
+ [_I, _P],
316
+ [0, [() => Properties, 0]]
317
+ ];
318
+ exports.ResourceRequestStatusFilter$ = [3, n0, _RRSF,
319
+ 0,
320
+ [_Op, _OSp],
321
+ [64 | 0, 64 | 0]
322
+ ];
323
+ exports.UpdateResourceInput$ = [3, n0, _URI,
324
+ 0,
325
+ [_TN, _I, _PD, _TVI, _RA, _CT],
326
+ [0, 0, [() => PatchDocument, 0], 0, 0, [0, 4]], 3
327
+ ];
328
+ exports.UpdateResourceOutput$ = [3, n0, _URO,
329
+ 0,
330
+ [_PE],
331
+ [[() => exports.ProgressEvent$, 0]]
332
+ ];
333
+ var HooksProgressEvent = [1, n0, _HPE,
334
+ 0, () => exports.HookProgressEvent$
335
+ ];
336
+ var Operations = 64 | 0;
337
+ var OperationStatuses = 64 | 0;
338
+ var ResourceDescriptions = [1, n0, _RDe,
339
+ 0, [() => exports.ResourceDescription$,
340
+ 0]
341
+ ];
342
+ var ResourceRequestStatusSummaries = [1, n0, _RRSS,
343
+ 0, [() => exports.ProgressEvent$,
344
+ 0]
345
+ ];
346
+ exports.CancelResourceRequest$ = [9, n0, _CRR,
347
+ 2, () => exports.CancelResourceRequestInput$, () => exports.CancelResourceRequestOutput$
348
+ ];
349
+ exports.CreateResource$ = [9, n0, _CR,
350
+ 0, () => exports.CreateResourceInput$, () => exports.CreateResourceOutput$
351
+ ];
352
+ exports.DeleteResource$ = [9, n0, _DR,
353
+ 0, () => exports.DeleteResourceInput$, () => exports.DeleteResourceOutput$
354
+ ];
355
+ exports.GetResource$ = [9, n0, _GR,
356
+ 0, () => exports.GetResourceInput$, () => exports.GetResourceOutput$
357
+ ];
358
+ exports.GetResourceRequestStatus$ = [9, n0, _GRRS,
359
+ 0, () => exports.GetResourceRequestStatusInput$, () => exports.GetResourceRequestStatusOutput$
360
+ ];
361
+ exports.ListResourceRequests$ = [9, n0, _LRR,
362
+ 0, () => exports.ListResourceRequestsInput$, () => exports.ListResourceRequestsOutput$
363
+ ];
364
+ exports.ListResources$ = [9, n0, _LR,
365
+ 0, () => exports.ListResourcesInput$, () => exports.ListResourcesOutput$
366
+ ];
367
+ exports.UpdateResource$ = [9, n0, _UR,
368
+ 0, () => exports.UpdateResourceInput$, () => exports.UpdateResourceOutput$
369
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultCloudControlHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2021-09-30",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_0Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.cloudcontrol",
30
+ errorTypeRegistries,
29
31
  version: "2021-09-30",
30
32
  serviceTarget: "CloudApiService",
31
33
  },