@aws-sdk/client-marketplace-deployment 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 MarketplaceDeploymentServiceException = require('./models/MarketplaceDeploymentServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,253 +113,6 @@ class MarketplaceDeploymentClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class MarketplaceDeploymentServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, MarketplaceDeploymentServiceException.prototype);
117
- }
118
- }
119
-
120
- class AccessDeniedException extends MarketplaceDeploymentServiceException {
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 MarketplaceDeploymentServiceException {
133
- name = "ConflictException";
134
- $fault = "client";
135
- resourceId;
136
- constructor(opts) {
137
- super({
138
- name: "ConflictException",
139
- $fault: "client",
140
- ...opts,
141
- });
142
- Object.setPrototypeOf(this, ConflictException.prototype);
143
- this.resourceId = opts.resourceId;
144
- }
145
- }
146
- class InternalServerException extends MarketplaceDeploymentServiceException {
147
- name = "InternalServerException";
148
- $fault = "server";
149
- $retryable = {};
150
- constructor(opts) {
151
- super({
152
- name: "InternalServerException",
153
- $fault: "server",
154
- ...opts,
155
- });
156
- Object.setPrototypeOf(this, InternalServerException.prototype);
157
- }
158
- }
159
- class ResourceNotFoundException extends MarketplaceDeploymentServiceException {
160
- name = "ResourceNotFoundException";
161
- $fault = "client";
162
- constructor(opts) {
163
- super({
164
- name: "ResourceNotFoundException",
165
- $fault: "client",
166
- ...opts,
167
- });
168
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
169
- }
170
- }
171
- class ServiceQuotaExceededException extends MarketplaceDeploymentServiceException {
172
- name = "ServiceQuotaExceededException";
173
- $fault = "client";
174
- constructor(opts) {
175
- super({
176
- name: "ServiceQuotaExceededException",
177
- $fault: "client",
178
- ...opts,
179
- });
180
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
181
- }
182
- }
183
- class ThrottlingException extends MarketplaceDeploymentServiceException {
184
- name = "ThrottlingException";
185
- $fault = "client";
186
- $retryable = {
187
- throttling: true,
188
- };
189
- constructor(opts) {
190
- super({
191
- name: "ThrottlingException",
192
- $fault: "client",
193
- ...opts,
194
- });
195
- Object.setPrototypeOf(this, ThrottlingException.prototype);
196
- }
197
- }
198
- class ValidationException extends MarketplaceDeploymentServiceException {
199
- name = "ValidationException";
200
- $fault = "client";
201
- fieldName;
202
- constructor(opts) {
203
- super({
204
- name: "ValidationException",
205
- $fault: "client",
206
- ...opts,
207
- });
208
- Object.setPrototypeOf(this, ValidationException.prototype);
209
- this.fieldName = opts.fieldName;
210
- }
211
- }
212
-
213
- const _ADE = "AccessDeniedException";
214
- const _CE = "ConflictException";
215
- const _DPI = "DeploymentParameterInput";
216
- const _ISE = "InternalServerException";
217
- const _LTFR = "ListTagsForResource";
218
- const _LTFRR = "ListTagsForResourceRequest";
219
- const _LTFRRi = "ListTagsForResourceResponse";
220
- const _PDP = "PutDeploymentParameter";
221
- const _PDPR = "PutDeploymentParameterRequest";
222
- const _PDPRu = "PutDeploymentParameterResponse";
223
- const _RNFE = "ResourceNotFoundException";
224
- const _SQEE = "ServiceQuotaExceededException";
225
- const _SS = "SecretString";
226
- const _TE = "ThrottlingException";
227
- const _TR = "TagResource";
228
- const _TRR = "TagResourceRequest";
229
- const _TRRa = "TagResourceResponse";
230
- const _UR = "UntagResource";
231
- const _URR = "UntagResourceRequest";
232
- const _URRn = "UntagResourceResponse";
233
- const _VE = "ValidationException";
234
- const _aI = "agreementId";
235
- const _c = "client";
236
- const _cT = "clientToken";
237
- const _ca = "catalog";
238
- const _dP = "deploymentParameter";
239
- const _dPI = "deploymentParameterId";
240
- const _e = "error";
241
- const _eD = "expirationDate";
242
- const _fN = "fieldName";
243
- const _h = "http";
244
- const _hE = "httpError";
245
- const _hQ = "httpQuery";
246
- const _m = "message";
247
- const _n = "name";
248
- const _pI = "productId";
249
- const _rA = "resourceArn";
250
- const _rI = "resourceId";
251
- const _s = "server";
252
- const _sS = "secretString";
253
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacedeployment";
254
- const _t = "tags";
255
- const _tK = "tagKeys";
256
- const n0 = "com.amazonaws.marketplacedeployment";
257
- var SecretString = [0, n0, _SS, 8, 0];
258
- var AccessDeniedException$ = [-3, n0, _ADE,
259
- { [_e]: _c, [_hE]: 403 },
260
- [_m],
261
- [0], 1
262
- ];
263
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
264
- var ConflictException$ = [-3, n0, _CE,
265
- { [_e]: _c, [_hE]: 409 },
266
- [_m, _rI],
267
- [0, 0], 2
268
- ];
269
- schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
270
- var DeploymentParameterInput$ = [3, n0, _DPI,
271
- 0,
272
- [_n, _sS],
273
- [0, [() => SecretString, 0]], 2
274
- ];
275
- var InternalServerException$ = [-3, n0, _ISE,
276
- { [_e]: _s, [_hE]: 500 },
277
- [_m],
278
- [0], 1
279
- ];
280
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
281
- var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
282
- 0,
283
- [_rA],
284
- [[0, 1]], 1
285
- ];
286
- var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
287
- 0,
288
- [_t],
289
- [128 | 0]
290
- ];
291
- var PutDeploymentParameterRequest$ = [3, n0, _PDPR,
292
- 0,
293
- [_ca, _pI, _aI, _dP, _t, _eD, _cT],
294
- [[0, 1], [0, 1], 0, [() => DeploymentParameterInput$, 0], 128 | 0, 5, [0, 4]], 4
295
- ];
296
- var PutDeploymentParameterResponse$ = [3, n0, _PDPRu,
297
- 0,
298
- [_rA, _aI, _dPI, _t],
299
- [0, 0, 0, 128 | 0], 3
300
- ];
301
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
302
- { [_e]: _c, [_hE]: 404 },
303
- [_m],
304
- [0], 1
305
- ];
306
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
307
- var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
308
- { [_e]: _c, [_hE]: 402 },
309
- [_m],
310
- [0], 1
311
- ];
312
- schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
313
- var TagResourceRequest$ = [3, n0, _TRR,
314
- 0,
315
- [_rA, _t],
316
- [[0, 1], 128 | 0], 1
317
- ];
318
- var TagResourceResponse$ = [3, n0, _TRRa,
319
- 0,
320
- [],
321
- []
322
- ];
323
- var ThrottlingException$ = [-3, n0, _TE,
324
- { [_e]: _c, [_hE]: 429 },
325
- [_m],
326
- [0], 1
327
- ];
328
- schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
329
- var UntagResourceRequest$ = [3, n0, _URR,
330
- 0,
331
- [_rA, _tK],
332
- [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
333
- ];
334
- var UntagResourceResponse$ = [3, n0, _URRn,
335
- 0,
336
- [],
337
- []
338
- ];
339
- var ValidationException$ = [-3, n0, _VE,
340
- { [_e]: _c, [_hE]: 400 },
341
- [_m, _fN],
342
- [0, 0], 2
343
- ];
344
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
345
- var MarketplaceDeploymentServiceException$ = [-3, _sm, "MarketplaceDeploymentServiceException", 0, [], []];
346
- schema.TypeRegistry.for(_sm).registerError(MarketplaceDeploymentServiceException$, MarketplaceDeploymentServiceException);
347
- var ListTagsForResource$ = [9, n0, _LTFR,
348
- { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
349
- ];
350
- var PutDeploymentParameter$ = [9, n0, _PDP,
351
- { [_h]: ["POST", "/catalogs/{catalog}/products/{productId}/deployment-parameters", 200] }, () => PutDeploymentParameterRequest$, () => PutDeploymentParameterResponse$
352
- ];
353
- var TagResource$ = [9, n0, _TR,
354
- { [_h]: ["POST", "/tags/{resourceArn}", 204] }, () => TagResourceRequest$, () => TagResourceResponse$
355
- ];
356
- var UntagResource$ = [9, n0, _UR,
357
- { [_h]: ["DELETE", "/tags/{resourceArn}", 204] }, () => UntagResourceRequest$, () => UntagResourceResponse$
358
- ];
359
-
360
116
  class ListTagsForResourceCommand extends smithyClient.Command
361
117
  .classBuilder()
362
118
  .ep(commonParams)
@@ -365,7 +121,7 @@ class ListTagsForResourceCommand extends smithyClient.Command
365
121
  })
