@aws-sdk/client-ssm-guiconnect 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 SSMGuiConnectServiceException = require('./models/SSMGuiConnectServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,227 +113,6 @@ class SSMGuiConnectClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class SSMGuiConnectServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, SSMGuiConnectServiceException.prototype);
117
- }
118
- }
119
-
120
- class AccessDeniedException extends SSMGuiConnectServiceException {
121
- name = "AccessDeniedException";
122
- $fault = "client";
123
- constructor(opts) {
124
- super({
125
- name: "AccessDeniedException",
126
- $fault: "client",
127
- ...opts,
128
- });
129
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
- }
131
- }
132
- class ConflictException extends SSMGuiConnectServiceException {
133
- name = "ConflictException";
134
- $fault = "client";
135
- constructor(opts) {
136
- super({
137
- name: "ConflictException",
138
- $fault: "client",
139
- ...opts,
140
- });
141
- Object.setPrototypeOf(this, ConflictException.prototype);
142
- }
143
- }
144
- class InternalServerException extends SSMGuiConnectServiceException {
145
- name = "InternalServerException";
146
- $fault = "server";
147
- constructor(opts) {
148
- super({
149
- name: "InternalServerException",
150
- $fault: "server",
151
- ...opts,
152
- });
153
- Object.setPrototypeOf(this, InternalServerException.prototype);
154
- }
155
- }
156
- class ResourceNotFoundException extends SSMGuiConnectServiceException {
157
- name = "ResourceNotFoundException";
158
- $fault = "client";
159
- constructor(opts) {
160
- super({
161
- name: "ResourceNotFoundException",
162
- $fault: "client",
163
- ...opts,
164
- });
165
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
166
- }
167
- }
168
- class ServiceQuotaExceededException extends SSMGuiConnectServiceException {
169
- name = "ServiceQuotaExceededException";
170
- $fault = "client";
171
- constructor(opts) {
172
- super({
173
- name: "ServiceQuotaExceededException",
174
- $fault: "client",
175
- ...opts,
176
- });
177
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
178
- }
179
- }
180
- class ThrottlingException extends SSMGuiConnectServiceException {
181
- name = "ThrottlingException";
182
- $fault = "client";
183
- constructor(opts) {
184
- super({
185
- name: "ThrottlingException",
186
- $fault: "client",
187
- ...opts,
188
- });
189
- Object.setPrototypeOf(this, ThrottlingException.prototype);
190
- }
191
- }
192
- class ValidationException extends SSMGuiConnectServiceException {
193
- name = "ValidationException";
194
- $fault = "client";
195
- constructor(opts) {
196
- super({
197
- name: "ValidationException",
198
- $fault: "client",
199
- ...opts,
200
- });
201
- Object.setPrototypeOf(this, ValidationException.prototype);
202
- }
203
- }
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$ = [-3, n0, _ADE,
237
- { [_e]: _c, [_hE]: 403 },
238
- [_m],
239
- [0], 1
240
- ];
241
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
242
- var ConflictException$ = [-3, n0, _CE,
243
- { [_e]: _c, [_hE]: 409 },
244
- [_m],
245
- [0], 1
246
- ];
247
- schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
248
- var ConnectionRecordingPreferences$ = [3, n0, _CRP,
249
- 0,
250
- [_RD, _KMSKA],
251
- [() => RecordingDestinations$, 0], 2
252
- ];
253
- var DeleteConnectionRecordingPreferencesRequest$ = [3, n0, _DCRPR,
254
- 0,
255
- [_CT],
256
- [[0, 4]]
257
- ];
258
- var DeleteConnectionRecordingPreferencesResponse$ = [3, n0, _DCRPRe,
259
- 0,
260
- [_CT],
261
- [0]
262
- ];
263
- var GetConnectionRecordingPreferencesResponse$ = [3, n0, _GCRPR,
264
- 0,
265
- [_CT, _CRP],
266
- [0, () => ConnectionRecordingPreferences$]
267
- ];
268
- var InternalServerException$ = [-3, n0, _ISE,
269
- { [_e]: _s, [_hE]: 500 },
270
- [_m],
271
- [0], 1
272
- ];
273
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
274
- var RecordingDestinations$ = [3, n0, _RD,
275
- 0,
276
- [_SB],
277
- [() => S3Buckets], 1
278
- ];
279
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
280
- { [_e]: _c, [_hE]: 404 },
281
- [_m],
282
- [0], 1
283
- ];
284
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
285
- var S3Bucket$ = [3, n0, _SBu,
286
- 0,
287
- [_BO, _BN],
288
- [0, 0], 2
289
- ];
290
- var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
291
- { [_e]: _c, [_hE]: 402 },
292
- [_m],
293
- [0], 1
294
- ];
295
- schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
296
- var ThrottlingException$ = [-3, n0, _TE,
297
- { [_e]: _c, [_hE]: 429 },
298
- [_m],
299
- [0], 1
300
- ];
301
- schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
302
- var UpdateConnectionRecordingPreferencesRequest$ = [3, n0, _UCRPR,
303
- 0,
304
- [_CRP, _CT],
305
- [() => ConnectionRecordingPreferences$, [0, 4]], 1
306
- ];
307
- var UpdateConnectionRecordingPreferencesResponse$ = [3, n0, _UCRPRp,
308
- 0,
309
- [_CT, _CRP],
310
- [0, () => ConnectionRecordingPreferences$]
311
- ];
312
- var ValidationException$ = [-3, n0, _VE,
313
- { [_e]: _c, [_hE]: 400 },
314
- [_m],
315
- [0], 1
316
- ];
317
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
318
- var __Unit = "unit";
319
- var SSMGuiConnectServiceException$ = [-3, _sm, "SSMGuiConnectServiceException", 0, [], []];
320
- schema.TypeRegistry.for(_sm).registerError(SSMGuiConnectServiceException$, SSMGuiConnectServiceException);
321
- var S3Buckets = [1, n0, _SB,
322
- 0, () => S3Bucket$
323
- ];
324
- var DeleteConnectionRecordingPreferences$ = [9, n0, _DCRP,
325
- { [_h]: ["POST", "/DeleteConnectionRecordingPreferences", 200] }, () => DeleteConnectionRecordingPreferencesRequest$, () => DeleteConnectionRecordingPreferencesResponse$
326
- ];
327
- var GetConnectionRecordingPreferences$ = [9, n0, _GCRP,
328
- { [_h]: ["POST", "/GetConnectionRecordingPreferences", 200] }, () => __Unit, () => GetConnectionRecordingPreferencesResponse$
329
- ];
330
- var UpdateConnectionRecordingPreferences$ = [9, n0, _UCRP,
331
- { [_h]: ["POST", "/UpdateConnectionRecordingPreferences", 200] }, () => UpdateConnectionRecordingPreferencesRequest$, () => UpdateConnectionRecordingPreferencesResponse$
332
- ];
333
-
334
116
  class DeleteConnectionRecordingPreferencesCommand extends smithyClient.Command
