@aws-sdk/client-appconfigdata 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.
package/dist-cjs/index.js CHANGED
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var AppConfigDataServiceException = require('./models/AppConfigDataServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,191 +113,6 @@ class AppConfigDataClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class AppConfigDataServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, AppConfigDataServiceException.prototype);
117
- }
118
- }
119
-
120
- class BadRequestException extends AppConfigDataServiceException {
121
- name = "BadRequestException";
122
- $fault = "client";
123
- Message;
124
- Reason;
125
- Details;
126
- constructor(opts) {
127
- super({
128
- name: "BadRequestException",
129
- $fault: "client",
130
- ...opts,
131
- });
132
- Object.setPrototypeOf(this, BadRequestException.prototype);
133
- this.Message = opts.Message;
134
- this.Reason = opts.Reason;
135
- this.Details = opts.Details;
136
- }
137
- }
138
- class InternalServerException extends AppConfigDataServiceException {
139
- name = "InternalServerException";
140
- $fault = "server";
141
- Message;
142
- constructor(opts) {
143
- super({
144
- name: "InternalServerException",
145
- $fault: "server",
146
- ...opts,
147
- });
148
- Object.setPrototypeOf(this, InternalServerException.prototype);
149
- this.Message = opts.Message;
150
- }
151
- }
152
- class ResourceNotFoundException extends AppConfigDataServiceException {
153
- name = "ResourceNotFoundException";
154
- $fault = "client";
155
- Message;
156
- ResourceType;
157
- ReferencedBy;
158
- constructor(opts) {
159
- super({
160
- name: "ResourceNotFoundException",
161
- $fault: "client",
162
- ...opts,
163
- });
164
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
165
- this.Message = opts.Message;
166
- this.ResourceType = opts.ResourceType;
167
- this.ReferencedBy = opts.ReferencedBy;
168
- }
169
- }
170
- class ThrottlingException extends AppConfigDataServiceException {
171
- name = "ThrottlingException";
172
- $fault = "client";
173
- Message;
174
- constructor(opts) {
175
- super({
176
- name: "ThrottlingException",
177
- $fault: "client",
178
- ...opts,
179
- });
180
- Object.setPrototypeOf(this, ThrottlingException.prototype);
181
- this.Message = opts.Message;
182
- }
183
- }
184
-
185
- const _AI = "ApplicationIdentifier";
186
- const _BRD = "BadRequestDetails";
187
- const _BRE = "BadRequestException";
188
- const _C = "Configuration";
189
- const _CPI = "ConfigurationProfileIdentifier";
190
- const _CT = "ConfigurationToken";
191
- const _CT_ = "Content-Type";
192
- const _CTo = "ContentType";
193
- const _D = "Details";
194
- const _EI = "EnvironmentIdentifier";
195
- const _GLC = "GetLatestConfiguration";
196
- const _GLCR = "GetLatestConfigurationRequest";
197
- const _GLCRe = "GetLatestConfigurationResponse";
198
- const _ICT = "InitialConfigurationToken";
199
- const _IP = "InvalidParameters";
200
- const _IPD = "InvalidParameterDetail";
201
- const _IPM = "InvalidParameterMap";
202
- const _ISE = "InternalServerException";
203
- const _M = "Message";
204
- const _NPCT = "NextPollConfigurationToken";
205
- const _NPCT_ = "Next-Poll-Configuration-Token";
206
- const _NPIIS = "NextPollIntervalInSeconds";
207
- const _NPIIS_ = "Next-Poll-Interval-In-Seconds";
208
- const _P = "Problem";
209
- const _R = "Reason";
210
- const _RB = "ReferencedBy";
211
- const _RMPIIS = "RequiredMinimumPollIntervalInSeconds";
212
- const _RNFE = "ResourceNotFoundException";
213
- const _RT = "ResourceType";
214
- const _SB = "SensitiveBlob";
215
- const _SCS = "StartConfigurationSession";
216
- const _SCSR = "StartConfigurationSessionRequest";
217
- const _SCSRt = "StartConfigurationSessionResponse";
218
- const _TE = "ThrottlingException";
219
- const _VL = "VersionLabel";
220
- const _VL_ = "Version-Label";
221
- const _c = "client";
222
- const _ct = "configuration_token";
223
- const _e = "error";
224
- const _h = "http";
225
- const _hE = "httpError";
226
- const _hH = "httpHeader";
227
- const _hQ = "httpQuery";
228
- const _s = "server";
229
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
230
- const n0 = "com.amazonaws.appconfigdata";
231
- var SensitiveBlob = [0, n0, _SB, 8, 21];
232
- var BadRequestException$ = [-3, n0, _BRE,
233
- { [_e]: _c, [_hE]: 400 },
234
- [_M, _R, _D],
235
- [0, 0, () => BadRequestDetails$]
236
- ];
237
- schema.TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
238
- var GetLatestConfigurationRequest$ = [3, n0, _GLCR,
239
- 0,
240
- [_CT],
241
- [[0, { [_hQ]: _ct }]], 1
242
- ];
243
- var GetLatestConfigurationResponse$ = [3, n0, _GLCRe,
244
- 0,
245
- [_NPCT, _NPIIS, _CTo, _C, _VL],
246
- [[0, { [_hH]: _NPCT_ }], [1, { [_hH]: _NPIIS_ }], [0, { [_hH]: _CT_ }], [() => SensitiveBlob, 16], [0, { [_hH]: _VL_ }]]
247
- ];
248
- var InternalServerException$ = [-3, n0, _ISE,
249
- { [_e]: _s, [_hE]: 500 },
250
- [_M],
251
- [0]
252
- ];
253
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
254
- var InvalidParameterDetail$ = [3, n0, _IPD,
255
- 0,
256
- [_P],
257
- [0]
258
- ];
259
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
260
- { [_e]: _c, [_hE]: 404 },
261
- [_M, _RT, _RB],
262
- [0, 0, 128 | 0]
263
- ];
264
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
265
- var StartConfigurationSessionRequest$ = [3, n0, _SCSR,
266
- 0,
267
- [_AI, _EI, _CPI, _RMPIIS],
268
- [0, 0, 0, 1], 3
269
- ];
270
- var StartConfigurationSessionResponse$ = [3, n0, _SCSRt,
271
- 0,
272
- [_ICT],
273
- [0]
274
- ];
275
- var ThrottlingException$ = [-3, n0, _TE,
276
- { [_e]: _c, [_hE]: 429 },
277
- [_M],
278
- [0]
279
- ];
280
- schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
281
- var AppConfigDataServiceException$ = [-3, _sm, "AppConfigDataServiceException", 0, [], []];
282
- schema.TypeRegistry.for(_sm).registerError(AppConfigDataServiceException$, AppConfigDataServiceException);
283
- var InvalidParameterMap = [2, n0, _IPM,
284
- 0, 0, () => InvalidParameterDetail$
285
- ];
286
- var BadRequestDetails$ = [4, n0, _BRD,
287
- 0,
288
- [_IP],
289
- [() => InvalidParameterMap]
290
- ];
291
- var GetLatestConfiguration$ = [9, n0, _GLC,
292
- { [_h]: ["GET", "/configuration", 200] }, () => GetLatestConfigurationRequest$, () => GetLatestConfigurationResponse$
293
- ];
294
- var StartConfigurationSession$ = [9, n0, _SCS,
295
- { [_h]: ["POST", "/configurationsessions", 201] }, () => StartConfigurationSessionRequest$, () => StartConfigurationSessionResponse$
296
- ];
297
-
298
116
  class GetLatestConfigurationCommand extends smithyClient.Command