366
122
  .s("AWSMPDeploymentParametersService", "ListTagsForResource", {})
367
123
  .n("MarketplaceDeploymentClient", "ListTagsForResourceCommand")
368
- .sc(ListTagsForResource$)
124
+ .sc(schemas_0.ListTagsForResource$)
369
125
  .build() {
370
126
  }
371
127
 
@@ -377,7 +133,7 @@ class PutDeploymentParameterCommand extends smithyClient.Command
377
133
  })
378
134
  .s("AWSMPDeploymentParametersService", "PutDeploymentParameter", {})
379
135
  .n("MarketplaceDeploymentClient", "PutDeploymentParameterCommand")
380
- .sc(PutDeploymentParameter$)
136
+ .sc(schemas_0.PutDeploymentParameter$)
381
137
  .build() {
382
138
  }
383
139
 
@@ -389,7 +145,7 @@ class TagResourceCommand extends smithyClient.Command
389
145
  })
390
146
  .s("AWSMPDeploymentParametersService", "TagResource", {})
391
147
  .n("MarketplaceDeploymentClient", "TagResourceCommand")
392
- .sc(TagResource$)
148
+ .sc(schemas_0.TagResource$)
393
149
  .build() {
394
150
  }
395
151
 
@@ -401,7 +157,7 @@ class UntagResourceCommand extends smithyClient.Command
401
157
  })
