@aws-sdk/client-ssm-guiconnect 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,9 +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
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class SSMGuiConnectClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,14 +110,14 @@ class SSMGuiConnectClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class SSMGuiConnectServiceException extends smithyClient.ServiceException {
113
+ let SSMGuiConnectServiceException$1 = class SSMGuiConnectServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, SSMGuiConnectServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
- class AccessDeniedException extends SSMGuiConnectServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends SSMGuiConnectServiceException$1 {
122
121
  name = "AccessDeniedException";
123
122
  $fault = "client";
124
123
  constructor(opts) {
@@ -129,8 +128,8 @@ class AccessDeniedException extends SSMGuiConnectServiceException {
129
128
  });
130
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
130
  }
132
- }
133
- class ConflictException extends SSMGuiConnectServiceException {
131
+ };
132
+ let ConflictException$1 = class ConflictException extends SSMGuiConnectServiceException$1 {
134
133
  name = "ConflictException";
135
134
  $fault = "client";
136
135
  constructor(opts) {
@@ -141,8 +140,8 @@ class ConflictException extends SSMGuiConnectServiceException {
141
140
  });
142
141
  Object.setPrototypeOf(this, ConflictException.prototype);
143
142
  }
144
- }
145
- class InternalServerException extends SSMGuiConnectServiceException {
143
+ };
144
+ let InternalServerException$1 = class InternalServerException extends SSMGuiConnectServiceException$1 {
146
145
  name = "InternalServerException";
147
146
  $fault = "server";
148
147
  constructor(opts) {
@@ -153,8 +152,8 @@ class InternalServerException extends SSMGuiConnectServiceException {
153
152
  });
154
153
  Object.setPrototypeOf(this, InternalServerException.prototype);
155
154
  }
156
- }
157
- class ResourceNotFoundException extends SSMGuiConnectServiceException {
155
+ };
156
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SSMGuiConnectServiceException$1 {
158
157
  name = "ResourceNotFoundException";
159
158
  $fault = "client";
160
159
  constructor(opts) {
@@ -165,8 +164,8 @@ class ResourceNotFoundException extends SSMGuiConnectServiceException {
165
164
  });
166
165
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
167
166
  }
168
- }
169
- class ServiceQuotaExceededException extends SSMGuiConnectServiceException {
167
+ };
168
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends SSMGuiConnectServiceException$1 {
170
169
  name = "ServiceQuotaExceededException";
171
170
  $fault = "client";
172
171
  constructor(opts) {
@@ -177,8 +176,8 @@ class ServiceQuotaExceededException extends SSMGuiConnectServiceException {
177
176
  });
178
177
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
179
178
  }
180
- }
181
- class ThrottlingException extends SSMGuiConnectServiceException {
179
+ };
180
+ let ThrottlingException$1 = class ThrottlingException extends SSMGuiConnectServiceException$1 {
182
181
  name = "ThrottlingException";
183
182
  $fault = "client";
184
183
  constructor(opts) {
@@ -189,8 +188,8 @@ class ThrottlingException extends SSMGuiConnectServiceException {
189
188
  });
190
189
  Object.setPrototypeOf(this, ThrottlingException.prototype);
191
190
  }
192
- }
193
- class ValidationException extends SSMGuiConnectServiceException {
191
+ };
192
+ let ValidationException$1 = class ValidationException extends SSMGuiConnectServiceException$1 {
194
193
  name = "ValidationException";
195
194
  $fault = "client";
196
195
  constructor(opts) {
@@ -201,237 +200,203 @@ class ValidationException extends SSMGuiConnectServiceException {
201
200
  });
202
201
  Object.setPrototypeOf(this, ValidationException.prototype);
203
202
  }
