@aws-sdk/client-appconfigdata 3.928.0 → 3.930.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
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class AppConfigDataClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,30 +110,22 @@ class AppConfigDataClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class AppConfigDataServiceException extends smithyClient.ServiceException {
113
+ let AppConfigDataServiceException$1 = class AppConfigDataServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, AppConfigDataServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
120
  const InvalidParameterProblem = {
121
121
  CORRUPTED: "Corrupted",
122
122
  EXPIRED: "Expired",
123
123
  POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied",
124
124
  };
125
- exports.BadRequestDetails = void 0;
126
- (function (BadRequestDetails) {
127
- BadRequestDetails.visit = (value, visitor) => {
128
- if (value.InvalidParameters !== undefined)
129
- return visitor.InvalidParameters(value.InvalidParameters);
130
- return visitor._(value.$unknown[0], value.$unknown[1]);
131
- };
132
- })(exports.BadRequestDetails || (exports.BadRequestDetails = {}));
133
125
  const BadRequestReason = {
134
126
  INVALID_PARAMETERS: "InvalidParameters",
135
127
  };
136
- class BadRequestException extends AppConfigDataServiceException {
128
+ let BadRequestException$1 = class BadRequestException extends AppConfigDataServiceException$1 {
137
129
  name = "BadRequestException";
138
130
  $fault = "client";
139
131
  Message;
@@ -150,8 +142,8 @@ class BadRequestException extends AppConfigDataServiceException {
150
142
  this.Reason = opts.Reason;
151
143
  this.Details = opts.Details;
152
144
  }
153
- }
154
- class InternalServerException extends AppConfigDataServiceException {
145
+ };
146
+ let InternalServerException$1 = class InternalServerException extends AppConfigDataServiceException$1 {
155
147
  name = "InternalServerException";
156
148
  $fault = "server";
157
149
  Message;
@@ -164,7 +156,7 @@ class InternalServerException extends AppConfigDataServiceException {
164
156
  Object.setPrototypeOf(this, InternalServerException.prototype);
165
157
  this.Message = opts.Message;
166
158
  }
167
- }
159
+ };
168
160
  const ResourceType = {
169
161
  APPLICATION: "Application",
170
162
  CONFIGURATION: "Configuration",
@@ -172,7 +164,7 @@ const ResourceType = {
172
164
  DEPLOYMENT: "Deployment",
173
165
  ENVIRONMENT: "Environment",
174
166
  };
175
- class ResourceNotFoundException extends AppConfigDataServiceException {
167
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends AppConfigDataServiceException$1 {
176
168
  name = "ResourceNotFoundException";
177
169
  $fault = "client";
178
170
  Message;
@@ -189,8 +181,8 @@ class ResourceNotFoundException extends AppConfigDataServiceException {
189
181
  this.ResourceType = opts.ResourceType;
190
182
  this.ReferencedBy = opts.ReferencedBy;
191
183
  }
192
- }
193
- class ThrottlingException extends AppConfigDataServiceException {
184
+ };
185
+ let ThrottlingException$1 = class ThrottlingException extends AppConfigDataServiceException$1 {
194
186
  name = "ThrottlingException";
195
187
  $fault = "client";
196
188
  Message;
@@ -203,184 +195,196 @@ class ThrottlingException extends AppConfigDataServiceException {
203
195
  Object.setPrototypeOf(this, ThrottlingException.prototype);
204
196
  this.Message = opts.Message;
205
197
  }
206
- }
207
- const GetLatestConfigurationResponseFilterSensitiveLog = (obj) => ({
208
- ...obj,
209
- ...(obj.Configuration && { Configuration: smithyClient.SENSITIVE_STRING }),
210
- });
211
-
212
- const se_GetLatestConfigurationCommand = async (input, context) => {
213
- const b = core.requestBuilder(input, context);
214
- const headers = {};
215
- b.bp("/configuration");
216
- const query = smithyClient.map({
217
- [_ct]: [, smithyClient.expectNonNull(input[_CT], `ConfigurationToken`)],
218
- });
219
- let body;
220
- b.m("GET").h(headers).q(query).b(body);
221
- return b.build();
222
- };
223
- const se_StartConfigurationSessionCommand = async (input, context) => {
224
- const b = core.requestBuilder(input, context);
225
- const headers = {
226
- "content-type": "application/json",
227
- };
228
- b.bp("/configurationsessions");
229
- let body;
230
- body = JSON.stringify(smithyClient.take(input, {
231
- ApplicationIdentifier: [],
232
- ConfigurationProfileIdentifier: [],
233
- EnvironmentIdentifier: [],
234
- RequiredMinimumPollIntervalInSeconds: [],
235
- }));
236
- b.m("POST").h(headers).b(body);
237
- return b.build();
238
- };
239
- const de_GetLatestConfigurationCommand = async (output, context) => {
240
- if (output.statusCode !== 200 && output.statusCode >= 300) {
241
- return de_CommandError(output, context);
242
- }
243
- const contents = smithyClient.map({
244
- $metadata: deserializeMetadata(output),
245
- [_NPCT]: [, output.headers[_npct]],
246
- [_NPIIS]: [() => void 0 !== output.headers[_npiis], () => smithyClient.strictParseInt32(output.headers[_npiis])],
247
- [_CTo]: [, output.headers[_ct_]],
248
- [_VL]: [, output.headers[_vl]],
249
- });
250
- const data = await smithyClient.collectBody(output.body, context);
251
- contents.Configuration = data;
252
- return contents;
253
198
  };
254
- const de_StartConfigurationSessionCommand = async (output, context) => {
255
- if (output.statusCode !== 201 && output.statusCode >= 300) {
256
- return de_CommandError(output, context);
257
- }
258
- const contents = smithyClient.map({
259
- $metadata: deserializeMetadata(output),
260
- });
261
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
262
- const doc = smithyClient.take(data, {
263
- InitialConfigurationToken: smithyClient.expectString,
264
- });
265
- Object.assign(contents, doc);
266
- return contents;
267
- };
268
- const de_CommandError = async (output, context) => {
269
- const parsedOutput = {
270
- ...output,
271
- body: await core$1.parseJsonErrorBody(output.body, context),
272
- };
273
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
274
- switch (errorCode) {
275
- case "BadRequestException":
276
- case "com.amazonaws.appconfigdata#BadRequestException":
277
- throw await de_BadRequestExceptionRes(parsedOutput);
278
- case "InternalServerException":
279
- case "com.amazonaws.appconfigdata#InternalServerException":
280
- throw await de_InternalServerExceptionRes(parsedOutput);
281
- case "ResourceNotFoundException":
282
- case "com.amazonaws.appconfigdata#ResourceNotFoundException":
283
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
284
- case "ThrottlingException":
285
- case "com.amazonaws.appconfigdata#ThrottlingException":
286
- throw await de_ThrottlingExceptionRes(parsedOutput);
287
- default:
288
- const parsedBody = parsedOutput.body;
289
- return throwDefaultError({
290
- output,
291
- parsedBody,
292
- errorCode,
293
- });
294
- }
295
- };
296
- const throwDefaultError = smithyClient.withBaseException(AppConfigDataServiceException);
297
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
298
- const contents = smithyClient.map({});
299
- const data = parsedOutput.body;
300
- const doc = smithyClient.take(data, {
301
- Details: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
302
- Message: smithyClient.expectString,
303
- Reason: smithyClient.expectString,
304
- });
305
- Object.assign(contents, doc);
306
- const exception = new BadRequestException({
307
- $metadata: deserializeMetadata(parsedOutput),
308
- ...contents,
309
- });
310
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
311
- };
312
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
313
- const contents = smithyClient.map({});
314
- const data = parsedOutput.body;
315
- const doc = smithyClient.take(data, {
316
- Message: smithyClient.expectString,
317
- });
318
- Object.assign(contents, doc);
319
- const exception = new InternalServerException({
320
- $metadata: deserializeMetadata(parsedOutput),
321
- ...contents,
322
- });
323
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
324
- };
325
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
326
- const contents = smithyClient.map({});
327
- const data = parsedOutput.body;
328
- const doc = smithyClient.take(data, {
329
- Message: smithyClient.expectString,
330
- ReferencedBy: smithyClient._json,
331
- ResourceType: smithyClient.expectString,
332
- });
333
- Object.assign(contents, doc);
334
- const exception = new ResourceNotFoundException({
335
- $metadata: deserializeMetadata(parsedOutput),
336
- ...contents,
337
- });
338
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
339
- };
340
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
341
- const contents = smithyClient.map({});
342
- const data = parsedOutput.body;
343
- const doc = smithyClient.take(data, {
344
- Message: smithyClient.expectString,
345
- });
346
- Object.assign(contents, doc);
347
- const exception = new ThrottlingException({
348
- $metadata: deserializeMetadata(parsedOutput),
349
- ...contents,
350
- });
351
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
352
- };
353
- const deserializeMetadata = (output) => ({
354
- httpStatusCode: output.statusCode,
355
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
356
- extendedRequestId: output.headers["x-amz-id-2"],
357
- cfId: output.headers["x-amz-cf-id"],
358
- });
199
+
200
+ const _AI = "ApplicationIdentifier";
201
+ const _BRD = "BadRequestDetails";
202
+ const _BRE = "BadRequestException";
203
+ const _C = "Configuration";
204
+ const _CPI = "ConfigurationProfileIdentifier";
359
205
  const _CT = "ConfigurationToken";
