@aws-sdk/client-greengrassv2 3.523.0 → 3.529.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 +27 -67
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/GreengrassV2.js +0 -1
- package/dist-cjs/GreengrassV2Client.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AssociateServiceRoleToAccountCommand.js +0 -1
- package/dist-cjs/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/CancelDeploymentCommand.js +0 -1
- package/dist-cjs/commands/CreateComponentVersionCommand.js +0 -1
- package/dist-cjs/commands/CreateDeploymentCommand.js +0 -1
- package/dist-cjs/commands/DeleteComponentCommand.js +0 -1
- package/dist-cjs/commands/DeleteCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/DeleteDeploymentCommand.js +0 -1
- package/dist-cjs/commands/DescribeComponentCommand.js +0 -1
- package/dist-cjs/commands/DisassociateServiceRoleFromAccountCommand.js +0 -1
- package/dist-cjs/commands/GetComponentCommand.js +0 -1
- package/dist-cjs/commands/GetComponentVersionArtifactCommand.js +0 -1
- package/dist-cjs/commands/GetConnectivityInfoCommand.js +0 -1
- package/dist-cjs/commands/GetCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/GetDeploymentCommand.js +0 -1
- package/dist-cjs/commands/GetServiceRoleForAccountCommand.js +0 -1
- package/dist-cjs/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/ListComponentVersionsCommand.js +0 -1
- package/dist-cjs/commands/ListComponentsCommand.js +0 -1
- package/dist-cjs/commands/ListCoreDevicesCommand.js +0 -1
- package/dist-cjs/commands/ListDeploymentsCommand.js +0 -1
- package/dist-cjs/commands/ListEffectiveDeploymentsCommand.js +0 -1
- package/dist-cjs/commands/ListInstalledComponentsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ResolveComponentCandidatesCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateConnectivityInfoCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/GreengrassV2ServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +0 -1
- package/dist-cjs/pagination/ListComponentVersionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListComponentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListCoreDevicesPaginator.js +0 -1
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListEffectiveDeploymentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListInstalledComponentsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -245,6 +245,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
245
245
|
var import_types = require("@smithy/types");
|
|
246
246
|
|
|
247
247
|
// src/protocols/Aws_restJson1.ts
|
|
248
|
+
var import_core2 = require("@aws-sdk/core");
|
|
248
249
|
|
|
249
250
|
|
|
250
251
|
var import_uuid = require("uuid");
|
|
@@ -895,7 +896,7 @@ var de_AssociateServiceRoleToAccountCommand = /* @__PURE__ */ __name(async (outp
|
|
|
895
896
|
const contents = (0, import_smithy_client.map)({
|
|
896
897
|
$metadata: deserializeMetadata(output)
|
|
897
898
|
});
|
|
898
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
899
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
899
900
|
const doc = (0, import_smithy_client.take)(data, {
|
|
900
901
|
associatedAt: [, import_smithy_client.expectString, `AssociatedAt`]
|
|
901
902
|
});
|
|
@@ -909,7 +910,7 @@ var de_BatchAssociateClientDeviceWithCoreDeviceCommand = /* @__PURE__ */ __name(
|
|
|
909
910
|
const contents = (0, import_smithy_client.map)({
|
|
910
911
|
$metadata: deserializeMetadata(output)
|
|
911
912
|
});
|
|
912
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
913
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
913
914
|
const doc = (0, import_smithy_client.take)(data, {
|
|
914
915
|
errorEntries: import_smithy_client._json
|
|
915
916
|
});
|
|
@@ -923,7 +924,7 @@ var de_BatchDisassociateClientDeviceFromCoreDeviceCommand = /* @__PURE__ */ __na
|
|
|
923
924
|
const contents = (0, import_smithy_client.map)({
|
|
924
925
|
$metadata: deserializeMetadata(output)
|
|
925
926
|
});
|
|
926
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
927
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
927
928
|
const doc = (0, import_smithy_client.take)(data, {
|
|
928
929
|
errorEntries: import_smithy_client._json
|
|
929
930
|
});
|
|
@@ -937,7 +938,7 @@ var de_CancelDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
937
938
|
const contents = (0, import_smithy_client.map)({
|
|
938
939
|
$metadata: deserializeMetadata(output)
|
|
939
940
|
});
|
|
940
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
941
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
941
942
|
const doc = (0, import_smithy_client.take)(data, {
|
|
942
943
|
message: import_smithy_client.expectString
|
|
943
944
|
});
|
|
@@ -951,7 +952,7 @@ var de_CreateComponentVersionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
951
952
|
const contents = (0, import_smithy_client.map)({
|
|
952
953
|
$metadata: deserializeMetadata(output)
|
|
953
954
|
});
|
|
954
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
955
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
955
956
|
const doc = (0, import_smithy_client.take)(data, {
|
|
956
957
|
arn: import_smithy_client.expectString,
|
|
957
958
|
componentName: import_smithy_client.expectString,
|
|
@@ -969,7 +970,7 @@ var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
969
970
|
const contents = (0, import_smithy_client.map)({
|
|
970
971
|
$metadata: deserializeMetadata(output)
|
|
971
972
|
});
|
|
972
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
973
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
973
974
|
const doc = (0, import_smithy_client.take)(data, {
|
|
974
975
|
deploymentId: import_smithy_client.expectString,
|
|
975
976
|
iotJobArn: import_smithy_client.expectString,
|
|
@@ -1015,7 +1016,7 @@ var de_DescribeComponentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1015
1016
|
const contents = (0, import_smithy_client.map)({
|
|
1016
1017
|
$metadata: deserializeMetadata(output)
|
|
1017
1018
|
});
|
|
1018
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1019
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1019
1020
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1020
1021
|
arn: import_smithy_client.expectString,
|
|
1021
1022
|
componentName: import_smithy_client.expectString,
|
|
@@ -1037,7 +1038,7 @@ var de_DisassociateServiceRoleFromAccountCommand = /* @__PURE__ */ __name(async
|
|
|
1037
1038
|
const contents = (0, import_smithy_client.map)({
|
|
1038
1039
|
$metadata: deserializeMetadata(output)
|
|
1039
1040
|
});
|
|
1040
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1041
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1041
1042
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1042
1043
|
disassociatedAt: [, import_smithy_client.expectString, `DisassociatedAt`]
|
|
1043
1044
|
});
|
|
@@ -1051,7 +1052,7 @@ var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1051
1052
|
const contents = (0, import_smithy_client.map)({
|
|
1052
1053
|
$metadata: deserializeMetadata(output)
|
|
1053
1054
|
});
|
|
1054
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1055
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1055
1056
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1056
1057
|
recipe: context.base64Decoder,
|
|
1057
1058
|
recipeOutputFormat: import_smithy_client.expectString,
|
|
@@ -1067,7 +1068,7 @@ var de_GetComponentVersionArtifactCommand = /* @__PURE__ */ __name(async (output
|
|
|
1067
1068
|
const contents = (0, import_smithy_client.map)({
|
|
1068
1069
|
$metadata: deserializeMetadata(output)
|
|
1069
1070
|
});
|
|
1070
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1071
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1071
1072
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1072
1073
|
preSignedUrl: import_smithy_client.expectString
|
|
1073
1074
|
});
|
|
@@ -1081,7 +1082,7 @@ var de_GetConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1081
1082
|
const contents = (0, import_smithy_client.map)({
|
|
1082
1083
|
$metadata: deserializeMetadata(output)
|
|
1083
1084
|
});
|
|
1084
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1085
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1085
1086
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1086
1087
|
connectivityInfo: [, (_) => de_connectivityInfoList(_, context), `ConnectivityInfo`],
|
|
1087
1088
|
message: [, import_smithy_client.expectString, `Message`]
|
|
@@ -1096,7 +1097,7 @@ var de_GetCoreDeviceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1096
1097
|
const contents = (0, import_smithy_client.map)({
|
|
1097
1098
|
$metadata: deserializeMetadata(output)
|
|
1098
1099
|
});
|
|
1099
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1100
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1100
1101
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1101
1102
|
architecture: import_smithy_client.expectString,
|
|
1102
1103
|
coreDeviceThingName: import_smithy_client.expectString,
|
|
@@ -1116,7 +1117,7 @@ var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1116
1117
|
const contents = (0, import_smithy_client.map)({
|
|
1117
1118
|
$metadata: deserializeMetadata(output)
|
|
1118
1119
|
});
|
|
1119
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1120
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1120
1121
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1121
1122
|
components: (_) => de_ComponentDeploymentSpecifications(_, context),
|
|
1122
1123
|
creationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
@@ -1143,7 +1144,7 @@ var de_GetServiceRoleForAccountCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1143
1144
|
const contents = (0, import_smithy_client.map)({
|
|
1144
1145
|
$metadata: deserializeMetadata(output)
|
|
1145
1146
|
});
|
|
1146
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1147
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1147
1148
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1148
1149
|
associatedAt: [, import_smithy_client.expectString, `AssociatedAt`],
|
|
1149
1150
|
roleArn: [, import_smithy_client.expectString, `RoleArn`]
|
|
@@ -1158,7 +1159,7 @@ var de_ListClientDevicesAssociatedWithCoreDeviceCommand = /* @__PURE__ */ __name
|
|
|
1158
1159
|
const contents = (0, import_smithy_client.map)({
|
|
1159
1160
|
$metadata: deserializeMetadata(output)
|
|
1160
1161
|
});
|
|
1161
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1162
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1162
1163
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1163
1164
|
associatedClientDevices: (_) => de_AssociatedClientDeviceList(_, context),
|
|
1164
1165
|
nextToken: import_smithy_client.expectString
|
|
@@ -1173,7 +1174,7 @@ var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1173
1174
|
const contents = (0, import_smithy_client.map)({
|
|
1174
1175
|
$metadata: deserializeMetadata(output)
|
|
1175
1176
|
});
|
|
1176
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1177
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1177
1178
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1178
1179
|
components: (_) => de_ComponentList(_, context),
|
|
1179
1180
|
nextToken: import_smithy_client.expectString
|
|
@@ -1188,7 +1189,7 @@ var de_ListComponentVersionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1188
1189
|
const contents = (0, import_smithy_client.map)({
|
|
1189
1190
|
$metadata: deserializeMetadata(output)
|
|
1190
1191
|
});
|
|
1191
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1192
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1192
1193
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1193
1194
|
componentVersions: import_smithy_client._json,
|
|
1194
1195
|
nextToken: import_smithy_client.expectString
|
|
@@ -1203,7 +1204,7 @@ var de_ListCoreDevicesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1203
1204
|
const contents = (0, import_smithy_client.map)({
|
|
1204
1205
|
$metadata: deserializeMetadata(output)
|
|
1205
1206
|
});
|
|
1206
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1207
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1207
1208
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1208
1209
|
coreDevices: (_) => de_CoreDevicesList(_, context),
|
|
1209
1210
|
nextToken: import_smithy_client.expectString
|
|
@@ -1218,7 +1219,7 @@ var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1218
1219
|
const contents = (0, import_smithy_client.map)({
|
|
1219
1220
|
$metadata: deserializeMetadata(output)
|
|
1220
1221
|
});
|
|
1221
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1222
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1222
1223
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1223
1224
|
deployments: (_) => de_DeploymentList(_, context),
|
|
1224
1225
|
nextToken: import_smithy_client.expectString
|
|
@@ -1233,7 +1234,7 @@ var de_ListEffectiveDeploymentsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1233
1234
|
const contents = (0, import_smithy_client.map)({
|
|
1234
1235
|
$metadata: deserializeMetadata(output)
|
|
1235
1236
|
});
|
|
1236
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1237
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1237
1238
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1238
1239
|
effectiveDeployments: (_) => de_EffectiveDeploymentsList(_, context),
|
|
1239
1240
|
nextToken: import_smithy_client.expectString
|
|
@@ -1248,7 +1249,7 @@ var de_ListInstalledComponentsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1248
1249
|
const contents = (0, import_smithy_client.map)({
|
|
1249
1250
|
$metadata: deserializeMetadata(output)
|
|
1250
1251
|
});
|
|
1251
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1252
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1252
1253
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1253
1254
|
installedComponents: (_) => de_InstalledComponentList(_, context),
|
|
1254
1255
|
nextToken: import_smithy_client.expectString
|
|
@@ -1263,7 +1264,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1263
1264
|
const contents = (0, import_smithy_client.map)({
|
|
1264
1265
|
$metadata: deserializeMetadata(output)
|
|
1265
1266
|
});
|
|
1266
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1267
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1267
1268
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1268
1269
|
tags: import_smithy_client._json
|
|
1269
1270
|
});
|
|
@@ -1277,7 +1278,7 @@ var de_ResolveComponentCandidatesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1277
1278
|
const contents = (0, import_smithy_client.map)({
|
|
1278
1279
|
$metadata: deserializeMetadata(output)
|
|
1279
1280
|
});
|
|
1280
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1281
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1281
1282
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1282
1283
|
resolvedComponentVersions: (_) => de_ResolvedComponentVersionsList(_, context)
|
|
1283
1284
|
});
|
|
@@ -1311,7 +1312,7 @@ var de_UpdateConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1311
1312
|
const contents = (0, import_smithy_client.map)({
|
|
1312
1313
|
$metadata: deserializeMetadata(output)
|
|
1313
1314
|
});
|
|
1314
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1315
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1315
1316
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1316
1317
|
message: [, import_smithy_client.expectString, `Message`],
|
|
1317
1318
|
version: [, import_smithy_client.expectString, `Version`]
|
|
@@ -1322,9 +1323,9 @@ var de_UpdateConnectivityInfoCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1322
1323
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1323
1324
|
const parsedOutput = {
|
|
1324
1325
|
...output,
|
|
1325
|
-
body: await
|
|
1326
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1326
1327
|
};
|
|
1327
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1328
1329
|
switch (errorCode) {
|
|
1329
1330
|
case "InternalServerException":
|
|
1330
1331
|
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
@@ -1773,7 +1774,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1773
1774
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1774
1775
|
cfId: output.headers["x-amz-cf-id"]
|
|
1775
1776
|
}), "deserializeMetadata");
|
|
1776
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1777
1777
|
var _hF = "historyFilter";
|
|
1778
1778
|
var _mR = "maxResults";
|
|
1779
1779
|
var _nT = "nextToken";
|
|
@@ -1787,46 +1787,6 @@ var _tA = "targetArn";
|
|
|
1787
1787
|
var _tF = "topologyFilter";
|
|
1788
1788
|
var _tGA = "thingGroupArn";
|
|
1789
1789
|
var _tK = "tagKeys";
|
|
1790
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1791
|
-
if (encoded.length) {
|
|
1792
|
-
return JSON.parse(encoded);
|
|
1793
|
-
}
|
|
1794
|
-
return {};
|
|
1795
|
-
}), "parseBody");
|
|
1796
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1797
|
-
const value = await parseBody(errorBody, context);
|
|
1798
|
-
value.message = value.message ?? value.Message;
|
|
1799
|
-
return value;
|
|
1800
|
-
}, "parseErrorBody");
|
|
1801
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1802
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1803
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1804
|
-
let cleanValue = rawValue;
|
|
1805
|
-
if (typeof cleanValue === "number") {
|
|
1806
|
-
cleanValue = cleanValue.toString();
|
|
1807
|
-
}
|
|
1808
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1809
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1810
|
-
}
|
|
1811
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1812
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1813
|
-
}
|
|
1814
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1815
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1816
|
-
}
|
|
1817
|
-
return cleanValue;
|
|
1818
|
-
}, "sanitizeErrorCode");
|
|
1819
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1820
|
-
if (headerKey !== void 0) {
|
|
1821
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1822
|
-
}
|
|
1823
|
-
if (data.code !== void 0) {
|
|
1824
|
-
return sanitizeErrorCode(data.code);
|
|
1825
|
-
}
|
|
1826
|
-
if (data["__type"] !== void 0) {
|
|
1827
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1828
|
-
}
|
|
1829
|
-
}, "loadRestJsonErrorCode");
|
|
1830
1790
|
|
|
1831
1791
|
// src/commands/AssociateServiceRoleToAccountCommand.ts
|
|
1832
1792
|
var _AssociateServiceRoleToAccountCommand = class _AssociateServiceRoleToAccountCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1280,43 +1281,3 @@ const _tA = "targetArn";
|
|
|
1280
1281
|
const _tF = "topologyFilter";
|
|
1281
1282
|
const _tGA = "thingGroupArn";
|
|
1282
1283
|
const _tK = "tagKeys";
|
|
1283
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1284
|
-
if (encoded.length) {
|
|
1285
|
-
return JSON.parse(encoded);
|
|
1286
|
-
}
|
|
1287
|
-
return {};
|
|
1288
|
-
});
|
|
1289
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1290
|
-
const value = await parseBody(errorBody, context);
|
|
1291
|
-
value.message = value.message ?? value.Message;
|
|
1292
|
-
return value;
|
|
1293
|
-
};
|
|
1294
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1295
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1296
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1297
|
-
let cleanValue = rawValue;
|
|
1298
|
-
if (typeof cleanValue === "number") {
|
|
1299
|
-
cleanValue = cleanValue.toString();
|
|
1300
|
-
}
|
|
1301
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1302
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1303
|
-
}
|
|
1304
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1305
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1306
|
-
}
|
|
1307
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1308
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1309
|
-
}
|
|
1310
|
-
return cleanValue;
|
|
1311
|
-
};
|
|
1312
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1313
|
-
if (headerKey !== undefined) {
|
|
1314
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1315
|
-
}
|
|
1316
|
-
if (data.code !== undefined) {
|
|
1317
|
-
return sanitizeErrorCode(data.code);
|
|
1318
|
-
}
|
|
1319
|
-
if (data["__type"] !== undefined) {
|
|
1320
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1321
|
-
}
|
|
1322
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-greengrassv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Greengrassv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-greengrassv2",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
package/dist-cjs/GreengrassV2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|