204
- }
205
-
206
- const se_DeleteConnectionRecordingPreferencesCommand = async (input, context) => {
207
- const b = core.requestBuilder(input, context);
208
- const headers = {
209
- "content-type": "application/json",
210
- };
211
- b.bp("/DeleteConnectionRecordingPreferences");
212
- let body;
213
- body = JSON.stringify(smithyClient.take(input, {
214
- ClientToken: [true, (_) => _ ?? uuid.v4()],
215
- }));
216
- b.m("POST").h(headers).b(body);
217
- return b.build();
218
- };
219
- const se_GetConnectionRecordingPreferencesCommand = async (input, context) => {
220
- const b = core.requestBuilder(input, context);
221
- const headers = {};
222
- b.bp("/GetConnectionRecordingPreferences");
223
- let body;
224
- b.m("POST").h(headers).b(body);
225
- return b.build();
226
- };
227
- const se_UpdateConnectionRecordingPreferencesCommand = async (input, context) => {
228
- const b = core.requestBuilder(input, context);
229
- const headers = {
230
- "content-type": "application/json",
231
- };
232
- b.bp("/UpdateConnectionRecordingPreferences");
233
- let body;
234
- body = JSON.stringify(smithyClient.take(input, {
235
- ClientToken: [true, (_) => _ ?? uuid.v4()],
236
- ConnectionRecordingPreferences: (_) => smithyClient._json(_),
237
- }));
238
- b.m("POST").h(headers).b(body);
239
- return b.build();
240
- };
241
- const de_DeleteConnectionRecordingPreferencesCommand = async (output, context) => {
242
- if (output.statusCode !== 200 && output.statusCode >= 300) {
243
- return de_CommandError(output, context);
244
- }
245
- const contents = smithyClient.map({
246
- $metadata: deserializeMetadata(output),
247
- });
248
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
249
- const doc = smithyClient.take(data, {
250
- ClientToken: smithyClient.expectString,
251
- });
252
- Object.assign(contents, doc);
253
- return contents;
254
- };
255
- const de_GetConnectionRecordingPreferencesCommand = async (output, context) => {
256
- if (output.statusCode !== 200 && output.statusCode >= 300) {
257
- return de_CommandError(output, context);
258
- }
259
- const contents = smithyClient.map({
260
- $metadata: deserializeMetadata(output),
261
- });
262
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
263
- const doc = smithyClient.take(data, {
264
- ClientToken: smithyClient.expectString,
265
- ConnectionRecordingPreferences: smithyClient._json,
266
- });
267
- Object.assign(contents, doc);
268
- return contents;
269
- };
270
- const de_UpdateConnectionRecordingPreferencesCommand = async (output, context) => {
271
- if (output.statusCode !== 200 && output.statusCode >= 300) {
272
- return de_CommandError(output, context);
273
- }
274
- const contents = smithyClient.map({
275
- $metadata: deserializeMetadata(output),
276
- });
277
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
278
- const doc = smithyClient.take(data, {
279
- ClientToken: smithyClient.expectString,
280
- ConnectionRecordingPreferences: smithyClient._json,
281
- });
282
- Object.assign(contents, doc);
283
- return contents;
284
- };
285
- const de_CommandError = async (output, context) => {
286
- const parsedOutput = {
287
- ...output,
288
- body: await core$1.parseJsonErrorBody(output.body, context),
289
- };
290
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
291
- switch (errorCode) {
292
- case "AccessDeniedException":
293
- case "com.amazonaws.ssmguiconnect#AccessDeniedException":
294
- throw await de_AccessDeniedExceptionRes(parsedOutput);
295
- case "ConflictException":
296
- case "com.amazonaws.ssmguiconnect#ConflictException":
297
- throw await de_ConflictExceptionRes(parsedOutput);
298
- case "InternalServerException":
299
- case "com.amazonaws.ssmguiconnect#InternalServerException":
300
- throw await de_InternalServerExceptionRes(parsedOutput);
301
- case "ResourceNotFoundException":
302
- case "com.amazonaws.ssmguiconnect#ResourceNotFoundException":
303
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
304
- case "ServiceQuotaExceededException":
305
- case "com.amazonaws.ssmguiconnect#ServiceQuotaExceededException":
306
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
307
- case "ThrottlingException":
308
- case "com.amazonaws.ssmguiconnect#ThrottlingException":
309
- throw await de_ThrottlingExceptionRes(parsedOutput);
310
- case "ValidationException":
311
- case "com.amazonaws.ssmguiconnect#ValidationException":
312
- throw await de_ValidationExceptionRes(parsedOutput);
313
- default:
314
- const parsedBody = parsedOutput.body;
315
- return throwDefaultError({
316
- output,
317
- parsedBody,
318
- errorCode,
319
- });
320
- }
321
- };
322
- const throwDefaultError = smithyClient.withBaseException(SSMGuiConnectServiceException);
323
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
324
- const contents = smithyClient.map({});
325
- const data = parsedOutput.body;
326
- const doc = smithyClient.take(data, {
327
- message: smithyClient.expectString,
328
- });
329
- Object.assign(contents, doc);
330
- const exception = new AccessDeniedException({
331
- $metadata: deserializeMetadata(parsedOutput),
332
- ...contents,
333
- });
334
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
335
- };
336
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
337
- const contents = smithyClient.map({});
338
- const data = parsedOutput.body;
339
- const doc = smithyClient.take(data, {
340
- message: smithyClient.expectString,
341
- });
342
- Object.assign(contents, doc);
343
- const exception = new ConflictException({
344
- $metadata: deserializeMetadata(parsedOutput),
345
- ...contents,
346
- });
347
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
348
- };
349
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
350
- const contents = smithyClient.map({});
351
- const data = parsedOutput.body;
352
- const doc = smithyClient.take(data, {
353
- message: smithyClient.expectString,
354
- });
355
- Object.assign(contents, doc);
356
- const exception = new InternalServerException({
357
- $metadata: deserializeMetadata(parsedOutput),
358
- ...contents,
359
- });
360
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
361
203
  };
