@aws-sdk/client-mpa 3.986.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultMPAHttpAuthSchemeProvider } 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: "2022-07-26",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.mpa",
30
+ errorTypeRegistries,
29
31
  version: "2022-07-26",
30
32
  serviceTarget: "AWSFluffyCoreService",
31
33
  },
@@ -189,12 +189,74 @@ const _e = "error";
189
189
  const _h = "http";
190
190
  const _hE = "httpError";
191
191
  const _hQ = "httpQuery";
192
- const _s = "server";
193
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.mpa";
192
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mpa";
193
+ const _se = "server";
194
194
  const n0 = "com.amazonaws.mpa";
195
195
  import { TypeRegistry } from "@smithy/core/schema";
196
196
  import { AccessDeniedException, ConflictException, InternalServerException, InvalidParameterException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/errors";
197
197
  import { MPAServiceException } from "../models/MPAServiceException";
198
+ const _s_registry = TypeRegistry.for(_s);
199
+ export var MPAServiceException$ = [-3, _s, "MPAServiceException", 0, [], []];
200
+ _s_registry.registerError(MPAServiceException$, MPAServiceException);
201
+ const n0_registry = TypeRegistry.for(n0);
202
+ export var AccessDeniedException$ = [-3, n0, _ADE,
203
+ { [_e]: _c, [_hE]: 403 },
204
+ [_M],
205
+ [0], 1
206
+ ];
207
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
208
+ export var ConflictException$ = [-3, n0, _CE,
209
+ { [_e]: _c, [_hE]: 409 },
210
+ [_M],
211
+ [0], 1
212
+ ];
213
+ n0_registry.registerError(ConflictException$, ConflictException);
214
+ export var InternalServerException$ = [-3, n0, _ISE,
215
+ { [_e]: _se, [_hE]: 500 },
216
+ [_M],
217
+ [0], 1
218
+ ];
219
+ n0_registry.registerError(InternalServerException$, InternalServerException);
220
+ export var InvalidParameterException$ = [-3, n0, _IPE,
221
+ { [_e]: _c, [_hE]: 400 },
222
+ [_M],
223
+ [0], 1
224
+ ];
225
+ n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
226
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
227
+ { [_e]: _c, [_hE]: 404 },
228
+ [_M],
229
+ [0], 1
230
+ ];
231
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
232
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
233
+ { [_e]: _c, [_hE]: 402 },
234
+ [_M],
235
+ [0], 1
236
+ ];
237
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
238
+ export var ThrottlingException$ = [-3, n0, _TE,
239
+ { [_e]: _c, [_hE]: 429 },
240
+ [_M],
241
+ [0], 1
242
+ ];
243
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
244
+ export var TooManyTagsException$ = [-3, n0, _TMTE,
245
+ { [_e]: _c, [_hE]: 400 },
246
+ [_M, _RN],
247
+ [0, 0], 1
248
+ ];
249
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
250
+ export var ValidationException$ = [-3, n0, _VE,
251
+ { [_e]: _c, [_hE]: 400 },
252
+ [_M],
253
+ [0], 1
254
+ ];
255
+ n0_registry.registerError(ValidationException$, ValidationException);
256
+ export const errorTypeRegistries = [
257
+ _s_registry,
258
+ n0_registry,
259
+ ];
198
260
  var Description = [0, n0, _D, 8, 0];
199
261
  var PolicyDocument = [0, n0, _PD, 8, 0];
200
262
  var RequesterComment = [0, n0, _RC, 8, 0];
@@ -202,12 +264,6 @@ var SessionKey = [0, n0, _SK, 8, 0];
202
264
  var SessionValue = [0, n0, _SV, 8, 0];
203
265
  var TagKey = [0, n0, _TK, 8, 0];
204
266
  var TagValue = [0, n0, _TV, 8, 0];