299
117
  .classBuilder()
300
118
  .ep(commonParams)
@@ -303,7 +121,7 @@ class GetLatestConfigurationCommand extends smithyClient.Command
303
121
  })
304
122
  .s("AppConfigData", "GetLatestConfiguration", {})
305
123
  .n("AppConfigDataClient", "GetLatestConfigurationCommand")
306
- .sc(GetLatestConfiguration$)
124
+ .sc(schemas_0.GetLatestConfiguration$)
307
125
  .build() {
308
126
  }
309
127
 
@@ -315,7 +133,7 @@ class StartConfigurationSessionCommand extends smithyClient.Command
315
133
  })
316
134
  .s("AppConfigData", "StartConfigurationSession", {})
317
135
  .n("AppConfigDataClient", "StartConfigurationSessionCommand")
318
- .sc(StartConfigurationSession$)
136
+ .sc(schemas_0.StartConfigurationSession$)
319
137
  .build() {
320
138
  }
321
139
 
@@ -351,28 +169,26 @@ Object.defineProperty(exports, "__Client", {
351
169
  enumerable: true,
352
170
  get: function () { return smithyClient.Client; }
353
171
  });
172
+ Object.defineProperty(exports, "AppConfigDataServiceException", {
173
+ enumerable: true,
174
+ get: function () { return AppConfigDataServiceException.AppConfigDataServiceException; }
175
+ });
354
176
  exports.AppConfigData = AppConfigData;