206
+ const _CT_ = "Content-Type";
360
207
  const _CTo = "ContentType";
208
+ const _D = "Details";
209
+ const _EI = "EnvironmentIdentifier";
210
+ const _GLC = "GetLatestConfiguration";
211
+ const _GLCR = "GetLatestConfigurationRequest";
212
+ const _GLCRe = "GetLatestConfigurationResponse";
213
+ const _ICT = "InitialConfigurationToken";
214
+ const _IP = "InvalidParameters";
215
+ const _IPD = "InvalidParameterDetail";
216
+ const _IPM = "InvalidParameterMap";
217
+ const _ISE = "InternalServerException";
218
+ const _M = "Message";
361
219
  const _NPCT = "NextPollConfigurationToken";
220
+ const _NPCT_ = "Next-Poll-Configuration-Token";
362
221
  const _NPIIS = "NextPollIntervalInSeconds";
222
+ const _NPIIS_ = "Next-Poll-Interval-In-Seconds";
223
+ const _P = "Problem";
224
+ const _R = "Reason";
225
+ const _RB = "ReferencedBy";
226
+ const _RMPIIS = "RequiredMinimumPollIntervalInSeconds";
227
+ const _RNFE = "ResourceNotFoundException";
228
+ const _RT = "ResourceType";
229
+ const _SB = "SensitiveBlob";
230
+ const _SCS = "StartConfigurationSession";
231
+ const _SCSR = "StartConfigurationSessionRequest";
232
+ const _SCSRt = "StartConfigurationSessionResponse";
233
+ const _TE = "ThrottlingException";
363
234
  const _VL = "VersionLabel";