362
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
363
- const contents = smithyClient.map({});
364
- const data = parsedOutput.body;
365
- const doc = smithyClient.take(data, {
366
- message: smithyClient.expectString,
367
- });
368
- Object.assign(contents, doc);
369
- const exception = new ResourceNotFoundException({
370
- $metadata: deserializeMetadata(parsedOutput),
371
- ...contents,
372
- });
373
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
374
- };
375
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
376
- const contents = smithyClient.map({});
377
- const data = parsedOutput.body;
378
- const doc = smithyClient.take(data, {
379
- message: smithyClient.expectString,
380
- });
381
- Object.assign(contents, doc);
382
- const exception = new ServiceQuotaExceededException({
383
- $metadata: deserializeMetadata(parsedOutput),
384
- ...contents,
385
- });
386
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
387
- };
388
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
389
- const contents = smithyClient.map({});
390
- const data = parsedOutput.body;
391
- const doc = smithyClient.take(data, {
392
- message: smithyClient.expectString,
393
- });
394
- Object.assign(contents, doc);
395
- const exception = new ThrottlingException({
396
- $metadata: deserializeMetadata(parsedOutput),
397
- ...contents,
398
- });
399
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
400
- };
401
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
402
- const contents = smithyClient.map({});
403
- const data = parsedOutput.body;
404
- const doc = smithyClient.take(data, {
405
- message: smithyClient.expectString,
406
- });
407
- Object.assign(contents, doc);
408
- const exception = new ValidationException({
409
- $metadata: deserializeMetadata(parsedOutput),
410
- ...contents,
411
- });
412
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
413
- };
414
- const deserializeMetadata = (output) => ({
415
- httpStatusCode: output.statusCode,
416
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
417
- extendedRequestId: output.headers["x-amz-id-2"],
418
- cfId: output.headers["x-amz-cf-id"],
419
- });
204
+
205
+ const _ADE = "AccessDeniedException";
206
+ const _BN = "BucketName";
207
+ const _BO = "BucketOwner";
208
+ const _CE = "ConflictException";
209
+ const _CRP = "ConnectionRecordingPreferences";
210
+ const _CT = "ClientToken";
211
+ const _DCRP = "DeleteConnectionRecordingPreferences";
212
+ const _DCRPR = "DeleteConnectionRecordingPreferencesRequest";
213
+ const _DCRPRe = "DeleteConnectionRecordingPreferencesResponse";
214
+ const _GCRP = "GetConnectionRecordingPreferences";
215
+ const _GCRPR = "GetConnectionRecordingPreferencesResponse";
216
+ const _ISE = "InternalServerException";
217
+ const _KMSKA = "KMSKeyArn";
218
+ const _RD = "RecordingDestinations";
219
+ const _RNFE = "ResourceNotFoundException";
220
+ const _SB = "S3Buckets";
221
+ const _SBu = "S3Bucket";
222
+ const _SQEE = "ServiceQuotaExceededException";
223
+ const _TE = "ThrottlingException";
224
+ const _UCRP = "UpdateConnectionRecordingPreferences";
225
+ const _UCRPR = "UpdateConnectionRecordingPreferencesRequest";
226
+ const _UCRPRp = "UpdateConnectionRecordingPreferencesResponse";
227
+ const _VE = "ValidationException";
228
+ const _c = "client";
229
+ const _e = "error";
230
+ const _h = "http";
231
+ const _hE = "httpError";
232
+ const _m = "message";
233
+ const _s = "server";
234
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssmguiconnect";
235
+ const n0 = "com.amazonaws.ssmguiconnect";
236
+ var AccessDeniedException = [
237
+ -3,
238
+ n0,
239
+ _ADE,
240
+ {
241
+ [_e]: _c,
242
+ [_hE]: 403,
243
+ },
244
+ [_m],
245
+ [0],
246
+ ];
247
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
248
+ var ConflictException = [
249
+ -3,
250
+ n0,
251
+ _CE,
252
+ {
253
+ [_e]: _c,
254
+ [_hE]: 409,
255
+ },
256
+ [_m],
257
+ [0],
258
+ ];
259
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
260
+ var ConnectionRecordingPreferences = [
261
+ 3,
262
+ n0,
263
+ _CRP,
264
+ 0,
265
+ [_RD, _KMSKA],
266
+ [() => RecordingDestinations, 0],
267
+ ];
268
+ var DeleteConnectionRecordingPreferencesRequest = [3, n0, _DCRPR, 0, [_CT], [[0, 4]]];
269
+ var DeleteConnectionRecordingPreferencesResponse = [3, n0, _DCRPRe, 0, [_CT], [0]];
270
+ var GetConnectionRecordingPreferencesResponse = [
271
+ 3,
272
+ n0,
273
+ _GCRPR,
274
+ 0,
275
+ [_CT, _CRP],
276
+ [0, () => ConnectionRecordingPreferences],
277
+ ];
278
+ var InternalServerException = [
279
+ -3,
280
+ n0,
281
+ _ISE,
282
+ {
283
+ [_e]: _s,
284
+ [_hE]: 500,
285
+ },
286
+ [_m],
287
+ [0],
288
+ ];
289
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
290
+ var RecordingDestinations = [3, n0, _RD, 0, [_SB], [() => S3Buckets]];
291
+ var ResourceNotFoundException = [
292
+ -3,
293
+ n0,
294
+ _RNFE,
295
+ {
296
+ [_e]: _c,
297
+ [_hE]: 404,
298
+ },
299
+ [_m],
300
+ [0],
301
+ ];
302
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
303
+ var S3Bucket = [3, n0, _SBu, 0, [_BO, _BN], [0, 0]];
304
+ var ServiceQuotaExceededException = [
305
+ -3,
306
+ n0,
307
+ _SQEE,
308
+ {
309
+ [_e]: _c,
310
+ [_hE]: 402,
311
+ },
312
+ [_m],
313
+ [0],
314
+ ];
315
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
316
+ var ThrottlingException = [
317
+ -3,
318
+ n0,
319
+ _TE,
320
+ {
321
+ [_e]: _c,
322
+ [_hE]: 429,
323
+ },
324
+ [_m],
325
+ [0],
326
+ ];
327
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
328
+ var UpdateConnectionRecordingPreferencesRequest = [
329
+ 3,
330
+ n0,
331
+ _UCRPR,
332
+ 0,
333
+ [_CRP, _CT],
334
+ [() => ConnectionRecordingPreferences, [0, 4]],
335
+ ];
336
+ var UpdateConnectionRecordingPreferencesResponse = [
337
+ 3,
338
+ n0,
339
+ _UCRPRp,
340
+ 0,
341
+ [_CT, _CRP],
342
+ [0, () => ConnectionRecordingPreferences],
343
+ ];
344
+ var ValidationException = [
345
+ -3,
346
+ n0,
347
+ _VE,
348
+ {
349
+ [_e]: _c,
350
+ [_hE]: 400,
351
+ },
352
+ [_m],
353
+ [0],
354
+ ];
355
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
356
+ var __Unit = "unit";
357
+ var SSMGuiConnectServiceException = [-3, _sm, "SSMGuiConnectServiceException", 0, [], []];
358
+ schema.TypeRegistry.for(_sm).registerError(SSMGuiConnectServiceException, SSMGuiConnectServiceException$1);
359
+ var S3Buckets = [1, n0, _SB, 0, () => S3Bucket];
360
+ var DeleteConnectionRecordingPreferences = [
361
+ 9,
362
+ n0,
363
+ _DCRP,
364
+ {
365
+ [_h]: ["POST", "/DeleteConnectionRecordingPreferences", 200],
366
+ },
367
+ () => DeleteConnectionRecordingPreferencesRequest,
368
+ () => DeleteConnectionRecordingPreferencesResponse,
369
+ ];
370
+ var GetConnectionRecordingPreferences = [
371
+ 9,
372
+ n0,
373
+ _GCRP,
374
+ {
375
+ [_h]: ["POST", "/GetConnectionRecordingPreferences", 200],
376
+ },
377
+ () => __Unit,
378
+ () => GetConnectionRecordingPreferencesResponse,
379
+ ];
380
+ var UpdateConnectionRecordingPreferences = [
381
+ 9,
382
+ n0,
383
+ _UCRP,
384
+ {
385
+ [_h]: ["POST", "/UpdateConnectionRecordingPreferences", 200],
386
+ },
387
+ () => UpdateConnectionRecordingPreferencesRequest,
388
+ () => UpdateConnectionRecordingPreferencesResponse,
389
+ ];
420
390
 
