@aws-sdk/client-ssm-sap 3.987.0 → 3.989.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 { defaultSsmSapHttpAuthSchemeProvider } 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: "2018-05-10",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.ssmsap",
30
+ errorTypeRegistries,
29
31
  version: "2018-05-10",
30
32
  serviceTarget: "SsmSap",
31
33
  },
@@ -235,8 +235,8 @@ const _h = "http";
235
235
  const _hE = "httpError";
236
236
  const _hQ = "httpQuery";
237
237
  const _rA = "resourceArn";
238
- const _s = "server";
239
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssmsap";
238
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssmsap";
239
+ const _se = "server";
240
240
  const _sp = "sparse";
241
241
  const _t = "tags";
242
242
  const _tK = "tagKeys";
@@ -244,6 +244,44 @@ const n0 = "com.amazonaws.ssmsap";
244
244
  import { TypeRegistry } from "@smithy/core/schema";
245
245
  import { ConflictException, InternalServerException, ResourceNotFoundException, UnauthorizedException, ValidationException, } from "../models/errors";
246
246
  import { SsmSapServiceException } from "../models/SsmSapServiceException";
247
+ const _s_registry = TypeRegistry.for(_s);
248
+ export var SsmSapServiceException$ = [-3, _s, "SsmSapServiceException", 0, [], []];
249
+ _s_registry.registerError(SsmSapServiceException$, SsmSapServiceException);
250
+ const n0_registry = TypeRegistry.for(n0);
251
+ export var ConflictException$ = [-3, n0, _CE,
252
+ { [_e]: _c, [_hE]: 409 },
253
+ [_M],
254
+ [0]
255
+ ];
256
+ n0_registry.registerError(ConflictException$, ConflictException);
257
+ export var InternalServerException$ = [-3, n0, _ISE,
258
+ { [_e]: _se, [_hE]: 500 },
259
+ [_M],
260
+ [0]
261
+ ];
262
+ n0_registry.registerError(InternalServerException$, InternalServerException);
263
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
264
+ { [_e]: _c, [_hE]: 404 },
265
+ [_M],
266
+ [0]
267
+ ];
268
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
269
+ export var UnauthorizedException$ = [-3, n0, _UE,
270
+ { [_e]: _c, [_hE]: 401 },
271
+ [_M],
272
+ [0]
273
+ ];
274
+ n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
275
+ export var ValidationException$ = [-3, n0, _VE,
276
+ { [_e]: _c, [_hE]: 400 },
277
+ [_M],
278
+ [0]
279
+ ];
280
+ n0_registry.registerError(ValidationException$, ValidationException);
281
+ export const errorTypeRegistries = [
282
+ _s_registry,
283
+ n0_registry,
284
+ ];
247
285
  var SecretId = [0, n0, _SI, 8, 0];