402
158
  .s("AWSMPDeploymentParametersService", "UntagResource", {})
403
159
  .n("MarketplaceDeploymentClient", "UntagResourceCommand")
404
- .sc(UntagResource$)
160
+ .sc(schemas_0.UntagResource$)
405
161
  .build() {
406
162
  }
407
163
 
@@ -423,38 +179,25 @@ Object.defineProperty(exports, "__Client", {
423
179
  enumerable: true,
424
180
  get: function () { return smithyClient.Client; }
425
181
  });
426
- exports.AccessDeniedException = AccessDeniedException;
427
- exports.AccessDeniedException$ = AccessDeniedException$;
428
- exports.ConflictException = ConflictException;
429
- exports.ConflictException$ = ConflictException$;
430
- exports.DeploymentParameterInput$ = DeploymentParameterInput$;
431
- exports.InternalServerException = InternalServerException;
432
- exports.InternalServerException$ = InternalServerException$;
433
- exports.ListTagsForResource$ = ListTagsForResource$;
182
+ Object.defineProperty(exports, "MarketplaceDeploymentServiceException", {
183
+ enumerable: true,
184
+ get: function () { return MarketplaceDeploymentServiceException.MarketplaceDeploymentServiceException; }
185
+ });
434
186
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
435
- exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
436
- exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
437
187
  exports.MarketplaceDeployment = MarketplaceDeployment;
438
188
  exports.MarketplaceDeploymentClient = MarketplaceDeploymentClient;