355
177
  exports.AppConfigDataClient = AppConfigDataClient;
356
- exports.AppConfigDataServiceException = AppConfigDataServiceException;
357
- exports.AppConfigDataServiceException$ = AppConfigDataServiceException$;
358
- exports.BadRequestDetails$ = BadRequestDetails$;
359
- exports.BadRequestException = BadRequestException;
360
- exports.BadRequestException$ = BadRequestException$;
361
178
  exports.BadRequestReason = BadRequestReason;
362
- exports.GetLatestConfiguration$ = GetLatestConfiguration$;
363
179
  exports.GetLatestConfigurationCommand = GetLatestConfigurationCommand;
364
- exports.GetLatestConfigurationRequest$ = GetLatestConfigurationRequest$;
365
- exports.GetLatestConfigurationResponse$ = GetLatestConfigurationResponse$;
366
- exports.InternalServerException = InternalServerException;
367
- exports.InternalServerException$ = InternalServerException$;
368
- exports.InvalidParameterDetail$ = InvalidParameterDetail$;
369
180
  exports.InvalidParameterProblem = InvalidParameterProblem;
370
- exports.ResourceNotFoundException = ResourceNotFoundException;
371
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
372
181
  exports.ResourceType = ResourceType;
373
- exports.StartConfigurationSession$ = StartConfigurationSession$;
374
182
  exports.StartConfigurationSessionCommand = StartConfigurationSessionCommand;