335
117
  .classBuilder()
336
118
  .ep(commonParams)
@@ -339,7 +121,7 @@ class DeleteConnectionRecordingPreferencesCommand extends smithyClient.Command
339
121
  })
340
122
  .s("SSMGuiConnect", "DeleteConnectionRecordingPreferences", {})
341
123
  .n("SSMGuiConnectClient", "DeleteConnectionRecordingPreferencesCommand")
342
- .sc(DeleteConnectionRecordingPreferences$)
124
+ .sc(schemas_0.DeleteConnectionRecordingPreferences$)
343
125
  .build() {
344
126
  }
345
127
 
@@ -351,7 +133,7 @@ class GetConnectionRecordingPreferencesCommand extends smithyClient.Command
351
133
  })
352
134
  .s("SSMGuiConnect", "GetConnectionRecordingPreferences", {})
353
135
  .n("SSMGuiConnectClient", "GetConnectionRecordingPreferencesCommand")
354
- .sc(GetConnectionRecordingPreferences$)
136
+ .sc(schemas_0.GetConnectionRecordingPreferences$)
355
137
  .build() {
356
138
  }
357
139
 
@@ -363,7 +145,7 @@ class UpdateConnectionRecordingPreferencesCommand extends smithyClient.Command
363
145
  })
364
146
  .s("SSMGuiConnect", "UpdateConnectionRecordingPreferences", {})