421
391
  class DeleteConnectionRecordingPreferencesCommand extends smithyClient.Command
422
392
  .classBuilder()
423
393
  .ep(commonParams)
424
394
  .m(function (Command, cs, config, o) {
425
- return [
426
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
427
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
428
- ];
395
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
429
396
  })
430
397
  .s("SSMGuiConnect", "DeleteConnectionRecordingPreferences", {})
431
398
  .n("SSMGuiConnectClient", "DeleteConnectionRecordingPreferencesCommand")
432
- .f(void 0, void 0)
433
- .ser(se_DeleteConnectionRecordingPreferencesCommand)
434
- .de(de_DeleteConnectionRecordingPreferencesCommand)
399
+ .sc(DeleteConnectionRecordingPreferences)
435
400
  .build() {
436
401
  }
437
402
 
@@ -439,16 +404,11 @@ class GetConnectionRecordingPreferencesCommand extends smithyClient.Command
439
404
  .classBuilder()
440
405
  .ep(commonParams)
441
406
  .m(function (Command, cs, config, o) {
442
- return [
443
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
444
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
445
- ];
407
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
446
408
  })
447
409
  .s("SSMGuiConnect", "GetConnectionRecordingPreferences", {})
448
410
  .n("SSMGuiConnectClient", "GetConnectionRecordingPreferencesCommand")