439
- exports.MarketplaceDeploymentServiceException = MarketplaceDeploymentServiceException;
440
- exports.MarketplaceDeploymentServiceException$ = MarketplaceDeploymentServiceException$;
441
- exports.PutDeploymentParameter$ = PutDeploymentParameter$;
442
189
  exports.PutDeploymentParameterCommand = PutDeploymentParameterCommand;
443
- exports.PutDeploymentParameterRequest$ = PutDeploymentParameterRequest$;
444
- exports.PutDeploymentParameterResponse$ = PutDeploymentParameterResponse$;
445
- exports.ResourceNotFoundException = ResourceNotFoundException;
446
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
447
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
448
- exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
449
- exports.TagResource$ = TagResource$;
450
190
  exports.TagResourceCommand = TagResourceCommand;
451
- exports.TagResourceRequest$ = TagResourceRequest$;
452
- exports.TagResourceResponse$ = TagResourceResponse$;
453
- exports.ThrottlingException = ThrottlingException;
454
- exports.ThrottlingException$ = ThrottlingException$;
455
- exports.UntagResource$ = UntagResource$;
456
191
  exports.UntagResourceCommand = UntagResourceCommand;
457
- exports.UntagResourceRequest$ = UntagResourceRequest$;
458
- exports.UntagResourceResponse$ = UntagResourceResponse$;
459
- exports.ValidationException = ValidationException;
460
- exports.ValidationException$ = ValidationException$;
192
+ Object.keys(schemas_0).forEach(function (k) {
193
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
194
+ enumerable: true,
195
+ get: function () { return schemas_0[k]; }
196
+ });
197
+ });
198
+ Object.keys(errors).forEach(function (k) {
199
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
200
+ enumerable: true,
201
+ get: function () { return errors[k]; }
202
+ });
203
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketplaceDeploymentServiceException = 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 MarketplaceDeploymentServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, MarketplaceDeploymentServiceException.prototype);
10
+ }
11
+ }
12
+ exports.MarketplaceDeploymentServiceException = MarketplaceDeploymentServiceException;
@@ -0,0 +1,103 @@
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 MarketplaceDeploymentServiceException_1 = require("./MarketplaceDeploymentServiceException");
5
+ class AccessDeniedException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
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 MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ resourceId;
22
+ constructor(opts) {
23
+ super({
24
+ name: "ConflictException",
25
+ $fault: "client",
26
+ ...opts,
27
+ });
28
+ Object.setPrototypeOf(this, ConflictException.prototype);
29
+ this.resourceId = opts.resourceId;
30
+ }
31
+ }
32
+ exports.ConflictException = ConflictException;
33
+ class InternalServerException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
34
+ name = "InternalServerException";
35
+ $fault = "server";
36
+ $retryable = {};
37
+ constructor(opts) {
38
+ super({
39
+ name: "InternalServerException",
40
+ $fault: "server",
41
+ ...opts,
42
+ });
43
+ Object.setPrototypeOf(this, InternalServerException.prototype);
44
+ }
45
+ }
46
+ exports.InternalServerException = InternalServerException;
47
+ class ResourceNotFoundException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
48
+ name = "ResourceNotFoundException";
49
+ $fault = "client";
50
+ constructor(opts) {
51
+ super({
52
+ name: "ResourceNotFoundException",
53
+ $fault: "client",
54
+ ...opts,
55
+ });
56
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
57
+ }
58
+ }
59
+ exports.ResourceNotFoundException = ResourceNotFoundException;
60
+ class ServiceQuotaExceededException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
61
+ name = "ServiceQuotaExceededException";
62
+ $fault = "client";
63
+ constructor(opts) {
64
+ super({
65
+ name: "ServiceQuotaExceededException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
70
+ }
71
+ }
72
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
73
+ class ThrottlingException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
74
+ name = "ThrottlingException";
75
+ $fault = "client";
76
+ $retryable = {
77
+ throttling: true,
78
+ };
79
+ constructor(opts) {
80
+ super({
81
+ name: "ThrottlingException",
82
+ $fault: "client",
83
+ ...opts,
84
+ });
85
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
86
+ }
87
+ }
88
+ exports.ThrottlingException = ThrottlingException;
89
+ class ValidationException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
90
+ name = "ValidationException";
91
+ $fault = "client";
92
+ fieldName;
93
+ constructor(opts) {
94
+ super({
95
+ name: "ValidationException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ Object.setPrototypeOf(this, ValidationException.prototype);
100
+ this.fieldName = opts.fieldName;
101
+ }
102
+ }
103
+ 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: "2023-01-25",
@@ -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.marketplacedeployment",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2023-01-25",
33
35
  serviceTarget: "AWSMPDeploymentParametersService",
34
36
  },
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResource$ = exports.TagResource$ = exports.PutDeploymentParameter$ = exports.ListTagsForResource$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.PutDeploymentParameterResponse$ = exports.PutDeploymentParameterRequest$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.DeploymentParameterInput$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.MarketplaceDeploymentServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _CE = "ConflictException";
6
+ const _DPI = "DeploymentParameterInput";
7
+ const _ISE = "InternalServerException";
8
+ const _LTFR = "ListTagsForResource";
9
+ const _LTFRR = "ListTagsForResourceRequest";
10
+ const _LTFRRi = "ListTagsForResourceResponse";
11
+ const _PDP = "PutDeploymentParameter";
12
+ const _PDPR = "PutDeploymentParameterRequest";
13
+ const _PDPRu = "PutDeploymentParameterResponse";
14
+ const _RNFE = "ResourceNotFoundException";
15
+ const _SQEE = "ServiceQuotaExceededException";
16
+ const _SS = "SecretString";
17
+ const _TE = "ThrottlingException";
18
+ const _TR = "TagResource";
19
+ const _TRR = "TagResourceRequest";
20
+ const _TRRa = "TagResourceResponse";
21
+ const _UR = "UntagResource";
22
+ const _URR = "UntagResourceRequest";
23
+ const _URRn = "UntagResourceResponse";
24
+ const _VE = "ValidationException";
25
+ const _aI = "agreementId";
26
+ const _c = "client";
27
+ const _cT = "clientToken";
28
+ const _ca = "catalog";
29
+ const _dP = "deploymentParameter";
30
+ const _dPI = "deploymentParameterId";
31
+ const _e = "error";
32
+ const _eD = "expirationDate";
33
+ const _fN = "fieldName";
34
+ const _h = "http";
35
+ const _hE = "httpError";
36
+ const _hQ = "httpQuery";
37
+ const _m = "message";
38
+ const _n = "name";
39
+ const _pI = "productId";
40
+ const _rA = "resourceArn";
41
+ const _rI = "resourceId";
42
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacedeployment";
43
+ const _sS = "secretString";
44
+ const _se = "server";
45
+ const _t = "tags";
46
+ const _tK = "tagKeys";
47
+ const n0 = "com.amazonaws.marketplacedeployment";
48
+ const schema_1 = require("@smithy/core/schema");
49
+ const errors_1 = require("../models/errors");
50
+ const MarketplaceDeploymentServiceException_1 = require("../models/MarketplaceDeploymentServiceException");
51
+ const _s_registry = schema_1.TypeRegistry.for(_s);
52
+ exports.MarketplaceDeploymentServiceException$ = [-3, _s, "MarketplaceDeploymentServiceException", 0, [], []];
53
+ _s_registry.registerError(exports.MarketplaceDeploymentServiceException$, MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException);
54
+ const n0_registry = schema_1.TypeRegistry.for(n0);
55
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
56
+ { [_e]: _c, [_hE]: 403 },
57
+ [_m],
58
+ [0], 1
59
+ ];
60
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
61
+ exports.ConflictException$ = [-3, n0, _CE,
62
+ { [_e]: _c, [_hE]: 409 },
63
+ [_m, _rI],
64
+ [0, 0], 2
65
+ ];
66
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
67
+ exports.InternalServerException$ = [-3, n0, _ISE,
68
+ { [_e]: _se, [_hE]: 500 },
69
+ [_m],
70
+ [0], 1
71
+ ];
72
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
73
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
74
+ { [_e]: _c, [_hE]: 404 },
75
+ [_m],
76
+ [0], 1
77
+ ];
78
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
79
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
80
+ { [_e]: _c, [_hE]: 402 },
81
+ [_m],
82
+ [0], 1
83
+ ];
84
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
85
+ exports.ThrottlingException$ = [-3, n0, _TE,
86
+ { [_e]: _c, [_hE]: 429 },
87
+ [_m],
88
+ [0], 1
89
+ ];
90
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
91
+ exports.ValidationException$ = [-3, n0, _VE,
92
+ { [_e]: _c, [_hE]: 400 },
93
+ [_m, _fN],
94
+ [0, 0], 2
95
+ ];
96
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
97
+ exports.errorTypeRegistries = [
98
+ _s_registry,
99
+ n0_registry,
100
+ ];
101
+ var SecretString = [0, n0, _SS, 8, 0];
102
+ exports.DeploymentParameterInput$ = [3, n0, _DPI,
103
+ 0,
104
+ [_n, _sS],
105
+ [0, [() => SecretString, 0]], 2
106
+ ];
107
+ exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
108
+ 0,
109
+ [_rA],
110
+ [[0, 1]], 1
111
+ ];
112
+ exports.ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
113
+ 0,
114
+ [_t],
115
+ [128 | 0]
116
+ ];
117
+ exports.PutDeploymentParameterRequest$ = [3, n0, _PDPR,
118
+ 0,
119
+ [_ca, _pI, _aI, _dP, _t, _eD, _cT],
120
+ [[0, 1], [0, 1], 0, [() => exports.DeploymentParameterInput$, 0], 128 | 0, 5, [0, 4]], 4
121
+ ];
122
+ exports.PutDeploymentParameterResponse$ = [3, n0, _PDPRu,
123
+ 0,
124
+ [_rA, _aI, _dPI, _t],
125
+ [0, 0, 0, 128 | 0], 3
126
+ ];
127
+ exports.TagResourceRequest$ = [3, n0, _TRR,
128
+ 0,
129
+ [_rA, _t],
130
+ [[0, 1], 128 | 0], 1
131
+ ];
132
+ exports.TagResourceResponse$ = [3, n0, _TRRa,
133
+ 0,
134
+ [],
135
+ []
136
+ ];
137
+ exports.UntagResourceRequest$ = [3, n0, _URR,
138
+ 0,
139
+ [_rA, _tK],
140
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
141
+ ];
142
+ exports.UntagResourceResponse$ = [3, n0, _URRn,
143
+ 0,
144
+ [],
145
+ []
146
+ ];
147
+ var StringList = 64 | 0;
148
+ var Tags = 128 | 0;
149
+ var TagsMap = 128 | 0;
150
+ exports.ListTagsForResource$ = [9, n0, _LTFR,
151
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResponse$
152
+ ];
153
+ exports.PutDeploymentParameter$ = [9, n0, _PDP,
154
+ { [_h]: ["POST", "/catalogs/{catalog}/products/{productId}/deployment-parameters", 200] }, () => exports.PutDeploymentParameterRequest$, () => exports.PutDeploymentParameterResponse$
155
+ ];
156
+ exports.TagResource$ = [9, n0, _TR,
157
+ { [_h]: ["POST", "/tags/{resourceArn}", 204] }, () => exports.TagResourceRequest$, () => exports.TagResourceResponse$
158
+ ];
159
+ exports.UntagResource$ = [9, n0, _UR,
160
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 204] }, () => exports.UntagResourceRequest$, () => exports.UntagResourceResponse$
161
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultMarketplaceDeploymentHttpAuthSchemeProvider } 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: "2023-01-25",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.marketplacedeployment",
30
+ errorTypeRegistries,
29
31
  version: "2023-01-25",