235
+ const _VL_ = "Version-Label";
236
+ const _c = "client";
364
237
  const _ct = "configuration_token";
365
- const _ct_ = "content-type";
366
- const _npct = "next-poll-configuration-token";
367
- const _npiis = "next-poll-interval-in-seconds";
368
- const _vl = "version-label";
238
+ const _e = "error";
239
+ const _h = "http";
240
+ const _hE = "httpError";
241
+ const _hH = "httpHeader";
242
+ const _hQ = "httpQuery";
243
+ const _s = "server";
244
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
245
+ const n0 = "com.amazonaws.appconfigdata";
246
+ var SensitiveBlob = [0, n0, _SB, 8, 21];
247
+ var BadRequestException = [
248
+ -3,
249
+ n0,
250
+ _BRE,
251
+ {
252
+ [_e]: _c,
253
+ [_hE]: 400,
254
+ },
255
+ [_M, _R, _D],
256
+ [0, 0, () => BadRequestDetails],
257
+ ];
258
+ schema.TypeRegistry.for(n0).registerError(BadRequestException, BadRequestException$1);
259
+ var GetLatestConfigurationRequest = [
260
+ 3,
261
+ n0,
262
+ _GLCR,
263
+ 0,
264
+ [_CT],
265
+ [
266
+ [
267
+ 0,
268
+ {
269
+ [_hQ]: _ct,
270
+ },
271
+ ],
272
+ ],
273
+ ];
274
+ var GetLatestConfigurationResponse = [
275
+ 3,
276
+ n0,
277
+ _GLCRe,
278
+ 0,
279
+ [_NPCT, _NPIIS, _CTo, _C, _VL],
280
+ [
281
+ [
282
+ 0,
283
+ {
284
+ [_hH]: _NPCT_,
285
+ },
286
+ ],
287
+ [
288
+ 1,
289
+ {
290
+ [_hH]: _NPIIS_,
291
+ },
292
+ ],
293
+ [
294
+ 0,
295
+ {
296
+ [_hH]: _CT_,
297
+ },
298
+ ],
299
+ [() => SensitiveBlob, 16],
300
+ [
301
+ 0,
302
+ {
303
+ [_hH]: _VL_,
304
+ },
305
+ ],
306
+ ],
307
+ ];
308
+ var InternalServerException = [
309
+ -3,
310
+ n0,
311
+ _ISE,
312
+ {
313
+ [_e]: _s,
314
+ [_hE]: 500,
315
+ },
316
+ [_M],
317
+ [0],
318
+ ];
319
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
320
+ var InvalidParameterDetail = [3, n0, _IPD, 0, [_P], [0]];
321
+ var ResourceNotFoundException = [
322
+ -3,
323
+ n0,
324
+ _RNFE,
325
+ {
326
+ [_e]: _c,
327
+ [_hE]: 404,
328
+ },
329
+ [_M, _RT, _RB],
330
+ [0, 0, 128 | 0],
331
+ ];
332
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
333
+ var StartConfigurationSessionRequest = [
334
+ 3,
335
+ n0,
336
+ _SCSR,
337
+ 0,
338
+ [_AI, _EI, _CPI, _RMPIIS],
339
+ [0, 0, 0, 1],
340
+ ];
341
+ var StartConfigurationSessionResponse = [3, n0, _SCSRt, 0, [_ICT], [0]];
342
+ var ThrottlingException = [
343
+ -3,
344
+ n0,
345
+ _TE,
346
+ {
347
+ [_e]: _c,
348
+ [_hE]: 429,
349
+ },
350
+ [_M],
351
+ [0],
352
+ ];
353
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
354
+ var AppConfigDataServiceException = [-3, _sm, "AppConfigDataServiceException", 0, [], []];
355
+ schema.TypeRegistry.for(_sm).registerError(AppConfigDataServiceException, AppConfigDataServiceException$1);
356
+ var InvalidParameterMap = [2, n0, _IPM, 0, 0, () => InvalidParameterDetail];
357
+ var BadRequestDetails = [3, n0, _BRD, 0, [_IP], [() => InvalidParameterMap]];
358
+ var GetLatestConfiguration = [
359
+ 9,
360
+ n0,
361
+ _GLC,
362
+ {
363
+ [_h]: ["GET", "/configuration", 200],
364
+ },
365
+ () => GetLatestConfigurationRequest,
366
+ () => GetLatestConfigurationResponse,
367
+ ];
368
+ var StartConfigurationSession = [
369
+ 9,
370
+ n0,
371
+ _SCS,
372
+ {
373
+ [_h]: ["POST", "/configurationsessions", 201],
374
+ },
375
+ () => StartConfigurationSessionRequest,
376
+ () => StartConfigurationSessionResponse,
377
+ ];
369
378
 
