@aws-sdk/client-appsync 3.338.0 → 3.341.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/README.md +72 -0
- package/dist-cjs/AppSync.js +18 -0
- package/dist-cjs/commands/AssociateMergedGraphqlApiCommand.js +46 -0
- package/dist-cjs/commands/AssociateSourceGraphqlApiCommand.js +46 -0
- package/dist-cjs/commands/DisassociateMergedGraphqlApiCommand.js +46 -0
- package/dist-cjs/commands/DisassociateSourceGraphqlApiCommand.js +46 -0
- package/dist-cjs/commands/GetSourceApiAssociationCommand.js +46 -0
- package/dist-cjs/commands/ListSourceApiAssociationsCommand.js +46 -0
- package/dist-cjs/commands/ListTypesByAssociationCommand.js +46 -0
- package/dist-cjs/commands/StartSchemaMergeCommand.js +46 -0
- package/dist-cjs/commands/UpdateSourceApiAssociationCommand.js +46 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/models/models_0.js +35 -13
- package/dist-cjs/protocols/Aws_restJson1.js +652 -16
- package/dist-es/AppSync.js +18 -0
- package/dist-es/commands/AssociateMergedGraphqlApiCommand.js +42 -0
- package/dist-es/commands/AssociateSourceGraphqlApiCommand.js +42 -0
- package/dist-es/commands/DisassociateMergedGraphqlApiCommand.js +42 -0
- package/dist-es/commands/DisassociateSourceGraphqlApiCommand.js +42 -0
- package/dist-es/commands/GetSourceApiAssociationCommand.js +42 -0
- package/dist-es/commands/ListSourceApiAssociationsCommand.js +42 -0
- package/dist-es/commands/ListTypesByAssociationCommand.js +42 -0
- package/dist-es/commands/StartSchemaMergeCommand.js +42 -0
- package/dist-es/commands/UpdateSourceApiAssociationCommand.js +42 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +32 -10
- package/dist-es/protocols/Aws_restJson1.js +632 -14
- package/dist-types/AppSync.d.ts +63 -0
- package/dist-types/AppSyncClient.d.ts +11 -2
- package/dist-types/commands/AssociateMergedGraphqlApiCommand.d.ts +113 -0
- package/dist-types/commands/AssociateSourceGraphqlApiCommand.d.ts +113 -0
- package/dist-types/commands/CreateGraphqlApiCommand.d.ts +7 -0
- package/dist-types/commands/DisassociateMergedGraphqlApiCommand.d.ts +93 -0
- package/dist-types/commands/DisassociateSourceGraphqlApiCommand.d.ts +93 -0
- package/dist-types/commands/GetGraphqlApiCommand.d.ts +4 -0
- package/dist-types/commands/GetSourceApiAssociationCommand.d.ts +102 -0
- package/dist-types/commands/ListGraphqlApisCommand.d.ts +6 -0
- package/dist-types/commands/ListSourceApiAssociationsCommand.d.ts +100 -0
- package/dist-types/commands/ListTypesByAssociationCommand.d.ts +104 -0
- package/dist-types/commands/StartSchemaMergeCommand.d.ts +92 -0
- package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +6 -0
- package/dist-types/commands/UpdateSourceApiAssociationCommand.d.ts +110 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +516 -39
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/AppSync.d.ts +153 -0
- package/dist-types/ts3.4/AppSyncClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/AssociateMergedGraphqlApiCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/AssociateSourceGraphqlApiCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DisassociateMergedGraphqlApiCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DisassociateSourceGraphqlApiCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetSourceApiAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListSourceApiAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTypesByAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartSchemaMergeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateSourceApiAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +163 -24
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +28 -28
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { AppSyncServiceException as __BaseException } from "../models/AppSyncServiceException";
|
|
4
4
|
import { AccessDeniedException, ApiKeyLimitExceededException, ApiKeyValidityOutOfBoundsException, ApiLimitExceededException, BadRequestException, ConcurrentModificationException, GraphQLSchemaException, InternalFailureException, LimitExceededException, NotFoundException, UnauthorizedException, } from "../models/models_0";
|
|
@@ -24,6 +24,54 @@ export const se_AssociateApiCommand = async (input, context) => {
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
+
export const se_AssociateMergedGraphqlApiCommand = async (input, context) => {
|
|
28
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
|
+
const headers = {
|
|
30
|
+
"content-type": "application/json",
|
|
31
|
+
};
|
|
32
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
33
|
+
"/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations";
|
|
34
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
|
|
35
|
+
let body;
|
|
36
|
+
body = JSON.stringify(take(input, {
|
|
37
|
+
description: [],
|
|
38
|
+
mergedApiIdentifier: [],
|
|
39
|
+
sourceApiAssociationConfig: (_) => _json(_),
|
|
40
|
+
}));
|
|
41
|
+
return new __HttpRequest({
|
|
42
|
+
protocol,
|
|
43
|
+
hostname,
|
|
44
|
+
port,
|
|
45
|
+
method: "POST",
|
|
46
|
+
headers,
|
|
47
|
+
path: resolvedPath,
|
|
48
|
+
body,
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export const se_AssociateSourceGraphqlApiCommand = async (input, context) => {
|
|
52
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
53
|
+
const headers = {
|
|
54
|
+
"content-type": "application/json",
|
|
55
|
+
};
|
|
56
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
57
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations";
|
|
58
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
59
|
+
let body;
|
|
60
|
+
body = JSON.stringify(take(input, {
|
|
61
|
+
description: [],
|
|
62
|
+
sourceApiAssociationConfig: (_) => _json(_),
|
|
63
|
+
sourceApiIdentifier: [],
|
|
64
|
+
}));
|
|
65
|
+
return new __HttpRequest({
|
|
66
|
+
protocol,
|
|
67
|
+
hostname,
|
|
68
|
+
port,
|
|
69
|
+
method: "POST",
|
|
70
|
+
headers,
|
|
71
|
+
path: resolvedPath,
|
|
72
|
+
body,
|
|
73
|
+
});
|
|
74
|
+
};
|
|
27
75
|
export const se_CreateApiCacheCommand = async (input, context) => {
|
|
28
76
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
77
|
const headers = {
|
|
@@ -163,11 +211,14 @@ export const se_CreateGraphqlApiCommand = async (input, context) => {
|
|
|
163
211
|
let body;
|
|
164
212
|
body = JSON.stringify(take(input, {
|
|
165
213
|
additionalAuthenticationProviders: (_) => _json(_),
|
|
214
|
+
apiType: [],
|
|
166
215
|
authenticationType: [],
|
|
167
216
|
lambdaAuthorizerConfig: (_) => _json(_),
|
|
168
217
|
logConfig: (_) => _json(_),
|
|
218
|
+
mergedApiExecutionRoleArn: [],
|
|
169
219
|
name: [],
|
|
170
220
|
openIDConnectConfig: (_) => _json(_),
|
|
221
|
+
ownerContact: [],
|
|
171
222
|
tags: (_) => _json(_),
|
|
172
223
|
userPoolConfig: (_) => _json(_),
|
|
173
224
|
visibility: [],
|
|
@@ -390,6 +441,42 @@ export const se_DisassociateApiCommand = async (input, context) => {
|
|
|
390
441
|
body,
|
|
391
442
|
});
|
|
392
443
|
};
|
|
444
|
+
export const se_DisassociateMergedGraphqlApiCommand = async (input, context) => {
|
|
445
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
446
|
+
const headers = {};
|
|
447
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
448
|
+
"/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}";
|
|
449
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
|
|
450
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
451
|
+
let body;
|
|
452
|
+
return new __HttpRequest({
|
|
453
|
+
protocol,
|
|
454
|
+
hostname,
|
|
455
|
+
port,
|
|
456
|
+
method: "DELETE",
|
|
457
|
+
headers,
|
|
458
|
+
path: resolvedPath,
|
|
459
|
+
body,
|
|
460
|
+
});
|
|
461
|
+
};
|
|
462
|
+
export const se_DisassociateSourceGraphqlApiCommand = async (input, context) => {
|
|
463
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
464
|
+
const headers = {};
|
|
465
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
466
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
|
|
467
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
468
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
469
|
+
let body;
|
|
470
|
+
return new __HttpRequest({
|
|
471
|
+
protocol,
|
|
472
|
+
hostname,
|
|
473
|
+
port,
|
|
474
|
+
method: "DELETE",
|
|
475
|
+
headers,
|
|
476
|
+
path: resolvedPath,
|
|
477
|
+
body,
|
|
478
|
+
});
|
|
479
|
+
};
|
|
393
480
|
export const se_EvaluateCodeCommand = async (input, context) => {
|
|
394
481
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
395
482
|
const headers = {
|
|
@@ -605,6 +692,24 @@ export const se_GetSchemaCreationStatusCommand = async (input, context) => {
|
|
|
605
692
|
body,
|
|
606
693
|
});
|
|
607
694
|
};
|
|
695
|
+
export const se_GetSourceApiAssociationCommand = async (input, context) => {
|
|
696
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
697
|
+
const headers = {};
|
|
698
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
699
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
|
|
700
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
701
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
702
|
+
let body;
|
|
703
|
+
return new __HttpRequest({
|
|
704
|
+
protocol,
|
|
705
|
+
hostname,
|
|
706
|
+
port,
|
|
707
|
+
method: "GET",
|
|
708
|
+
headers,
|
|
709
|
+
path: resolvedPath,
|
|
710
|
+
body,
|
|
711
|
+
});
|
|
712
|
+
};
|
|
608
713
|
export const se_GetTypeCommand = async (input, context) => {
|
|
609
714
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
610
715
|
const headers = {};
|
|
@@ -716,6 +821,8 @@ export const se_ListGraphqlApisCommand = async (input, context) => {
|
|
|
716
821
|
const query = map({
|
|
717
822
|
nextToken: [, input.nextToken],
|
|
718
823
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
824
|
+
apiType: [, input.apiType],
|
|
825
|
+
owner: [, input.owner],
|
|
719
826
|
});
|
|
720
827
|
let body;
|
|
721
828
|
return new __HttpRequest({
|
|
@@ -775,6 +882,27 @@ export const se_ListResolversByFunctionCommand = async (input, context) => {
|
|
|
775
882
|
body,
|
|
776
883
|
});
|
|
777
884
|
};
|
|
885
|
+
export const se_ListSourceApiAssociationsCommand = async (input, context) => {
|
|
886
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
887
|
+
const headers = {};
|
|
888
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/sourceApiAssociations";
|
|
889
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
890
|
+
const query = map({
|
|
891
|
+
nextToken: [, input.nextToken],
|
|
892
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
893
|
+
});
|
|
894
|
+
let body;
|
|
895
|
+
return new __HttpRequest({
|
|
896
|
+
protocol,
|
|
897
|
+
hostname,
|
|
898
|
+
port,
|
|
899
|
+
method: "GET",
|
|
900
|
+
headers,
|
|
901
|
+
path: resolvedPath,
|
|
902
|
+
query,
|
|
903
|
+
body,
|
|
904
|
+
});
|
|
905
|
+
};
|
|
778
906
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
779
907
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
780
908
|
const headers = {};
|
|
@@ -813,6 +941,30 @@ export const se_ListTypesCommand = async (input, context) => {
|
|
|
813
941
|
body,
|
|
814
942
|
});
|
|
815
943
|
};
|
|
944
|
+
export const se_ListTypesByAssociationCommand = async (input, context) => {
|
|
945
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
946
|
+
const headers = {};
|
|
947
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
948
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types";
|
|
949
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
950
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
951
|
+
const query = map({
|
|
952
|
+
format: [, __expectNonNull(input.format, `format`)],
|
|
953
|
+
nextToken: [, input.nextToken],
|
|
954
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
955
|
+
});
|
|
956
|
+
let body;
|
|
957
|
+
return new __HttpRequest({
|
|
958
|
+
protocol,
|
|
959
|
+
hostname,
|
|
960
|
+
port,
|
|
961
|
+
method: "GET",
|
|
962
|
+
headers,
|
|
963
|
+
path: resolvedPath,
|
|
964
|
+
query,
|
|
965
|
+
body,
|
|
966
|
+
});
|
|
967
|
+
};
|
|
816
968
|
export const se_StartSchemaCreationCommand = async (input, context) => {
|
|
817
969
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
818
970
|
const headers = {
|
|
@@ -834,6 +986,24 @@ export const se_StartSchemaCreationCommand = async (input, context) => {
|
|
|
834
986
|
body,
|
|
835
987
|
});
|
|
836
988
|
};
|
|
989
|
+
export const se_StartSchemaMergeCommand = async (input, context) => {
|
|
990
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
991
|
+
const headers = {};
|
|
992
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
993
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge";
|
|
994
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
995
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
996
|
+
let body;
|
|
997
|
+
return new __HttpRequest({
|
|
998
|
+
protocol,
|
|
999
|
+
hostname,
|
|
1000
|
+
port,
|
|
1001
|
+
method: "POST",
|
|
1002
|
+
headers,
|
|
1003
|
+
path: resolvedPath,
|
|
1004
|
+
body,
|
|
1005
|
+
});
|
|
1006
|
+
};
|
|
837
1007
|
export const se_TagResourceCommand = async (input, context) => {
|
|
838
1008
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
839
1009
|
const headers = {
|
|
@@ -1020,8 +1190,10 @@ export const se_UpdateGraphqlApiCommand = async (input, context) => {
|
|
|
1020
1190
|
authenticationType: [],
|
|
1021
1191
|
lambdaAuthorizerConfig: (_) => _json(_),
|
|
1022
1192
|
logConfig: (_) => _json(_),
|
|
1193
|
+
mergedApiExecutionRoleArn: [],
|
|
1023
1194
|
name: [],
|
|
1024
1195
|
openIDConnectConfig: (_) => _json(_),
|
|
1196
|
+
ownerContact: [],
|
|
1025
1197
|
userPoolConfig: (_) => _json(_),
|
|
1026
1198
|
xrayEnabled: [],
|
|
1027
1199
|
}));
|
|
@@ -1068,6 +1240,30 @@ export const se_UpdateResolverCommand = async (input, context) => {
|
|
|
1068
1240
|
body,
|
|
1069
1241
|
});
|
|
1070
1242
|
};
|
|
1243
|
+
export const se_UpdateSourceApiAssociationCommand = async (input, context) => {
|
|
1244
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1245
|
+
const headers = {
|
|
1246
|
+
"content-type": "application/json",
|
|
1247
|
+
};
|
|
1248
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1249
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
|
|
1250
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
1251
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
1252
|
+
let body;
|
|
1253
|
+
body = JSON.stringify(take(input, {
|
|
1254
|
+
description: [],
|
|
1255
|
+
sourceApiAssociationConfig: (_) => _json(_),
|
|
1256
|
+
}));
|
|
1257
|
+
return new __HttpRequest({
|
|
1258
|
+
protocol,
|
|
1259
|
+
hostname,
|
|
1260
|
+
port,
|
|
1261
|
+
method: "POST",
|
|
1262
|
+
headers,
|
|
1263
|
+
path: resolvedPath,
|
|
1264
|
+
body,
|
|
1265
|
+
});
|
|
1266
|
+
};
|
|
1071
1267
|
export const se_UpdateTypeCommand = async (input, context) => {
|
|
1072
1268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1073
1269
|
const headers = {
|
|
@@ -1133,6 +1329,102 @@ const de_AssociateApiCommandError = async (output, context) => {
|
|
|
1133
1329
|
});
|
|
1134
1330
|
}
|
|
1135
1331
|
};
|
|
1332
|
+
export const de_AssociateMergedGraphqlApiCommand = async (output, context) => {
|
|
1333
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
+
return de_AssociateMergedGraphqlApiCommandError(output, context);
|
|
1335
|
+
}
|
|
1336
|
+
const contents = map({
|
|
1337
|
+
$metadata: deserializeMetadata(output),
|
|
1338
|
+
});
|
|
1339
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1340
|
+
const doc = take(data, {
|
|
1341
|
+
sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
|
|
1342
|
+
});
|
|
1343
|
+
Object.assign(contents, doc);
|
|
1344
|
+
return contents;
|
|
1345
|
+
};
|
|
1346
|
+
const de_AssociateMergedGraphqlApiCommandError = async (output, context) => {
|
|
1347
|
+
const parsedOutput = {
|
|
1348
|
+
...output,
|
|
1349
|
+
body: await parseErrorBody(output.body, context),
|
|
1350
|
+
};
|
|
1351
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
+
switch (errorCode) {
|
|
1353
|
+
case "BadRequestException":
|
|
1354
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
1355
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1356
|
+
case "ConcurrentModificationException":
|
|
1357
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1358
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1359
|
+
case "InternalFailureException":
|
|
1360
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
1361
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1362
|
+
case "LimitExceededException":
|
|
1363
|
+
case "com.amazonaws.appsync#LimitExceededException":
|
|
1364
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1365
|
+
case "NotFoundException":
|
|
1366
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
1367
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1368
|
+
case "UnauthorizedException":
|
|
1369
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1370
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1371
|
+
default:
|
|
1372
|
+
const parsedBody = parsedOutput.body;
|
|
1373
|
+
return throwDefaultError({
|
|
1374
|
+
output,
|
|
1375
|
+
parsedBody,
|
|
1376
|
+
errorCode,
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
export const de_AssociateSourceGraphqlApiCommand = async (output, context) => {
|
|
1381
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1382
|
+
return de_AssociateSourceGraphqlApiCommandError(output, context);
|
|
1383
|
+
}
|
|
1384
|
+
const contents = map({
|
|
1385
|
+
$metadata: deserializeMetadata(output),
|
|
1386
|
+
});
|
|
1387
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1388
|
+
const doc = take(data, {
|
|
1389
|
+
sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
|
|
1390
|
+
});
|
|
1391
|
+
Object.assign(contents, doc);
|
|
1392
|
+
return contents;
|
|
1393
|
+
};
|
|
1394
|
+
const de_AssociateSourceGraphqlApiCommandError = async (output, context) => {
|
|
1395
|
+
const parsedOutput = {
|
|
1396
|
+
...output,
|
|
1397
|
+
body: await parseErrorBody(output.body, context),
|
|
1398
|
+
};
|
|
1399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
|
+
switch (errorCode) {
|
|
1401
|
+
case "BadRequestException":
|
|
1402
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
1403
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1404
|
+
case "ConcurrentModificationException":
|
|
1405
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1406
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1407
|
+
case "InternalFailureException":
|
|
1408
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
1409
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1410
|
+
case "LimitExceededException":
|
|
1411
|
+
case "com.amazonaws.appsync#LimitExceededException":
|
|
1412
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1413
|
+
case "NotFoundException":
|
|
1414
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
1415
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1416
|
+
case "UnauthorizedException":
|
|
1417
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1418
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1419
|
+
default:
|
|
1420
|
+
const parsedBody = parsedOutput.body;
|
|
1421
|
+
return throwDefaultError({
|
|
1422
|
+
output,
|
|
1423
|
+
parsedBody,
|
|
1424
|
+
errorCode,
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1136
1428
|
export const de_CreateApiCacheCommand = async (output, context) => {
|
|
1137
1429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1138
1430
|
return de_CreateApiCacheCommandError(output, context);
|
|
@@ -1859,42 +2151,132 @@ const de_DisassociateApiCommandError = async (output, context) => {
|
|
|
1859
2151
|
});
|
|
1860
2152
|
}
|
|
1861
2153
|
};
|
|
1862
|
-
export const
|
|
2154
|
+
export const de_DisassociateMergedGraphqlApiCommand = async (output, context) => {
|
|
1863
2155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1864
|
-
return
|
|
2156
|
+
return de_DisassociateMergedGraphqlApiCommandError(output, context);
|
|
1865
2157
|
}
|
|
1866
2158
|
const contents = map({
|
|
1867
2159
|
$metadata: deserializeMetadata(output),
|
|
1868
2160
|
});
|
|
1869
2161
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1870
2162
|
const doc = take(data, {
|
|
1871
|
-
|
|
1872
|
-
evaluationResult: __expectString,
|
|
1873
|
-
logs: _json,
|
|
2163
|
+
sourceApiAssociationStatus: __expectString,
|
|
1874
2164
|
});
|
|
1875
2165
|
Object.assign(contents, doc);
|
|
1876
2166
|
return contents;
|
|
1877
2167
|
};
|
|
1878
|
-
const
|
|
2168
|
+
const de_DisassociateMergedGraphqlApiCommandError = async (output, context) => {
|
|
1879
2169
|
const parsedOutput = {
|
|
1880
2170
|
...output,
|
|
1881
2171
|
body: await parseErrorBody(output.body, context),
|
|
1882
2172
|
};
|
|
1883
2173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
2174
|
switch (errorCode) {
|
|
1885
|
-
case "AccessDeniedException":
|
|
1886
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1887
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1888
2175
|
case "BadRequestException":
|
|
1889
2176
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1890
2177
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2178
|
+
case "ConcurrentModificationException":
|
|
2179
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2180
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1891
2181
|
case "InternalFailureException":
|
|
1892
2182
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1893
2183
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
2184
|
+
case "NotFoundException":
|
|
2185
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
2186
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2187
|
+
case "UnauthorizedException":
|
|
2188
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2189
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2190
|
+
default:
|
|
2191
|
+
const parsedBody = parsedOutput.body;
|
|
2192
|
+
return throwDefaultError({
|
|
2193
|
+
output,
|
|
2194
|
+
parsedBody,
|
|
2195
|
+
errorCode,
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2199
|
+
export const de_DisassociateSourceGraphqlApiCommand = async (output, context) => {
|
|
2200
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2201
|
+
return de_DisassociateSourceGraphqlApiCommandError(output, context);
|
|
2202
|
+
}
|
|
2203
|
+
const contents = map({
|
|
2204
|
+
$metadata: deserializeMetadata(output),
|
|
2205
|
+
});
|
|
2206
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2207
|
+
const doc = take(data, {
|
|
2208
|
+
sourceApiAssociationStatus: __expectString,
|
|
2209
|
+
});
|
|
2210
|
+
Object.assign(contents, doc);
|
|
2211
|
+
return contents;
|
|
2212
|
+
};
|
|
2213
|
+
const de_DisassociateSourceGraphqlApiCommandError = async (output, context) => {
|
|
2214
|
+
const parsedOutput = {
|
|
2215
|
+
...output,
|
|
2216
|
+
body: await parseErrorBody(output.body, context),
|
|
2217
|
+
};
|
|
2218
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2219
|
+
switch (errorCode) {
|
|
2220
|
+
case "BadRequestException":
|
|
2221
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
2222
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2223
|
+
case "ConcurrentModificationException":
|
|
2224
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2225
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2226
|
+
case "InternalFailureException":
|
|
2227
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
2228
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2229
|
+
case "NotFoundException":
|
|
2230
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
2231
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2232
|
+
case "UnauthorizedException":
|
|
2233
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2234
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2235
|
+
default:
|
|
2236
|
+
const parsedBody = parsedOutput.body;
|
|
2237
|
+
return throwDefaultError({
|
|
2238
|
+
output,
|
|
2239
|
+
parsedBody,
|
|
2240
|
+
errorCode,
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2244
|
+
export const de_EvaluateCodeCommand = async (output, context) => {
|
|
2245
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2246
|
+
return de_EvaluateCodeCommandError(output, context);
|
|
2247
|
+
}
|
|
2248
|
+
const contents = map({
|
|
2249
|
+
$metadata: deserializeMetadata(output),
|
|
2250
|
+
});
|
|
2251
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2252
|
+
const doc = take(data, {
|
|
2253
|
+
error: _json,
|
|
2254
|
+
evaluationResult: __expectString,
|
|
2255
|
+
logs: _json,
|
|
2256
|
+
});
|
|
2257
|
+
Object.assign(contents, doc);
|
|
2258
|
+
return contents;
|
|
2259
|
+
};
|
|
2260
|
+
const de_EvaluateCodeCommandError = async (output, context) => {
|
|
2261
|
+
const parsedOutput = {
|
|
2262
|
+
...output,
|
|
2263
|
+
body: await parseErrorBody(output.body, context),
|
|
2264
|
+
};
|
|
2265
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
|
+
switch (errorCode) {
|
|
2267
|
+
case "AccessDeniedException":
|
|
2268
|
+
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2269
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2270
|
+
case "BadRequestException":
|
|
2271
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
2272
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2273
|
+
case "InternalFailureException":
|
|
2274
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
2275
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2276
|
+
default:
|
|
2277
|
+
const parsedBody = parsedOutput.body;
|
|
2278
|
+
return throwDefaultError({
|
|
2279
|
+
output,
|
|
1898
2280
|
parsedBody,
|
|
1899
2281
|
errorCode,
|
|
1900
2282
|
});
|
|
@@ -2361,6 +2743,48 @@ const de_GetSchemaCreationStatusCommandError = async (output, context) => {
|
|
|
2361
2743
|
});
|
|
2362
2744
|
}
|
|
2363
2745
|
};
|
|
2746
|
+
export const de_GetSourceApiAssociationCommand = async (output, context) => {
|
|
2747
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2748
|
+
return de_GetSourceApiAssociationCommandError(output, context);
|
|
2749
|
+
}
|
|
2750
|
+
const contents = map({
|
|
2751
|
+
$metadata: deserializeMetadata(output),
|
|
2752
|
+
});
|
|
2753
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2754
|
+
const doc = take(data, {
|
|
2755
|
+
sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
|
|
2756
|
+
});
|
|
2757
|
+
Object.assign(contents, doc);
|
|
2758
|
+
return contents;
|
|
2759
|
+
};
|
|
2760
|
+
const de_GetSourceApiAssociationCommandError = async (output, context) => {
|
|
2761
|
+
const parsedOutput = {
|
|
2762
|
+
...output,
|
|
2763
|
+
body: await parseErrorBody(output.body, context),
|
|
2764
|
+
};
|
|
2765
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2766
|
+
switch (errorCode) {
|
|
2767
|
+
case "BadRequestException":
|
|
2768
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
2769
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2770
|
+
case "InternalFailureException":
|
|
2771
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
2772
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2773
|
+
case "NotFoundException":
|
|
2774
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
2775
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2776
|
+
case "UnauthorizedException":
|
|
2777
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2778
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2779
|
+
default:
|
|
2780
|
+
const parsedBody = parsedOutput.body;
|
|
2781
|
+
return throwDefaultError({
|
|
2782
|
+
output,
|
|
2783
|
+
parsedBody,
|
|
2784
|
+
errorCode,
|
|
2785
|
+
});
|
|
2786
|
+
}
|
|
2787
|
+
};
|
|
2364
2788
|
export const de_GetTypeCommand = async (output, context) => {
|
|
2365
2789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2366
2790
|
return de_GetTypeCommandError(output, context);
|
|
@@ -2701,6 +3125,49 @@ const de_ListResolversByFunctionCommandError = async (output, context) => {
|
|
|
2701
3125
|
});
|
|
2702
3126
|
}
|
|
2703
3127
|
};
|
|
3128
|
+
export const de_ListSourceApiAssociationsCommand = async (output, context) => {
|
|
3129
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3130
|
+
return de_ListSourceApiAssociationsCommandError(output, context);
|
|
3131
|
+
}
|
|
3132
|
+
const contents = map({
|
|
3133
|
+
$metadata: deserializeMetadata(output),
|
|
3134
|
+
});
|
|
3135
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3136
|
+
const doc = take(data, {
|
|
3137
|
+
nextToken: __expectString,
|
|
3138
|
+
sourceApiAssociationSummaries: _json,
|
|
3139
|
+
});
|
|
3140
|
+
Object.assign(contents, doc);
|
|
3141
|
+
return contents;
|
|
3142
|
+
};
|
|
3143
|
+
const de_ListSourceApiAssociationsCommandError = async (output, context) => {
|
|
3144
|
+
const parsedOutput = {
|
|
3145
|
+
...output,
|
|
3146
|
+
body: await parseErrorBody(output.body, context),
|
|
3147
|
+
};
|
|
3148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3149
|
+
switch (errorCode) {
|
|
3150
|
+
case "BadRequestException":
|
|
3151
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
3152
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3153
|
+
case "InternalFailureException":
|
|
3154
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
3155
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3156
|
+
case "NotFoundException":
|
|
3157
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
3158
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3159
|
+
case "UnauthorizedException":
|
|
3160
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3161
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3162
|
+
default:
|
|
3163
|
+
const parsedBody = parsedOutput.body;
|
|
3164
|
+
return throwDefaultError({
|
|
3165
|
+
output,
|
|
3166
|
+
parsedBody,
|
|
3167
|
+
errorCode,
|
|
3168
|
+
});
|
|
3169
|
+
}
|
|
3170
|
+
};
|
|
2704
3171
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2705
3172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2706
3173
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -2795,6 +3262,52 @@ const de_ListTypesCommandError = async (output, context) => {
|
|
|
2795
3262
|
});
|
|
2796
3263
|
}
|
|
2797
3264
|
};
|
|
3265
|
+
export const de_ListTypesByAssociationCommand = async (output, context) => {
|
|
3266
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3267
|
+
return de_ListTypesByAssociationCommandError(output, context);
|
|
3268
|
+
}
|
|
3269
|
+
const contents = map({
|
|
3270
|
+
$metadata: deserializeMetadata(output),
|
|
3271
|
+
});
|
|
3272
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3273
|
+
const doc = take(data, {
|
|
3274
|
+
nextToken: __expectString,
|
|
3275
|
+
types: _json,
|
|
3276
|
+
});
|
|
3277
|
+
Object.assign(contents, doc);
|
|
3278
|
+
return contents;
|
|
3279
|
+
};
|
|
3280
|
+
const de_ListTypesByAssociationCommandError = async (output, context) => {
|
|
3281
|
+
const parsedOutput = {
|
|
3282
|
+
...output,
|
|
3283
|
+
body: await parseErrorBody(output.body, context),
|
|
3284
|
+
};
|
|
3285
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
|
+
switch (errorCode) {
|
|
3287
|
+
case "BadRequestException":
|
|
3288
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
3289
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3290
|
+
case "ConcurrentModificationException":
|
|
3291
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3292
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3293
|
+
case "InternalFailureException":
|
|
3294
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
3295
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3296
|
+
case "NotFoundException":
|
|
3297
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
3298
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3299
|
+
case "UnauthorizedException":
|
|
3300
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3301
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3302
|
+
default:
|
|
3303
|
+
const parsedBody = parsedOutput.body;
|
|
3304
|
+
return throwDefaultError({
|
|
3305
|
+
output,
|
|
3306
|
+
parsedBody,
|
|
3307
|
+
errorCode,
|
|
3308
|
+
});
|
|
3309
|
+
}
|
|
3310
|
+
};
|
|
2798
3311
|
export const de_StartSchemaCreationCommand = async (output, context) => {
|
|
2799
3312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2800
3313
|
return de_StartSchemaCreationCommandError(output, context);
|
|
@@ -2840,6 +3353,51 @@ const de_StartSchemaCreationCommandError = async (output, context) => {
|
|
|
2840
3353
|
});
|
|
2841
3354
|
}
|
|
2842
3355
|
};
|
|
3356
|
+
export const de_StartSchemaMergeCommand = async (output, context) => {
|
|
3357
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3358
|
+
return de_StartSchemaMergeCommandError(output, context);
|
|
3359
|
+
}
|
|
3360
|
+
const contents = map({
|
|
3361
|
+
$metadata: deserializeMetadata(output),
|
|
3362
|
+
});
|
|
3363
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3364
|
+
const doc = take(data, {
|
|
3365
|
+
sourceApiAssociationStatus: __expectString,
|
|
3366
|
+
});
|
|
3367
|
+
Object.assign(contents, doc);
|
|
3368
|
+
return contents;
|
|
3369
|
+
};
|
|
3370
|
+
const de_StartSchemaMergeCommandError = async (output, context) => {
|
|
3371
|
+
const parsedOutput = {
|
|
3372
|
+
...output,
|
|
3373
|
+
body: await parseErrorBody(output.body, context),
|
|
3374
|
+
};
|
|
3375
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3376
|
+
switch (errorCode) {
|
|
3377
|
+
case "BadRequestException":
|
|
3378
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
3379
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3380
|
+
case "ConcurrentModificationException":
|
|
3381
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3382
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3383
|
+
case "InternalFailureException":
|
|
3384
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
3385
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3386
|
+
case "NotFoundException":
|
|
3387
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
3388
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3389
|
+
case "UnauthorizedException":
|
|
3390
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3391
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3392
|
+
default:
|
|
3393
|
+
const parsedBody = parsedOutput.body;
|
|
3394
|
+
return throwDefaultError({
|
|
3395
|
+
output,
|
|
3396
|
+
parsedBody,
|
|
3397
|
+
errorCode,
|
|
3398
|
+
});
|
|
3399
|
+
}
|
|
3400
|
+
};
|
|
2843
3401
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2844
3402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2845
3403
|
return de_TagResourceCommandError(output, context);
|
|
@@ -3246,6 +3804,51 @@ const de_UpdateResolverCommandError = async (output, context) => {
|
|
|
3246
3804
|
});
|
|
3247
3805
|
}
|
|
3248
3806
|
};
|
|
3807
|
+
export const de_UpdateSourceApiAssociationCommand = async (output, context) => {
|
|
3808
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3809
|
+
return de_UpdateSourceApiAssociationCommandError(output, context);
|
|
3810
|
+
}
|
|
3811
|
+
const contents = map({
|
|
3812
|
+
$metadata: deserializeMetadata(output),
|
|
3813
|
+
});
|
|
3814
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3815
|
+
const doc = take(data, {
|
|
3816
|
+
sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
|
|
3817
|
+
});
|
|
3818
|
+
Object.assign(contents, doc);
|
|
3819
|
+
return contents;
|
|
3820
|
+
};
|
|
3821
|
+
const de_UpdateSourceApiAssociationCommandError = async (output, context) => {
|
|
3822
|
+
const parsedOutput = {
|
|
3823
|
+
...output,
|
|
3824
|
+
body: await parseErrorBody(output.body, context),
|
|
3825
|
+
};
|
|
3826
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3827
|
+
switch (errorCode) {
|
|
3828
|
+
case "BadRequestException":
|
|
3829
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
3830
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3831
|
+
case "ConcurrentModificationException":
|
|
3832
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3833
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3834
|
+
case "InternalFailureException":
|
|
3835
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
3836
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3837
|
+
case "NotFoundException":
|
|
3838
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
3839
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3840
|
+
case "UnauthorizedException":
|
|
3841
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3842
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3843
|
+
default:
|
|
3844
|
+
const parsedBody = parsedOutput.body;
|
|
3845
|
+
return throwDefaultError({
|
|
3846
|
+
output,
|
|
3847
|
+
parsedBody,
|
|
3848
|
+
errorCode,
|
|
3849
|
+
});
|
|
3850
|
+
}
|
|
3851
|
+
};
|
|
3249
3852
|
export const de_UpdateTypeCommand = async (output, context) => {
|
|
3250
3853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3251
3854
|
return de_UpdateTypeCommandError(output, context);
|
|
@@ -3437,6 +4040,21 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
3437
4040
|
});
|
|
3438
4041
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3439
4042
|
};
|
|
4043
|
+
const de_SourceApiAssociation = (output, context) => {
|
|
4044
|
+
return take(output, {
|
|
4045
|
+
associationArn: __expectString,
|
|
4046
|
+
associationId: __expectString,
|
|
4047
|
+
description: __expectString,
|
|
4048
|
+
lastSuccessfulMergeDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4049
|
+
mergedApiArn: __expectString,
|
|
4050
|
+
mergedApiId: __expectString,
|
|
4051
|
+
sourceApiArn: __expectString,
|
|
4052
|
+
sourceApiAssociationConfig: _json,
|
|
4053
|
+
sourceApiAssociationStatus: __expectString,
|
|
4054
|
+
sourceApiAssociationStatusDetail: __expectString,
|
|
4055
|
+
sourceApiId: __expectString,
|
|
4056
|
+
});
|
|
4057
|
+
};
|
|
3440
4058
|
const deserializeMetadata = (output) => ({
|
|
3441
4059
|
httpStatusCode: output.statusCode,
|
|
3442
4060
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|