30
32
  serviceTarget: "AWSMPDeploymentParametersService",
31
33
  },
@@ -36,39 +36,71 @@ const _n = "name";
36
36
  const _pI = "productId";
37
37
  const _rA = "resourceArn";
38
38
  const _rI = "resourceId";
39
- const _s = "server";
39
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacedeployment";
40
40
  const _sS = "secretString";
41
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacedeployment";
41
+ const _se = "server";
42
42
  const _t = "tags";
43
43
  const _tK = "tagKeys";
44
44
  const n0 = "com.amazonaws.marketplacedeployment";
45
45
  import { TypeRegistry } from "@smithy/core/schema";
46
46
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
47
47
  import { MarketplaceDeploymentServiceException } from "../models/MarketplaceDeploymentServiceException";
48
- var SecretString = [0, n0, _SS, 8, 0];
48
+ const _s_registry = TypeRegistry.for(_s);
49
+ export var MarketplaceDeploymentServiceException$ = [-3, _s, "MarketplaceDeploymentServiceException", 0, [], []];
50
+ _s_registry.registerError(MarketplaceDeploymentServiceException$, MarketplaceDeploymentServiceException);
51
+ const n0_registry = TypeRegistry.for(n0);
49
52
  export var AccessDeniedException$ = [-3, n0, _ADE,
50
53
  { [_e]: _c, [_hE]: 403 },
51
54
  [_m],
52
55
  [0], 1
53
56
  ];