375
- exports.StartConfigurationSessionRequest$ = StartConfigurationSessionRequest$;
376
- exports.StartConfigurationSessionResponse$ = StartConfigurationSessionResponse$;
377
- exports.ThrottlingException = ThrottlingException;
378
- exports.ThrottlingException$ = ThrottlingException$;
183
+ Object.keys(schemas_0).forEach(function (k) {
184
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
185
+ enumerable: true,
186
+ get: function () { return schemas_0[k]; }
187
+ });
188
+ });
189
+ Object.keys(errors).forEach(function (k) {
190
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
191
+ enumerable: true,
192
+ get: function () { return errors[k]; }
193
+ });
194
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppConfigDataServiceException = 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 AppConfigDataServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, AppConfigDataServiceException.prototype);
10
+ }
11
+ }
12
+ exports.AppConfigDataServiceException = AppConfigDataServiceException;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.BadRequestException = void 0;
4
+ const AppConfigDataServiceException_1 = require("./AppConfigDataServiceException");
5
+ class BadRequestException extends AppConfigDataServiceException_1.AppConfigDataServiceException {
6
+ name = "BadRequestException";
7
+ $fault = "client";
8
+ Message;
9
+ Reason;
10
+ Details;
11
+ constructor(opts) {
12
+ super({
13
+ name: "BadRequestException",
14
+ $fault: "client",
15
+ ...opts,
16
+ });
17
+ Object.setPrototypeOf(this, BadRequestException.prototype);
18
+ this.Message = opts.Message;
19
+ this.Reason = opts.Reason;
20
+ this.Details = opts.Details;
21
+ }
22
+ }
23
+ exports.BadRequestException = BadRequestException;
24
+ class InternalServerException extends AppConfigDataServiceException_1.AppConfigDataServiceException {
25
+ name = "InternalServerException";
26
+ $fault = "server";
27
+ Message;
28
+ constructor(opts) {
29
+ super({
30
+ name: "InternalServerException",
31
+ $fault: "server",
32
+ ...opts,
33
+ });
34
+ Object.setPrototypeOf(this, InternalServerException.prototype);
35
+ this.Message = opts.Message;
36
+ }
37
+ }
38
+ exports.InternalServerException = InternalServerException;
39
+ class ResourceNotFoundException extends AppConfigDataServiceException_1.AppConfigDataServiceException {
40
+ name = "ResourceNotFoundException";
41
+ $fault = "client";
42
+ Message;
43
+ ResourceType;
44
+ ReferencedBy;
45
+ constructor(opts) {
46
+ super({
47
+ name: "ResourceNotFoundException",
48
+ $fault: "client",
49
+ ...opts,
50
+ });
51
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
52
+ this.Message = opts.Message;
53
+ this.ResourceType = opts.ResourceType;
54
+ this.ReferencedBy = opts.ReferencedBy;
55
+ }
56
+ }
57
+ exports.ResourceNotFoundException = ResourceNotFoundException;
58
+ class ThrottlingException extends AppConfigDataServiceException_1.AppConfigDataServiceException {
59
+ name = "ThrottlingException";
60
+ $fault = "client";
61
+ Message;
62
+ constructor(opts) {
63
+ super({
64
+ name: "ThrottlingException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
69
+ this.Message = opts.Message;
70
+ }
71
+ }
72
+ exports.ThrottlingException = ThrottlingException;
@@ -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: "2021-11-11",
@@ -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.appconfigdata",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2021-11-11",
33
35
  serviceTarget: "AppConfigData",
34
36
  },
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartConfigurationSession$ = exports.GetLatestConfiguration$ = exports.BadRequestDetails$ = exports.StartConfigurationSessionResponse$ = exports.StartConfigurationSessionRequest$ = exports.InvalidParameterDetail$ = exports.GetLatestConfigurationResponse$ = exports.GetLatestConfigurationRequest$ = exports.errorTypeRegistries = exports.ThrottlingException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.BadRequestException$ = exports.AppConfigDataServiceException$ = void 0;
4
+ const _AI = "ApplicationIdentifier";
5
+ const _BRD = "BadRequestDetails";
6
+ const _BRE = "BadRequestException";
7
+ const _C = "Configuration";
8
+ const _CPI = "ConfigurationProfileIdentifier";
9
+ const _CT = "ConfigurationToken";
10
+ const _CT_ = "Content-Type";
11
+ const _CTo = "ContentType";
12
+ const _D = "Details";
13
+ const _EI = "EnvironmentIdentifier";
14
+ const _GLC = "GetLatestConfiguration";
15
+ const _GLCR = "GetLatestConfigurationRequest";
16
+ const _GLCRe = "GetLatestConfigurationResponse";
17
+ const _ICT = "InitialConfigurationToken";
18
+ const _IP = "InvalidParameters";
19
+ const _IPD = "InvalidParameterDetail";
20
+ const _IPM = "InvalidParameterMap";
21
+ const _ISE = "InternalServerException";
22
+ const _M = "Message";
23
+ const _NPCT = "NextPollConfigurationToken";
24
+ const _NPCT_ = "Next-Poll-Configuration-Token";
25
+ const _NPIIS = "NextPollIntervalInSeconds";
26
+ const _NPIIS_ = "Next-Poll-Interval-In-Seconds";
27
+ const _P = "Problem";
28
+ const _R = "Reason";
29
+ const _RB = "ReferencedBy";
30
+ const _RMPIIS = "RequiredMinimumPollIntervalInSeconds";
31
+ const _RNFE = "ResourceNotFoundException";
32
+ const _RT = "ResourceType";
33
+ const _SB = "SensitiveBlob";
34
+ const _SCS = "StartConfigurationSession";
35
+ const _SCSR = "StartConfigurationSessionRequest";
36
+ const _SCSRt = "StartConfigurationSessionResponse";
37
+ const _TE = "ThrottlingException";
38
+ const _VL = "VersionLabel";
39
+ const _VL_ = "Version-Label";
40
+ const _c = "client";
41
+ const _ct = "configuration_token";
42
+ const _e = "error";
43
+ const _h = "http";
44
+ const _hE = "httpError";
45
+ const _hH = "httpHeader";
46
+ const _hQ = "httpQuery";
47
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
48
+ const _se = "server";
49
+ const n0 = "com.amazonaws.appconfigdata";
50
+ const schema_1 = require("@smithy/core/schema");
51
+ const AppConfigDataServiceException_1 = require("../models/AppConfigDataServiceException");
52
+ const errors_1 = require("../models/errors");
53
+ const _s_registry = schema_1.TypeRegistry.for(_s);
54
+ exports.AppConfigDataServiceException$ = [-3, _s, "AppConfigDataServiceException", 0, [], []];
55
+ _s_registry.registerError(exports.AppConfigDataServiceException$, AppConfigDataServiceException_1.AppConfigDataServiceException);
56
+ const n0_registry = schema_1.TypeRegistry.for(n0);
57
+ exports.BadRequestException$ = [-3, n0, _BRE,
58
+ { [_e]: _c, [_hE]: 400 },
59
+ [_M, _R, _D],
60
+ [0, 0, () => exports.BadRequestDetails$]
61
+ ];
62
+ n0_registry.registerError(exports.BadRequestException$, errors_1.BadRequestException);
63
+ exports.InternalServerException$ = [-3, n0, _ISE,
64
+ { [_e]: _se, [_hE]: 500 },
65
+ [_M],
66
+ [0]
67
+ ];
68
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
69
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
70
+ { [_e]: _c, [_hE]: 404 },
71
+ [_M, _RT, _RB],
72
+ [0, 0, 128 | 0]
73
+ ];
74
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
75
+ exports.ThrottlingException$ = [-3, n0, _TE,
76
+ { [_e]: _c, [_hE]: 429 },
77
+ [_M],
78
+ [0]
79
+ ];
80
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
81
+ exports.errorTypeRegistries = [
82
+ _s_registry,
83
+ n0_registry,
84
+ ];
85
+ var SensitiveBlob = [0, n0, _SB, 8, 21];
86
+ exports.GetLatestConfigurationRequest$ = [3, n0, _GLCR,
87
+ 0,
88
+ [_CT],
89
+ [[0, { [_hQ]: _ct }]], 1
90
+ ];
91
+ exports.GetLatestConfigurationResponse$ = [3, n0, _GLCRe,
92
+ 0,
93
+ [_NPCT, _NPIIS, _CTo, _C, _VL],
94
+ [[0, { [_hH]: _NPCT_ }], [1, { [_hH]: _NPIIS_ }], [0, { [_hH]: _CT_ }], [() => SensitiveBlob, 16], [0, { [_hH]: _VL_ }]]
95
+ ];
96
+ exports.InvalidParameterDetail$ = [3, n0, _IPD,
97
+ 0,
98
+ [_P],
99
+ [0]
100
+ ];
101
+ exports.StartConfigurationSessionRequest$ = [3, n0, _SCSR,
102
+ 0,
103
+ [_AI, _EI, _CPI, _RMPIIS],
104
+ [0, 0, 0, 1], 3
105
+ ];
106
+ exports.StartConfigurationSessionResponse$ = [3, n0, _SCSRt,
107
+ 0,
108
+ [_ICT],
109
+ [0]
110
+ ];
111
+ var InvalidParameterMap = [2, n0, _IPM,
112
+ 0, 0, () => exports.InvalidParameterDetail$
113
+ ];
114
+ var StringMap = 128 | 0;
115
+ exports.BadRequestDetails$ = [4, n0, _BRD,
116
+ 0,
117
+ [_IP],
118
+ [() => InvalidParameterMap]
119
+ ];
120
+ exports.GetLatestConfiguration$ = [9, n0, _GLC,
121
+ { [_h]: ["GET", "/configuration", 200] }, () => exports.GetLatestConfigurationRequest$, () => exports.GetLatestConfigurationResponse$
122
+ ];
123
+ exports.StartConfigurationSession$ = [9, n0, _SCS,
124
+ { [_h]: ["POST", "/configurationsessions", 201] }, () => exports.StartConfigurationSessionRequest$, () => exports.StartConfigurationSessionResponse$
125
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultAppConfigDataHttpAuthSchemeProvider } 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-11-11",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.appconfigdata",
30
+ errorTypeRegistries,
29
31
  version: "2021-11-11",