205
- export var AccessDeniedException$ = [-3, n0, _ADE,
206
- { [_e]: _c, [_hE]: 403 },
207
- [_M],
208
- [0], 1
209
- ];
210
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
211
267
  export var ApprovalTeamRequestApprover$ = [3, n0, _ATRA,
212
268
  0,
213
269
  [_PII, _PISA],
@@ -223,12 +279,6 @@ export var CancelSessionResponse$ = [3, n0, _CSRa,
223
279
  [],
224
280
  []
225
281
  ];
226
- export var ConflictException$ = [-3, n0, _CE,
227
- { [_e]: _c, [_hE]: 409 },
228
- [_M],
229
- [0], 1
230
- ];
231
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
232
282
  export var CreateApprovalTeamRequest$ = [3, n0, _CATR,
233
283
  0,
234
284
  [_AS, _A, _D, _P, _N, _CT, _T],
@@ -354,18 +404,6 @@ export var IdentitySourceParameters$ = [3, n0, _ISP,
354
404
  [_IIC],
355
405
  [() => IamIdentityCenter$]
356
406
  ];
357
- export var InternalServerException$ = [-3, n0, _ISE,
358
- { [_e]: _s, [_hE]: 500 },
359
- [_M],
360
- [0], 1
361
- ];
362
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
363
- export var InvalidParameterException$ = [-3, n0, _IPE,
364
- { [_e]: _c, [_hE]: 400 },
365
- [_M],
366
- [0], 1
367
- ];
368
- TypeRegistry.for(n0).registerError(InvalidParameterException$, InvalidParameterException);
369
407
  export var ListApprovalTeamsRequest$ = [3, n0, _LATR,
370
408
  0,
371
409
  [_MR, _NT],
@@ -486,18 +524,6 @@ export var PolicyVersionSummary$ = [3, n0, _PVS,
486
524
  [_Ar, _PA, _VI, _PT, _ID, _N, _S, _CTr, _LUTa],
487
525
  [0, 0, 1, 0, 2, 0, 0, 5, 5], 9
488
526
  ];
489
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
490
- { [_e]: _c, [_hE]: 404 },
491
- [_M],
492
- [0], 1
493
- ];
494
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
495
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
496
- { [_e]: _c, [_hE]: 402 },
497
- [_M],
498
- [0], 1
499
- ];
500
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
501
527
  export var StartActiveApprovalTeamDeletionRequest$ = [3, n0, _SAATDR,
502
528
  0,
503
529
  [_Ar, _PWD],
@@ -518,18 +544,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
518
544
  [],
519
545
  []
520
546
  ];
521
- export var ThrottlingException$ = [-3, n0, _TE,
522
- { [_e]: _c, [_hE]: 429 },
523
- [_M],
524
- [0], 1
525
- ];
526
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
527
- export var TooManyTagsException$ = [-3, n0, _TMTE,
528
- { [_e]: _c, [_hE]: 400 },
529
- [_M, _RN],
530
- [0, 0], 1
531
- ];
532
- TypeRegistry.for(n0).registerError(TooManyTagsException$, TooManyTagsException);
533
547
  export var UntagResourceRequest$ = [3, n0, _URR,
534
548
  0,
535
549
  [_RA, _TKa],
@@ -550,15 +564,7 @@ export var UpdateApprovalTeamResponse$ = [3, n0, _UATRp,
550
564
  [_VI],
551
565
  [0]
552
566
  ];
553
- export var ValidationException$ = [-3, n0, _VE,
554
- { [_e]: _c, [_hE]: 400 },
555
- [_M],
556
- [0], 1
557
- ];
558
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
559
567
  var __Unit = "unit";
560
- export var MPAServiceException$ = [-3, _sm, "MPAServiceException", 0, [], []];
561
- TypeRegistry.for(_sm).registerError(MPAServiceException$, MPAServiceException);
562
568
  var AdditionalSecurityRequirements = 64 | 0;
563
569
  var ApprovalTeamRequestApprovers = [1, n0, _ATRAp,
564
570
  0, () => ApprovalTeamRequestApprover$
@@ -1,9 +1,24 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var MPAServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var InvalidParameterException$: StaticErrorSchema;
8
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
9
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
10
+ export declare var ThrottlingException$: StaticErrorSchema;
11
+ export declare var TooManyTagsException$: StaticErrorSchema;
12
+ export declare var ValidationException$: StaticErrorSchema;
13
+ /**
14
+ * TypeRegistry instances containing modeled errors.
15
+ * @internal
16
+ *
17
+ */
18
+ export declare const errorTypeRegistries: TypeRegistry[];
3
19
  export declare var ApprovalTeamRequestApprover$: StaticStructureSchema;
4
20
  export declare var CancelSessionRequest$: StaticStructureSchema;
5
21
  export declare var CancelSessionResponse$: StaticStructureSchema;
6
- export declare var ConflictException$: StaticErrorSchema;
7
22
  export declare var CreateApprovalTeamRequest$: StaticStructureSchema;
8
23
  export declare var CreateApprovalTeamResponse$: StaticStructureSchema;
9
24
  export declare var CreateIdentitySourceRequest$: StaticStructureSchema;
@@ -29,8 +44,6 @@ export declare var IamIdentityCenterForGet$: StaticStructureSchema;
29
44
  export declare var IamIdentityCenterForList$: StaticStructureSchema;
30
45
  export declare var IdentitySourceForList$: StaticStructureSchema;
31
46
  export declare var IdentitySourceParameters$: StaticStructureSchema;
32
- export declare var InternalServerException$: StaticErrorSchema;
33
- export declare var InvalidParameterException$: StaticErrorSchema;
34
47
  export declare var ListApprovalTeamsRequest$: StaticStructureSchema;
35
48
  export declare var ListApprovalTeamsResponse$: StaticStructureSchema;
36
49
  export declare var ListApprovalTeamsResponseApprovalTeam$: StaticStructureSchema;
@@ -55,20 +68,14 @@ export declare var Policy$: StaticStructureSchema;
55
68
  export declare var PolicyReference$: StaticStructureSchema;
56
69
  export declare var PolicyVersion$: StaticStructureSchema;
57
70
  export declare var PolicyVersionSummary$: StaticStructureSchema;
58
- export declare var ResourceNotFoundException$: StaticErrorSchema;
59
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
60
71
  export declare var StartActiveApprovalTeamDeletionRequest$: StaticStructureSchema;
61
72
  export declare var StartActiveApprovalTeamDeletionResponse$: StaticStructureSchema;
62
73
  export declare var TagResourceRequest$: StaticStructureSchema;
63
74
  export declare var TagResourceResponse$: StaticStructureSchema;
64
- export declare var ThrottlingException$: StaticErrorSchema;
65
- export declare var TooManyTagsException$: StaticErrorSchema;
66
75
  export declare var UntagResourceRequest$: StaticStructureSchema;
67
76
  export declare var UntagResourceResponse$: StaticStructureSchema;
68
77
  export declare var UpdateApprovalTeamRequest$: StaticStructureSchema;
69
78
  export declare var UpdateApprovalTeamResponse$: StaticStructureSchema;
70
- export declare var ValidationException$: StaticErrorSchema;
71
- export declare var MPAServiceException$: StaticErrorSchema;
72
79
  export declare var ApprovalStrategy$: StaticUnionSchema;
73
80
  export declare var ApprovalStrategyResponse$: StaticUnionSchema;
74
81
  export declare var IdentitySourceParametersForGet$: StaticUnionSchema;
@@ -1,14 +1,24 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  StaticUnionSchema,
6
7
  } from "@smithy/types";
8
+ export declare var MPAServiceException$: StaticErrorSchema;
7
9
  export declare var AccessDeniedException$: StaticErrorSchema;
10
+ export declare var ConflictException$: StaticErrorSchema;
11
+ export declare var InternalServerException$: StaticErrorSchema;
12
+ export declare var InvalidParameterException$: StaticErrorSchema;
13
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
14
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
15
+ export declare var ThrottlingException$: StaticErrorSchema;
16
+ export declare var TooManyTagsException$: StaticErrorSchema;
17
+ export declare var ValidationException$: StaticErrorSchema;
18
+ export declare const errorTypeRegistries: TypeRegistry[];
8
19
  export declare var ApprovalTeamRequestApprover$: StaticStructureSchema;
9
20
  export declare var CancelSessionRequest$: StaticStructureSchema;
10
21
  export declare var CancelSessionResponse$: StaticStructureSchema;
11
- export declare var ConflictException$: StaticErrorSchema;
12
22
  export declare var CreateApprovalTeamRequest$: StaticStructureSchema;
13
23
  export declare var CreateApprovalTeamResponse$: StaticStructureSchema;
14
24
  export declare var CreateIdentitySourceRequest$: StaticStructureSchema;
@@ -34,8 +44,6 @@ export declare var IamIdentityCenterForGet$: StaticStructureSchema;
34
44
  export declare var IamIdentityCenterForList$: StaticStructureSchema;
35
45
  export declare var IdentitySourceForList$: StaticStructureSchema;
36
46
  export declare var IdentitySourceParameters$: StaticStructureSchema;
37
- export declare var InternalServerException$: StaticErrorSchema;
38
- export declare var InvalidParameterException$: StaticErrorSchema;
39
47
  export declare var ListApprovalTeamsRequest$: StaticStructureSchema;
40
48
  export declare var ListApprovalTeamsResponse$: StaticStructureSchema;
41
49
  export declare var ListApprovalTeamsResponseApprovalTeam$: StaticStructureSchema;
@@ -60,20 +68,14 @@ export declare var Policy$: StaticStructureSchema;
60
68
  export declare var PolicyReference$: StaticStructureSchema;
61
69
  export declare var PolicyVersion$: StaticStructureSchema;
62
70
  export declare var PolicyVersionSummary$: StaticStructureSchema;
63
- export declare var ResourceNotFoundException$: StaticErrorSchema;
64
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
65
71
  export declare var StartActiveApprovalTeamDeletionRequest$: StaticStructureSchema;
66
72
  export declare var StartActiveApprovalTeamDeletionResponse$: StaticStructureSchema;
67
73
  export declare var TagResourceRequest$: StaticStructureSchema;
68
74
  export declare var TagResourceResponse$: StaticStructureSchema;
69
- export declare var ThrottlingException$: StaticErrorSchema;
70
- export declare var TooManyTagsException$: StaticErrorSchema;
71
75
  export declare var UntagResourceRequest$: StaticStructureSchema;
72
76
  export declare var UntagResourceResponse$: StaticStructureSchema;
73
77
  export declare var UpdateApprovalTeamRequest$: StaticStructureSchema;
74
78
  export declare var UpdateApprovalTeamResponse$: StaticStructureSchema;
75
- export declare var ValidationException$: StaticErrorSchema;
76
- export declare var MPAServiceException$: StaticErrorSchema;
77
79
  export declare var ApprovalStrategy$: StaticUnionSchema;
78
80
  export declare var ApprovalStrategyResponse$: StaticUnionSchema;
79
81
  export declare var IdentitySourceParametersForGet$: StaticUnionSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mpa",
3
3
  "description": "AWS SDK for JavaScript Mpa Client for Node.js, Browser and React Native",
4
- "version": "3.986.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-mpa",
@@ -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.986.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",