365
147
  .n("SSMGuiConnectClient", "UpdateConnectionRecordingPreferencesCommand")
366
- .sc(UpdateConnectionRecordingPreferences$)
148
+ .sc(schemas_0.UpdateConnectionRecordingPreferences$)
367
149
  .build() {
368
150
  }
369
151
 
@@ -384,35 +166,24 @@ Object.defineProperty(exports, "__Client", {
384
166
  enumerable: true,
385
167
  get: function () { return smithyClient.Client; }
386
168
  });
387
- exports.AccessDeniedException = AccessDeniedException;
388
- exports.AccessDeniedException$ = AccessDeniedException$;
389
- exports.ConflictException = ConflictException;
390
- exports.ConflictException$ = ConflictException$;
391
- exports.ConnectionRecordingPreferences$ = ConnectionRecordingPreferences$;
392
- exports.DeleteConnectionRecordingPreferences$ = DeleteConnectionRecordingPreferences$;
169
+ Object.defineProperty(exports, "SSMGuiConnectServiceException", {
170
+ enumerable: true,
171
+ get: function () { return SSMGuiConnectServiceException.SSMGuiConnectServiceException; }
172
+ });
393
173
  exports.DeleteConnectionRecordingPreferencesCommand = DeleteConnectionRecordingPreferencesCommand;
394
- exports.DeleteConnectionRecordingPreferencesRequest$ = DeleteConnectionRecordingPreferencesRequest$;
395
- exports.DeleteConnectionRecordingPreferencesResponse$ = DeleteConnectionRecordingPreferencesResponse$;
396
- exports.GetConnectionRecordingPreferences$ = GetConnectionRecordingPreferences$;
397
174
  exports.GetConnectionRecordingPreferencesCommand = GetConnectionRecordingPreferencesCommand;
398
- exports.GetConnectionRecordingPreferencesResponse$ = GetConnectionRecordingPreferencesResponse$;
399
- exports.InternalServerException = InternalServerException;
400
- exports.InternalServerException$ = InternalServerException$;
401
- exports.RecordingDestinations$ = RecordingDestinations$;
402
- exports.ResourceNotFoundException = ResourceNotFoundException;
403
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
404
- exports.S3Bucket$ = S3Bucket$;
405
175
  exports.SSMGuiConnect = SSMGuiConnect;
406
176
  exports.SSMGuiConnectClient = SSMGuiConnectClient;
407
- exports.SSMGuiConnectServiceException = SSMGuiConnectServiceException;
408
- exports.SSMGuiConnectServiceException$ = SSMGuiConnectServiceException$;
409
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
410
- exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
411
- exports.ThrottlingException = ThrottlingException;
412
- exports.ThrottlingException$ = ThrottlingException$;
413
- exports.UpdateConnectionRecordingPreferences$ = UpdateConnectionRecordingPreferences$;
414
177
  exports.UpdateConnectionRecordingPreferencesCommand = UpdateConnectionRecordingPreferencesCommand;
415
- exports.UpdateConnectionRecordingPreferencesRequest$ = UpdateConnectionRecordingPreferencesRequest$;
416
- exports.UpdateConnectionRecordingPreferencesResponse$ = UpdateConnectionRecordingPreferencesResponse$;
417
- exports.ValidationException = ValidationException;
418
- exports.ValidationException$ = ValidationException$;
178
+ Object.keys(schemas_0).forEach(function (k) {
179
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
180
+ enumerable: true,
181
+ get: function () { return schemas_0[k]; }
182
+ });
183
+ });
184
+ Object.keys(errors).forEach(function (k) {
185
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
186
+ enumerable: true,
187
+ get: function () { return errors[k]; }
188
+ });
189
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SSMGuiConnectServiceException = 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 SSMGuiConnectServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, SSMGuiConnectServiceException.prototype);
10
+ }
11
+ }
12
+ exports.SSMGuiConnectServiceException = SSMGuiConnectServiceException;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const SSMGuiConnectServiceException_1 = require("./SSMGuiConnectServiceException");
5
+ class AccessDeniedException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ }
29
+ }
30
+ exports.ConflictException = ConflictException;
31
+ class InternalServerException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
32
+ name = "InternalServerException";
33
+ $fault = "server";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerException.prototype);
41
+ }
42
+ }
43
+ exports.InternalServerException = InternalServerException;
44
+ class ResourceNotFoundException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
45
+ name = "ResourceNotFoundException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "ResourceNotFoundException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
54
+ }
55
+ }
56
+ exports.ResourceNotFoundException = ResourceNotFoundException;
57
+ class ServiceQuotaExceededException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
58
+ name = "ServiceQuotaExceededException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "ServiceQuotaExceededException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
67
+ }
68
+ }
69
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
70
+ class ThrottlingException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
71
+ name = "ThrottlingException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "ThrottlingException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
80
+ }
81
+ }
82
+ exports.ThrottlingException = ThrottlingException;
83
+ class ValidationException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
84
+ name = "ValidationException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "ValidationException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, ValidationException.prototype);
93
+ }
94
+ }
95
+ exports.ValidationException = ValidationException;
@@ -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-05-01",
@@ -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.ssmguiconnect",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2021-05-01",
33
35
  serviceTarget: "SSMGuiConnect",