30
32
  serviceTarget: "AppConfigData",
31
33
  },
@@ -41,19 +41,45 @@ const _h = "http";
41
41
  const _hE = "httpError";
42
42
  const _hH = "httpHeader";
43
43
  const _hQ = "httpQuery";
44
- const _s = "server";
45
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
44
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
45
+ const _se = "server";
46
46
  const n0 = "com.amazonaws.appconfigdata";
47
47
  import { TypeRegistry } from "@smithy/core/schema";
48
48
  import { AppConfigDataServiceException } from "../models/AppConfigDataServiceException";
49
49
  import { BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/errors";
50
- var SensitiveBlob = [0, n0, _SB, 8, 21];
50
+ const _s_registry = TypeRegistry.for(_s);
51
+ export var AppConfigDataServiceException$ = [-3, _s, "AppConfigDataServiceException", 0, [], []];
52
+ _s_registry.registerError(AppConfigDataServiceException$, AppConfigDataServiceException);
53
+ const n0_registry = TypeRegistry.for(n0);
51
54
  export var BadRequestException$ = [-3, n0, _BRE,
52
55
  { [_e]: _c, [_hE]: 400 },
53
56
  [_M, _R, _D],
54
57
  [0, 0, () => BadRequestDetails$]
55
58
  ];
56
- TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
59
+ n0_registry.registerError(BadRequestException$, BadRequestException);
60
+ export var InternalServerException$ = [-3, n0, _ISE,
61
+ { [_e]: _se, [_hE]: 500 },
62
+ [_M],
63
+ [0]
64
+ ];
65
+ n0_registry.registerError(InternalServerException$, InternalServerException);
66
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
67
+ { [_e]: _c, [_hE]: 404 },
68
+ [_M, _RT, _RB],
69
+ [0, 0, 128 | 0]
70
+ ];
71
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
72
+ export var ThrottlingException$ = [-3, n0, _TE,
73
+ { [_e]: _c, [_hE]: 429 },
74
+ [_M],
75
+ [0]
76
+ ];
77
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
78
+ export const errorTypeRegistries = [
79
+ _s_registry,
80
+ n0_registry,
81
+ ];
82
+ var SensitiveBlob = [0, n0, _SB, 8, 21];
57
83
  export var GetLatestConfigurationRequest$ = [3, n0, _GLCR,
58
84
  0,
59
85
  [_CT],
@@ -64,23 +90,11 @@ export var GetLatestConfigurationResponse$ = [3, n0, _GLCRe,
64
90
  [_NPCT, _NPIIS, _CTo, _C, _VL],
65
91
  [[0, { [_hH]: _NPCT_ }], [1, { [_hH]: _NPIIS_ }], [0, { [_hH]: _CT_ }], [() => SensitiveBlob, 16], [0, { [_hH]: _VL_ }]]
66
92
  ];
67
- export var InternalServerException$ = [-3, n0, _ISE,
68
- { [_e]: _s, [_hE]: 500 },
69
- [_M],
70
- [0]
71
- ];
72
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
73
93
  export var InvalidParameterDetail$ = [3, n0, _IPD,
74
94
  0,
75
95
  [_P],
76
96
  [0]
77
97
  ];
78
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
79
- { [_e]: _c, [_hE]: 404 },
80
- [_M, _RT, _RB],
81
- [0, 0, 128 | 0]
82
- ];
83
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
84
98
  export var StartConfigurationSessionRequest$ = [3, n0, _SCSR,
85
99
  0,
86
100
  [_AI, _EI, _CPI, _RMPIIS],
@@ -91,14 +105,6 @@ export var StartConfigurationSessionResponse$ = [3, n0, _SCSRt,
91
105
  [_ICT],
92
106
  [0]
93
107
  ];
94
- export var ThrottlingException$ = [-3, n0, _TE,
95
- { [_e]: _c, [_hE]: 429 },
96
- [_M],
97
- [0]
98
- ];
99
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
100
- export var AppConfigDataServiceException$ = [-3, _sm, "AppConfigDataServiceException", 0, [], []];
101
- TypeRegistry.for(_sm).registerError(AppConfigDataServiceException$, AppConfigDataServiceException);
102
108
  var InvalidParameterMap = [2, n0, _IPM,
103
109
  0, 0, () => InvalidParameterDetail$
104
110
  ];
@@ -1,14 +1,21 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var AppConfigDataServiceException$: StaticErrorSchema;
2
4
  export declare var BadRequestException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
7
+ export declare var ThrottlingException$: StaticErrorSchema;
8
+ /**
9
+ * TypeRegistry instances containing modeled errors.
10
+ * @internal
11
+ *
12
+ */
13
+ export declare const errorTypeRegistries: TypeRegistry[];
3
14
  export declare var GetLatestConfigurationRequest$: StaticStructureSchema;
4
15
  export declare var GetLatestConfigurationResponse$: StaticStructureSchema;
5
- export declare var InternalServerException$: StaticErrorSchema;
6
16
  export declare var InvalidParameterDetail$: StaticStructureSchema;
7
- export declare var ResourceNotFoundException$: StaticErrorSchema;
8
17
  export declare var StartConfigurationSessionRequest$: StaticStructureSchema;
9
18
  export declare var StartConfigurationSessionResponse$: StaticStructureSchema;
10
- export declare var ThrottlingException$: StaticErrorSchema;
11
- export declare var AppConfigDataServiceException$: StaticErrorSchema;
12
19
  export declare var BadRequestDetails$: StaticUnionSchema;
13
20
  export declare var GetLatestConfiguration$: StaticOperationSchema;
14
21
  export declare var StartConfigurationSession$: StaticOperationSchema;
@@ -1,19 +1,21 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  StaticUnionSchema,
6
7
  } from "@smithy/types";