370
379
  class GetLatestConfigurationCommand extends smithyClient.Command
371
380
  .classBuilder()
372
381
  .ep(commonParams)
373
382
  .m(function (Command, cs, config, o) {
374
- return [
375
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
376
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
377
- ];
383
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
378
384
  })
379
385
  .s("AppConfigData", "GetLatestConfiguration", {})
380
386
  .n("AppConfigDataClient", "GetLatestConfigurationCommand")
381
- .f(void 0, GetLatestConfigurationResponseFilterSensitiveLog)
382
- .ser(se_GetLatestConfigurationCommand)
383
- .de(de_GetLatestConfigurationCommand)
387
+ .sc(GetLatestConfiguration)
384
388
  .build() {
385
389
  }
386
390
 
@@ -388,16 +392,11 @@ class StartConfigurationSessionCommand extends smithyClient.Command
388
392
  .classBuilder()
389
393
  .ep(commonParams)
390
394
  .m(function (Command, cs, config, o) {
391
- return [
392
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
393
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
394
- ];
395
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
395
396
  })
396
397
  .s("AppConfigData", "StartConfigurationSession", {})
397
398
  .n("AppConfigDataClient", "StartConfigurationSessionCommand")
398
- .f(void 0, void 0)
399
- .ser(se_StartConfigurationSessionCommand)
400
- .de(de_StartConfigurationSessionCommand)
399
+ .sc(StartConfigurationSession)
401
400
  .build() {
402
401
  }