34
36
  },
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateConnectionRecordingPreferences$ = exports.GetConnectionRecordingPreferences$ = exports.DeleteConnectionRecordingPreferences$ = exports.UpdateConnectionRecordingPreferencesResponse$ = exports.UpdateConnectionRecordingPreferencesRequest$ = exports.S3Bucket$ = exports.RecordingDestinations$ = exports.GetConnectionRecordingPreferencesResponse$ = exports.DeleteConnectionRecordingPreferencesResponse$ = exports.DeleteConnectionRecordingPreferencesRequest$ = exports.ConnectionRecordingPreferences$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.SSMGuiConnectServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _BN = "BucketName";
6
+ const _BO = "BucketOwner";
7
+ const _CE = "ConflictException";
8
+ const _CRP = "ConnectionRecordingPreferences";
9
+ const _CT = "ClientToken";
10
+ const _DCRP = "DeleteConnectionRecordingPreferences";
11
+ const _DCRPR = "DeleteConnectionRecordingPreferencesRequest";
12
+ const _DCRPRe = "DeleteConnectionRecordingPreferencesResponse";
13
+ const _GCRP = "GetConnectionRecordingPreferences";
14
+ const _GCRPR = "GetConnectionRecordingPreferencesResponse";
15
+ const _ISE = "InternalServerException";
16
+ const _KMSKA = "KMSKeyArn";
17
+ const _RD = "RecordingDestinations";
18
+ const _RNFE = "ResourceNotFoundException";
19
+ const _SB = "S3Buckets";
20
+ const _SBu = "S3Bucket";
21
+ const _SQEE = "ServiceQuotaExceededException";
22
+ const _TE = "ThrottlingException";
23
+ const _UCRP = "UpdateConnectionRecordingPreferences";
24
+ const _UCRPR = "UpdateConnectionRecordingPreferencesRequest";
25
+ const _UCRPRp = "UpdateConnectionRecordingPreferencesResponse";
26
+ const _VE = "ValidationException";
27
+ const _c = "client";
28
+ const _e = "error";
29
+ const _h = "http";
30
+ const _hE = "httpError";
31
+ const _m = "message";
32
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssmguiconnect";
33
+ const _se = "server";
34
+ const n0 = "com.amazonaws.ssmguiconnect";
35
+ const schema_1 = require("@smithy/core/schema");
36
+ const errors_1 = require("../models/errors");
37
+ const SSMGuiConnectServiceException_1 = require("../models/SSMGuiConnectServiceException");
38
+ const _s_registry = schema_1.TypeRegistry.for(_s);
39
+ exports.SSMGuiConnectServiceException$ = [-3, _s, "SSMGuiConnectServiceException", 0, [], []];
40
+ _s_registry.registerError(exports.SSMGuiConnectServiceException$, SSMGuiConnectServiceException_1.SSMGuiConnectServiceException);
41
+ const n0_registry = schema_1.TypeRegistry.for(n0);
42
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
43
+ { [_e]: _c, [_hE]: 403 },
44
+ [_m],
45
+ [0], 1
46
+ ];
47
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
48
+ exports.ConflictException$ = [-3, n0, _CE,
49
+ { [_e]: _c, [_hE]: 409 },
50
+ [_m],
51
+ [0], 1
52
+ ];
53
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
54
+ exports.InternalServerException$ = [-3, n0, _ISE,
55
+ { [_e]: _se, [_hE]: 500 },
56
+ [_m],
57
+ [0], 1
58
+ ];
59
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
60
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
61
+ { [_e]: _c, [_hE]: 404 },
62
+ [_m],
63
+ [0], 1
64
+ ];
65
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
66
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
67
+ { [_e]: _c, [_hE]: 402 },
68
+ [_m],
69
+ [0], 1
70
+ ];
71
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
72
+ exports.ThrottlingException$ = [-3, n0, _TE,
73
+ { [_e]: _c, [_hE]: 429 },
74
+ [_m],
75
+ [0], 1
76
+ ];
77
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
78
+ exports.ValidationException$ = [-3, n0, _VE,
79
+ { [_e]: _c, [_hE]: 400 },
80
+ [_m],
81
+ [0], 1
82
+ ];
83
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
84
+ exports.errorTypeRegistries = [
85
+ _s_registry,
86
+ n0_registry,
87
+ ];
88
+ exports.ConnectionRecordingPreferences$ = [3, n0, _CRP,
89
+ 0,
90
+ [_RD, _KMSKA],
91
+ [() => exports.RecordingDestinations$, 0], 2
92
+ ];
93
+ exports.DeleteConnectionRecordingPreferencesRequest$ = [3, n0, _DCRPR,
94
+ 0,
95
+ [_CT],
96
+ [[0, 4]]
97
+ ];
98
+ exports.DeleteConnectionRecordingPreferencesResponse$ = [3, n0, _DCRPRe,
99
+ 0,
100
+ [_CT],
101
+ [0]
102
+ ];
103
+ exports.GetConnectionRecordingPreferencesResponse$ = [3, n0, _GCRPR,
104
+ 0,
105
+ [_CT, _CRP],
106
+ [0, () => exports.ConnectionRecordingPreferences$]
107
+ ];
108
+ exports.RecordingDestinations$ = [3, n0, _RD,
109
+ 0,
110
+ [_SB],
111
+ [() => S3Buckets], 1
112
+ ];
113
+ exports.S3Bucket$ = [3, n0, _SBu,
114
+ 0,
115
+ [_BO, _BN],
116
+ [0, 0], 2
117
+ ];
118
+ exports.UpdateConnectionRecordingPreferencesRequest$ = [3, n0, _UCRPR,
119
+ 0,
120
+ [_CRP, _CT],
121
+ [() => exports.ConnectionRecordingPreferences$, [0, 4]], 1
122
+ ];
123
+ exports.UpdateConnectionRecordingPreferencesResponse$ = [3, n0, _UCRPRp,
124
+ 0,
125
+ [_CT, _CRP],
126
+ [0, () => exports.ConnectionRecordingPreferences$]
127
+ ];
128
+ var __Unit = "unit";
129
+ var S3Buckets = [1, n0, _SB,
130
+ 0, () => exports.S3Bucket$
131
+ ];
132
+ exports.DeleteConnectionRecordingPreferences$ = [9, n0, _DCRP,
133
+ { [_h]: ["POST", "/DeleteConnectionRecordingPreferences", 200] }, () => exports.DeleteConnectionRecordingPreferencesRequest$, () => exports.DeleteConnectionRecordingPreferencesResponse$
134
+ ];
135
+ exports.GetConnectionRecordingPreferences$ = [9, n0, _GCRP,
136
+ { [_h]: ["POST", "/GetConnectionRecordingPreferences", 200] }, () => __Unit, () => exports.GetConnectionRecordingPreferencesResponse$
137
+ ];
138
+ exports.UpdateConnectionRecordingPreferences$ = [9, n0, _UCRP,
139
+ { [_h]: ["POST", "/UpdateConnectionRecordingPreferences", 200] }, () => exports.UpdateConnectionRecordingPreferencesRequest$, () => exports.UpdateConnectionRecordingPreferencesResponse$
140
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultSSMGuiConnectHttpAuthSchemeProvider } 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-05-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.ssmguiconnect",
30
+ errorTypeRegistries,
29
31
  version: "2021-05-01",