449
- .f(void 0, void 0)
450
- .ser(se_GetConnectionRecordingPreferencesCommand)
451
- .de(de_GetConnectionRecordingPreferencesCommand)
411
+ .sc(GetConnectionRecordingPreferences)
452
412
  .build() {
453
413
  }
454
414
 
@@ -456,16 +416,11 @@ class UpdateConnectionRecordingPreferencesCommand extends smithyClient.Command
456
416
  .classBuilder()
457
417
  .ep(commonParams)
458
418
  .m(function (Command, cs, config, o) {
459
- return [
460
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
461
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
462
- ];
419
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
463
420
  })
464
421
  .s("SSMGuiConnect", "UpdateConnectionRecordingPreferences", {})
465
422
  .n("SSMGuiConnectClient", "UpdateConnectionRecordingPreferencesCommand")
466
- .f(void 0, void 0)
467
- .ser(se_UpdateConnectionRecordingPreferencesCommand)
468
- .de(de_UpdateConnectionRecordingPreferencesCommand)
423
+ .sc(UpdateConnectionRecordingPreferences)
469
424
  .build() {
470
425
  }
471
426
 
@@ -486,16 +441,16 @@ Object.defineProperty(exports, "__Client", {
486
441
  enumerable: true,
487
442
  get: function () { return smithyClient.Client; }
488
443
  });