248
286
  export var Application$ = [3, n0, _A,
249
287
  0,
@@ -295,12 +333,6 @@ export var ConfigurationCheckOperation$ = [3, n0, _CCO,
295
333
  [_I, _AI, _S, _SM, _CCI, _CCN, _CCDo, _ST, _ET, _RSC],
296
334
  [0, 0, 0, 0, 0, 0, 0, 4, 4, () => RuleStatusCounts$]
297
335
  ];
298
- export var ConflictException$ = [-3, n0, _CE,
299
- { [_e]: _c, [_hE]: 409 },
300
- [_M],
301
- [0]
302
- ];
303
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
304
336
  export var Database$ = [3, n0, _Da,
305
337
  0,
306
338
  [_AI, _CI, _Cr, _DI, _DN, _DT, _Ar, _S, _PH, _SQLP, _LU, _CCA],
@@ -406,12 +438,6 @@ export var Host$ = [3, n0, _Hos,
406
438
  [_HN, _HI, _ECII, _II, _HR, _OV],
407
439
  [0, 0, 0, 0, 0, 0]
408
440
  ];
409
- export var InternalServerException$ = [-3, n0, _ISE,
410
- { [_e]: _s, [_hE]: 500 },
411
- [_M],
412
- [0]
413
- ];
414
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
415
441
  export var IpAddressMember$ = [3, n0, _IAM,
416
442
  0,
417
443
  [_IAp, _Pr, _ATl],
@@ -557,12 +583,6 @@ export var Resource$ = [3, n0, _Re,
557
583
  [_RA, _RT],
558
584
  [0, 0]
559
585
  ];
560
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
561
- { [_e]: _c, [_hE]: 404 },
562
- [_M],
563
- [0]
564
- ];
565
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
566
586
  export var RuleResult$ = [3, n0, _RRu,
567
587
  0,
568
588
  [_I, _De, _S, _M, _Me],
@@ -628,12 +648,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
628
648
  [],
629
649
  []
630
650
  ];
631
- export var UnauthorizedException$ = [-3, n0, _UE,
632
- { [_e]: _c, [_hE]: 401 },
633
- [_M],
634
- [0]
635
- ];
636
- TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
637
651
  export var UntagResourceRequest$ = [3, n0, _URR,
638
652
  0,
639
653
  [_rA, _tK],
@@ -654,14 +668,6 @@ export var UpdateApplicationSettingsOutput$ = [3, n0, _UASO,
654
668
  [_M, _OIp],
655
669
  [0, 64 | 0]
656
670
  ];
657
- export var ValidationException$ = [-3, n0, _VE,
658
- { [_e]: _c, [_hE]: 400 },
659
- [_M],
660
- [0]
661
- ];
662
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
663
- export var SsmSapServiceException$ = [-3, _sm, "SsmSapServiceException", 0, [], []];
664
- TypeRegistry.for(_sm).registerError(SsmSapServiceException$, SsmSapServiceException);
665
671
  var ApplicationArnList = 64 | 0;
666
672
  var ApplicationCredentialList = [1, n0, _ACL,
667
673
  0, [() => ApplicationCredential$,
@@ -1,4 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var SsmSapServiceException$: StaticErrorSchema;
4
+ export declare var ConflictException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
7
+ export declare var UnauthorizedException$: StaticErrorSchema;
8
+ export declare var ValidationException$: StaticErrorSchema;
9
+ /**
10
+ * TypeRegistry instances containing modeled errors.
11
+ * @internal
12
+ *
13
+ */
14
+ export declare const errorTypeRegistries: TypeRegistry[];
2
15
  export declare var Application$: StaticStructureSchema;
3
16
  export declare var ApplicationCredential$: StaticStructureSchema;
4
17
  export declare var ApplicationSummary$: StaticStructureSchema;
@@ -9,7 +22,6 @@ export declare var ComponentInfo$: StaticStructureSchema;
9
22
  export declare var ComponentSummary$: StaticStructureSchema;
10
23
  export declare var ConfigurationCheckDefinition$: StaticStructureSchema;
11
24
  export declare var ConfigurationCheckOperation$: StaticStructureSchema;
12
- export declare var ConflictException$: StaticErrorSchema;
13
25
  export declare var Database$: StaticStructureSchema;
14
26
  export declare var DatabaseConnection$: StaticStructureSchema;
15
27
  export declare var DatabaseSummary$: StaticStructureSchema;
@@ -31,7 +43,6 @@ export declare var GetOperationOutput$: StaticStructureSchema;
31
43
  export declare var GetResourcePermissionInput$: StaticStructureSchema;
32
44
  export declare var GetResourcePermissionOutput$: StaticStructureSchema;
33
45
  export declare var Host$: StaticStructureSchema;
34
- export declare var InternalServerException$: StaticErrorSchema;
35
46
  export declare var IpAddressMember$: StaticStructureSchema;
36
47
  export declare var ListApplicationsInput$: StaticStructureSchema;
37
48
  export declare var ListApplicationsOutput$: StaticStructureSchema;
@@ -61,7 +72,6 @@ export declare var RegisterApplicationInput$: StaticStructureSchema;
61
72
  export declare var RegisterApplicationOutput$: StaticStructureSchema;
62
73
  export declare var Resilience$: StaticStructureSchema;
63
74
  export declare var Resource$: StaticStructureSchema;
64
- export declare var ResourceNotFoundException$: StaticErrorSchema;
65
75
  export declare var RuleResult$: StaticStructureSchema;
66
76
  export declare var RuleStatusCounts$: StaticStructureSchema;
67
77
  export declare var StartApplicationInput$: StaticStructureSchema;
@@ -75,13 +85,10 @@ export declare var StopApplicationOutput$: StaticStructureSchema;
75
85
  export declare var SubCheckResult$: StaticStructureSchema;
76
86
  export declare var TagResourceRequest$: StaticStructureSchema;
77
87
  export declare var TagResourceResponse$: StaticStructureSchema;
78
- export declare var UnauthorizedException$: StaticErrorSchema;
79
88
  export declare var UntagResourceRequest$: StaticStructureSchema;
80
89
  export declare var UntagResourceResponse$: StaticStructureSchema;
81
90
  export declare var UpdateApplicationSettingsInput$: StaticStructureSchema;
82
91
  export declare var UpdateApplicationSettingsOutput$: StaticStructureSchema;
83
- export declare var ValidationException$: StaticErrorSchema;
84
- export declare var SsmSapServiceException$: StaticErrorSchema;
85
92
  export declare var DeleteResourcePermission$: StaticOperationSchema;
86
93
  export declare var DeregisterApplication$: StaticOperationSchema;
87
94
  export declare var GetApplication$: StaticOperationSchema;
@@ -1,8 +1,16 @@
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 SsmSapServiceException$: StaticErrorSchema;
8
+ export declare var ConflictException$: StaticErrorSchema;
9
+ export declare var InternalServerException$: StaticErrorSchema;
10
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
11
+ export declare var UnauthorizedException$: StaticErrorSchema;
12
+ export declare var ValidationException$: StaticErrorSchema;
13
+ export declare const errorTypeRegistries: TypeRegistry[];
6
14
  export declare var Application$: StaticStructureSchema;
7
15
  export declare var ApplicationCredential$: StaticStructureSchema;
8
16
  export declare var ApplicationSummary$: StaticStructureSchema;
@@ -13,7 +21,6 @@ export declare var ComponentInfo$: StaticStructureSchema;
13
21
  export declare var ComponentSummary$: StaticStructureSchema;
14
22
  export declare var ConfigurationCheckDefinition$: StaticStructureSchema;
15
23
  export declare var ConfigurationCheckOperation$: StaticStructureSchema;
16
- export declare var ConflictException$: StaticErrorSchema;
17
24
  export declare var Database$: StaticStructureSchema;
18
25
  export declare var DatabaseConnection$: StaticStructureSchema;
19
26
  export declare var DatabaseSummary$: StaticStructureSchema;
@@ -35,7 +42,6 @@ export declare var GetOperationOutput$: StaticStructureSchema;
35
42
  export declare var GetResourcePermissionInput$: StaticStructureSchema;
36
43
  export declare var GetResourcePermissionOutput$: StaticStructureSchema;
37
44
  export declare var Host$: StaticStructureSchema;
38
- export declare var InternalServerException$: StaticErrorSchema;
39
45
  export declare var IpAddressMember$: StaticStructureSchema;
40
46
  export declare var ListApplicationsInput$: StaticStructureSchema;
41
47
  export declare var ListApplicationsOutput$: StaticStructureSchema;
@@ -65,7 +71,6 @@ export declare var RegisterApplicationInput$: StaticStructureSchema;
65
71
  export declare var RegisterApplicationOutput$: StaticStructureSchema;
66
72
  export declare var Resilience$: StaticStructureSchema;
67
73
  export declare var Resource$: StaticStructureSchema;
68
- export declare var ResourceNotFoundException$: StaticErrorSchema;
69
74
  export declare var RuleResult$: StaticStructureSchema;
70
75
  export declare var RuleStatusCounts$: StaticStructureSchema;
71
76
  export declare var StartApplicationInput$: StaticStructureSchema;
@@ -79,13 +84,10 @@ export declare var StopApplicationOutput$: StaticStructureSchema;
79
84
  export declare var SubCheckResult$: StaticStructureSchema;
80
85
  export declare var TagResourceRequest$: StaticStructureSchema;
81
86
  export declare var TagResourceResponse$: StaticStructureSchema;
82
- export declare var UnauthorizedException$: StaticErrorSchema;
83
87
  export declare var UntagResourceRequest$: StaticStructureSchema;
84
88
  export declare var UntagResourceResponse$: StaticStructureSchema;
85
89
  export declare var UpdateApplicationSettingsInput$: StaticStructureSchema;
86
90
  export declare var UpdateApplicationSettingsOutput$: StaticStructureSchema;
87
- export declare var ValidationException$: StaticErrorSchema;
88
- export declare var SsmSapServiceException$: StaticErrorSchema;
89
91
  export declare var DeleteResourcePermission$: StaticOperationSchema;
90
92
  export declare var DeregisterApplication$: StaticOperationSchema;
91
93
  export declare var GetApplication$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm-sap",
3
3
  "description": "AWS SDK for JavaScript Ssm Sap Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.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-sap",
@@ -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.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
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.9",
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.989.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.7",
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",