30
32
  serviceTarget: "SSMGuiConnect",
31
33
  },
@@ -26,24 +26,62 @@ const _e = "error";
26
26
  const _h = "http";
27
27
  const _hE = "httpError";
28
28
  const _m = "message";
29
- const _s = "server";
30
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssmguiconnect";
29
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssmguiconnect";
30
+ const _se = "server";
31
31
  const n0 = "com.amazonaws.ssmguiconnect";
32
32
  import { TypeRegistry } from "@smithy/core/schema";
33
33
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
34
34
  import { SSMGuiConnectServiceException } from "../models/SSMGuiConnectServiceException";
35
+ const _s_registry = TypeRegistry.for(_s);
36
+ export var SSMGuiConnectServiceException$ = [-3, _s, "SSMGuiConnectServiceException", 0, [], []];
37
+ _s_registry.registerError(SSMGuiConnectServiceException$, SSMGuiConnectServiceException);
38
+ const n0_registry = TypeRegistry.for(n0);
35
39
  export var AccessDeniedException$ = [-3, n0, _ADE,
36
40
  { [_e]: _c, [_hE]: 403 },
37
41
  [_m],
38
42
  [0], 1
39
43
  ];
40
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
44
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
41
45
  export var ConflictException$ = [-3, n0, _CE,
42
46
  { [_e]: _c, [_hE]: 409 },
43
47
  [_m],
44
48
  [0], 1
45
49
  ];