54
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
57
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
55
58
  export var ConflictException$ = [-3, n0, _CE,
56
59
  { [_e]: _c, [_hE]: 409 },
57
60
  [_m, _rI],
58
61
  [0, 0], 2
59
62
  ];
60
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
63
+ n0_registry.registerError(ConflictException$, ConflictException);
64
+ export var InternalServerException$ = [-3, n0, _ISE,
65
+ { [_e]: _se, [_hE]: 500 },
66
+ [_m],
67
+ [0], 1
68
+ ];
69
+ n0_registry.registerError(InternalServerException$, InternalServerException);
70
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
71
+ { [_e]: _c, [_hE]: 404 },
72
+ [_m],
73
+ [0], 1
74
+ ];
75
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
76
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
77
+ { [_e]: _c, [_hE]: 402 },
78
+ [_m],
79
+ [0], 1
80
+ ];
81
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
82
+ export var ThrottlingException$ = [-3, n0, _TE,
83
+ { [_e]: _c, [_hE]: 429 },
84
+ [_m],
85
+ [0], 1
86
+ ];
87
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
88
+ export var ValidationException$ = [-3, n0, _VE,
89
+ { [_e]: _c, [_hE]: 400 },
90
+ [_m, _fN],
91
+ [0, 0], 2
92
+ ];
93
+ n0_registry.registerError(ValidationException$, ValidationException);
94
+ export const errorTypeRegistries = [
95
+ _s_registry,
96
+ n0_registry,
97
+ ];
98
+ var SecretString = [0, n0, _SS, 8, 0];
61
99
  export var DeploymentParameterInput$ = [3, n0, _DPI,
62
100
  0,
63
101
  [_n, _sS],
64
102
  [0, [() => SecretString, 0]], 2
65
103
  ];