489
- exports.AccessDeniedException = AccessDeniedException;
490
- exports.ConflictException = ConflictException;
444
+ exports.AccessDeniedException = AccessDeniedException$1;
445
+ exports.ConflictException = ConflictException$1;
491
446
  exports.DeleteConnectionRecordingPreferencesCommand = DeleteConnectionRecordingPreferencesCommand;
492
447
  exports.GetConnectionRecordingPreferencesCommand = GetConnectionRecordingPreferencesCommand;
493
- exports.InternalServerException = InternalServerException;
494
- exports.ResourceNotFoundException = ResourceNotFoundException;
448
+ exports.InternalServerException = InternalServerException$1;
449
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
495
450
  exports.SSMGuiConnect = SSMGuiConnect;
496
451
  exports.SSMGuiConnectClient = SSMGuiConnectClient;
497
- exports.SSMGuiConnectServiceException = SSMGuiConnectServiceException;
498
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
499
- exports.ThrottlingException = ThrottlingException;
452
+ exports.SSMGuiConnectServiceException = SSMGuiConnectServiceException$1;
453
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
454
+ exports.ThrottlingException = ThrottlingException$1;
500
455
  exports.UpdateConnectionRecordingPreferencesCommand = UpdateConnectionRecordingPreferencesCommand;
501
- exports.ValidationException = ValidationException;
456
+ exports.ValidationException = ValidationException$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.ssmguiconnect" }),
28
30
  serviceId: config?.serviceId ?? "SSM GuiConnect",
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 SSMGuiConnectClient 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,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_DeleteConnectionRecordingPreferencesCommand, se_DeleteConnectionRecordingPreferencesCommand, } from "../protocols/Aws_restJson1";
4
+ import { DeleteConnectionRecordingPreferences } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteConnectionRecordingPreferencesCommand 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("SSMGuiConnect", "DeleteConnectionRecordingPreferences", {})
17
13
  .n("SSMGuiConnectClient", "DeleteConnectionRecordingPreferencesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteConnectionRecordingPreferencesCommand)
20
- .de(de_DeleteConnectionRecordingPreferencesCommand)
14
+ .sc(DeleteConnectionRecordingPreferences)
21
15
  .build() {
22
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_GetConnectionRecordingPreferencesCommand, se_GetConnectionRecordingPreferencesCommand, } from "../protocols/Aws_restJson1";
4
+ import { GetConnectionRecordingPreferences } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetConnectionRecordingPreferencesCommand 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("SSMGuiConnect", "GetConnectionRecordingPreferences", {})
17
13
  .n("SSMGuiConnectClient", "GetConnectionRecordingPreferencesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetConnectionRecordingPreferencesCommand)
20
- .de(de_GetConnectionRecordingPreferencesCommand)
14
+ .sc(GetConnectionRecordingPreferences)
21
15
  .build() {
22
16
  }