46
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
50
+ n0_registry.registerError(ConflictException$, ConflictException);
51
+ export var InternalServerException$ = [-3, n0, _ISE,
52
+ { [_e]: _se, [_hE]: 500 },
53
+ [_m],
54
+ [0], 1
55
+ ];
56
+ n0_registry.registerError(InternalServerException$, InternalServerException);
57
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
58
+ { [_e]: _c, [_hE]: 404 },
59
+ [_m],
60
+ [0], 1
61
+ ];
62
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
63
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
64
+ { [_e]: _c, [_hE]: 402 },
65
+ [_m],
66
+ [0], 1
67
+ ];
68
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
69
+ export var ThrottlingException$ = [-3, n0, _TE,
70
+ { [_e]: _c, [_hE]: 429 },
71
+ [_m],
72
+ [0], 1
73
+ ];
74
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
75
+ export var ValidationException$ = [-3, n0, _VE,
76
+ { [_e]: _c, [_hE]: 400 },
77
+ [_m],
78
+ [0], 1
79
+ ];
80
+ n0_registry.registerError(ValidationException$, ValidationException);
81
+ export const errorTypeRegistries = [
82
+ _s_registry,
83
+ n0_registry,
84
+ ];
47
85
  export var ConnectionRecordingPreferences$ = [3, n0, _CRP,
48
86
  0,
49
87
  [_RD, _KMSKA],
@@ -64,40 +102,16 @@ export var GetConnectionRecordingPreferencesResponse$ = [3, n0, _GCRPR,
64
102
  [_CT, _CRP],
65
103
  [0, () => ConnectionRecordingPreferences$]
66
104
  ];
67
- export var InternalServerException$ = [-3, n0, _ISE,
68
- { [_e]: _s, [_hE]: 500 },
69
- [_m],
70
- [0], 1
71
- ];
72
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
73
105
  export var RecordingDestinations$ = [3, n0, _RD,
74
106
  0,
75
107
  [_SB],
76
108
  [() => S3Buckets], 1
77
109
  ];
78
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
79
- { [_e]: _c, [_hE]: 404 },
80
- [_m],
81
- [0], 1
82
- ];
83
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
84
110
  export var S3Bucket$ = [3, n0, _SBu,
85
111
  0,
86
112
  [_BO, _BN],
87
113
  [0, 0], 2
88
114
  ];