8
+ export declare var AppConfigDataServiceException$: StaticErrorSchema;
7
9
  export declare var BadRequestException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ThrottlingException$: StaticErrorSchema;
13
+ export declare const errorTypeRegistries: TypeRegistry[];
8
14
  export declare var GetLatestConfigurationRequest$: StaticStructureSchema;
9
15
  export declare var GetLatestConfigurationResponse$: StaticStructureSchema;
10
- export declare var InternalServerException$: StaticErrorSchema;
11
16
  export declare var InvalidParameterDetail$: StaticStructureSchema;
12
- export declare var ResourceNotFoundException$: StaticErrorSchema;
13
17
  export declare var StartConfigurationSessionRequest$: StaticStructureSchema;
14
18
  export declare var StartConfigurationSessionResponse$: StaticStructureSchema;
15
- export declare var ThrottlingException$: StaticErrorSchema;
16
- export declare var AppConfigDataServiceException$: StaticErrorSchema;
17
19
  export declare var BadRequestDetails$: StaticUnionSchema;
18
20
  export declare var GetLatestConfiguration$: StaticOperationSchema;
19
21
  export declare var StartConfigurationSession$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appconfigdata",
3
3
  "description": "AWS SDK for JavaScript Appconfigdata Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-appconfigdata",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",
59
- "@smithy/util-stream": "^4.5.11",
59
+ "@smithy/util-stream": "^4.5.12",
60
60
  "@smithy/util-utf8": "^4.2.0",
61
61
  "tslib": "^2.6.2"
62
62
  },