66
- export var InternalServerException$ = [-3, n0, _ISE,
67
- { [_e]: _s, [_hE]: 500 },
68
- [_m],
69
- [0], 1
70
- ];
71
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
72
104
  export var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
73
105
  0,
74
106
  [_rA],
@@ -89,18 +121,6 @@ export var PutDeploymentParameterResponse$ = [3, n0, _PDPRu,
89
121
  [_rA, _aI, _dPI, _t],
90
122
  [0, 0, 0, 128 | 0], 3
91
123
  ];
92
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
93
- { [_e]: _c, [_hE]: 404 },
94
- [_m],
95
- [0], 1
96
- ];
97
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
98
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
99
- { [_e]: _c, [_hE]: 402 },
100
- [_m],
101
- [0], 1
102
- ];
103
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
104
124
  export var TagResourceRequest$ = [3, n0, _TRR,
105
125
  0,
106
126
  [_rA, _t],
@@ -111,12 +131,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
111
131
  [],
112
132
  []
113
133
  ];
114
- export var ThrottlingException$ = [-3, n0, _TE,
115
- { [_e]: _c, [_hE]: 429 },
116
- [_m],
117
- [0], 1
118
- ];
119
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
120
134
  export var UntagResourceRequest$ = [3, n0, _URR,
121
135
  0,
122
136
  [_rA, _tK],
@@ -127,14 +141,6 @@ export var UntagResourceResponse$ = [3, n0, _URRn,
127
141
  [],
128
142
  []
129
143
  ];
130
- export var ValidationException$ = [-3, n0, _VE,
131
- { [_e]: _c, [_hE]: 400 },
132
- [_m, _fN],
133
- [0, 0], 2
134
- ];
135
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
136
- export var MarketplaceDeploymentServiceException$ = [-3, _sm, "MarketplaceDeploymentServiceException", 0, [], []];
137
- TypeRegistry.for(_sm).registerError(MarketplaceDeploymentServiceException$, MarketplaceDeploymentServiceException);
138
144
  var StringList = 64 | 0;
139
145
  var Tags = 128 | 0;
140
146
  var TagsMap = 128 | 0;
@@ -1,21 +1,28 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var MarketplaceDeploymentServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
3
5
  export declare var ConflictException$: StaticErrorSchema;
4
- export declare var DeploymentParameterInput$: StaticStructureSchema;
5
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[];
17
+ export declare var DeploymentParameterInput$: StaticStructureSchema;
6
18
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
7
19
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
8
20
  export declare var PutDeploymentParameterRequest$: StaticStructureSchema;
9
21
  export declare var PutDeploymentParameterResponse$: StaticStructureSchema;
10
- export declare var ResourceNotFoundException$: StaticErrorSchema;
11
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
12
22
  export declare var TagResourceRequest$: StaticStructureSchema;
13
23
  export declare var TagResourceResponse$: StaticStructureSchema;
14
- export declare var ThrottlingException$: StaticErrorSchema;
15
24
  export declare var UntagResourceRequest$: StaticStructureSchema;
16
25
  export declare var UntagResourceResponse$: StaticStructureSchema;
17
- export declare var ValidationException$: StaticErrorSchema;
18
- export declare var MarketplaceDeploymentServiceException$: StaticErrorSchema;
19
26
  export declare var ListTagsForResource$: StaticOperationSchema;
20
27
  export declare var PutDeploymentParameter$: StaticOperationSchema;
21
28
  export declare var TagResource$: StaticOperationSchema;
@@ -1,25 +1,27 @@
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 MarketplaceDeploymentServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
7
9
  export declare var ConflictException$: StaticErrorSchema;
8
- export declare var DeploymentParameterInput$: StaticStructureSchema;
9
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[];
16
+ export declare var DeploymentParameterInput$: StaticStructureSchema;
10
17
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
11
18
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
12
19
  export declare var PutDeploymentParameterRequest$: StaticStructureSchema;
13
20
  export declare var PutDeploymentParameterResponse$: StaticStructureSchema;
14
- export declare var ResourceNotFoundException$: StaticErrorSchema;
15
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
16
21
  export declare var TagResourceRequest$: StaticStructureSchema;
17
22
  export declare var TagResourceResponse$: StaticStructureSchema;
18
- export declare var ThrottlingException$: StaticErrorSchema;
19
23
  export declare var UntagResourceRequest$: StaticStructureSchema;
20
24
  export declare var UntagResourceResponse$: StaticStructureSchema;
21
- export declare var ValidationException$: StaticErrorSchema;
22
- export declare var MarketplaceDeploymentServiceException$: StaticErrorSchema;
23
25
  export declare var ListTagsForResource$: StaticOperationSchema;
24
26
  export declare var PutDeploymentParameter$: StaticOperationSchema;
25
27
  export declare var TagResource$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-deployment",
3
3
  "description": "AWS SDK for JavaScript Marketplace Deployment 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-marketplace-deployment",
@@ -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",