403
402
 
@@ -419,14 +418,13 @@ Object.defineProperty(exports, "__Client", {
419
418
  });
420
419
  exports.AppConfigData = AppConfigData;
421
420
  exports.AppConfigDataClient = AppConfigDataClient;
422
- exports.AppConfigDataServiceException = AppConfigDataServiceException;
423
- exports.BadRequestException = BadRequestException;
421
+ exports.AppConfigDataServiceException = AppConfigDataServiceException$1;
422
+ exports.BadRequestException = BadRequestException$1;
424
423
  exports.BadRequestReason = BadRequestReason;
425
424
  exports.GetLatestConfigurationCommand = GetLatestConfigurationCommand;
426
- exports.GetLatestConfigurationResponseFilterSensitiveLog = GetLatestConfigurationResponseFilterSensitiveLog;
427
- exports.InternalServerException = InternalServerException;
425
+ exports.InternalServerException = InternalServerException$1;
428
426
  exports.InvalidParameterProblem = InvalidParameterProblem;
429
- exports.ResourceNotFoundException = ResourceNotFoundException;
427
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
430
428
  exports.ResourceType = ResourceType;
431
429
  exports.StartConfigurationSessionCommand = StartConfigurationSessionCommand;
432
- exports.ThrottlingException = ThrottlingException;
430
+ exports.ThrottlingException = ThrottlingException$1;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.appconfigdata" }),
28
30
  serviceId: config?.serviceId ?? "AppConfigData",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class AppConfigDataClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { GetLatestConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_GetLatestConfigurationCommand, se_GetLatestConfigurationCommand } from "../protocols/Aws_restJson1";
4
+ import { GetLatestConfiguration } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class GetLatestConfigurationCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AppConfigData", "GetLatestConfiguration", {})
18
13
  .n("AppConfigDataClient", "GetLatestConfigurationCommand")
19
- .f(void 0, GetLatestConfigurationResponseFilterSensitiveLog)
20
- .ser(se_GetLatestConfigurationCommand)
21
- .de(de_GetLatestConfigurationCommand)
14
+ .sc(GetLatestConfiguration)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartConfigurationSessionCommand, se_StartConfigurationSessionCommand } from "../protocols/Aws_restJson1";
4
+ import { StartConfigurationSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartConfigurationSessionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AppConfigData", "StartConfigurationSession", {})
17
13
  .n("AppConfigDataClient", "StartConfigurationSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartConfigurationSessionCommand)
20
- .de(de_StartConfigurationSessionCommand)
14
+ .sc(StartConfigurationSession)
21
15
  .build() {
22
16
  }
@@ -1,18 +1,9 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException";
3
2
  export const InvalidParameterProblem = {
4
3
  CORRUPTED: "Corrupted",
5
4
  EXPIRED: "Expired",
6
5
  POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied",
7
6
  };
8
- export var BadRequestDetails;
9
- (function (BadRequestDetails) {
10
- BadRequestDetails.visit = (value, visitor) => {
11
- if (value.InvalidParameters !== undefined)
12
- return visitor.InvalidParameters(value.InvalidParameters);
13
- return visitor._(value.$unknown[0], value.$unknown[1]);
14
- };
15
- })(BadRequestDetails || (BadRequestDetails = {}));
16
7
  export const BadRequestReason = {
17
8
  INVALID_PARAMETERS: "InvalidParameters",
18
9
  };
@@ -87,7 +78,3 @@ export class ThrottlingException extends __BaseException {
87
78
  this.Message = opts.Message;
88
79
  }
89
80
  }
90
- export const GetLatestConfigurationResponseFilterSensitiveLog = (obj) => ({
91
- ...obj,
92
- ...(obj.Configuration && { Configuration: SENSITIVE_STRING }),
93
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.appconfigdata" }),
25
27
  serviceId: config?.serviceId ?? "AppConfigData",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,