89
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
90
- { [_e]: _c, [_hE]: 402 },
91
- [_m],
92
- [0], 1
93
- ];
94
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
95
- export var ThrottlingException$ = [-3, n0, _TE,
96
- { [_e]: _c, [_hE]: 429 },
97
- [_m],
98
- [0], 1
99
- ];
100
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
101
115
  export var UpdateConnectionRecordingPreferencesRequest$ = [3, n0, _UCRPR,
102
116
  0,
103
117
  [_CRP, _CT],
@@ -108,15 +122,7 @@ export var UpdateConnectionRecordingPreferencesResponse$ = [3, n0, _UCRPRp,
108
122
  [_CT, _CRP],
109
123
  [0, () => ConnectionRecordingPreferences$]
110
124
  ];
111
- export var ValidationException$ = [-3, n0, _VE,
112
- { [_e]: _c, [_hE]: 400 },
113
- [_m],
114
- [0], 1
115
- ];
116
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
117
125
  var __Unit = "unit";
118
- export var SSMGuiConnectServiceException$ = [-3, _sm, "SSMGuiConnectServiceException", 0, [], []];
119
- TypeRegistry.for(_sm).registerError(SSMGuiConnectServiceException$, SSMGuiConnectServiceException);
120
126
  var S3Buckets = [1, n0, _SB,
121
127
  0, () => S3Bucket$
122
128
  ];
@@ -1,20 +1,27 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var SSMGuiConnectServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
3
5
  export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
4
17
  export declare var ConnectionRecordingPreferences$: StaticStructureSchema;
5
18
  export declare var DeleteConnectionRecordingPreferencesRequest$: StaticStructureSchema;
6
19
  export declare var DeleteConnectionRecordingPreferencesResponse$: StaticStructureSchema;
7
20
  export declare var GetConnectionRecordingPreferencesResponse$: StaticStructureSchema;
8
- export declare var InternalServerException$: StaticErrorSchema;
9
21
  export declare var RecordingDestinations$: StaticStructureSchema;
10
- export declare var ResourceNotFoundException$: StaticErrorSchema;
11
22
  export declare var S3Bucket$: StaticStructureSchema;
12
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
- export declare var ThrottlingException$: StaticErrorSchema;
14
23
  export declare var UpdateConnectionRecordingPreferencesRequest$: StaticStructureSchema;
15
24
  export declare var UpdateConnectionRecordingPreferencesResponse$: StaticStructureSchema;
16
- export declare var ValidationException$: StaticErrorSchema;
17
- export declare var SSMGuiConnectServiceException$: StaticErrorSchema;
18
25
  export declare var DeleteConnectionRecordingPreferences$: StaticOperationSchema;
19
26
  export declare var GetConnectionRecordingPreferences$: StaticOperationSchema;
20
27
  export declare var UpdateConnectionRecordingPreferences$: StaticOperationSchema;
@@ -1,24 +1,26 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var SSMGuiConnectServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
7
9
  export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
8
16
  export declare var ConnectionRecordingPreferences$: StaticStructureSchema;
9
17
  export declare var DeleteConnectionRecordingPreferencesRequest$: StaticStructureSchema;
10
18
  export declare var DeleteConnectionRecordingPreferencesResponse$: StaticStructureSchema;
11
19
  export declare var GetConnectionRecordingPreferencesResponse$: StaticStructureSchema;
12
- export declare var InternalServerException$: StaticErrorSchema;
13
20
  export declare var RecordingDestinations$: StaticStructureSchema;
14
- export declare var ResourceNotFoundException$: StaticErrorSchema;
15
21
  export declare var S3Bucket$: StaticStructureSchema;
16
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
17
- export declare var ThrottlingException$: StaticErrorSchema;
18
22
  export declare var UpdateConnectionRecordingPreferencesRequest$: StaticStructureSchema;
19
23
  export declare var UpdateConnectionRecordingPreferencesResponse$: StaticStructureSchema;
20
- export declare var ValidationException$: StaticErrorSchema;
21
- export declare var SSMGuiConnectServiceException$: StaticErrorSchema;
22
24
  export declare var DeleteConnectionRecordingPreferences$: StaticOperationSchema;
23
25
  export declare var GetConnectionRecordingPreferences$: StaticOperationSchema;
24
26
  export declare var UpdateConnectionRecordingPreferences$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm-guiconnect",
3
3
  "description": "AWS SDK for JavaScript Ssm Guiconnect 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-ssm-guiconnect",
@@ -21,38 +21,38 @@
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",