@aws-sdk/client-greengrass 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 { defaultGreengrassHttpAuthSchemeProvider } 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: "2017-06-07",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.greengrass",
30
+ errorTypeRegistries,
29
31
  version: "2017-06-07",
30
32
  serviceTarget: "Greengrass",
31
33
  },
@@ -479,14 +479,34 @@ const _lORAP = "__listOfResourceAccessPolicy";
479
479
  const _lOS = "__listOfSubscription";
480
480
  const _lOVI = "__listOfVersionInformation";
481
481
  const _m = "message";
482
- const _s = "server";
483
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.greengrass";
482
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.greengrass";
483
+ const _se = "server";
484
484
  const _t = "tags";
485
485
  const _tK = "tagKeys";
486
486
  const n0 = "com.amazonaws.greengrass";
487
487
  import { TypeRegistry } from "@smithy/core/schema";
488
488
  import { BadRequestException, InternalServerErrorException } from "../models/errors";
489
489
  import { GreengrassServiceException } from "../models/GreengrassServiceException";
490
+ const _s_registry = TypeRegistry.for(_s);
491
+ export var GreengrassServiceException$ = [-3, _s, "GreengrassServiceException", 0, [], []];
492
+ _s_registry.registerError(GreengrassServiceException$, GreengrassServiceException);
493
+ const n0_registry = TypeRegistry.for(n0);
494
+ export var BadRequestException$ = [-3, n0, _BRE,
495
+ { [_e]: _c, [_hE]: 400 },
496
+ [_ED, _M],
497
+ [() => ErrorDetails, 0]
498
+ ];
499
+ n0_registry.registerError(BadRequestException$, BadRequestException);
500
+ export var InternalServerErrorException$ = [-3, n0, _ISEE,
501
+ { [_e]: _se, [_hE]: 500 },
502
+ [_ED, _M],
503
+ [() => ErrorDetails, 0]
504
+ ];
505
+ n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
506
+ export const errorTypeRegistries = [
507
+ _s_registry,
508
+ n0_registry,
509
+ ];
490
510
  export var AssociateRoleToGroupRequest$ = [3, n0, _ARTGR,
491
511
  0,
492
512
  [_GI, _RA],
@@ -507,12 +527,6 @@ export var AssociateServiceRoleToAccountResponse$ = [3, n0, _ASRTARs,
507
527
  [_AA],
508
528
  [0]
509
529
  ];
510
- export var BadRequestException$ = [-3, n0, _BRE,
511
- { [_e]: _c, [_hE]: 400 },
512
- [_ED, _M],
513
- [() => ErrorDetails, 0]
514
- ];
515
- TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
516
530
  export var BulkDeployment$ = [3, n0, _BD,
517
531
  0,
518
532
  [_BDA, _BDI, _CA],
@@ -1168,12 +1182,6 @@ export var GroupVersion$ = [3, n0, _GV,
1168
1182
  [_CDVA, _CDVAo, _DDVA, _FDVA, _LDVA, _RDVA, _SDVA],
1169
1183
  [0, 0, 0, 0, 0, 0, 0]
1170
1184
  ];
1171
- export var InternalServerErrorException$ = [-3, n0, _ISEE,
1172
- { [_e]: _s, [_hE]: 500 },
1173
- [_ED, _M],
1174
- [() => ErrorDetails, 0]
1175
- ];
1176
- TypeRegistry.for(n0).registerError(InternalServerErrorException$, InternalServerErrorException);
1177
1185
  export var ListBulkDeploymentDetailedReportsRequest$ = [3, n0, _LBDDRR,
1178
1186
  0,
1179
1187
  [_BDI, _MR, _NT],
@@ -1625,8 +1633,6 @@ export var VersionInformation$ = [3, n0, _VI,
1625
1633
  [0, 0, 0, 0]
1626
1634
  ];
1627
1635
  var __Unit = "unit";
1628
- export var GreengrassServiceException$ = [-3, _sm, "GreengrassServiceException", 0, [], []];
1629
- TypeRegistry.for(_sm).registerError(GreengrassServiceException$, GreengrassServiceException);
1630
1636
  var __listOf__string = 64 | 0;
1631
1637
  var __listOfConnectivityInfo = [1, n0, _lOCI,
1632
1638
  0, () => ConnectivityInfo$
@@ -1,9 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var GreengrassServiceException$: StaticErrorSchema;
4
+ export declare var BadRequestException$: StaticErrorSchema;
5
+ export declare var InternalServerErrorException$: StaticErrorSchema;
6
+ /**
7
+ * TypeRegistry instances containing modeled errors.
8
+ * @internal
9
+ *
10
+ */
11
+ export declare const errorTypeRegistries: TypeRegistry[];
2
12
  export declare var AssociateRoleToGroupRequest$: StaticStructureSchema;
3
13
  export declare var AssociateRoleToGroupResponse$: StaticStructureSchema;
4
14
  export declare var AssociateServiceRoleToAccountRequest$: StaticStructureSchema;
5
15
  export declare var AssociateServiceRoleToAccountResponse$: StaticStructureSchema;
6
- export declare var BadRequestException$: StaticErrorSchema;
7
16
  export declare var BulkDeployment$: StaticStructureSchema;
8
17
  export declare var BulkDeploymentMetrics$: StaticStructureSchema;
9
18
  export declare var BulkDeploymentResult$: StaticStructureSchema;
@@ -135,7 +144,6 @@ export declare var GroupCertificateAuthorityProperties$: StaticStructureSchema;
135
144
  export declare var GroupInformation$: StaticStructureSchema;
136
145
  export declare var GroupOwnerSetting$: StaticStructureSchema;
137
146
  export declare var GroupVersion$: StaticStructureSchema;
138
- export declare var InternalServerErrorException$: StaticErrorSchema;
139
147
  export declare var ListBulkDeploymentDetailedReportsRequest$: StaticStructureSchema;
140
148
  export declare var ListBulkDeploymentDetailedReportsResponse$: StaticStructureSchema;
141
149
  export declare var ListBulkDeploymentsRequest$: StaticStructureSchema;
@@ -226,7 +234,6 @@ export declare var UpdateSubscriptionDefinitionResponse$: StaticStructureSchema;
226
234
  export declare var UpdateThingRuntimeConfigurationRequest$: StaticStructureSchema;
227
235
  export declare var UpdateThingRuntimeConfigurationResponse$: StaticStructureSchema;
228
236
  export declare var VersionInformation$: StaticStructureSchema;
229
- export declare var GreengrassServiceException$: StaticErrorSchema;
230
237
  export declare var AssociateRoleToGroup$: StaticOperationSchema;
231
238
  export declare var AssociateServiceRoleToAccount$: StaticOperationSchema;
232
239
  export declare var CreateConnectorDefinition$: StaticOperationSchema;
@@ -1,13 +1,17 @@
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 GreengrassServiceException$: StaticErrorSchema;
8
+ export declare var BadRequestException$: StaticErrorSchema;
9
+ export declare var InternalServerErrorException$: StaticErrorSchema;
10
+ export declare const errorTypeRegistries: TypeRegistry[];
6
11
  export declare var AssociateRoleToGroupRequest$: StaticStructureSchema;
7
12
  export declare var AssociateRoleToGroupResponse$: StaticStructureSchema;
8
13
  export declare var AssociateServiceRoleToAccountRequest$: StaticStructureSchema;
9
14
  export declare var AssociateServiceRoleToAccountResponse$: StaticStructureSchema;
10
- export declare var BadRequestException$: StaticErrorSchema;
11
15
  export declare var BulkDeployment$: StaticStructureSchema;
12
16
  export declare var BulkDeploymentMetrics$: StaticStructureSchema;
13
17
  export declare var BulkDeploymentResult$: StaticStructureSchema;
@@ -139,7 +143,6 @@ export declare var GroupCertificateAuthorityProperties$: StaticStructureSchema;
139
143
  export declare var GroupInformation$: StaticStructureSchema;
140
144
  export declare var GroupOwnerSetting$: StaticStructureSchema;
141
145
  export declare var GroupVersion$: StaticStructureSchema;
142
- export declare var InternalServerErrorException$: StaticErrorSchema;
143
146
  export declare var ListBulkDeploymentDetailedReportsRequest$: StaticStructureSchema;
144
147
  export declare var ListBulkDeploymentDetailedReportsResponse$: StaticStructureSchema;
145
148
  export declare var ListBulkDeploymentsRequest$: StaticStructureSchema;
@@ -230,7 +233,6 @@ export declare var UpdateSubscriptionDefinitionResponse$: StaticStructureSchema;
230
233
  export declare var UpdateThingRuntimeConfigurationRequest$: StaticStructureSchema;
231
234
  export declare var UpdateThingRuntimeConfigurationResponse$: StaticStructureSchema;
232
235
  export declare var VersionInformation$: StaticStructureSchema;
233
- export declare var GreengrassServiceException$: StaticErrorSchema;
234
236
  export declare var AssociateRoleToGroup$: StaticOperationSchema;
235
237
  export declare var AssociateServiceRoleToAccount$: StaticOperationSchema;
236
238
  export declare var CreateConnectorDefinition$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-greengrass",
3
3
  "description": "AWS SDK for JavaScript Greengrass 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-greengrass",
@@ -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",