@aws-sdk/client-appsync 3.131.0 → 3.142.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/CHANGELOG.md +34 -0
- package/README.md +1 -1
- package/dist-cjs/AppSync.js +15 -0
- package/dist-cjs/commands/AssociateApiCommand.js +2 -2
- package/dist-cjs/commands/CreateApiCacheCommand.js +2 -2
- package/dist-cjs/commands/CreateApiKeyCommand.js +2 -2
- package/dist-cjs/commands/CreateDataSourceCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainNameCommand.js +2 -2
- package/dist-cjs/commands/CreateFunctionCommand.js +2 -2
- package/dist-cjs/commands/CreateGraphqlApiCommand.js +2 -2
- package/dist-cjs/commands/CreateResolverCommand.js +2 -2
- package/dist-cjs/commands/CreateTypeCommand.js +2 -2
- package/dist-cjs/commands/DeleteApiCacheCommand.js +2 -2
- package/dist-cjs/commands/DeleteApiKeyCommand.js +2 -2
- package/dist-cjs/commands/DeleteDataSourceCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainNameCommand.js +2 -2
- package/dist-cjs/commands/DeleteFunctionCommand.js +2 -2
- package/dist-cjs/commands/DeleteGraphqlApiCommand.js +2 -2
- package/dist-cjs/commands/DeleteResolverCommand.js +2 -2
- package/dist-cjs/commands/DeleteTypeCommand.js +2 -2
- package/dist-cjs/commands/DisassociateApiCommand.js +2 -2
- package/dist-cjs/commands/EvaluateMappingTemplateCommand.js +36 -0
- package/dist-cjs/commands/FlushApiCacheCommand.js +2 -2
- package/dist-cjs/commands/GetApiAssociationCommand.js +2 -2
- package/dist-cjs/commands/GetApiCacheCommand.js +2 -2
- package/dist-cjs/commands/GetDataSourceCommand.js +2 -2
- package/dist-cjs/commands/GetDomainNameCommand.js +2 -2
- package/dist-cjs/commands/GetFunctionCommand.js +2 -2
- package/dist-cjs/commands/GetGraphqlApiCommand.js +2 -2
- package/dist-cjs/commands/GetIntrospectionSchemaCommand.js +2 -2
- package/dist-cjs/commands/GetResolverCommand.js +2 -2
- package/dist-cjs/commands/GetSchemaCreationStatusCommand.js +2 -2
- package/dist-cjs/commands/GetTypeCommand.js +2 -2
- package/dist-cjs/commands/ListApiKeysCommand.js +2 -2
- package/dist-cjs/commands/ListDataSourcesCommand.js +2 -2
- package/dist-cjs/commands/ListDomainNamesCommand.js +2 -2
- package/dist-cjs/commands/ListFunctionsCommand.js +2 -2
- package/dist-cjs/commands/ListGraphqlApisCommand.js +2 -2
- package/dist-cjs/commands/ListResolversByFunctionCommand.js +2 -2
- package/dist-cjs/commands/ListResolversCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTypesCommand.js +2 -2
- package/dist-cjs/commands/StartSchemaCreationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateApiCacheCommand.js +2 -2
- package/dist-cjs/commands/UpdateApiKeyCommand.js +2 -2
- package/dist-cjs/commands/UpdateDataSourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDomainNameCommand.js +2 -2
- package/dist-cjs/commands/UpdateFunctionCommand.js +2 -2
- package/dist-cjs/commands/UpdateGraphqlApiCommand.js +2 -2
- package/dist-cjs/commands/UpdateResolverCommand.js +2 -2
- package/dist-cjs/commands/UpdateTypeCommand.js +2 -2
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +524 -766
- package/dist-cjs/protocols/Aws_restJson1.js +640 -1356
- package/dist-es/AppSync.js +15 -0
- package/dist-es/commands/AssociateApiCommand.js +3 -3
- package/dist-es/commands/CreateApiCacheCommand.js +3 -3
- package/dist-es/commands/CreateApiKeyCommand.js +3 -3
- package/dist-es/commands/CreateDataSourceCommand.js +3 -3
- package/dist-es/commands/CreateDomainNameCommand.js +3 -3
- package/dist-es/commands/CreateFunctionCommand.js +3 -3
- package/dist-es/commands/CreateGraphqlApiCommand.js +3 -3
- package/dist-es/commands/CreateResolverCommand.js +3 -3
- package/dist-es/commands/CreateTypeCommand.js +3 -3
- package/dist-es/commands/DeleteApiCacheCommand.js +3 -3
- package/dist-es/commands/DeleteApiKeyCommand.js +3 -3
- package/dist-es/commands/DeleteDataSourceCommand.js +3 -3
- package/dist-es/commands/DeleteDomainNameCommand.js +3 -3
- package/dist-es/commands/DeleteFunctionCommand.js +3 -3
- package/dist-es/commands/DeleteGraphqlApiCommand.js +3 -3
- package/dist-es/commands/DeleteResolverCommand.js +3 -3
- package/dist-es/commands/DeleteTypeCommand.js +3 -3
- package/dist-es/commands/DisassociateApiCommand.js +3 -3
- package/dist-es/commands/EvaluateMappingTemplateCommand.js +39 -0
- package/dist-es/commands/FlushApiCacheCommand.js +3 -3
- package/dist-es/commands/GetApiAssociationCommand.js +3 -3
- package/dist-es/commands/GetApiCacheCommand.js +3 -3
- package/dist-es/commands/GetDataSourceCommand.js +3 -3
- package/dist-es/commands/GetDomainNameCommand.js +3 -3
- package/dist-es/commands/GetFunctionCommand.js +3 -3
- package/dist-es/commands/GetGraphqlApiCommand.js +3 -3
- package/dist-es/commands/GetIntrospectionSchemaCommand.js +3 -3
- package/dist-es/commands/GetResolverCommand.js +3 -3
- package/dist-es/commands/GetSchemaCreationStatusCommand.js +3 -3
- package/dist-es/commands/GetTypeCommand.js +3 -3
- package/dist-es/commands/ListApiKeysCommand.js +3 -3
- package/dist-es/commands/ListDataSourcesCommand.js +3 -3
- package/dist-es/commands/ListDomainNamesCommand.js +3 -3
- package/dist-es/commands/ListFunctionsCommand.js +3 -3
- package/dist-es/commands/ListGraphqlApisCommand.js +3 -3
- package/dist-es/commands/ListResolversByFunctionCommand.js +3 -3
- package/dist-es/commands/ListResolversCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTypesCommand.js +3 -3
- package/dist-es/commands/StartSchemaCreationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateApiCacheCommand.js +3 -3
- package/dist-es/commands/UpdateApiKeyCommand.js +3 -3
- package/dist-es/commands/UpdateDataSourceCommand.js +3 -3
- package/dist-es/commands/UpdateDomainNameCommand.js +3 -3
- package/dist-es/commands/UpdateFunctionCommand.js +3 -3
- package/dist-es/commands/UpdateGraphqlApiCommand.js +3 -3
- package/dist-es/commands/UpdateResolverCommand.js +3 -3
- package/dist-es/commands/UpdateTypeCommand.js +3 -3
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +130 -508
- package/dist-es/protocols/Aws_restJson1.js +857 -1368
- package/dist-types/AppSync.d.ts +13 -0
- package/dist-types/AppSyncClient.d.ts +3 -2
- package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +41 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +551 -761
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/AppSync.d.ts +5 -0
- package/dist-types/ts3.4/AppSyncClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/EvaluateMappingTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +275 -506
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AppSyncServiceException as __BaseException } from "../models/AppSyncServiceException";
|
|
5
5
|
import { AccessDeniedException, ApiKeyLimitExceededException, ApiKeyValidityOutOfBoundsException, ApiLimitExceededException, BadRequestException, ConcurrentModificationException, GraphQLSchemaException, InternalFailureException, LimitExceededException, NotFoundException, UnauthorizedException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1AssociateApiCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -15,16 +15,7 @@ export var serializeAws_restJson1AssociateApiCommand = function (input, context)
|
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
17
17
|
"/v1/domainnames/{domainName}/apiassociation";
|
|
18
|
-
|
|
19
|
-
labelValue = input.domainName;
|
|
20
|
-
if (labelValue.length <= 0) {
|
|
21
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
22
|
-
}
|
|
23
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
27
|
-
}
|
|
18
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
28
19
|
body = JSON.stringify(__assign({}, (input.apiId != null && { apiId: input.apiId })));
|
|
29
20
|
return [2, new __HttpRequest({
|
|
30
21
|
protocol: protocol,
|
|
@@ -39,7 +30,7 @@ export var serializeAws_restJson1AssociateApiCommand = function (input, context)
|
|
|
39
30
|
});
|
|
40
31
|
}); };
|
|
41
32
|
export var serializeAws_restJson1CreateApiCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
43
34
|
return __generator(this, function (_c) {
|
|
44
35
|
switch (_c.label) {
|
|
45
36
|
case 0: return [4, context.endpoint()];
|
|
@@ -49,16 +40,7 @@ export var serializeAws_restJson1CreateApiCacheCommand = function (input, contex
|
|
|
49
40
|
"content-type": "application/json",
|
|
50
41
|
};
|
|
51
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/ApiCaches";
|
|
52
|
-
|
|
53
|
-
labelValue = input.apiId;
|
|
54
|
-
if (labelValue.length <= 0) {
|
|
55
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
56
|
-
}
|
|
57
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
61
|
-
}
|
|
43
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
62
44
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.apiCachingBehavior != null && { apiCachingBehavior: input.apiCachingBehavior })), (input.atRestEncryptionEnabled != null && { atRestEncryptionEnabled: input.atRestEncryptionEnabled })), (input.transitEncryptionEnabled != null && { transitEncryptionEnabled: input.transitEncryptionEnabled })), (input.ttl != null && { ttl: input.ttl })), (input.type != null && { type: input.type })));
|
|
63
45
|
return [2, new __HttpRequest({
|
|
64
46
|
protocol: protocol,
|
|
@@ -73,7 +55,7 @@ export var serializeAws_restJson1CreateApiCacheCommand = function (input, contex
|
|
|
73
55
|
});
|
|
74
56
|
}); };
|
|
75
57
|
export var serializeAws_restJson1CreateApiKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
58
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
77
59
|
return __generator(this, function (_c) {
|
|
78
60
|
switch (_c.label) {
|
|
79
61
|
case 0: return [4, context.endpoint()];
|
|
@@ -83,16 +65,7 @@ export var serializeAws_restJson1CreateApiKeyCommand = function (input, context)
|
|
|
83
65
|
"content-type": "application/json",
|
|
84
66
|
};
|
|
85
67
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/apikeys";
|
|
86
|
-
|
|
87
|
-
labelValue = input.apiId;
|
|
88
|
-
if (labelValue.length <= 0) {
|
|
89
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
90
|
-
}
|
|
91
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
95
|
-
}
|
|
68
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
96
69
|
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.expires != null && { expires: input.expires })));
|
|
97
70
|
return [2, new __HttpRequest({
|
|
98
71
|
protocol: protocol,
|
|
@@ -107,7 +80,7 @@ export var serializeAws_restJson1CreateApiKeyCommand = function (input, context)
|
|
|
107
80
|
});
|
|
108
81
|
}); };
|
|
109
82
|
export var serializeAws_restJson1CreateDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
110
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
83
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
111
84
|
return __generator(this, function (_c) {
|
|
112
85
|
switch (_c.label) {
|
|
113
86
|
case 0: return [4, context.endpoint()];
|
|
@@ -117,16 +90,7 @@ export var serializeAws_restJson1CreateDataSourceCommand = function (input, cont
|
|
|
117
90
|
"content-type": "application/json",
|
|
118
91
|
};
|
|
119
92
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/datasources";
|
|
120
|
-
|
|
121
|
-
labelValue = input.apiId;
|
|
122
|
-
if (labelValue.length <= 0) {
|
|
123
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
124
|
-
}
|
|
125
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
129
|
-
}
|
|
93
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
130
94
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dynamodbConfig != null && {
|
|
131
95
|
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
132
96
|
})), (input.elasticsearchConfig != null && {
|
|
@@ -177,7 +141,7 @@ export var serializeAws_restJson1CreateDomainNameCommand = function (input, cont
|
|
|
177
141
|
});
|
|
178
142
|
}); };
|
|
179
143
|
export var serializeAws_restJson1CreateFunctionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
180
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
144
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
181
145
|
return __generator(this, function (_c) {
|
|
182
146
|
switch (_c.label) {
|
|
183
147
|
case 0: return [4, context.endpoint()];
|
|
@@ -187,16 +151,7 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
187
151
|
"content-type": "application/json",
|
|
188
152
|
};
|
|
189
153
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/functions";
|
|
190
|
-
|
|
191
|
-
labelValue = input.apiId;
|
|
192
|
-
if (labelValue.length <= 0) {
|
|
193
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
194
|
-
}
|
|
195
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
199
|
-
}
|
|
154
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
200
155
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSourceName != null && { dataSourceName: input.dataSourceName })), (input.description != null && { description: input.description })), (input.functionVersion != null && { functionVersion: input.functionVersion })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.name != null && { name: input.name })), (input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
201
156
|
return [2, new __HttpRequest({
|
|
202
157
|
protocol: protocol,
|
|
@@ -243,7 +198,7 @@ export var serializeAws_restJson1CreateGraphqlApiCommand = function (input, cont
|
|
|
243
198
|
});
|
|
244
199
|
}); };
|
|
245
200
|
export var serializeAws_restJson1CreateResolverCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
246
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
201
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
247
202
|
return __generator(this, function (_c) {
|
|
248
203
|
switch (_c.label) {
|
|
249
204
|
case 0: return [4, context.endpoint()];
|
|
@@ -254,26 +209,8 @@ export var serializeAws_restJson1CreateResolverCommand = function (input, contex
|
|
|
254
209
|
};
|
|
255
210
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
256
211
|
"/v1/apis/{apiId}/types/{typeName}/resolvers";
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
if (labelValue.length <= 0) {
|
|
260
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
261
|
-
}
|
|
262
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
266
|
-
}
|
|
267
|
-
if (input.typeName !== undefined) {
|
|
268
|
-
labelValue = input.typeName;
|
|
269
|
-
if (labelValue.length <= 0) {
|
|
270
|
-
throw new Error("Empty value provided for input HTTP label: typeName.");
|
|
271
|
-
}
|
|
272
|
-
resolvedPath = resolvedPath.replace("{typeName}", __extendedEncodeURIComponent(labelValue));
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
throw new Error("No value provided for input HTTP label: typeName.");
|
|
276
|
-
}
|
|
212
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
213
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", function () { return input.typeName; }, "{typeName}", false);
|
|
277
214
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig != null && {
|
|
278
215
|
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
279
216
|
})), (input.dataSourceName != null && { dataSourceName: input.dataSourceName })), (input.fieldName != null && { fieldName: input.fieldName })), (input.kind != null && { kind: input.kind })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.pipelineConfig != null && {
|
|
@@ -292,7 +229,7 @@ export var serializeAws_restJson1CreateResolverCommand = function (input, contex
|
|
|
292
229
|
});
|
|
293
230
|
}); };
|
|
294
231
|
export var serializeAws_restJson1CreateTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
295
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
232
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
296
233
|
return __generator(this, function (_c) {
|
|
297
234
|
switch (_c.label) {
|
|
298
235
|
case 0: return [4, context.endpoint()];
|
|
@@ -302,16 +239,7 @@ export var serializeAws_restJson1CreateTypeCommand = function (input, context) {
|
|
|
302
239
|
"content-type": "application/json",
|
|
303
240
|
};
|
|
304
241
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/types";
|
|
305
|
-
|
|
306
|
-
labelValue = input.apiId;
|
|
307
|
-
if (labelValue.length <= 0) {
|
|
308
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
309
|
-
}
|
|
310
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
314
|
-
}
|
|
242
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
315
243
|
body = JSON.stringify(__assign(__assign({}, (input.definition != null && { definition: input.definition })), (input.format != null && { format: input.format })));
|
|
316
244
|
return [2, new __HttpRequest({
|
|
317
245
|
protocol: protocol,
|
|
@@ -326,7 +254,7 @@ export var serializeAws_restJson1CreateTypeCommand = function (input, context) {
|
|
|
326
254
|
});
|
|
327
255
|
}); };
|
|
328
256
|
export var serializeAws_restJson1DeleteApiCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
329
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
257
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
330
258
|
return __generator(this, function (_c) {
|
|
331
259
|
switch (_c.label) {
|
|
332
260
|
case 0: return [4, context.endpoint()];
|
|
@@ -334,16 +262,7 @@ export var serializeAws_restJson1DeleteApiCacheCommand = function (input, contex
|
|
|
334
262
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
335
263
|
headers = {};
|
|
336
264
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/ApiCaches";
|
|
337
|
-
|
|
338
|
-
labelValue = input.apiId;
|
|
339
|
-
if (labelValue.length <= 0) {
|
|
340
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
341
|
-
}
|
|
342
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
346
|
-
}
|
|
265
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
347
266
|
return [2, new __HttpRequest({
|
|
348
267
|
protocol: protocol,
|
|
349
268
|
hostname: hostname,
|
|
@@ -357,7 +276,7 @@ export var serializeAws_restJson1DeleteApiCacheCommand = function (input, contex
|
|
|
357
276
|
});
|
|
358
277
|
}); };
|
|
359
278
|
export var serializeAws_restJson1DeleteApiKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
360
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
279
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
361
280
|
return __generator(this, function (_c) {
|
|
362
281
|
switch (_c.label) {
|
|
363
282
|
case 0: return [4, context.endpoint()];
|
|
@@ -365,26 +284,8 @@ export var serializeAws_restJson1DeleteApiKeyCommand = function (input, context)
|
|
|
365
284
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
366
285
|
headers = {};
|
|
367
286
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/apikeys/{id}";
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
if (labelValue.length <= 0) {
|
|
371
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
372
|
-
}
|
|
373
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
377
|
-
}
|
|
378
|
-
if (input.id !== undefined) {
|
|
379
|
-
labelValue = input.id;
|
|
380
|
-
if (labelValue.length <= 0) {
|
|
381
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
382
|
-
}
|
|
383
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
387
|
-
}
|
|
287
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
288
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
388
289
|
return [2, new __HttpRequest({
|
|
389
290
|
protocol: protocol,
|
|
390
291
|
hostname: hostname,
|
|
@@ -398,7 +299,7 @@ export var serializeAws_restJson1DeleteApiKeyCommand = function (input, context)
|
|
|
398
299
|
});
|
|
399
300
|
}); };
|
|
400
301
|
export var serializeAws_restJson1DeleteDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
401
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
302
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
402
303
|
return __generator(this, function (_c) {
|
|
403
304
|
switch (_c.label) {
|
|
404
305
|
case 0: return [4, context.endpoint()];
|
|
@@ -406,26 +307,8 @@ export var serializeAws_restJson1DeleteDataSourceCommand = function (input, cont
|
|
|
406
307
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
407
308
|
headers = {};
|
|
408
309
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/datasources/{name}";
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
if (labelValue.length <= 0) {
|
|
412
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
413
|
-
}
|
|
414
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
415
|
-
}
|
|
416
|
-
else {
|
|
417
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
418
|
-
}
|
|
419
|
-
if (input.name !== undefined) {
|
|
420
|
-
labelValue = input.name;
|
|
421
|
-
if (labelValue.length <= 0) {
|
|
422
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
423
|
-
}
|
|
424
|
-
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
428
|
-
}
|
|
310
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
311
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
429
312
|
return [2, new __HttpRequest({
|
|
430
313
|
protocol: protocol,
|
|
431
314
|
hostname: hostname,
|
|
@@ -439,7 +322,7 @@ export var serializeAws_restJson1DeleteDataSourceCommand = function (input, cont
|
|
|
439
322
|
});
|
|
440
323
|
}); };
|
|
441
324
|
export var serializeAws_restJson1DeleteDomainNameCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
442
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
325
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
443
326
|
return __generator(this, function (_c) {
|
|
444
327
|
switch (_c.label) {
|
|
445
328
|
case 0: return [4, context.endpoint()];
|
|
@@ -447,16 +330,7 @@ export var serializeAws_restJson1DeleteDomainNameCommand = function (input, cont
|
|
|
447
330
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
448
331
|
headers = {};
|
|
449
332
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
|
|
450
|
-
|
|
451
|
-
labelValue = input.domainName;
|
|
452
|
-
if (labelValue.length <= 0) {
|
|
453
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
454
|
-
}
|
|
455
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
456
|
-
}
|
|
457
|
-
else {
|
|
458
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
459
|
-
}
|
|
333
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
460
334
|
return [2, new __HttpRequest({
|
|
461
335
|
protocol: protocol,
|
|
462
336
|
hostname: hostname,
|
|
@@ -470,7 +344,7 @@ export var serializeAws_restJson1DeleteDomainNameCommand = function (input, cont
|
|
|
470
344
|
});
|
|
471
345
|
}); };
|
|
472
346
|
export var serializeAws_restJson1DeleteFunctionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
473
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
347
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
474
348
|
return __generator(this, function (_c) {
|
|
475
349
|
switch (_c.label) {
|
|
476
350
|
case 0: return [4, context.endpoint()];
|
|
@@ -478,26 +352,8 @@ export var serializeAws_restJson1DeleteFunctionCommand = function (input, contex
|
|
|
478
352
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
479
353
|
headers = {};
|
|
480
354
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/functions/{functionId}";
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
if (labelValue.length <= 0) {
|
|
484
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
485
|
-
}
|
|
486
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
487
|
-
}
|
|
488
|
-
else {
|
|
489
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
490
|
-
}
|
|
491
|
-
if (input.functionId !== undefined) {
|
|
492
|
-
labelValue = input.functionId;
|
|
493
|
-
if (labelValue.length <= 0) {
|
|
494
|
-
throw new Error("Empty value provided for input HTTP label: functionId.");
|
|
495
|
-
}
|
|
496
|
-
resolvedPath = resolvedPath.replace("{functionId}", __extendedEncodeURIComponent(labelValue));
|
|
497
|
-
}
|
|
498
|
-
else {
|
|
499
|
-
throw new Error("No value provided for input HTTP label: functionId.");
|
|
500
|
-
}
|
|
355
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
356
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "functionId", function () { return input.functionId; }, "{functionId}", false);
|
|
501
357
|
return [2, new __HttpRequest({
|
|
502
358
|
protocol: protocol,
|
|
503
359
|
hostname: hostname,
|
|
@@ -511,7 +367,7 @@ export var serializeAws_restJson1DeleteFunctionCommand = function (input, contex
|
|
|
511
367
|
});
|
|
512
368
|
}); };
|
|
513
369
|
export var serializeAws_restJson1DeleteGraphqlApiCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
514
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
370
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
515
371
|
return __generator(this, function (_c) {
|
|
516
372
|
switch (_c.label) {
|
|
517
373
|
case 0: return [4, context.endpoint()];
|
|
@@ -519,16 +375,7 @@ export var serializeAws_restJson1DeleteGraphqlApiCommand = function (input, cont
|
|
|
519
375
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
520
376
|
headers = {};
|
|
521
377
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}";
|
|
522
|
-
|
|
523
|
-
labelValue = input.apiId;
|
|
524
|
-
if (labelValue.length <= 0) {
|
|
525
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
526
|
-
}
|
|
527
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
528
|
-
}
|
|
529
|
-
else {
|
|
530
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
531
|
-
}
|
|
378
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
532
379
|
return [2, new __HttpRequest({
|
|
533
380
|
protocol: protocol,
|
|
534
381
|
hostname: hostname,
|
|
@@ -542,7 +389,7 @@ export var serializeAws_restJson1DeleteGraphqlApiCommand = function (input, cont
|
|
|
542
389
|
});
|
|
543
390
|
}); };
|
|
544
391
|
export var serializeAws_restJson1DeleteResolverCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
545
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
392
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
546
393
|
return __generator(this, function (_c) {
|
|
547
394
|
switch (_c.label) {
|
|
548
395
|
case 0: return [4, context.endpoint()];
|
|
@@ -551,36 +398,9 @@ export var serializeAws_restJson1DeleteResolverCommand = function (input, contex
|
|
|
551
398
|
headers = {};
|
|
552
399
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
553
400
|
"/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
558
|
-
}
|
|
559
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
563
|
-
}
|
|
564
|
-
if (input.typeName !== undefined) {
|
|
565
|
-
labelValue = input.typeName;
|
|
566
|
-
if (labelValue.length <= 0) {
|
|
567
|
-
throw new Error("Empty value provided for input HTTP label: typeName.");
|
|
568
|
-
}
|
|
569
|
-
resolvedPath = resolvedPath.replace("{typeName}", __extendedEncodeURIComponent(labelValue));
|
|
570
|
-
}
|
|
571
|
-
else {
|
|
572
|
-
throw new Error("No value provided for input HTTP label: typeName.");
|
|
573
|
-
}
|
|
574
|
-
if (input.fieldName !== undefined) {
|
|
575
|
-
labelValue = input.fieldName;
|
|
576
|
-
if (labelValue.length <= 0) {
|
|
577
|
-
throw new Error("Empty value provided for input HTTP label: fieldName.");
|
|
578
|
-
}
|
|
579
|
-
resolvedPath = resolvedPath.replace("{fieldName}", __extendedEncodeURIComponent(labelValue));
|
|
580
|
-
}
|
|
581
|
-
else {
|
|
582
|
-
throw new Error("No value provided for input HTTP label: fieldName.");
|
|
583
|
-
}
|
|
401
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
402
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", function () { return input.typeName; }, "{typeName}", false);
|
|
403
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", function () { return input.fieldName; }, "{fieldName}", false);
|
|
584
404
|
return [2, new __HttpRequest({
|
|
585
405
|
protocol: protocol,
|
|
586
406
|
hostname: hostname,
|
|
@@ -594,7 +414,7 @@ export var serializeAws_restJson1DeleteResolverCommand = function (input, contex
|
|
|
594
414
|
});
|
|
595
415
|
}); };
|
|
596
416
|
export var serializeAws_restJson1DeleteTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
597
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
417
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
598
418
|
return __generator(this, function (_c) {
|
|
599
419
|
switch (_c.label) {
|
|
600
420
|
case 0: return [4, context.endpoint()];
|
|
@@ -602,26 +422,8 @@ export var serializeAws_restJson1DeleteTypeCommand = function (input, context) {
|
|
|
602
422
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
603
423
|
headers = {};
|
|
604
424
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/types/{typeName}";
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
if (labelValue.length <= 0) {
|
|
608
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
609
|
-
}
|
|
610
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
611
|
-
}
|
|
612
|
-
else {
|
|
613
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
614
|
-
}
|
|
615
|
-
if (input.typeName !== undefined) {
|
|
616
|
-
labelValue = input.typeName;
|
|
617
|
-
if (labelValue.length <= 0) {
|
|
618
|
-
throw new Error("Empty value provided for input HTTP label: typeName.");
|
|
619
|
-
}
|
|
620
|
-
resolvedPath = resolvedPath.replace("{typeName}", __extendedEncodeURIComponent(labelValue));
|
|
621
|
-
}
|
|
622
|
-
else {
|
|
623
|
-
throw new Error("No value provided for input HTTP label: typeName.");
|
|
624
|
-
}
|
|
425
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
426
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", function () { return input.typeName; }, "{typeName}", false);
|
|
625
427
|
return [2, new __HttpRequest({
|
|
626
428
|
protocol: protocol,
|
|
627
429
|
hostname: hostname,
|
|
@@ -635,7 +437,7 @@ export var serializeAws_restJson1DeleteTypeCommand = function (input, context) {
|
|
|
635
437
|
});
|
|
636
438
|
}); };
|
|
637
439
|
export var serializeAws_restJson1DisassociateApiCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
638
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
440
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
639
441
|
return __generator(this, function (_c) {
|
|
640
442
|
switch (_c.label) {
|
|
641
443
|
case 0: return [4, context.endpoint()];
|
|
@@ -644,16 +446,7 @@ export var serializeAws_restJson1DisassociateApiCommand = function (input, conte
|
|
|
644
446
|
headers = {};
|
|
645
447
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
646
448
|
"/v1/domainnames/{domainName}/apiassociation";
|
|
647
|
-
|
|
648
|
-
labelValue = input.domainName;
|
|
649
|
-
if (labelValue.length <= 0) {
|
|
650
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
651
|
-
}
|
|
652
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
653
|
-
}
|
|
654
|
-
else {
|
|
655
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
656
|
-
}
|
|
449
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
657
450
|
return [2, new __HttpRequest({
|
|
658
451
|
protocol: protocol,
|
|
659
452
|
hostname: hostname,
|
|
@@ -666,8 +459,32 @@ export var serializeAws_restJson1DisassociateApiCommand = function (input, conte
|
|
|
666
459
|
}
|
|
667
460
|
});
|
|
668
461
|
}); };
|
|
462
|
+
export var serializeAws_restJson1EvaluateMappingTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
463
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
464
|
+
return __generator(this, function (_c) {
|
|
465
|
+
switch (_c.label) {
|
|
466
|
+
case 0: return [4, context.endpoint()];
|
|
467
|
+
case 1:
|
|
468
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
469
|
+
headers = {
|
|
470
|
+
"content-type": "application/json",
|
|
471
|
+
};
|
|
472
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/dataplane-evaluatetemplate";
|
|
473
|
+
body = JSON.stringify(__assign(__assign({}, (input.context != null && { context: input.context })), (input.template != null && { template: input.template })));
|
|
474
|
+
return [2, new __HttpRequest({
|
|
475
|
+
protocol: protocol,
|
|
476
|
+
hostname: hostname,
|
|
477
|
+
port: port,
|
|
478
|
+
method: "POST",
|
|
479
|
+
headers: headers,
|
|
480
|
+
path: resolvedPath,
|
|
481
|
+
body: body,
|
|
482
|
+
})];
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
}); };
|
|
669
486
|
export var serializeAws_restJson1FlushApiCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
670
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
487
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
671
488
|
return __generator(this, function (_c) {
|
|
672
489
|
switch (_c.label) {
|
|
673
490
|
case 0: return [4, context.endpoint()];
|
|
@@ -675,16 +492,7 @@ export var serializeAws_restJson1FlushApiCacheCommand = function (input, context
|
|
|
675
492
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
676
493
|
headers = {};
|
|
677
494
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/FlushCache";
|
|
678
|
-
|
|
679
|
-
labelValue = input.apiId;
|
|
680
|
-
if (labelValue.length <= 0) {
|
|
681
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
682
|
-
}
|
|
683
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
684
|
-
}
|
|
685
|
-
else {
|
|
686
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
687
|
-
}
|
|
495
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
688
496
|
return [2, new __HttpRequest({
|
|
689
497
|
protocol: protocol,
|
|
690
498
|
hostname: hostname,
|
|
@@ -698,7 +506,7 @@ export var serializeAws_restJson1FlushApiCacheCommand = function (input, context
|
|
|
698
506
|
});
|
|
699
507
|
}); };
|
|
700
508
|
export var serializeAws_restJson1GetApiAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
701
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
509
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
702
510
|
return __generator(this, function (_c) {
|
|
703
511
|
switch (_c.label) {
|
|
704
512
|
case 0: return [4, context.endpoint()];
|
|
@@ -707,16 +515,7 @@ export var serializeAws_restJson1GetApiAssociationCommand = function (input, con
|
|
|
707
515
|
headers = {};
|
|
708
516
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
709
517
|
"/v1/domainnames/{domainName}/apiassociation";
|
|
710
|
-
|
|
711
|
-
labelValue = input.domainName;
|
|
712
|
-
if (labelValue.length <= 0) {
|
|
713
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
714
|
-
}
|
|
715
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
716
|
-
}
|
|
717
|
-
else {
|
|
718
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
719
|
-
}
|
|
518
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
720
519
|
return [2, new __HttpRequest({
|
|
721
520
|
protocol: protocol,
|
|
722
521
|
hostname: hostname,
|
|
@@ -730,7 +529,7 @@ export var serializeAws_restJson1GetApiAssociationCommand = function (input, con
|
|
|
730
529
|
});
|
|
731
530
|
}); };
|
|
732
531
|
export var serializeAws_restJson1GetApiCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
733
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
532
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
734
533
|
return __generator(this, function (_c) {
|
|
735
534
|
switch (_c.label) {
|
|
736
535
|
case 0: return [4, context.endpoint()];
|
|
@@ -738,16 +537,7 @@ export var serializeAws_restJson1GetApiCacheCommand = function (input, context)
|
|
|
738
537
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
739
538
|
headers = {};
|
|
740
539
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/ApiCaches";
|
|
741
|
-
|
|
742
|
-
labelValue = input.apiId;
|
|
743
|
-
if (labelValue.length <= 0) {
|
|
744
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
745
|
-
}
|
|
746
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
747
|
-
}
|
|
748
|
-
else {
|
|
749
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
750
|
-
}
|
|
540
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
751
541
|
return [2, new __HttpRequest({
|
|
752
542
|
protocol: protocol,
|
|
753
543
|
hostname: hostname,
|
|
@@ -761,7 +551,7 @@ export var serializeAws_restJson1GetApiCacheCommand = function (input, context)
|
|
|
761
551
|
});
|
|
762
552
|
}); };
|
|
763
553
|
export var serializeAws_restJson1GetDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
764
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
554
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
765
555
|
return __generator(this, function (_c) {
|
|
766
556
|
switch (_c.label) {
|
|
767
557
|
case 0: return [4, context.endpoint()];
|
|
@@ -769,26 +559,8 @@ export var serializeAws_restJson1GetDataSourceCommand = function (input, context
|
|
|
769
559
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
770
560
|
headers = {};
|
|
771
561
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/datasources/{name}";
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
if (labelValue.length <= 0) {
|
|
775
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
776
|
-
}
|
|
777
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
778
|
-
}
|
|
779
|
-
else {
|
|
780
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
781
|
-
}
|
|
782
|
-
if (input.name !== undefined) {
|
|
783
|
-
labelValue = input.name;
|
|
784
|
-
if (labelValue.length <= 0) {
|
|
785
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
786
|
-
}
|
|
787
|
-
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
788
|
-
}
|
|
789
|
-
else {
|
|
790
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
791
|
-
}
|
|
562
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
563
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
792
564
|
return [2, new __HttpRequest({
|
|
793
565
|
protocol: protocol,
|
|
794
566
|
hostname: hostname,
|
|
@@ -802,7 +574,7 @@ export var serializeAws_restJson1GetDataSourceCommand = function (input, context
|
|
|
802
574
|
});
|
|
803
575
|
}); };
|
|
804
576
|
export var serializeAws_restJson1GetDomainNameCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
805
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
577
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
806
578
|
return __generator(this, function (_c) {
|
|
807
579
|
switch (_c.label) {
|
|
808
580
|
case 0: return [4, context.endpoint()];
|
|
@@ -810,16 +582,7 @@ export var serializeAws_restJson1GetDomainNameCommand = function (input, context
|
|
|
810
582
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
811
583
|
headers = {};
|
|
812
584
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
|
|
813
|
-
|
|
814
|
-
labelValue = input.domainName;
|
|
815
|
-
if (labelValue.length <= 0) {
|
|
816
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
817
|
-
}
|
|
818
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
819
|
-
}
|
|
820
|
-
else {
|
|
821
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
822
|
-
}
|
|
585
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
823
586
|
return [2, new __HttpRequest({
|
|
824
587
|
protocol: protocol,
|
|
825
588
|
hostname: hostname,
|
|
@@ -833,7 +596,7 @@ export var serializeAws_restJson1GetDomainNameCommand = function (input, context
|
|
|
833
596
|
});
|
|
834
597
|
}); };
|
|
835
598
|
export var serializeAws_restJson1GetFunctionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
836
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
599
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
837
600
|
return __generator(this, function (_c) {
|
|
838
601
|
switch (_c.label) {
|
|
839
602
|
case 0: return [4, context.endpoint()];
|
|
@@ -841,26 +604,8 @@ export var serializeAws_restJson1GetFunctionCommand = function (input, context)
|
|
|
841
604
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
842
605
|
headers = {};
|
|
843
606
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/functions/{functionId}";
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
if (labelValue.length <= 0) {
|
|
847
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
848
|
-
}
|
|
849
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
850
|
-
}
|
|
851
|
-
else {
|
|
852
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
853
|
-
}
|
|
854
|
-
if (input.functionId !== undefined) {
|
|
855
|
-
labelValue = input.functionId;
|
|
856
|
-
if (labelValue.length <= 0) {
|
|
857
|
-
throw new Error("Empty value provided for input HTTP label: functionId.");
|
|
858
|
-
}
|
|
859
|
-
resolvedPath = resolvedPath.replace("{functionId}", __extendedEncodeURIComponent(labelValue));
|
|
860
|
-
}
|
|
861
|
-
else {
|
|
862
|
-
throw new Error("No value provided for input HTTP label: functionId.");
|
|
863
|
-
}
|
|
607
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
608
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "functionId", function () { return input.functionId; }, "{functionId}", false);
|
|
864
609
|
return [2, new __HttpRequest({
|
|
865
610
|
protocol: protocol,
|
|
866
611
|
hostname: hostname,
|
|
@@ -874,7 +619,7 @@ export var serializeAws_restJson1GetFunctionCommand = function (input, context)
|
|
|
874
619
|
});
|
|
875
620
|
}); };
|
|
876
621
|
export var serializeAws_restJson1GetGraphqlApiCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
877
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
622
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
878
623
|
return __generator(this, function (_c) {
|
|
879
624
|
switch (_c.label) {
|
|
880
625
|
case 0: return [4, context.endpoint()];
|
|
@@ -882,16 +627,7 @@ export var serializeAws_restJson1GetGraphqlApiCommand = function (input, context
|
|
|
882
627
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
883
628
|
headers = {};
|
|
884
629
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}";
|
|
885
|
-
|
|
886
|
-
labelValue = input.apiId;
|
|
887
|
-
if (labelValue.length <= 0) {
|
|
888
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
889
|
-
}
|
|
890
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
891
|
-
}
|
|
892
|
-
else {
|
|
893
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
894
|
-
}
|
|
630
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
895
631
|
return [2, new __HttpRequest({
|
|
896
632
|
protocol: protocol,
|
|
897
633
|
hostname: hostname,
|
|
@@ -905,7 +641,7 @@ export var serializeAws_restJson1GetGraphqlApiCommand = function (input, context
|
|
|
905
641
|
});
|
|
906
642
|
}); };
|
|
907
643
|
export var serializeAws_restJson1GetIntrospectionSchemaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
908
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
644
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
909
645
|
return __generator(this, function (_c) {
|
|
910
646
|
switch (_c.label) {
|
|
911
647
|
case 0: return [4, context.endpoint()];
|
|
@@ -913,17 +649,11 @@ export var serializeAws_restJson1GetIntrospectionSchemaCommand = function (input
|
|
|
913
649
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
914
650
|
headers = {};
|
|
915
651
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/schema";
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
922
|
-
}
|
|
923
|
-
else {
|
|
924
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
925
|
-
}
|
|
926
|
-
query = __assign(__assign({}, (input.format !== undefined && { format: input.format })), (input.includeDirectives !== undefined && { includeDirectives: input.includeDirectives.toString() }));
|
|
652
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
653
|
+
query = map({
|
|
654
|
+
format: [, input.format],
|
|
655
|
+
includeDirectives: [function () { return input.includeDirectives !== void 0; }, function () { return input.includeDirectives.toString(); }],
|
|
656
|
+
});
|
|
927
657
|
return [2, new __HttpRequest({
|
|
928
658
|
protocol: protocol,
|
|
929
659
|
hostname: hostname,
|
|
@@ -938,7 +668,7 @@ export var serializeAws_restJson1GetIntrospectionSchemaCommand = function (input
|
|
|
938
668
|
});
|
|
939
669
|
}); };
|
|
940
670
|
export var serializeAws_restJson1GetResolverCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
941
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
671
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
942
672
|
return __generator(this, function (_c) {
|
|
943
673
|
switch (_c.label) {
|
|
944
674
|
case 0: return [4, context.endpoint()];
|
|
@@ -947,36 +677,9 @@ export var serializeAws_restJson1GetResolverCommand = function (input, context)
|
|
|
947
677
|
headers = {};
|
|
948
678
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
949
679
|
"/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
954
|
-
}
|
|
955
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
956
|
-
}
|
|
957
|
-
else {
|
|
958
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
959
|
-
}
|
|
960
|
-
if (input.typeName !== undefined) {
|
|
961
|
-
labelValue = input.typeName;
|
|
962
|
-
if (labelValue.length <= 0) {
|
|
963
|
-
throw new Error("Empty value provided for input HTTP label: typeName.");
|
|
964
|
-
}
|
|
965
|
-
resolvedPath = resolvedPath.replace("{typeName}", __extendedEncodeURIComponent(labelValue));
|
|
966
|
-
}
|
|
967
|
-
else {
|
|
968
|
-
throw new Error("No value provided for input HTTP label: typeName.");
|
|
969
|
-
}
|
|
970
|
-
if (input.fieldName !== undefined) {
|
|
971
|
-
labelValue = input.fieldName;
|
|
972
|
-
if (labelValue.length <= 0) {
|
|
973
|
-
throw new Error("Empty value provided for input HTTP label: fieldName.");
|
|
974
|
-
}
|
|
975
|
-
resolvedPath = resolvedPath.replace("{fieldName}", __extendedEncodeURIComponent(labelValue));
|
|
976
|
-
}
|
|
977
|
-
else {
|
|
978
|
-
throw new Error("No value provided for input HTTP label: fieldName.");
|
|
979
|
-
}
|
|
680
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
681
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", function () { return input.typeName; }, "{typeName}", false);
|
|
682
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", function () { return input.fieldName; }, "{fieldName}", false);
|
|
980
683
|
return [2, new __HttpRequest({
|
|
981
684
|
protocol: protocol,
|
|
982
685
|
hostname: hostname,
|
|
@@ -990,7 +693,7 @@ export var serializeAws_restJson1GetResolverCommand = function (input, context)
|
|
|
990
693
|
});
|
|
991
694
|
}); };
|
|
992
695
|
export var serializeAws_restJson1GetSchemaCreationStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
993
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
696
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
994
697
|
return __generator(this, function (_c) {
|
|
995
698
|
switch (_c.label) {
|
|
996
699
|
case 0: return [4, context.endpoint()];
|
|
@@ -998,16 +701,7 @@ export var serializeAws_restJson1GetSchemaCreationStatusCommand = function (inpu
|
|
|
998
701
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
999
702
|
headers = {};
|
|
1000
703
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/schemacreation";
|
|
1001
|
-
|
|
1002
|
-
labelValue = input.apiId;
|
|
1003
|
-
if (labelValue.length <= 0) {
|
|
1004
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1005
|
-
}
|
|
1006
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1007
|
-
}
|
|
1008
|
-
else {
|
|
1009
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1010
|
-
}
|
|
704
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1011
705
|
return [2, new __HttpRequest({
|
|
1012
706
|
protocol: protocol,
|
|
1013
707
|
hostname: hostname,
|
|
@@ -1021,7 +715,7 @@ export var serializeAws_restJson1GetSchemaCreationStatusCommand = function (inpu
|
|
|
1021
715
|
});
|
|
1022
716
|
}); };
|
|
1023
717
|
export var serializeAws_restJson1GetTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1024
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
718
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1025
719
|
return __generator(this, function (_c) {
|
|
1026
720
|
switch (_c.label) {
|
|
1027
721
|
case 0: return [4, context.endpoint()];
|
|
@@ -1029,27 +723,11 @@ export var serializeAws_restJson1GetTypeCommand = function (input, context) { re
|
|
|
1029
723
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1030
724
|
headers = {};
|
|
1031
725
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/types/{typeName}";
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1038
|
-
}
|
|
1039
|
-
else {
|
|
1040
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1041
|
-
}
|
|
1042
|
-
if (input.typeName !== undefined) {
|
|
1043
|
-
labelValue = input.typeName;
|
|
1044
|
-
if (labelValue.length <= 0) {
|
|
1045
|
-
throw new Error("Empty value provided for input HTTP label: typeName.");
|
|
1046
|
-
}
|
|
1047
|
-
resolvedPath = resolvedPath.replace("{typeName}", __extendedEncodeURIComponent(labelValue));
|
|
1048
|
-
}
|
|
1049
|
-
else {
|
|
1050
|
-
throw new Error("No value provided for input HTTP label: typeName.");
|
|
1051
|
-
}
|
|
1052
|
-
query = __assign({}, (input.format !== undefined && { format: input.format }));
|
|
726
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
727
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", function () { return input.typeName; }, "{typeName}", false);
|
|
728
|
+
query = map({
|
|
729
|
+
format: [, input.format],
|
|
730
|
+
});
|
|
1053
731
|
return [2, new __HttpRequest({
|
|
1054
732
|
protocol: protocol,
|
|
1055
733
|
hostname: hostname,
|
|
@@ -1064,7 +742,7 @@ export var serializeAws_restJson1GetTypeCommand = function (input, context) { re
|
|
|
1064
742
|
});
|
|
1065
743
|
}); };
|
|
1066
744
|
export var serializeAws_restJson1ListApiKeysCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1067
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
745
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1068
746
|
return __generator(this, function (_c) {
|
|
1069
747
|
switch (_c.label) {
|
|
1070
748
|
case 0: return [4, context.endpoint()];
|
|
@@ -1072,17 +750,11 @@ export var serializeAws_restJson1ListApiKeysCommand = function (input, context)
|
|
|
1072
750
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1073
751
|
headers = {};
|
|
1074
752
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/apikeys";
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1081
|
-
}
|
|
1082
|
-
else {
|
|
1083
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1084
|
-
}
|
|
1085
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
753
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
754
|
+
query = map({
|
|
755
|
+
nextToken: [, input.nextToken],
|
|
756
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
757
|
+
});
|
|
1086
758
|
return [2, new __HttpRequest({
|
|
1087
759
|
protocol: protocol,
|
|
1088
760
|
hostname: hostname,
|
|
@@ -1097,7 +769,7 @@ export var serializeAws_restJson1ListApiKeysCommand = function (input, context)
|
|
|
1097
769
|
});
|
|
1098
770
|
}); };
|
|
1099
771
|
export var serializeAws_restJson1ListDataSourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1100
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
772
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1101
773
|
return __generator(this, function (_c) {
|
|
1102
774
|
switch (_c.label) {
|
|
1103
775
|
case 0: return [4, context.endpoint()];
|
|
@@ -1105,17 +777,11 @@ export var serializeAws_restJson1ListDataSourcesCommand = function (input, conte
|
|
|
1105
777
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1106
778
|
headers = {};
|
|
1107
779
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/datasources";
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1114
|
-
}
|
|
1115
|
-
else {
|
|
1116
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1117
|
-
}
|
|
1118
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
780
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
781
|
+
query = map({
|
|
782
|
+
nextToken: [, input.nextToken],
|
|
783
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
784
|
+
});
|
|
1119
785
|
return [2, new __HttpRequest({
|
|
1120
786
|
protocol: protocol,
|
|
1121
787
|
hostname: hostname,
|
|
@@ -1138,7 +804,10 @@ export var serializeAws_restJson1ListDomainNamesCommand = function (input, conte
|
|
|
1138
804
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1139
805
|
headers = {};
|
|
1140
806
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames";
|
|
1141
|
-
query =
|
|
807
|
+
query = map({
|
|
808
|
+
nextToken: [, input.nextToken],
|
|
809
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
810
|
+
});
|
|
1142
811
|
return [2, new __HttpRequest({
|
|
1143
812
|
protocol: protocol,
|
|
1144
813
|
hostname: hostname,
|
|
@@ -1153,7 +822,7 @@ export var serializeAws_restJson1ListDomainNamesCommand = function (input, conte
|
|
|
1153
822
|
});
|
|
1154
823
|
}); };
|
|
1155
824
|
export var serializeAws_restJson1ListFunctionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1156
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
825
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1157
826
|
return __generator(this, function (_c) {
|
|
1158
827
|
switch (_c.label) {
|
|
1159
828
|
case 0: return [4, context.endpoint()];
|
|
@@ -1161,17 +830,11 @@ export var serializeAws_restJson1ListFunctionsCommand = function (input, context
|
|
|
1161
830
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1162
831
|
headers = {};
|
|
1163
832
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/functions";
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1170
|
-
}
|
|
1171
|
-
else {
|
|
1172
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1173
|
-
}
|
|
1174
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
833
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
834
|
+
query = map({
|
|
835
|
+
nextToken: [, input.nextToken],
|
|
836
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
837
|
+
});
|
|
1175
838
|
return [2, new __HttpRequest({
|
|
1176
839
|
protocol: protocol,
|
|
1177
840
|
hostname: hostname,
|
|
@@ -1194,7 +857,10 @@ export var serializeAws_restJson1ListGraphqlApisCommand = function (input, conte
|
|
|
1194
857
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1195
858
|
headers = {};
|
|
1196
859
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis";
|
|
1197
|
-
query =
|
|
860
|
+
query = map({
|
|
861
|
+
nextToken: [, input.nextToken],
|
|
862
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
863
|
+
});
|
|
1198
864
|
return [2, new __HttpRequest({
|
|
1199
865
|
protocol: protocol,
|
|
1200
866
|
hostname: hostname,
|
|
@@ -1209,7 +875,7 @@ export var serializeAws_restJson1ListGraphqlApisCommand = function (input, conte
|
|
|
1209
875
|
});
|
|
1210
876
|
}); };
|
|
1211
877
|
export var serializeAws_restJson1ListResolversCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1212
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
878
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1213
879
|
return __generator(this, function (_c) {
|
|
1214
880
|
switch (_c.label) {
|
|
1215
881
|
case 0: return [4, context.endpoint()];
|
|
@@ -1218,27 +884,12 @@ export var serializeAws_restJson1ListResolversCommand = function (input, context
|
|
|
1218
884
|
headers = {};
|
|
1219
885
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1220
886
|
"/v1/apis/{apiId}/types/{typeName}/resolvers";
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
}
|
|
1228
|
-
else {
|
|
1229
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1230
|
-
}
|
|
1231
|
-
if (input.typeName !== undefined) {
|
|
1232
|
-
labelValue = input.typeName;
|
|
1233
|
-
if (labelValue.length <= 0) {
|
|
1234
|
-
throw new Error("Empty value provided for input HTTP label: typeName.");
|
|
1235
|
-
}
|
|
1236
|
-
resolvedPath = resolvedPath.replace("{typeName}", __extendedEncodeURIComponent(labelValue));
|
|
1237
|
-
}
|
|
1238
|
-
else {
|
|
1239
|
-
throw new Error("No value provided for input HTTP label: typeName.");
|
|
1240
|
-
}
|
|
1241
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
887
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
888
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", function () { return input.typeName; }, "{typeName}", false);
|
|
889
|
+
query = map({
|
|
890
|
+
nextToken: [, input.nextToken],
|
|
891
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
892
|
+
});
|
|
1242
893
|
return [2, new __HttpRequest({
|
|
1243
894
|
protocol: protocol,
|
|
1244
895
|
hostname: hostname,
|
|
@@ -1253,7 +904,7 @@ export var serializeAws_restJson1ListResolversCommand = function (input, context
|
|
|
1253
904
|
});
|
|
1254
905
|
}); };
|
|
1255
906
|
export var serializeAws_restJson1ListResolversByFunctionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1256
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
907
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1257
908
|
return __generator(this, function (_c) {
|
|
1258
909
|
switch (_c.label) {
|
|
1259
910
|
case 0: return [4, context.endpoint()];
|
|
@@ -1262,27 +913,12 @@ export var serializeAws_restJson1ListResolversByFunctionCommand = function (inpu
|
|
|
1262
913
|
headers = {};
|
|
1263
914
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1264
915
|
"/v1/apis/{apiId}/functions/{functionId}/resolvers";
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
}
|
|
1272
|
-
else {
|
|
1273
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1274
|
-
}
|
|
1275
|
-
if (input.functionId !== undefined) {
|
|
1276
|
-
labelValue = input.functionId;
|
|
1277
|
-
if (labelValue.length <= 0) {
|
|
1278
|
-
throw new Error("Empty value provided for input HTTP label: functionId.");
|
|
1279
|
-
}
|
|
1280
|
-
resolvedPath = resolvedPath.replace("{functionId}", __extendedEncodeURIComponent(labelValue));
|
|
1281
|
-
}
|
|
1282
|
-
else {
|
|
1283
|
-
throw new Error("No value provided for input HTTP label: functionId.");
|
|
1284
|
-
}
|
|
1285
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
916
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
917
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "functionId", function () { return input.functionId; }, "{functionId}", false);
|
|
918
|
+
query = map({
|
|
919
|
+
nextToken: [, input.nextToken],
|
|
920
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
921
|
+
});
|
|
1286
922
|
return [2, new __HttpRequest({
|
|
1287
923
|
protocol: protocol,
|
|
1288
924
|
hostname: hostname,
|
|
@@ -1297,7 +933,7 @@ export var serializeAws_restJson1ListResolversByFunctionCommand = function (inpu
|
|
|
1297
933
|
});
|
|
1298
934
|
}); };
|
|
1299
935
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1300
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
936
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1301
937
|
return __generator(this, function (_c) {
|
|
1302
938
|
switch (_c.label) {
|
|
1303
939
|
case 0: return [4, context.endpoint()];
|
|
@@ -1305,16 +941,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1305
941
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1306
942
|
headers = {};
|
|
1307
943
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{resourceArn}";
|
|
1308
|
-
|
|
1309
|
-
labelValue = input.resourceArn;
|
|
1310
|
-
if (labelValue.length <= 0) {
|
|
1311
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1312
|
-
}
|
|
1313
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1314
|
-
}
|
|
1315
|
-
else {
|
|
1316
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1317
|
-
}
|
|
944
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1318
945
|
return [2, new __HttpRequest({
|
|
1319
946
|
protocol: protocol,
|
|
1320
947
|
hostname: hostname,
|
|
@@ -1328,7 +955,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1328
955
|
});
|
|
1329
956
|
}); };
|
|
1330
957
|
export var serializeAws_restJson1ListTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1331
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
958
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1332
959
|
return __generator(this, function (_c) {
|
|
1333
960
|
switch (_c.label) {
|
|
1334
961
|
case 0: return [4, context.endpoint()];
|
|
@@ -1336,17 +963,12 @@ export var serializeAws_restJson1ListTypesCommand = function (input, context) {
|
|
|
1336
963
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1337
964
|
headers = {};
|
|
1338
965
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/types";
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
}
|
|
1346
|
-
else {
|
|
1347
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1348
|
-
}
|
|
1349
|
-
query = __assign(__assign(__assign({}, (input.format !== undefined && { format: input.format })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
966
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
967
|
+
query = map({
|
|
968
|
+
format: [, input.format],
|
|
969
|
+
nextToken: [, input.nextToken],
|
|
970
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
971
|
+
});
|
|
1350
972
|
return [2, new __HttpRequest({
|
|
1351
973
|
protocol: protocol,
|
|
1352
974
|
hostname: hostname,
|
|
@@ -1361,7 +983,7 @@ export var serializeAws_restJson1ListTypesCommand = function (input, context) {
|
|
|
1361
983
|
});
|
|
1362
984
|
}); };
|
|
1363
985
|
export var serializeAws_restJson1StartSchemaCreationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1364
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
986
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1365
987
|
return __generator(this, function (_c) {
|
|
1366
988
|
switch (_c.label) {
|
|
1367
989
|
case 0: return [4, context.endpoint()];
|
|
@@ -1371,16 +993,7 @@ export var serializeAws_restJson1StartSchemaCreationCommand = function (input, c
|
|
|
1371
993
|
"content-type": "application/json",
|
|
1372
994
|
};
|
|
1373
995
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/schemacreation";
|
|
1374
|
-
|
|
1375
|
-
labelValue = input.apiId;
|
|
1376
|
-
if (labelValue.length <= 0) {
|
|
1377
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1378
|
-
}
|
|
1379
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1380
|
-
}
|
|
1381
|
-
else {
|
|
1382
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1383
|
-
}
|
|
996
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1384
997
|
body = JSON.stringify(__assign({}, (input.definition != null && { definition: context.base64Encoder(input.definition) })));
|
|
1385
998
|
return [2, new __HttpRequest({
|
|
1386
999
|
protocol: protocol,
|
|
@@ -1395,7 +1008,7 @@ export var serializeAws_restJson1StartSchemaCreationCommand = function (input, c
|
|
|
1395
1008
|
});
|
|
1396
1009
|
}); };
|
|
1397
1010
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1398
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1011
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1399
1012
|
return __generator(this, function (_c) {
|
|
1400
1013
|
switch (_c.label) {
|
|
1401
1014
|
case 0: return [4, context.endpoint()];
|
|
@@ -1405,16 +1018,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1405
1018
|
"content-type": "application/json",
|
|
1406
1019
|
};
|
|
1407
1020
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{resourceArn}";
|
|
1408
|
-
|
|
1409
|
-
labelValue = input.resourceArn;
|
|
1410
|
-
if (labelValue.length <= 0) {
|
|
1411
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1412
|
-
}
|
|
1413
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1414
|
-
}
|
|
1415
|
-
else {
|
|
1416
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1417
|
-
}
|
|
1021
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1418
1022
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1419
1023
|
return [2, new __HttpRequest({
|
|
1420
1024
|
protocol: protocol,
|
|
@@ -1429,7 +1033,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1429
1033
|
});
|
|
1430
1034
|
}); };
|
|
1431
1035
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1432
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1036
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1433
1037
|
return __generator(this, function (_c) {
|
|
1434
1038
|
switch (_c.label) {
|
|
1435
1039
|
case 0: return [4, context.endpoint()];
|
|
@@ -1437,17 +1041,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1437
1041
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1438
1042
|
headers = {};
|
|
1439
1043
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{resourceArn}";
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
}
|
|
1445
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1446
|
-
}
|
|
1447
|
-
else {
|
|
1448
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1449
|
-
}
|
|
1450
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
1044
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1045
|
+
query = map({
|
|
1046
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
1047
|
+
});
|
|
1451
1048
|
return [2, new __HttpRequest({
|
|
1452
1049
|
protocol: protocol,
|
|
1453
1050
|
hostname: hostname,
|
|
@@ -1462,7 +1059,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1462
1059
|
});
|
|
1463
1060
|
}); };
|
|
1464
1061
|
export var serializeAws_restJson1UpdateApiCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1465
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1062
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1466
1063
|
return __generator(this, function (_c) {
|
|
1467
1064
|
switch (_c.label) {
|
|
1468
1065
|
case 0: return [4, context.endpoint()];
|
|
@@ -1472,16 +1069,7 @@ export var serializeAws_restJson1UpdateApiCacheCommand = function (input, contex
|
|
|
1472
1069
|
"content-type": "application/json",
|
|
1473
1070
|
};
|
|
1474
1071
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/ApiCaches/update";
|
|
1475
|
-
|
|
1476
|
-
labelValue = input.apiId;
|
|
1477
|
-
if (labelValue.length <= 0) {
|
|
1478
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1479
|
-
}
|
|
1480
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1481
|
-
}
|
|
1482
|
-
else {
|
|
1483
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1484
|
-
}
|
|
1072
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1485
1073
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.apiCachingBehavior != null && { apiCachingBehavior: input.apiCachingBehavior })), (input.ttl != null && { ttl: input.ttl })), (input.type != null && { type: input.type })));
|
|
1486
1074
|
return [2, new __HttpRequest({
|
|
1487
1075
|
protocol: protocol,
|
|
@@ -1496,7 +1084,7 @@ export var serializeAws_restJson1UpdateApiCacheCommand = function (input, contex
|
|
|
1496
1084
|
});
|
|
1497
1085
|
}); };
|
|
1498
1086
|
export var serializeAws_restJson1UpdateApiKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1499
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1087
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1500
1088
|
return __generator(this, function (_c) {
|
|
1501
1089
|
switch (_c.label) {
|
|
1502
1090
|
case 0: return [4, context.endpoint()];
|
|
@@ -1506,26 +1094,8 @@ export var serializeAws_restJson1UpdateApiKeyCommand = function (input, context)
|
|
|
1506
1094
|
"content-type": "application/json",
|
|
1507
1095
|
};
|
|
1508
1096
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/apikeys/{id}";
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
if (labelValue.length <= 0) {
|
|
1512
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1513
|
-
}
|
|
1514
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1515
|
-
}
|
|
1516
|
-
else {
|
|
1517
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1518
|
-
}
|
|
1519
|
-
if (input.id !== undefined) {
|
|
1520
|
-
labelValue = input.id;
|
|
1521
|
-
if (labelValue.length <= 0) {
|
|
1522
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
1523
|
-
}
|
|
1524
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
1525
|
-
}
|
|
1526
|
-
else {
|
|
1527
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
1528
|
-
}
|
|
1097
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1098
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
1529
1099
|
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.expires != null && { expires: input.expires })));
|
|
1530
1100
|
return [2, new __HttpRequest({
|
|
1531
1101
|
protocol: protocol,
|
|
@@ -1540,7 +1110,7 @@ export var serializeAws_restJson1UpdateApiKeyCommand = function (input, context)
|
|
|
1540
1110
|
});
|
|
1541
1111
|
}); };
|
|
1542
1112
|
export var serializeAws_restJson1UpdateDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1543
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1113
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1544
1114
|
return __generator(this, function (_c) {
|
|
1545
1115
|
switch (_c.label) {
|
|
1546
1116
|
case 0: return [4, context.endpoint()];
|
|
@@ -1550,26 +1120,8 @@ export var serializeAws_restJson1UpdateDataSourceCommand = function (input, cont
|
|
|
1550
1120
|
"content-type": "application/json",
|
|
1551
1121
|
};
|
|
1552
1122
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/datasources/{name}";
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
if (labelValue.length <= 0) {
|
|
1556
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1557
|
-
}
|
|
1558
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1559
|
-
}
|
|
1560
|
-
else {
|
|
1561
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1562
|
-
}
|
|
1563
|
-
if (input.name !== undefined) {
|
|
1564
|
-
labelValue = input.name;
|
|
1565
|
-
if (labelValue.length <= 0) {
|
|
1566
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
1567
|
-
}
|
|
1568
|
-
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
1569
|
-
}
|
|
1570
|
-
else {
|
|
1571
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
1572
|
-
}
|
|
1123
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1124
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
1573
1125
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.dynamodbConfig != null && {
|
|
1574
1126
|
dynamodbConfig: serializeAws_restJson1DynamodbDataSourceConfig(input.dynamodbConfig, context),
|
|
1575
1127
|
})), (input.elasticsearchConfig != null && {
|
|
@@ -1596,7 +1148,7 @@ export var serializeAws_restJson1UpdateDataSourceCommand = function (input, cont
|
|
|
1596
1148
|
});
|
|
1597
1149
|
}); };
|
|
1598
1150
|
export var serializeAws_restJson1UpdateDomainNameCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1599
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1151
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1600
1152
|
return __generator(this, function (_c) {
|
|
1601
1153
|
switch (_c.label) {
|
|
1602
1154
|
case 0: return [4, context.endpoint()];
|
|
@@ -1606,16 +1158,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
|
|
|
1606
1158
|
"content-type": "application/json",
|
|
1607
1159
|
};
|
|
1608
1160
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
|
|
1609
|
-
|
|
1610
|
-
labelValue = input.domainName;
|
|
1611
|
-
if (labelValue.length <= 0) {
|
|
1612
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
1613
|
-
}
|
|
1614
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
1615
|
-
}
|
|
1616
|
-
else {
|
|
1617
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
1618
|
-
}
|
|
1161
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
1619
1162
|
body = JSON.stringify(__assign({}, (input.description != null && { description: input.description })));
|
|
1620
1163
|
return [2, new __HttpRequest({
|
|
1621
1164
|
protocol: protocol,
|
|
@@ -1630,7 +1173,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
|
|
|
1630
1173
|
});
|
|
1631
1174
|
}); };
|
|
1632
1175
|
export var serializeAws_restJson1UpdateFunctionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1633
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1176
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1634
1177
|
return __generator(this, function (_c) {
|
|
1635
1178
|
switch (_c.label) {
|
|
1636
1179
|
case 0: return [4, context.endpoint()];
|
|
@@ -1640,26 +1183,8 @@ export var serializeAws_restJson1UpdateFunctionCommand = function (input, contex
|
|
|
1640
1183
|
"content-type": "application/json",
|
|
1641
1184
|
};
|
|
1642
1185
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/functions/{functionId}";
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
if (labelValue.length <= 0) {
|
|
1646
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1647
|
-
}
|
|
1648
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1649
|
-
}
|
|
1650
|
-
else {
|
|
1651
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1652
|
-
}
|
|
1653
|
-
if (input.functionId !== undefined) {
|
|
1654
|
-
labelValue = input.functionId;
|
|
1655
|
-
if (labelValue.length <= 0) {
|
|
1656
|
-
throw new Error("Empty value provided for input HTTP label: functionId.");
|
|
1657
|
-
}
|
|
1658
|
-
resolvedPath = resolvedPath.replace("{functionId}", __extendedEncodeURIComponent(labelValue));
|
|
1659
|
-
}
|
|
1660
|
-
else {
|
|
1661
|
-
throw new Error("No value provided for input HTTP label: functionId.");
|
|
1662
|
-
}
|
|
1186
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1187
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "functionId", function () { return input.functionId; }, "{functionId}", false);
|
|
1663
1188
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataSourceName != null && { dataSourceName: input.dataSourceName })), (input.description != null && { description: input.description })), (input.functionVersion != null && { functionVersion: input.functionVersion })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.name != null && { name: input.name })), (input.requestMappingTemplate != null && { requestMappingTemplate: input.requestMappingTemplate })), (input.responseMappingTemplate != null && { responseMappingTemplate: input.responseMappingTemplate })), (input.syncConfig != null && { syncConfig: serializeAws_restJson1SyncConfig(input.syncConfig, context) })));
|
|
1664
1189
|
return [2, new __HttpRequest({
|
|
1665
1190
|
protocol: protocol,
|
|
@@ -1674,7 +1199,7 @@ export var serializeAws_restJson1UpdateFunctionCommand = function (input, contex
|
|
|
1674
1199
|
});
|
|
1675
1200
|
}); };
|
|
1676
1201
|
export var serializeAws_restJson1UpdateGraphqlApiCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1202
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1678
1203
|
return __generator(this, function (_c) {
|
|
1679
1204
|
switch (_c.label) {
|
|
1680
1205
|
case 0: return [4, context.endpoint()];
|
|
@@ -1684,16 +1209,7 @@ export var serializeAws_restJson1UpdateGraphqlApiCommand = function (input, cont
|
|
|
1684
1209
|
"content-type": "application/json",
|
|
1685
1210
|
};
|
|
1686
1211
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}";
|
|
1687
|
-
|
|
1688
|
-
labelValue = input.apiId;
|
|
1689
|
-
if (labelValue.length <= 0) {
|
|
1690
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1691
|
-
}
|
|
1692
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1693
|
-
}
|
|
1694
|
-
else {
|
|
1695
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1696
|
-
}
|
|
1212
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1697
1213
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalAuthenticationProviders != null && {
|
|
1698
1214
|
additionalAuthenticationProviders: serializeAws_restJson1AdditionalAuthenticationProviders(input.additionalAuthenticationProviders, context),
|
|
1699
1215
|
})), (input.authenticationType != null && { authenticationType: input.authenticationType })), (input.lambdaAuthorizerConfig != null && {
|
|
@@ -1716,7 +1232,7 @@ export var serializeAws_restJson1UpdateGraphqlApiCommand = function (input, cont
|
|
|
1716
1232
|
});
|
|
1717
1233
|
}); };
|
|
1718
1234
|
export var serializeAws_restJson1UpdateResolverCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1719
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1235
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1720
1236
|
return __generator(this, function (_c) {
|
|
1721
1237
|
switch (_c.label) {
|
|
1722
1238
|
case 0: return [4, context.endpoint()];
|
|
@@ -1727,36 +1243,9 @@ export var serializeAws_restJson1UpdateResolverCommand = function (input, contex
|
|
|
1727
1243
|
};
|
|
1728
1244
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1729
1245
|
"/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1734
|
-
}
|
|
1735
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1736
|
-
}
|
|
1737
|
-
else {
|
|
1738
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1739
|
-
}
|
|
1740
|
-
if (input.typeName !== undefined) {
|
|
1741
|
-
labelValue = input.typeName;
|
|
1742
|
-
if (labelValue.length <= 0) {
|
|
1743
|
-
throw new Error("Empty value provided for input HTTP label: typeName.");
|
|
1744
|
-
}
|
|
1745
|
-
resolvedPath = resolvedPath.replace("{typeName}", __extendedEncodeURIComponent(labelValue));
|
|
1746
|
-
}
|
|
1747
|
-
else {
|
|
1748
|
-
throw new Error("No value provided for input HTTP label: typeName.");
|
|
1749
|
-
}
|
|
1750
|
-
if (input.fieldName !== undefined) {
|
|
1751
|
-
labelValue = input.fieldName;
|
|
1752
|
-
if (labelValue.length <= 0) {
|
|
1753
|
-
throw new Error("Empty value provided for input HTTP label: fieldName.");
|
|
1754
|
-
}
|
|
1755
|
-
resolvedPath = resolvedPath.replace("{fieldName}", __extendedEncodeURIComponent(labelValue));
|
|
1756
|
-
}
|
|
1757
|
-
else {
|
|
1758
|
-
throw new Error("No value provided for input HTTP label: fieldName.");
|
|
1759
|
-
}
|
|
1246
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1247
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", function () { return input.typeName; }, "{typeName}", false);
|
|
1248
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", function () { return input.fieldName; }, "{fieldName}", false);
|
|
1760
1249
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cachingConfig != null && {
|
|
1761
1250
|
cachingConfig: serializeAws_restJson1CachingConfig(input.cachingConfig, context),
|
|
1762
1251
|
})), (input.dataSourceName != null && { dataSourceName: input.dataSourceName })), (input.kind != null && { kind: input.kind })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.pipelineConfig != null && {
|
|
@@ -1775,7 +1264,7 @@ export var serializeAws_restJson1UpdateResolverCommand = function (input, contex
|
|
|
1775
1264
|
});
|
|
1776
1265
|
}); };
|
|
1777
1266
|
export var serializeAws_restJson1UpdateTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1778
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1267
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1779
1268
|
return __generator(this, function (_c) {
|
|
1780
1269
|
switch (_c.label) {
|
|
1781
1270
|
case 0: return [4, context.endpoint()];
|
|
@@ -1785,26 +1274,8 @@ export var serializeAws_restJson1UpdateTypeCommand = function (input, context) {
|
|
|
1785
1274
|
"content-type": "application/json",
|
|
1786
1275
|
};
|
|
1787
1276
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/apis/{apiId}/types/{typeName}";
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
if (labelValue.length <= 0) {
|
|
1791
|
-
throw new Error("Empty value provided for input HTTP label: apiId.");
|
|
1792
|
-
}
|
|
1793
|
-
resolvedPath = resolvedPath.replace("{apiId}", __extendedEncodeURIComponent(labelValue));
|
|
1794
|
-
}
|
|
1795
|
-
else {
|
|
1796
|
-
throw new Error("No value provided for input HTTP label: apiId.");
|
|
1797
|
-
}
|
|
1798
|
-
if (input.typeName !== undefined) {
|
|
1799
|
-
labelValue = input.typeName;
|
|
1800
|
-
if (labelValue.length <= 0) {
|
|
1801
|
-
throw new Error("Empty value provided for input HTTP label: typeName.");
|
|
1802
|
-
}
|
|
1803
|
-
resolvedPath = resolvedPath.replace("{typeName}", __extendedEncodeURIComponent(labelValue));
|
|
1804
|
-
}
|
|
1805
|
-
else {
|
|
1806
|
-
throw new Error("No value provided for input HTTP label: typeName.");
|
|
1807
|
-
}
|
|
1277
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", function () { return input.apiId; }, "{apiId}", false);
|
|
1278
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", function () { return input.typeName; }, "{typeName}", false);
|
|
1808
1279
|
body = JSON.stringify(__assign(__assign({}, (input.definition != null && { definition: input.definition })), (input.format != null && { format: input.format })));
|
|
1809
1280
|
return [2, new __HttpRequest({
|
|
1810
1281
|
protocol: protocol,
|
|
@@ -1826,24 +1297,23 @@ export var deserializeAws_restJson1AssociateApiCommand = function (output, conte
|
|
|
1826
1297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1827
1298
|
return [2, deserializeAws_restJson1AssociateApiCommandError(output, context)];
|
|
1828
1299
|
}
|
|
1829
|
-
contents = {
|
|
1300
|
+
contents = map({
|
|
1830
1301
|
$metadata: deserializeMetadata(output),
|
|
1831
|
-
|
|
1832
|
-
};
|
|
1302
|
+
});
|
|
1833
1303
|
_a = __expectNonNull;
|
|
1834
1304
|
_b = __expectObject;
|
|
1835
1305
|
return [4, parseBody(output.body, context)];
|
|
1836
1306
|
case 1:
|
|
1837
1307
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1838
|
-
if (data.apiAssociation
|
|
1308
|
+
if (data.apiAssociation != null) {
|
|
1839
1309
|
contents.apiAssociation = deserializeAws_restJson1ApiAssociation(data.apiAssociation, context);
|
|
1840
1310
|
}
|
|
1841
|
-
return [2,
|
|
1311
|
+
return [2, contents];
|
|
1842
1312
|
}
|
|
1843
1313
|
});
|
|
1844
1314
|
}); };
|
|
1845
1315
|
var deserializeAws_restJson1AssociateApiCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1846
|
-
var parsedOutput, _a,
|
|
1316
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1847
1317
|
var _c;
|
|
1848
1318
|
return __generator(this, function (_d) {
|
|
1849
1319
|
switch (_d.label) {
|
|
@@ -1876,14 +1346,14 @@ var deserializeAws_restJson1AssociateApiCommandError = function (output, context
|
|
|
1876
1346
|
case 9: throw _d.sent();
|
|
1877
1347
|
case 10:
|
|
1878
1348
|
parsedBody = parsedOutput.body;
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
$metadata: $metadata,
|
|
1349
|
+
throwDefaultError({
|
|
1350
|
+
output: output,
|
|
1351
|
+
parsedBody: parsedBody,
|
|
1352
|
+
exceptionCtor: __BaseException,
|
|
1353
|
+
errorCode: errorCode,
|
|
1885
1354
|
});
|
|
1886
|
-
|
|
1355
|
+
_d.label = 11;
|
|
1356
|
+
case 11: return [2];
|
|
1887
1357
|
}
|
|
1888
1358
|
});
|
|
1889
1359
|
}); };
|
|
@@ -1895,24 +1365,23 @@ export var deserializeAws_restJson1CreateApiCacheCommand = function (output, con
|
|
|
1895
1365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
1366
|
return [2, deserializeAws_restJson1CreateApiCacheCommandError(output, context)];
|
|
1897
1367
|
}
|
|
1898
|
-
contents = {
|
|
1368
|
+
contents = map({
|
|
1899
1369
|
$metadata: deserializeMetadata(output),
|
|
1900
|
-
|
|
1901
|
-
};
|
|
1370
|
+
});
|
|
1902
1371
|
_a = __expectNonNull;
|
|
1903
1372
|
_b = __expectObject;
|
|
1904
1373
|
return [4, parseBody(output.body, context)];
|
|
1905
1374
|
case 1:
|
|
1906
1375
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1907
|
-
if (data.apiCache
|
|
1376
|
+
if (data.apiCache != null) {
|
|
1908
1377
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
1909
1378
|
}
|
|
1910
|
-
return [2,
|
|
1379
|
+
return [2, contents];
|
|
1911
1380
|
}
|
|
1912
1381
|
});
|
|
1913
1382
|
}); };
|
|
1914
1383
|
var deserializeAws_restJson1CreateApiCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1915
|
-
var parsedOutput, _a,
|
|
1384
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1916
1385
|
var _c;
|
|
1917
1386
|
return __generator(this, function (_d) {
|
|
1918
1387
|
switch (_d.label) {
|
|
@@ -1949,14 +1418,14 @@ var deserializeAws_restJson1CreateApiCacheCommandError = function (output, conte
|
|
|
1949
1418
|
case 11: throw _d.sent();
|
|
1950
1419
|
case 12:
|
|
1951
1420
|
parsedBody = parsedOutput.body;
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
$metadata: $metadata,
|
|
1421
|
+
throwDefaultError({
|
|
1422
|
+
output: output,
|
|
1423
|
+
parsedBody: parsedBody,
|
|
1424
|
+
exceptionCtor: __BaseException,
|
|
1425
|
+
errorCode: errorCode,
|
|
1958
1426
|
});
|
|
1959
|
-
|
|
1427
|
+
_d.label = 13;
|
|
1428
|
+
case 13: return [2];
|
|
1960
1429
|
}
|
|
1961
1430
|
});
|
|
1962
1431
|
}); };
|
|
@@ -1968,24 +1437,23 @@ export var deserializeAws_restJson1CreateApiKeyCommand = function (output, conte
|
|
|
1968
1437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1969
1438
|
return [2, deserializeAws_restJson1CreateApiKeyCommandError(output, context)];
|
|
1970
1439
|
}
|
|
1971
|
-
contents = {
|
|
1440
|
+
contents = map({
|
|
1972
1441
|
$metadata: deserializeMetadata(output),
|
|
1973
|
-
|
|
1974
|
-
};
|
|
1442
|
+
});
|
|
1975
1443
|
_a = __expectNonNull;
|
|
1976
1444
|
_b = __expectObject;
|
|
1977
1445
|
return [4, parseBody(output.body, context)];
|
|
1978
1446
|
case 1:
|
|
1979
1447
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1980
|
-
if (data.apiKey
|
|
1448
|
+
if (data.apiKey != null) {
|
|
1981
1449
|
contents.apiKey = deserializeAws_restJson1ApiKey(data.apiKey, context);
|
|
1982
1450
|
}
|
|
1983
|
-
return [2,
|
|
1451
|
+
return [2, contents];
|
|
1984
1452
|
}
|
|
1985
1453
|
});
|
|
1986
1454
|
}); };
|
|
1987
1455
|
var deserializeAws_restJson1CreateApiKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1988
|
-
var parsedOutput, _a,
|
|
1456
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1989
1457
|
var _c;
|
|
1990
1458
|
return __generator(this, function (_d) {
|
|
1991
1459
|
switch (_d.label) {
|
|
@@ -2030,14 +1498,14 @@ var deserializeAws_restJson1CreateApiKeyCommandError = function (output, context
|
|
|
2030
1498
|
case 15: throw _d.sent();
|
|
2031
1499
|
case 16:
|
|
2032
1500
|
parsedBody = parsedOutput.body;
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
$metadata: $metadata,
|
|
1501
|
+
throwDefaultError({
|
|
1502
|
+
output: output,
|
|
1503
|
+
parsedBody: parsedBody,
|
|
1504
|
+
exceptionCtor: __BaseException,
|
|
1505
|
+
errorCode: errorCode,
|
|
2039
1506
|
});
|
|
2040
|
-
|
|
1507
|
+
_d.label = 17;
|
|
1508
|
+
case 17: return [2];
|
|
2041
1509
|
}
|
|
2042
1510
|
});
|
|
2043
1511
|
}); };
|
|
@@ -2049,24 +1517,23 @@ export var deserializeAws_restJson1CreateDataSourceCommand = function (output, c
|
|
|
2049
1517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2050
1518
|
return [2, deserializeAws_restJson1CreateDataSourceCommandError(output, context)];
|
|
2051
1519
|
}
|
|
2052
|
-
contents = {
|
|
1520
|
+
contents = map({
|
|
2053
1521
|
$metadata: deserializeMetadata(output),
|
|
2054
|
-
|
|
2055
|
-
};
|
|
1522
|
+
});
|
|
2056
1523
|
_a = __expectNonNull;
|
|
2057
1524
|
_b = __expectObject;
|
|
2058
1525
|
return [4, parseBody(output.body, context)];
|
|
2059
1526
|
case 1:
|
|
2060
1527
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2061
|
-
if (data.dataSource
|
|
1528
|
+
if (data.dataSource != null) {
|
|
2062
1529
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
2063
1530
|
}
|
|
2064
|
-
return [2,
|
|
1531
|
+
return [2, contents];
|
|
2065
1532
|
}
|
|
2066
1533
|
});
|
|
2067
1534
|
}); };
|
|
2068
1535
|
var deserializeAws_restJson1CreateDataSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2069
|
-
var parsedOutput, _a,
|
|
1536
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2070
1537
|
var _c;
|
|
2071
1538
|
return __generator(this, function (_d) {
|
|
2072
1539
|
switch (_d.label) {
|
|
@@ -2103,14 +1570,14 @@ var deserializeAws_restJson1CreateDataSourceCommandError = function (output, con
|
|
|
2103
1570
|
case 11: throw _d.sent();
|
|
2104
1571
|
case 12:
|
|
2105
1572
|
parsedBody = parsedOutput.body;
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
$metadata: $metadata,
|
|
1573
|
+
throwDefaultError({
|
|
1574
|
+
output: output,
|
|
1575
|
+
parsedBody: parsedBody,
|
|
1576
|
+
exceptionCtor: __BaseException,
|
|
1577
|
+
errorCode: errorCode,
|
|
2112
1578
|
});
|
|
2113
|
-
|
|
1579
|
+
_d.label = 13;
|
|
1580
|
+
case 13: return [2];
|
|
2114
1581
|
}
|
|
2115
1582
|
});
|
|
2116
1583
|
}); };
|
|
@@ -2122,24 +1589,23 @@ export var deserializeAws_restJson1CreateDomainNameCommand = function (output, c
|
|
|
2122
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2123
1590
|
return [2, deserializeAws_restJson1CreateDomainNameCommandError(output, context)];
|
|
2124
1591
|
}
|
|
2125
|
-
contents = {
|
|
1592
|
+
contents = map({
|
|
2126
1593
|
$metadata: deserializeMetadata(output),
|
|
2127
|
-
|
|
2128
|
-
};
|
|
1594
|
+
});
|
|
2129
1595
|
_a = __expectNonNull;
|
|
2130
1596
|
_b = __expectObject;
|
|
2131
1597
|
return [4, parseBody(output.body, context)];
|
|
2132
1598
|
case 1:
|
|
2133
1599
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2134
|
-
if (data.domainNameConfig
|
|
1600
|
+
if (data.domainNameConfig != null) {
|
|
2135
1601
|
contents.domainNameConfig = deserializeAws_restJson1DomainNameConfig(data.domainNameConfig, context);
|
|
2136
1602
|
}
|
|
2137
|
-
return [2,
|
|
1603
|
+
return [2, contents];
|
|
2138
1604
|
}
|
|
2139
1605
|
});
|
|
2140
1606
|
}); };
|
|
2141
1607
|
var deserializeAws_restJson1CreateDomainNameCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2142
|
-
var parsedOutput, _a,
|
|
1608
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2143
1609
|
var _c;
|
|
2144
1610
|
return __generator(this, function (_d) {
|
|
2145
1611
|
switch (_d.label) {
|
|
@@ -2168,14 +1634,14 @@ var deserializeAws_restJson1CreateDomainNameCommandError = function (output, con
|
|
|
2168
1634
|
case 7: throw _d.sent();
|
|
2169
1635
|
case 8:
|
|
2170
1636
|
parsedBody = parsedOutput.body;
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
$metadata: $metadata,
|
|
1637
|
+
throwDefaultError({
|
|
1638
|
+
output: output,
|
|
1639
|
+
parsedBody: parsedBody,
|
|
1640
|
+
exceptionCtor: __BaseException,
|
|
1641
|
+
errorCode: errorCode,
|
|
2177
1642
|
});
|
|
2178
|
-
|
|
1643
|
+
_d.label = 9;
|
|
1644
|
+
case 9: return [2];
|
|
2179
1645
|
}
|
|
2180
1646
|
});
|
|
2181
1647
|
}); };
|
|
@@ -2187,24 +1653,23 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
|
|
|
2187
1653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2188
1654
|
return [2, deserializeAws_restJson1CreateFunctionCommandError(output, context)];
|
|
2189
1655
|
}
|
|
2190
|
-
contents = {
|
|
1656
|
+
contents = map({
|
|
2191
1657
|
$metadata: deserializeMetadata(output),
|
|
2192
|
-
|
|
2193
|
-
};
|
|
1658
|
+
});
|
|
2194
1659
|
_a = __expectNonNull;
|
|
2195
1660
|
_b = __expectObject;
|
|
2196
1661
|
return [4, parseBody(output.body, context)];
|
|
2197
1662
|
case 1:
|
|
2198
1663
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2199
|
-
if (data.functionConfiguration
|
|
1664
|
+
if (data.functionConfiguration != null) {
|
|
2200
1665
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
2201
1666
|
}
|
|
2202
|
-
return [2,
|
|
1667
|
+
return [2, contents];
|
|
2203
1668
|
}
|
|
2204
1669
|
});
|
|
2205
1670
|
}); };
|
|
2206
1671
|
var deserializeAws_restJson1CreateFunctionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2207
|
-
var parsedOutput, _a,
|
|
1672
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2208
1673
|
var _c;
|
|
2209
1674
|
return __generator(this, function (_d) {
|
|
2210
1675
|
switch (_d.label) {
|
|
@@ -2237,14 +1702,14 @@ var deserializeAws_restJson1CreateFunctionCommandError = function (output, conte
|
|
|
2237
1702
|
case 9: throw _d.sent();
|
|
2238
1703
|
case 10:
|
|
2239
1704
|
parsedBody = parsedOutput.body;
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
$metadata: $metadata,
|
|
1705
|
+
throwDefaultError({
|
|
1706
|
+
output: output,
|
|
1707
|
+
parsedBody: parsedBody,
|
|
1708
|
+
exceptionCtor: __BaseException,
|
|
1709
|
+
errorCode: errorCode,
|
|
2246
1710
|
});
|
|
2247
|
-
|
|
1711
|
+
_d.label = 11;
|
|
1712
|
+
case 11: return [2];
|
|
2248
1713
|
}
|
|
2249
1714
|
});
|
|
2250
1715
|
}); };
|
|
@@ -2256,24 +1721,23 @@ export var deserializeAws_restJson1CreateGraphqlApiCommand = function (output, c
|
|
|
2256
1721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2257
1722
|
return [2, deserializeAws_restJson1CreateGraphqlApiCommandError(output, context)];
|
|
2258
1723
|
}
|
|
2259
|
-
contents = {
|
|
1724
|
+
contents = map({
|
|
2260
1725
|
$metadata: deserializeMetadata(output),
|
|
2261
|
-
|
|
2262
|
-
};
|
|
1726
|
+
});
|
|
2263
1727
|
_a = __expectNonNull;
|
|
2264
1728
|
_b = __expectObject;
|
|
2265
1729
|
return [4, parseBody(output.body, context)];
|
|
2266
1730
|
case 1:
|
|
2267
1731
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2268
|
-
if (data.graphqlApi
|
|
1732
|
+
if (data.graphqlApi != null) {
|
|
2269
1733
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
2270
1734
|
}
|
|
2271
|
-
return [2,
|
|
1735
|
+
return [2, contents];
|
|
2272
1736
|
}
|
|
2273
1737
|
});
|
|
2274
1738
|
}); };
|
|
2275
1739
|
var deserializeAws_restJson1CreateGraphqlApiCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2276
|
-
var parsedOutput, _a,
|
|
1740
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2277
1741
|
var _c;
|
|
2278
1742
|
return __generator(this, function (_d) {
|
|
2279
1743
|
switch (_d.label) {
|
|
@@ -2314,14 +1778,14 @@ var deserializeAws_restJson1CreateGraphqlApiCommandError = function (output, con
|
|
|
2314
1778
|
case 13: throw _d.sent();
|
|
2315
1779
|
case 14:
|
|
2316
1780
|
parsedBody = parsedOutput.body;
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
$metadata: $metadata,
|
|
1781
|
+
throwDefaultError({
|
|
1782
|
+
output: output,
|
|
1783
|
+
parsedBody: parsedBody,
|
|
1784
|
+
exceptionCtor: __BaseException,
|
|
1785
|
+
errorCode: errorCode,
|
|
2323
1786
|
});
|
|
2324
|
-
|
|
1787
|
+
_d.label = 15;
|
|
1788
|
+
case 15: return [2];
|
|
2325
1789
|
}
|
|
2326
1790
|
});
|
|
2327
1791
|
}); };
|
|
@@ -2333,24 +1797,23 @@ export var deserializeAws_restJson1CreateResolverCommand = function (output, con
|
|
|
2333
1797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2334
1798
|
return [2, deserializeAws_restJson1CreateResolverCommandError(output, context)];
|
|
2335
1799
|
}
|
|
2336
|
-
contents = {
|
|
1800
|
+
contents = map({
|
|
2337
1801
|
$metadata: deserializeMetadata(output),
|
|
2338
|
-
|
|
2339
|
-
};
|
|
1802
|
+
});
|
|
2340
1803
|
_a = __expectNonNull;
|
|
2341
1804
|
_b = __expectObject;
|
|
2342
1805
|
return [4, parseBody(output.body, context)];
|
|
2343
1806
|
case 1:
|
|
2344
1807
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2345
|
-
if (data.resolver
|
|
1808
|
+
if (data.resolver != null) {
|
|
2346
1809
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
2347
1810
|
}
|
|
2348
|
-
return [2,
|
|
1811
|
+
return [2, contents];
|
|
2349
1812
|
}
|
|
2350
1813
|
});
|
|
2351
1814
|
}); };
|
|
2352
1815
|
var deserializeAws_restJson1CreateResolverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2353
|
-
var parsedOutput, _a,
|
|
1816
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2354
1817
|
var _c;
|
|
2355
1818
|
return __generator(this, function (_d) {
|
|
2356
1819
|
switch (_d.label) {
|
|
@@ -2383,14 +1846,14 @@ var deserializeAws_restJson1CreateResolverCommandError = function (output, conte
|
|
|
2383
1846
|
case 9: throw _d.sent();
|
|
2384
1847
|
case 10:
|
|
2385
1848
|
parsedBody = parsedOutput.body;
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
$metadata: $metadata,
|
|
1849
|
+
throwDefaultError({
|
|
1850
|
+
output: output,
|
|
1851
|
+
parsedBody: parsedBody,
|
|
1852
|
+
exceptionCtor: __BaseException,
|
|
1853
|
+
errorCode: errorCode,
|
|
2392
1854
|
});
|
|
2393
|
-
|
|
1855
|
+
_d.label = 11;
|
|
1856
|
+
case 11: return [2];
|
|
2394
1857
|
}
|
|
2395
1858
|
});
|
|
2396
1859
|
}); };
|
|
@@ -2402,24 +1865,23 @@ export var deserializeAws_restJson1CreateTypeCommand = function (output, context
|
|
|
2402
1865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2403
1866
|
return [2, deserializeAws_restJson1CreateTypeCommandError(output, context)];
|
|
2404
1867
|
}
|
|
2405
|
-
contents = {
|
|
1868
|
+
contents = map({
|
|
2406
1869
|
$metadata: deserializeMetadata(output),
|
|
2407
|
-
|
|
2408
|
-
};
|
|
1870
|
+
});
|
|
2409
1871
|
_a = __expectNonNull;
|
|
2410
1872
|
_b = __expectObject;
|
|
2411
1873
|
return [4, parseBody(output.body, context)];
|
|
2412
1874
|
case 1:
|
|
2413
1875
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2414
|
-
if (data.type
|
|
1876
|
+
if (data.type != null) {
|
|
2415
1877
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
2416
1878
|
}
|
|
2417
|
-
return [2,
|
|
1879
|
+
return [2, contents];
|
|
2418
1880
|
}
|
|
2419
1881
|
});
|
|
2420
1882
|
}); };
|
|
2421
1883
|
var deserializeAws_restJson1CreateTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2422
|
-
var parsedOutput, _a,
|
|
1884
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2423
1885
|
var _c;
|
|
2424
1886
|
return __generator(this, function (_d) {
|
|
2425
1887
|
switch (_d.label) {
|
|
@@ -2456,14 +1918,14 @@ var deserializeAws_restJson1CreateTypeCommandError = function (output, context)
|
|
|
2456
1918
|
case 11: throw _d.sent();
|
|
2457
1919
|
case 12:
|
|
2458
1920
|
parsedBody = parsedOutput.body;
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
$metadata: $metadata,
|
|
1921
|
+
throwDefaultError({
|
|
1922
|
+
output: output,
|
|
1923
|
+
parsedBody: parsedBody,
|
|
1924
|
+
exceptionCtor: __BaseException,
|
|
1925
|
+
errorCode: errorCode,
|
|
2465
1926
|
});
|
|
2466
|
-
|
|
1927
|
+
_d.label = 13;
|
|
1928
|
+
case 13: return [2];
|
|
2467
1929
|
}
|
|
2468
1930
|
});
|
|
2469
1931
|
}); };
|
|
@@ -2475,18 +1937,18 @@ export var deserializeAws_restJson1DeleteApiCacheCommand = function (output, con
|
|
|
2475
1937
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2476
1938
|
return [2, deserializeAws_restJson1DeleteApiCacheCommandError(output, context)];
|
|
2477
1939
|
}
|
|
2478
|
-
contents = {
|
|
1940
|
+
contents = map({
|
|
2479
1941
|
$metadata: deserializeMetadata(output),
|
|
2480
|
-
};
|
|
1942
|
+
});
|
|
2481
1943
|
return [4, collectBody(output.body, context)];
|
|
2482
1944
|
case 1:
|
|
2483
1945
|
_a.sent();
|
|
2484
|
-
return [2,
|
|
1946
|
+
return [2, contents];
|
|
2485
1947
|
}
|
|
2486
1948
|
});
|
|
2487
1949
|
}); };
|
|
2488
1950
|
var deserializeAws_restJson1DeleteApiCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2489
|
-
var parsedOutput, _a,
|
|
1951
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2490
1952
|
var _c;
|
|
2491
1953
|
return __generator(this, function (_d) {
|
|
2492
1954
|
switch (_d.label) {
|
|
@@ -2523,14 +1985,14 @@ var deserializeAws_restJson1DeleteApiCacheCommandError = function (output, conte
|
|
|
2523
1985
|
case 11: throw _d.sent();
|
|
2524
1986
|
case 12:
|
|
2525
1987
|
parsedBody = parsedOutput.body;
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
$metadata: $metadata,
|
|
1988
|
+
throwDefaultError({
|
|
1989
|
+
output: output,
|
|
1990
|
+
parsedBody: parsedBody,
|
|
1991
|
+
exceptionCtor: __BaseException,
|
|
1992
|
+
errorCode: errorCode,
|
|
2532
1993
|
});
|
|
2533
|
-
|
|
1994
|
+
_d.label = 13;
|
|
1995
|
+
case 13: return [2];
|
|
2534
1996
|
}
|
|
2535
1997
|
});
|
|
2536
1998
|
}); };
|
|
@@ -2542,18 +2004,18 @@ export var deserializeAws_restJson1DeleteApiKeyCommand = function (output, conte
|
|
|
2542
2004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2543
2005
|
return [2, deserializeAws_restJson1DeleteApiKeyCommandError(output, context)];
|
|
2544
2006
|
}
|
|
2545
|
-
contents = {
|
|
2007
|
+
contents = map({
|
|
2546
2008
|
$metadata: deserializeMetadata(output),
|
|
2547
|
-
};
|
|
2009
|
+
});
|
|
2548
2010
|
return [4, collectBody(output.body, context)];
|
|
2549
2011
|
case 1:
|
|
2550
2012
|
_a.sent();
|
|
2551
|
-
return [2,
|
|
2013
|
+
return [2, contents];
|
|
2552
2014
|
}
|
|
2553
2015
|
});
|
|
2554
2016
|
}); };
|
|
2555
2017
|
var deserializeAws_restJson1DeleteApiKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2556
|
-
var parsedOutput, _a,
|
|
2018
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2557
2019
|
var _c;
|
|
2558
2020
|
return __generator(this, function (_d) {
|
|
2559
2021
|
switch (_d.label) {
|
|
@@ -2586,14 +2048,14 @@ var deserializeAws_restJson1DeleteApiKeyCommandError = function (output, context
|
|
|
2586
2048
|
case 9: throw _d.sent();
|
|
2587
2049
|
case 10:
|
|
2588
2050
|
parsedBody = parsedOutput.body;
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
$metadata: $metadata,
|
|
2051
|
+
throwDefaultError({
|
|
2052
|
+
output: output,
|
|
2053
|
+
parsedBody: parsedBody,
|
|
2054
|
+
exceptionCtor: __BaseException,
|
|
2055
|
+
errorCode: errorCode,
|
|
2595
2056
|
});
|
|
2596
|
-
|
|
2057
|
+
_d.label = 11;
|
|
2058
|
+
case 11: return [2];
|
|
2597
2059
|
}
|
|
2598
2060
|
});
|
|
2599
2061
|
}); };
|
|
@@ -2605,18 +2067,18 @@ export var deserializeAws_restJson1DeleteDataSourceCommand = function (output, c
|
|
|
2605
2067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2606
2068
|
return [2, deserializeAws_restJson1DeleteDataSourceCommandError(output, context)];
|
|
2607
2069
|
}
|
|
2608
|
-
contents = {
|
|
2070
|
+
contents = map({
|
|
2609
2071
|
$metadata: deserializeMetadata(output),
|
|
2610
|
-
};
|
|
2072
|
+
});
|
|
2611
2073
|
return [4, collectBody(output.body, context)];
|
|
2612
2074
|
case 1:
|
|
2613
2075
|
_a.sent();
|
|
2614
|
-
return [2,
|
|
2076
|
+
return [2, contents];
|
|
2615
2077
|
}
|
|
2616
2078
|
});
|
|
2617
2079
|
}); };
|
|
2618
2080
|
var deserializeAws_restJson1DeleteDataSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2619
|
-
var parsedOutput, _a,
|
|
2081
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2620
2082
|
var _c;
|
|
2621
2083
|
return __generator(this, function (_d) {
|
|
2622
2084
|
switch (_d.label) {
|
|
@@ -2653,14 +2115,14 @@ var deserializeAws_restJson1DeleteDataSourceCommandError = function (output, con
|
|
|
2653
2115
|
case 11: throw _d.sent();
|
|
2654
2116
|
case 12:
|
|
2655
2117
|
parsedBody = parsedOutput.body;
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
$metadata: $metadata,
|
|
2118
|
+
throwDefaultError({
|
|
2119
|
+
output: output,
|
|
2120
|
+
parsedBody: parsedBody,
|
|
2121
|
+
exceptionCtor: __BaseException,
|
|
2122
|
+
errorCode: errorCode,
|
|
2662
2123
|
});
|
|
2663
|
-
|
|
2124
|
+
_d.label = 13;
|
|
2125
|
+
case 13: return [2];
|
|
2664
2126
|
}
|
|
2665
2127
|
});
|
|
2666
2128
|
}); };
|
|
@@ -2672,18 +2134,18 @@ export var deserializeAws_restJson1DeleteDomainNameCommand = function (output, c
|
|
|
2672
2134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2673
2135
|
return [2, deserializeAws_restJson1DeleteDomainNameCommandError(output, context)];
|
|
2674
2136
|
}
|
|
2675
|
-
contents = {
|
|
2137
|
+
contents = map({
|
|
2676
2138
|
$metadata: deserializeMetadata(output),
|
|
2677
|
-
};
|
|
2139
|
+
});
|
|
2678
2140
|
return [4, collectBody(output.body, context)];
|
|
2679
2141
|
case 1:
|
|
2680
2142
|
_a.sent();
|
|
2681
|
-
return [2,
|
|
2143
|
+
return [2, contents];
|
|
2682
2144
|
}
|
|
2683
2145
|
});
|
|
2684
2146
|
}); };
|
|
2685
2147
|
var deserializeAws_restJson1DeleteDomainNameCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2686
|
-
var parsedOutput, _a,
|
|
2148
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2687
2149
|
var _c;
|
|
2688
2150
|
return __generator(this, function (_d) {
|
|
2689
2151
|
switch (_d.label) {
|
|
@@ -2720,14 +2182,14 @@ var deserializeAws_restJson1DeleteDomainNameCommandError = function (output, con
|
|
|
2720
2182
|
case 11: throw _d.sent();
|
|
2721
2183
|
case 12:
|
|
2722
2184
|
parsedBody = parsedOutput.body;
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
$metadata: $metadata,
|
|
2185
|
+
throwDefaultError({
|
|
2186
|
+
output: output,
|
|
2187
|
+
parsedBody: parsedBody,
|
|
2188
|
+
exceptionCtor: __BaseException,
|
|
2189
|
+
errorCode: errorCode,
|
|
2729
2190
|
});
|
|
2730
|
-
|
|
2191
|
+
_d.label = 13;
|
|
2192
|
+
case 13: return [2];
|
|
2731
2193
|
}
|
|
2732
2194
|
});
|
|
2733
2195
|
}); };
|
|
@@ -2739,18 +2201,18 @@ export var deserializeAws_restJson1DeleteFunctionCommand = function (output, con
|
|
|
2739
2201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2740
2202
|
return [2, deserializeAws_restJson1DeleteFunctionCommandError(output, context)];
|
|
2741
2203
|
}
|
|
2742
|
-
contents = {
|
|
2204
|
+
contents = map({
|
|
2743
2205
|
$metadata: deserializeMetadata(output),
|
|
2744
|
-
};
|
|
2206
|
+
});
|
|
2745
2207
|
return [4, collectBody(output.body, context)];
|
|
2746
2208
|
case 1:
|
|
2747
2209
|
_a.sent();
|
|
2748
|
-
return [2,
|
|
2210
|
+
return [2, contents];
|
|
2749
2211
|
}
|
|
2750
2212
|
});
|
|
2751
2213
|
}); };
|
|
2752
2214
|
var deserializeAws_restJson1DeleteFunctionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2753
|
-
var parsedOutput, _a,
|
|
2215
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2754
2216
|
var _c;
|
|
2755
2217
|
return __generator(this, function (_d) {
|
|
2756
2218
|
switch (_d.label) {
|
|
@@ -2783,14 +2245,14 @@ var deserializeAws_restJson1DeleteFunctionCommandError = function (output, conte
|
|
|
2783
2245
|
case 9: throw _d.sent();
|
|
2784
2246
|
case 10:
|
|
2785
2247
|
parsedBody = parsedOutput.body;
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
$metadata: $metadata,
|
|
2248
|
+
throwDefaultError({
|
|
2249
|
+
output: output,
|
|
2250
|
+
parsedBody: parsedBody,
|
|
2251
|
+
exceptionCtor: __BaseException,
|
|
2252
|
+
errorCode: errorCode,
|
|
2792
2253
|
});
|
|
2793
|
-
|
|
2254
|
+
_d.label = 11;
|
|
2255
|
+
case 11: return [2];
|
|
2794
2256
|
}
|
|
2795
2257
|
});
|
|
2796
2258
|
}); };
|
|
@@ -2802,18 +2264,18 @@ export var deserializeAws_restJson1DeleteGraphqlApiCommand = function (output, c
|
|
|
2802
2264
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2803
2265
|
return [2, deserializeAws_restJson1DeleteGraphqlApiCommandError(output, context)];
|
|
2804
2266
|
}
|
|
2805
|
-
contents = {
|
|
2267
|
+
contents = map({
|
|
2806
2268
|
$metadata: deserializeMetadata(output),
|
|
2807
|
-
};
|
|
2269
|
+
});
|
|
2808
2270
|
return [4, collectBody(output.body, context)];
|
|
2809
2271
|
case 1:
|
|
2810
2272
|
_a.sent();
|
|
2811
|
-
return [2,
|
|
2273
|
+
return [2, contents];
|
|
2812
2274
|
}
|
|
2813
2275
|
});
|
|
2814
2276
|
}); };
|
|
2815
2277
|
var deserializeAws_restJson1DeleteGraphqlApiCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2816
|
-
var parsedOutput, _a,
|
|
2278
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2817
2279
|
var _c;
|
|
2818
2280
|
return __generator(this, function (_d) {
|
|
2819
2281
|
switch (_d.label) {
|
|
@@ -2854,14 +2316,14 @@ var deserializeAws_restJson1DeleteGraphqlApiCommandError = function (output, con
|
|
|
2854
2316
|
case 13: throw _d.sent();
|
|
2855
2317
|
case 14:
|
|
2856
2318
|
parsedBody = parsedOutput.body;
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
$metadata: $metadata,
|
|
2319
|
+
throwDefaultError({
|
|
2320
|
+
output: output,
|
|
2321
|
+
parsedBody: parsedBody,
|
|
2322
|
+
exceptionCtor: __BaseException,
|
|
2323
|
+
errorCode: errorCode,
|
|
2863
2324
|
});
|
|
2864
|
-
|
|
2325
|
+
_d.label = 15;
|
|
2326
|
+
case 15: return [2];
|
|
2865
2327
|
}
|
|
2866
2328
|
});
|
|
2867
2329
|
}); };
|
|
@@ -2873,18 +2335,18 @@ export var deserializeAws_restJson1DeleteResolverCommand = function (output, con
|
|
|
2873
2335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2874
2336
|
return [2, deserializeAws_restJson1DeleteResolverCommandError(output, context)];
|
|
2875
2337
|
}
|
|
2876
|
-
contents = {
|
|
2338
|
+
contents = map({
|
|
2877
2339
|
$metadata: deserializeMetadata(output),
|
|
2878
|
-
};
|
|
2340
|
+
});
|
|
2879
2341
|
return [4, collectBody(output.body, context)];
|
|
2880
2342
|
case 1:
|
|
2881
2343
|
_a.sent();
|
|
2882
|
-
return [2,
|
|
2344
|
+
return [2, contents];
|
|
2883
2345
|
}
|
|
2884
2346
|
});
|
|
2885
2347
|
}); };
|
|
2886
2348
|
var deserializeAws_restJson1DeleteResolverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2887
|
-
var parsedOutput, _a,
|
|
2349
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2888
2350
|
var _c;
|
|
2889
2351
|
return __generator(this, function (_d) {
|
|
2890
2352
|
switch (_d.label) {
|
|
@@ -2917,14 +2379,14 @@ var deserializeAws_restJson1DeleteResolverCommandError = function (output, conte
|
|
|
2917
2379
|
case 9: throw _d.sent();
|
|
2918
2380
|
case 10:
|
|
2919
2381
|
parsedBody = parsedOutput.body;
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
$metadata: $metadata,
|
|
2382
|
+
throwDefaultError({
|
|
2383
|
+
output: output,
|
|
2384
|
+
parsedBody: parsedBody,
|
|
2385
|
+
exceptionCtor: __BaseException,
|
|
2386
|
+
errorCode: errorCode,
|
|
2926
2387
|
});
|
|
2927
|
-
|
|
2388
|
+
_d.label = 11;
|
|
2389
|
+
case 11: return [2];
|
|
2928
2390
|
}
|
|
2929
2391
|
});
|
|
2930
2392
|
}); };
|
|
@@ -2936,18 +2398,18 @@ export var deserializeAws_restJson1DeleteTypeCommand = function (output, context
|
|
|
2936
2398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2937
2399
|
return [2, deserializeAws_restJson1DeleteTypeCommandError(output, context)];
|
|
2938
2400
|
}
|
|
2939
|
-
contents = {
|
|
2401
|
+
contents = map({
|
|
2940
2402
|
$metadata: deserializeMetadata(output),
|
|
2941
|
-
};
|
|
2403
|
+
});
|
|
2942
2404
|
return [4, collectBody(output.body, context)];
|
|
2943
2405
|
case 1:
|
|
2944
2406
|
_a.sent();
|
|
2945
|
-
return [2,
|
|
2407
|
+
return [2, contents];
|
|
2946
2408
|
}
|
|
2947
2409
|
});
|
|
2948
2410
|
}); };
|
|
2949
2411
|
var deserializeAws_restJson1DeleteTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2950
|
-
var parsedOutput, _a,
|
|
2412
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2951
2413
|
var _c;
|
|
2952
2414
|
return __generator(this, function (_d) {
|
|
2953
2415
|
switch (_d.label) {
|
|
@@ -2984,14 +2446,14 @@ var deserializeAws_restJson1DeleteTypeCommandError = function (output, context)
|
|
|
2984
2446
|
case 11: throw _d.sent();
|
|
2985
2447
|
case 12:
|
|
2986
2448
|
parsedBody = parsedOutput.body;
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
$metadata: $metadata,
|
|
2449
|
+
throwDefaultError({
|
|
2450
|
+
output: output,
|
|
2451
|
+
parsedBody: parsedBody,
|
|
2452
|
+
exceptionCtor: __BaseException,
|
|
2453
|
+
errorCode: errorCode,
|
|
2993
2454
|
});
|
|
2994
|
-
|
|
2455
|
+
_d.label = 13;
|
|
2456
|
+
case 13: return [2];
|
|
2995
2457
|
}
|
|
2996
2458
|
});
|
|
2997
2459
|
}); };
|
|
@@ -3003,18 +2465,18 @@ export var deserializeAws_restJson1DisassociateApiCommand = function (output, co
|
|
|
3003
2465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3004
2466
|
return [2, deserializeAws_restJson1DisassociateApiCommandError(output, context)];
|
|
3005
2467
|
}
|
|
3006
|
-
contents = {
|
|
2468
|
+
contents = map({
|
|
3007
2469
|
$metadata: deserializeMetadata(output),
|
|
3008
|
-
};
|
|
2470
|
+
});
|
|
3009
2471
|
return [4, collectBody(output.body, context)];
|
|
3010
2472
|
case 1:
|
|
3011
2473
|
_a.sent();
|
|
3012
|
-
return [2,
|
|
2474
|
+
return [2, contents];
|
|
3013
2475
|
}
|
|
3014
2476
|
});
|
|
3015
2477
|
}); };
|
|
3016
2478
|
var deserializeAws_restJson1DisassociateApiCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3017
|
-
var parsedOutput, _a,
|
|
2479
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3018
2480
|
var _c;
|
|
3019
2481
|
return __generator(this, function (_d) {
|
|
3020
2482
|
switch (_d.label) {
|
|
@@ -3051,14 +2513,81 @@ var deserializeAws_restJson1DisassociateApiCommandError = function (output, cont
|
|
|
3051
2513
|
case 11: throw _d.sent();
|
|
3052
2514
|
case 12:
|
|
3053
2515
|
parsedBody = parsedOutput.body;
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
$metadata: $metadata,
|
|
2516
|
+
throwDefaultError({
|
|
2517
|
+
output: output,
|
|
2518
|
+
parsedBody: parsedBody,
|
|
2519
|
+
exceptionCtor: __BaseException,
|
|
2520
|
+
errorCode: errorCode,
|
|
3060
2521
|
});
|
|
3061
|
-
|
|
2522
|
+
_d.label = 13;
|
|
2523
|
+
case 13: return [2];
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
}); };
|
|
2527
|
+
export var deserializeAws_restJson1EvaluateMappingTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2528
|
+
var contents, data, _a, _b;
|
|
2529
|
+
return __generator(this, function (_c) {
|
|
2530
|
+
switch (_c.label) {
|
|
2531
|
+
case 0:
|
|
2532
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2533
|
+
return [2, deserializeAws_restJson1EvaluateMappingTemplateCommandError(output, context)];
|
|
2534
|
+
}
|
|
2535
|
+
contents = map({
|
|
2536
|
+
$metadata: deserializeMetadata(output),
|
|
2537
|
+
});
|
|
2538
|
+
_a = __expectNonNull;
|
|
2539
|
+
_b = __expectObject;
|
|
2540
|
+
return [4, parseBody(output.body, context)];
|
|
2541
|
+
case 1:
|
|
2542
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2543
|
+
if (data.error != null) {
|
|
2544
|
+
contents.error = deserializeAws_restJson1ErrorDetail(data.error, context);
|
|
2545
|
+
}
|
|
2546
|
+
if (data.evaluationResult != null) {
|
|
2547
|
+
contents.evaluationResult = __expectString(data.evaluationResult);
|
|
2548
|
+
}
|
|
2549
|
+
return [2, contents];
|
|
2550
|
+
}
|
|
2551
|
+
});
|
|
2552
|
+
}); };
|
|
2553
|
+
var deserializeAws_restJson1EvaluateMappingTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2554
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2555
|
+
var _c;
|
|
2556
|
+
return __generator(this, function (_d) {
|
|
2557
|
+
switch (_d.label) {
|
|
2558
|
+
case 0:
|
|
2559
|
+
_a = [__assign({}, output)];
|
|
2560
|
+
_c = {};
|
|
2561
|
+
return [4, parseBody(output.body, context)];
|
|
2562
|
+
case 1:
|
|
2563
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2564
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2565
|
+
_b = errorCode;
|
|
2566
|
+
switch (_b) {
|
|
2567
|
+
case "AccessDeniedException": return [3, 2];
|
|
2568
|
+
case "com.amazonaws.appsync#AccessDeniedException": return [3, 2];
|
|
2569
|
+
case "BadRequestException": return [3, 4];
|
|
2570
|
+
case "com.amazonaws.appsync#BadRequestException": return [3, 4];
|
|
2571
|
+
case "InternalFailureException": return [3, 6];
|
|
2572
|
+
case "com.amazonaws.appsync#InternalFailureException": return [3, 6];
|
|
2573
|
+
}
|
|
2574
|
+
return [3, 8];
|
|
2575
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2576
|
+
case 3: throw _d.sent();
|
|
2577
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2578
|
+
case 5: throw _d.sent();
|
|
2579
|
+
case 6: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2580
|
+
case 7: throw _d.sent();
|
|
2581
|
+
case 8:
|
|
2582
|
+
parsedBody = parsedOutput.body;
|
|
2583
|
+
throwDefaultError({
|
|
2584
|
+
output: output,
|
|
2585
|
+
parsedBody: parsedBody,
|
|
2586
|
+
exceptionCtor: __BaseException,
|
|
2587
|
+
errorCode: errorCode,
|
|
2588
|
+
});
|
|
2589
|
+
_d.label = 9;
|
|
2590
|
+
case 9: return [2];
|
|
3062
2591
|
}
|
|
3063
2592
|
});
|
|
3064
2593
|
}); };
|
|
@@ -3070,18 +2599,18 @@ export var deserializeAws_restJson1FlushApiCacheCommand = function (output, cont
|
|
|
3070
2599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3071
2600
|
return [2, deserializeAws_restJson1FlushApiCacheCommandError(output, context)];
|
|
3072
2601
|
}
|
|
3073
|
-
contents = {
|
|
2602
|
+
contents = map({
|
|
3074
2603
|
$metadata: deserializeMetadata(output),
|
|
3075
|
-
};
|
|
2604
|
+
});
|
|
3076
2605
|
return [4, collectBody(output.body, context)];
|
|
3077
2606
|
case 1:
|
|
3078
2607
|
_a.sent();
|
|
3079
|
-
return [2,
|
|
2608
|
+
return [2, contents];
|
|
3080
2609
|
}
|
|
3081
2610
|
});
|
|
3082
2611
|
}); };
|
|
3083
2612
|
var deserializeAws_restJson1FlushApiCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3084
|
-
var parsedOutput, _a,
|
|
2613
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3085
2614
|
var _c;
|
|
3086
2615
|
return __generator(this, function (_d) {
|
|
3087
2616
|
switch (_d.label) {
|
|
@@ -3118,14 +2647,14 @@ var deserializeAws_restJson1FlushApiCacheCommandError = function (output, contex
|
|
|
3118
2647
|
case 11: throw _d.sent();
|
|
3119
2648
|
case 12:
|
|
3120
2649
|
parsedBody = parsedOutput.body;
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
$metadata: $metadata,
|
|
2650
|
+
throwDefaultError({
|
|
2651
|
+
output: output,
|
|
2652
|
+
parsedBody: parsedBody,
|
|
2653
|
+
exceptionCtor: __BaseException,
|
|
2654
|
+
errorCode: errorCode,
|
|
3127
2655
|
});
|
|
3128
|
-
|
|
2656
|
+
_d.label = 13;
|
|
2657
|
+
case 13: return [2];
|
|
3129
2658
|
}
|
|
3130
2659
|
});
|
|
3131
2660
|
}); };
|
|
@@ -3137,24 +2666,23 @@ export var deserializeAws_restJson1GetApiAssociationCommand = function (output,
|
|
|
3137
2666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3138
2667
|
return [2, deserializeAws_restJson1GetApiAssociationCommandError(output, context)];
|
|
3139
2668
|
}
|
|
3140
|
-
contents = {
|
|
2669
|
+
contents = map({
|
|
3141
2670
|
$metadata: deserializeMetadata(output),
|
|
3142
|
-
|
|
3143
|
-
};
|
|
2671
|
+
});
|
|
3144
2672
|
_a = __expectNonNull;
|
|
3145
2673
|
_b = __expectObject;
|
|
3146
2674
|
return [4, parseBody(output.body, context)];
|
|
3147
2675
|
case 1:
|
|
3148
2676
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3149
|
-
if (data.apiAssociation
|
|
2677
|
+
if (data.apiAssociation != null) {
|
|
3150
2678
|
contents.apiAssociation = deserializeAws_restJson1ApiAssociation(data.apiAssociation, context);
|
|
3151
2679
|
}
|
|
3152
|
-
return [2,
|
|
2680
|
+
return [2, contents];
|
|
3153
2681
|
}
|
|
3154
2682
|
});
|
|
3155
2683
|
}); };
|
|
3156
2684
|
var deserializeAws_restJson1GetApiAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3157
|
-
var parsedOutput, _a,
|
|
2685
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3158
2686
|
var _c;
|
|
3159
2687
|
return __generator(this, function (_d) {
|
|
3160
2688
|
switch (_d.label) {
|
|
@@ -3187,14 +2715,14 @@ var deserializeAws_restJson1GetApiAssociationCommandError = function (output, co
|
|
|
3187
2715
|
case 9: throw _d.sent();
|
|
3188
2716
|
case 10:
|
|
3189
2717
|
parsedBody = parsedOutput.body;
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
$metadata: $metadata,
|
|
2718
|
+
throwDefaultError({
|
|
2719
|
+
output: output,
|
|
2720
|
+
parsedBody: parsedBody,
|
|
2721
|
+
exceptionCtor: __BaseException,
|
|
2722
|
+
errorCode: errorCode,
|
|
3196
2723
|
});
|
|
3197
|
-
|
|
2724
|
+
_d.label = 11;
|
|
2725
|
+
case 11: return [2];
|
|
3198
2726
|
}
|
|
3199
2727
|
});
|
|
3200
2728
|
}); };
|
|
@@ -3206,24 +2734,23 @@ export var deserializeAws_restJson1GetApiCacheCommand = function (output, contex
|
|
|
3206
2734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3207
2735
|
return [2, deserializeAws_restJson1GetApiCacheCommandError(output, context)];
|
|
3208
2736
|
}
|
|
3209
|
-
contents = {
|
|
2737
|
+
contents = map({
|
|
3210
2738
|
$metadata: deserializeMetadata(output),
|
|
3211
|
-
|
|
3212
|
-
};
|
|
2739
|
+
});
|
|
3213
2740
|
_a = __expectNonNull;
|
|
3214
2741
|
_b = __expectObject;
|
|
3215
2742
|
return [4, parseBody(output.body, context)];
|
|
3216
2743
|
case 1:
|
|
3217
2744
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3218
|
-
if (data.apiCache
|
|
2745
|
+
if (data.apiCache != null) {
|
|
3219
2746
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
3220
2747
|
}
|
|
3221
|
-
return [2,
|
|
2748
|
+
return [2, contents];
|
|
3222
2749
|
}
|
|
3223
2750
|
});
|
|
3224
2751
|
}); };
|
|
3225
2752
|
var deserializeAws_restJson1GetApiCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3226
|
-
var parsedOutput, _a,
|
|
2753
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3227
2754
|
var _c;
|
|
3228
2755
|
return __generator(this, function (_d) {
|
|
3229
2756
|
switch (_d.label) {
|
|
@@ -3260,14 +2787,14 @@ var deserializeAws_restJson1GetApiCacheCommandError = function (output, context)
|
|
|
3260
2787
|
case 11: throw _d.sent();
|
|
3261
2788
|
case 12:
|
|
3262
2789
|
parsedBody = parsedOutput.body;
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
$metadata: $metadata,
|
|
2790
|
+
throwDefaultError({
|
|
2791
|
+
output: output,
|
|
2792
|
+
parsedBody: parsedBody,
|
|
2793
|
+
exceptionCtor: __BaseException,
|
|
2794
|
+
errorCode: errorCode,
|
|
3269
2795
|
});
|
|
3270
|
-
|
|
2796
|
+
_d.label = 13;
|
|
2797
|
+
case 13: return [2];
|
|
3271
2798
|
}
|
|
3272
2799
|
});
|
|
3273
2800
|
}); };
|
|
@@ -3279,24 +2806,23 @@ export var deserializeAws_restJson1GetDataSourceCommand = function (output, cont
|
|
|
3279
2806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3280
2807
|
return [2, deserializeAws_restJson1GetDataSourceCommandError(output, context)];
|
|
3281
2808
|
}
|
|
3282
|
-
contents = {
|
|
2809
|
+
contents = map({
|
|
3283
2810
|
$metadata: deserializeMetadata(output),
|
|
3284
|
-
|
|
3285
|
-
};
|
|
2811
|
+
});
|
|
3286
2812
|
_a = __expectNonNull;
|
|
3287
2813
|
_b = __expectObject;
|
|
3288
2814
|
return [4, parseBody(output.body, context)];
|
|
3289
2815
|
case 1:
|
|
3290
2816
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3291
|
-
if (data.dataSource
|
|
2817
|
+
if (data.dataSource != null) {
|
|
3292
2818
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
3293
2819
|
}
|
|
3294
|
-
return [2,
|
|
2820
|
+
return [2, contents];
|
|
3295
2821
|
}
|
|
3296
2822
|
});
|
|
3297
2823
|
}); };
|
|
3298
2824
|
var deserializeAws_restJson1GetDataSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3299
|
-
var parsedOutput, _a,
|
|
2825
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3300
2826
|
var _c;
|
|
3301
2827
|
return __generator(this, function (_d) {
|
|
3302
2828
|
switch (_d.label) {
|
|
@@ -3333,14 +2859,14 @@ var deserializeAws_restJson1GetDataSourceCommandError = function (output, contex
|
|
|
3333
2859
|
case 11: throw _d.sent();
|
|
3334
2860
|
case 12:
|
|
3335
2861
|
parsedBody = parsedOutput.body;
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
$metadata: $metadata,
|
|
2862
|
+
throwDefaultError({
|
|
2863
|
+
output: output,
|
|
2864
|
+
parsedBody: parsedBody,
|
|
2865
|
+
exceptionCtor: __BaseException,
|
|
2866
|
+
errorCode: errorCode,
|
|
3342
2867
|
});
|
|
3343
|
-
|
|
2868
|
+
_d.label = 13;
|
|
2869
|
+
case 13: return [2];
|
|
3344
2870
|
}
|
|
3345
2871
|
});
|
|
3346
2872
|
}); };
|
|
@@ -3352,24 +2878,23 @@ export var deserializeAws_restJson1GetDomainNameCommand = function (output, cont
|
|
|
3352
2878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3353
2879
|
return [2, deserializeAws_restJson1GetDomainNameCommandError(output, context)];
|
|
3354
2880
|
}
|
|
3355
|
-
contents = {
|
|
2881
|
+
contents = map({
|
|
3356
2882
|
$metadata: deserializeMetadata(output),
|
|
3357
|
-
|
|
3358
|
-
};
|
|
2883
|
+
});
|
|
3359
2884
|
_a = __expectNonNull;
|
|
3360
2885
|
_b = __expectObject;
|
|
3361
2886
|
return [4, parseBody(output.body, context)];
|
|
3362
2887
|
case 1:
|
|
3363
2888
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3364
|
-
if (data.domainNameConfig
|
|
2889
|
+
if (data.domainNameConfig != null) {
|
|
3365
2890
|
contents.domainNameConfig = deserializeAws_restJson1DomainNameConfig(data.domainNameConfig, context);
|
|
3366
2891
|
}
|
|
3367
|
-
return [2,
|
|
2892
|
+
return [2, contents];
|
|
3368
2893
|
}
|
|
3369
2894
|
});
|
|
3370
2895
|
}); };
|
|
3371
2896
|
var deserializeAws_restJson1GetDomainNameCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3372
|
-
var parsedOutput, _a,
|
|
2897
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3373
2898
|
var _c;
|
|
3374
2899
|
return __generator(this, function (_d) {
|
|
3375
2900
|
switch (_d.label) {
|
|
@@ -3402,14 +2927,14 @@ var deserializeAws_restJson1GetDomainNameCommandError = function (output, contex
|
|
|
3402
2927
|
case 9: throw _d.sent();
|
|
3403
2928
|
case 10:
|
|
3404
2929
|
parsedBody = parsedOutput.body;
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
$metadata: $metadata,
|
|
2930
|
+
throwDefaultError({
|
|
2931
|
+
output: output,
|
|
2932
|
+
parsedBody: parsedBody,
|
|
2933
|
+
exceptionCtor: __BaseException,
|
|
2934
|
+
errorCode: errorCode,
|
|
3411
2935
|
});
|
|
3412
|
-
|
|
2936
|
+
_d.label = 11;
|
|
2937
|
+
case 11: return [2];
|
|
3413
2938
|
}
|
|
3414
2939
|
});
|
|
3415
2940
|
}); };
|
|
@@ -3421,24 +2946,23 @@ export var deserializeAws_restJson1GetFunctionCommand = function (output, contex
|
|
|
3421
2946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3422
2947
|
return [2, deserializeAws_restJson1GetFunctionCommandError(output, context)];
|
|
3423
2948
|
}
|
|
3424
|
-
contents = {
|
|
2949
|
+
contents = map({
|
|
3425
2950
|
$metadata: deserializeMetadata(output),
|
|
3426
|
-
|
|
3427
|
-
};
|
|
2951
|
+
});
|
|
3428
2952
|
_a = __expectNonNull;
|
|
3429
2953
|
_b = __expectObject;
|
|
3430
2954
|
return [4, parseBody(output.body, context)];
|
|
3431
2955
|
case 1:
|
|
3432
2956
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3433
|
-
if (data.functionConfiguration
|
|
2957
|
+
if (data.functionConfiguration != null) {
|
|
3434
2958
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
3435
2959
|
}
|
|
3436
|
-
return [2,
|
|
2960
|
+
return [2, contents];
|
|
3437
2961
|
}
|
|
3438
2962
|
});
|
|
3439
2963
|
}); };
|
|
3440
2964
|
var deserializeAws_restJson1GetFunctionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3441
|
-
var parsedOutput, _a,
|
|
2965
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3442
2966
|
var _c;
|
|
3443
2967
|
return __generator(this, function (_d) {
|
|
3444
2968
|
switch (_d.label) {
|
|
@@ -3467,14 +2991,14 @@ var deserializeAws_restJson1GetFunctionCommandError = function (output, context)
|
|
|
3467
2991
|
case 7: throw _d.sent();
|
|
3468
2992
|
case 8:
|
|
3469
2993
|
parsedBody = parsedOutput.body;
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
$metadata: $metadata,
|
|
2994
|
+
throwDefaultError({
|
|
2995
|
+
output: output,
|
|
2996
|
+
parsedBody: parsedBody,
|
|
2997
|
+
exceptionCtor: __BaseException,
|
|
2998
|
+
errorCode: errorCode,
|
|
3476
2999
|
});
|
|
3477
|
-
|
|
3000
|
+
_d.label = 9;
|
|
3001
|
+
case 9: return [2];
|
|
3478
3002
|
}
|
|
3479
3003
|
});
|
|
3480
3004
|
}); };
|
|
@@ -3486,24 +3010,23 @@ export var deserializeAws_restJson1GetGraphqlApiCommand = function (output, cont
|
|
|
3486
3010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3487
3011
|
return [2, deserializeAws_restJson1GetGraphqlApiCommandError(output, context)];
|
|
3488
3012
|
}
|
|
3489
|
-
contents = {
|
|
3013
|
+
contents = map({
|
|
3490
3014
|
$metadata: deserializeMetadata(output),
|
|
3491
|
-
|
|
3492
|
-
};
|
|
3015
|
+
});
|
|
3493
3016
|
_a = __expectNonNull;
|
|
3494
3017
|
_b = __expectObject;
|
|
3495
3018
|
return [4, parseBody(output.body, context)];
|
|
3496
3019
|
case 1:
|
|
3497
3020
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3498
|
-
if (data.graphqlApi
|
|
3021
|
+
if (data.graphqlApi != null) {
|
|
3499
3022
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
3500
3023
|
}
|
|
3501
|
-
return [2,
|
|
3024
|
+
return [2, contents];
|
|
3502
3025
|
}
|
|
3503
3026
|
});
|
|
3504
3027
|
}); };
|
|
3505
3028
|
var deserializeAws_restJson1GetGraphqlApiCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3506
|
-
var parsedOutput, _a,
|
|
3029
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3507
3030
|
var _c;
|
|
3508
3031
|
return __generator(this, function (_d) {
|
|
3509
3032
|
switch (_d.label) {
|
|
@@ -3540,14 +3063,14 @@ var deserializeAws_restJson1GetGraphqlApiCommandError = function (output, contex
|
|
|
3540
3063
|
case 11: throw _d.sent();
|
|
3541
3064
|
case 12:
|
|
3542
3065
|
parsedBody = parsedOutput.body;
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
$metadata: $metadata,
|
|
3066
|
+
throwDefaultError({
|
|
3067
|
+
output: output,
|
|
3068
|
+
parsedBody: parsedBody,
|
|
3069
|
+
exceptionCtor: __BaseException,
|
|
3070
|
+
errorCode: errorCode,
|
|
3549
3071
|
});
|
|
3550
|
-
|
|
3072
|
+
_d.label = 13;
|
|
3073
|
+
case 13: return [2];
|
|
3551
3074
|
}
|
|
3552
3075
|
});
|
|
3553
3076
|
}); };
|
|
@@ -3559,20 +3082,19 @@ export var deserializeAws_restJson1GetIntrospectionSchemaCommand = function (out
|
|
|
3559
3082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3560
3083
|
return [2, deserializeAws_restJson1GetIntrospectionSchemaCommandError(output, context)];
|
|
3561
3084
|
}
|
|
3562
|
-
contents = {
|
|
3085
|
+
contents = map({
|
|
3563
3086
|
$metadata: deserializeMetadata(output),
|
|
3564
|
-
|
|
3565
|
-
};
|
|
3087
|
+
});
|
|
3566
3088
|
return [4, collectBody(output.body, context)];
|
|
3567
3089
|
case 1:
|
|
3568
3090
|
data = _a.sent();
|
|
3569
3091
|
contents.schema = data;
|
|
3570
|
-
return [2,
|
|
3092
|
+
return [2, contents];
|
|
3571
3093
|
}
|
|
3572
3094
|
});
|
|
3573
3095
|
}); };
|
|
3574
3096
|
var deserializeAws_restJson1GetIntrospectionSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3575
|
-
var parsedOutput, _a,
|
|
3097
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3576
3098
|
var _c;
|
|
3577
3099
|
return __generator(this, function (_d) {
|
|
3578
3100
|
switch (_d.label) {
|
|
@@ -3605,14 +3127,14 @@ var deserializeAws_restJson1GetIntrospectionSchemaCommandError = function (outpu
|
|
|
3605
3127
|
case 9: throw _d.sent();
|
|
3606
3128
|
case 10:
|
|
3607
3129
|
parsedBody = parsedOutput.body;
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
$metadata: $metadata,
|
|
3130
|
+
throwDefaultError({
|
|
3131
|
+
output: output,
|
|
3132
|
+
parsedBody: parsedBody,
|
|
3133
|
+
exceptionCtor: __BaseException,
|
|
3134
|
+
errorCode: errorCode,
|
|
3614
3135
|
});
|
|
3615
|
-
|
|
3136
|
+
_d.label = 11;
|
|
3137
|
+
case 11: return [2];
|
|
3616
3138
|
}
|
|
3617
3139
|
});
|
|
3618
3140
|
}); };
|
|
@@ -3624,24 +3146,23 @@ export var deserializeAws_restJson1GetResolverCommand = function (output, contex
|
|
|
3624
3146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3625
3147
|
return [2, deserializeAws_restJson1GetResolverCommandError(output, context)];
|
|
3626
3148
|
}
|
|
3627
|
-
contents = {
|
|
3149
|
+
contents = map({
|
|
3628
3150
|
$metadata: deserializeMetadata(output),
|
|
3629
|
-
|
|
3630
|
-
};
|
|
3151
|
+
});
|
|
3631
3152
|
_a = __expectNonNull;
|
|
3632
3153
|
_b = __expectObject;
|
|
3633
3154
|
return [4, parseBody(output.body, context)];
|
|
3634
3155
|
case 1:
|
|
3635
3156
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3636
|
-
if (data.resolver
|
|
3157
|
+
if (data.resolver != null) {
|
|
3637
3158
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
3638
3159
|
}
|
|
3639
|
-
return [2,
|
|
3160
|
+
return [2, contents];
|
|
3640
3161
|
}
|
|
3641
3162
|
});
|
|
3642
3163
|
}); };
|
|
3643
3164
|
var deserializeAws_restJson1GetResolverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3644
|
-
var parsedOutput, _a,
|
|
3165
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3645
3166
|
var _c;
|
|
3646
3167
|
return __generator(this, function (_d) {
|
|
3647
3168
|
switch (_d.label) {
|
|
@@ -3670,14 +3191,14 @@ var deserializeAws_restJson1GetResolverCommandError = function (output, context)
|
|
|
3670
3191
|
case 7: throw _d.sent();
|
|
3671
3192
|
case 8:
|
|
3672
3193
|
parsedBody = parsedOutput.body;
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
$metadata: $metadata,
|
|
3194
|
+
throwDefaultError({
|
|
3195
|
+
output: output,
|
|
3196
|
+
parsedBody: parsedBody,
|
|
3197
|
+
exceptionCtor: __BaseException,
|
|
3198
|
+
errorCode: errorCode,
|
|
3679
3199
|
});
|
|
3680
|
-
|
|
3200
|
+
_d.label = 9;
|
|
3201
|
+
case 9: return [2];
|
|
3681
3202
|
}
|
|
3682
3203
|
});
|
|
3683
3204
|
}); };
|
|
@@ -3689,28 +3210,26 @@ export var deserializeAws_restJson1GetSchemaCreationStatusCommand = function (ou
|
|
|
3689
3210
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3690
3211
|
return [2, deserializeAws_restJson1GetSchemaCreationStatusCommandError(output, context)];
|
|
3691
3212
|
}
|
|
3692
|
-
contents = {
|
|
3213
|
+
contents = map({
|
|
3693
3214
|
$metadata: deserializeMetadata(output),
|
|
3694
|
-
|
|
3695
|
-
status: undefined,
|
|
3696
|
-
};
|
|
3215
|
+
});
|
|
3697
3216
|
_a = __expectNonNull;
|
|
3698
3217
|
_b = __expectObject;
|
|
3699
3218
|
return [4, parseBody(output.body, context)];
|
|
3700
3219
|
case 1:
|
|
3701
3220
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3702
|
-
if (data.details
|
|
3221
|
+
if (data.details != null) {
|
|
3703
3222
|
contents.details = __expectString(data.details);
|
|
3704
3223
|
}
|
|
3705
|
-
if (data.status
|
|
3224
|
+
if (data.status != null) {
|
|
3706
3225
|
contents.status = __expectString(data.status);
|
|
3707
3226
|
}
|
|
3708
|
-
return [2,
|
|
3227
|
+
return [2, contents];
|
|
3709
3228
|
}
|
|
3710
3229
|
});
|
|
3711
3230
|
}); };
|
|
3712
3231
|
var deserializeAws_restJson1GetSchemaCreationStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3713
|
-
var parsedOutput, _a,
|
|
3232
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3714
3233
|
var _c;
|
|
3715
3234
|
return __generator(this, function (_d) {
|
|
3716
3235
|
switch (_d.label) {
|
|
@@ -3743,14 +3262,14 @@ var deserializeAws_restJson1GetSchemaCreationStatusCommandError = function (outp
|
|
|
3743
3262
|
case 9: throw _d.sent();
|
|
3744
3263
|
case 10:
|
|
3745
3264
|
parsedBody = parsedOutput.body;
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
$metadata: $metadata,
|
|
3265
|
+
throwDefaultError({
|
|
3266
|
+
output: output,
|
|
3267
|
+
parsedBody: parsedBody,
|
|
3268
|
+
exceptionCtor: __BaseException,
|
|
3269
|
+
errorCode: errorCode,
|
|
3752
3270
|
});
|
|
3753
|
-
|
|
3271
|
+
_d.label = 11;
|
|
3272
|
+
case 11: return [2];
|
|
3754
3273
|
}
|
|
3755
3274
|
});
|
|
3756
3275
|
}); };
|
|
@@ -3762,24 +3281,23 @@ export var deserializeAws_restJson1GetTypeCommand = function (output, context) {
|
|
|
3762
3281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3763
3282
|
return [2, deserializeAws_restJson1GetTypeCommandError(output, context)];
|
|
3764
3283
|
}
|
|
3765
|
-
contents = {
|
|
3284
|
+
contents = map({
|
|
3766
3285
|
$metadata: deserializeMetadata(output),
|
|
3767
|
-
|
|
3768
|
-
};
|
|
3286
|
+
});
|
|
3769
3287
|
_a = __expectNonNull;
|
|
3770
3288
|
_b = __expectObject;
|
|
3771
3289
|
return [4, parseBody(output.body, context)];
|
|
3772
3290
|
case 1:
|
|
3773
3291
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3774
|
-
if (data.type
|
|
3292
|
+
if (data.type != null) {
|
|
3775
3293
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
3776
3294
|
}
|
|
3777
|
-
return [2,
|
|
3295
|
+
return [2, contents];
|
|
3778
3296
|
}
|
|
3779
3297
|
});
|
|
3780
3298
|
}); };
|
|
3781
3299
|
var deserializeAws_restJson1GetTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3782
|
-
var parsedOutput, _a,
|
|
3300
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3783
3301
|
var _c;
|
|
3784
3302
|
return __generator(this, function (_d) {
|
|
3785
3303
|
switch (_d.label) {
|
|
@@ -3816,14 +3334,14 @@ var deserializeAws_restJson1GetTypeCommandError = function (output, context) { r
|
|
|
3816
3334
|
case 11: throw _d.sent();
|
|
3817
3335
|
case 12:
|
|
3818
3336
|
parsedBody = parsedOutput.body;
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
$metadata: $metadata,
|
|
3337
|
+
throwDefaultError({
|
|
3338
|
+
output: output,
|
|
3339
|
+
parsedBody: parsedBody,
|
|
3340
|
+
exceptionCtor: __BaseException,
|
|
3341
|
+
errorCode: errorCode,
|
|
3825
3342
|
});
|
|
3826
|
-
|
|
3343
|
+
_d.label = 13;
|
|
3344
|
+
case 13: return [2];
|
|
3827
3345
|
}
|
|
3828
3346
|
});
|
|
3829
3347
|
}); };
|
|
@@ -3835,28 +3353,26 @@ export var deserializeAws_restJson1ListApiKeysCommand = function (output, contex
|
|
|
3835
3353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3836
3354
|
return [2, deserializeAws_restJson1ListApiKeysCommandError(output, context)];
|
|
3837
3355
|
}
|
|
3838
|
-
contents = {
|
|
3356
|
+
contents = map({
|
|
3839
3357
|
$metadata: deserializeMetadata(output),
|
|
3840
|
-
|
|
3841
|
-
nextToken: undefined,
|
|
3842
|
-
};
|
|
3358
|
+
});
|
|
3843
3359
|
_a = __expectNonNull;
|
|
3844
3360
|
_b = __expectObject;
|
|
3845
3361
|
return [4, parseBody(output.body, context)];
|
|
3846
3362
|
case 1:
|
|
3847
3363
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3848
|
-
if (data.apiKeys
|
|
3364
|
+
if (data.apiKeys != null) {
|
|
3849
3365
|
contents.apiKeys = deserializeAws_restJson1ApiKeys(data.apiKeys, context);
|
|
3850
3366
|
}
|
|
3851
|
-
if (data.nextToken
|
|
3367
|
+
if (data.nextToken != null) {
|
|
3852
3368
|
contents.nextToken = __expectString(data.nextToken);
|
|
3853
3369
|
}
|
|
3854
|
-
return [2,
|
|
3370
|
+
return [2, contents];
|
|
3855
3371
|
}
|
|
3856
3372
|
});
|
|
3857
3373
|
}); };
|
|
3858
3374
|
var deserializeAws_restJson1ListApiKeysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3859
|
-
var parsedOutput, _a,
|
|
3375
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3860
3376
|
var _c;
|
|
3861
3377
|
return __generator(this, function (_d) {
|
|
3862
3378
|
switch (_d.label) {
|
|
@@ -3889,14 +3405,14 @@ var deserializeAws_restJson1ListApiKeysCommandError = function (output, context)
|
|
|
3889
3405
|
case 9: throw _d.sent();
|
|
3890
3406
|
case 10:
|
|
3891
3407
|
parsedBody = parsedOutput.body;
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
$metadata: $metadata,
|
|
3408
|
+
throwDefaultError({
|
|
3409
|
+
output: output,
|
|
3410
|
+
parsedBody: parsedBody,
|
|
3411
|
+
exceptionCtor: __BaseException,
|
|
3412
|
+
errorCode: errorCode,
|
|
3898
3413
|
});
|
|
3899
|
-
|
|
3414
|
+
_d.label = 11;
|
|
3415
|
+
case 11: return [2];
|
|
3900
3416
|
}
|
|
3901
3417
|
});
|
|
3902
3418
|
}); };
|
|
@@ -3908,28 +3424,26 @@ export var deserializeAws_restJson1ListDataSourcesCommand = function (output, co
|
|
|
3908
3424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3909
3425
|
return [2, deserializeAws_restJson1ListDataSourcesCommandError(output, context)];
|
|
3910
3426
|
}
|
|
3911
|
-
contents = {
|
|
3427
|
+
contents = map({
|
|
3912
3428
|
$metadata: deserializeMetadata(output),
|
|
3913
|
-
|
|
3914
|
-
nextToken: undefined,
|
|
3915
|
-
};
|
|
3429
|
+
});
|
|
3916
3430
|
_a = __expectNonNull;
|
|
3917
3431
|
_b = __expectObject;
|
|
3918
3432
|
return [4, parseBody(output.body, context)];
|
|
3919
3433
|
case 1:
|
|
3920
3434
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3921
|
-
if (data.dataSources
|
|
3435
|
+
if (data.dataSources != null) {
|
|
3922
3436
|
contents.dataSources = deserializeAws_restJson1DataSources(data.dataSources, context);
|
|
3923
3437
|
}
|
|
3924
|
-
if (data.nextToken
|
|
3438
|
+
if (data.nextToken != null) {
|
|
3925
3439
|
contents.nextToken = __expectString(data.nextToken);
|
|
3926
3440
|
}
|
|
3927
|
-
return [2,
|
|
3441
|
+
return [2, contents];
|
|
3928
3442
|
}
|
|
3929
3443
|
});
|
|
3930
3444
|
}); };
|
|
3931
3445
|
var deserializeAws_restJson1ListDataSourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3932
|
-
var parsedOutput, _a,
|
|
3446
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3933
3447
|
var _c;
|
|
3934
3448
|
return __generator(this, function (_d) {
|
|
3935
3449
|
switch (_d.label) {
|
|
@@ -3962,14 +3476,14 @@ var deserializeAws_restJson1ListDataSourcesCommandError = function (output, cont
|
|
|
3962
3476
|
case 9: throw _d.sent();
|
|
3963
3477
|
case 10:
|
|
3964
3478
|
parsedBody = parsedOutput.body;
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
$metadata: $metadata,
|
|
3479
|
+
throwDefaultError({
|
|
3480
|
+
output: output,
|
|
3481
|
+
parsedBody: parsedBody,
|
|
3482
|
+
exceptionCtor: __BaseException,
|
|
3483
|
+
errorCode: errorCode,
|
|
3971
3484
|
});
|
|
3972
|
-
|
|
3485
|
+
_d.label = 11;
|
|
3486
|
+
case 11: return [2];
|
|
3973
3487
|
}
|
|
3974
3488
|
});
|
|
3975
3489
|
}); };
|
|
@@ -3981,28 +3495,26 @@ export var deserializeAws_restJson1ListDomainNamesCommand = function (output, co
|
|
|
3981
3495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3982
3496
|
return [2, deserializeAws_restJson1ListDomainNamesCommandError(output, context)];
|
|
3983
3497
|
}
|
|
3984
|
-
contents = {
|
|
3498
|
+
contents = map({
|
|
3985
3499
|
$metadata: deserializeMetadata(output),
|
|
3986
|
-
|
|
3987
|
-
nextToken: undefined,
|
|
3988
|
-
};
|
|
3500
|
+
});
|
|
3989
3501
|
_a = __expectNonNull;
|
|
3990
3502
|
_b = __expectObject;
|
|
3991
3503
|
return [4, parseBody(output.body, context)];
|
|
3992
3504
|
case 1:
|
|
3993
3505
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3994
|
-
if (data.domainNameConfigs
|
|
3506
|
+
if (data.domainNameConfigs != null) {
|
|
3995
3507
|
contents.domainNameConfigs = deserializeAws_restJson1DomainNameConfigs(data.domainNameConfigs, context);
|
|
3996
3508
|
}
|
|
3997
|
-
if (data.nextToken
|
|
3509
|
+
if (data.nextToken != null) {
|
|
3998
3510
|
contents.nextToken = __expectString(data.nextToken);
|
|
3999
3511
|
}
|
|
4000
|
-
return [2,
|
|
3512
|
+
return [2, contents];
|
|
4001
3513
|
}
|
|
4002
3514
|
});
|
|
4003
3515
|
}); };
|
|
4004
3516
|
var deserializeAws_restJson1ListDomainNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4005
|
-
var parsedOutput, _a,
|
|
3517
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4006
3518
|
var _c;
|
|
4007
3519
|
return __generator(this, function (_d) {
|
|
4008
3520
|
switch (_d.label) {
|
|
@@ -4031,14 +3543,14 @@ var deserializeAws_restJson1ListDomainNamesCommandError = function (output, cont
|
|
|
4031
3543
|
case 7: throw _d.sent();
|
|
4032
3544
|
case 8:
|
|
4033
3545
|
parsedBody = parsedOutput.body;
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
$metadata: $metadata,
|
|
3546
|
+
throwDefaultError({
|
|
3547
|
+
output: output,
|
|
3548
|
+
parsedBody: parsedBody,
|
|
3549
|
+
exceptionCtor: __BaseException,
|
|
3550
|
+
errorCode: errorCode,
|
|
4040
3551
|
});
|
|
4041
|
-
|
|
3552
|
+
_d.label = 9;
|
|
3553
|
+
case 9: return [2];
|
|
4042
3554
|
}
|
|
4043
3555
|
});
|
|
4044
3556
|
}); };
|
|
@@ -4050,28 +3562,26 @@ export var deserializeAws_restJson1ListFunctionsCommand = function (output, cont
|
|
|
4050
3562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4051
3563
|
return [2, deserializeAws_restJson1ListFunctionsCommandError(output, context)];
|
|
4052
3564
|
}
|
|
4053
|
-
contents = {
|
|
3565
|
+
contents = map({
|
|
4054
3566
|
$metadata: deserializeMetadata(output),
|
|
4055
|
-
|
|
4056
|
-
nextToken: undefined,
|
|
4057
|
-
};
|
|
3567
|
+
});
|
|
4058
3568
|
_a = __expectNonNull;
|
|
4059
3569
|
_b = __expectObject;
|
|
4060
3570
|
return [4, parseBody(output.body, context)];
|
|
4061
3571
|
case 1:
|
|
4062
3572
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4063
|
-
if (data.functions
|
|
3573
|
+
if (data.functions != null) {
|
|
4064
3574
|
contents.functions = deserializeAws_restJson1Functions(data.functions, context);
|
|
4065
3575
|
}
|
|
4066
|
-
if (data.nextToken
|
|
3576
|
+
if (data.nextToken != null) {
|
|
4067
3577
|
contents.nextToken = __expectString(data.nextToken);
|
|
4068
3578
|
}
|
|
4069
|
-
return [2,
|
|
3579
|
+
return [2, contents];
|
|
4070
3580
|
}
|
|
4071
3581
|
});
|
|
4072
3582
|
}); };
|
|
4073
3583
|
var deserializeAws_restJson1ListFunctionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4074
|
-
var parsedOutput, _a,
|
|
3584
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4075
3585
|
var _c;
|
|
4076
3586
|
return __generator(this, function (_d) {
|
|
4077
3587
|
switch (_d.label) {
|
|
@@ -4104,14 +3614,14 @@ var deserializeAws_restJson1ListFunctionsCommandError = function (output, contex
|
|
|
4104
3614
|
case 9: throw _d.sent();
|
|
4105
3615
|
case 10:
|
|
4106
3616
|
parsedBody = parsedOutput.body;
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
$metadata: $metadata,
|
|
3617
|
+
throwDefaultError({
|
|
3618
|
+
output: output,
|
|
3619
|
+
parsedBody: parsedBody,
|
|
3620
|
+
exceptionCtor: __BaseException,
|
|
3621
|
+
errorCode: errorCode,
|
|
4113
3622
|
});
|
|
4114
|
-
|
|
3623
|
+
_d.label = 11;
|
|
3624
|
+
case 11: return [2];
|
|
4115
3625
|
}
|
|
4116
3626
|
});
|
|
4117
3627
|
}); };
|
|
@@ -4123,28 +3633,26 @@ export var deserializeAws_restJson1ListGraphqlApisCommand = function (output, co
|
|
|
4123
3633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4124
3634
|
return [2, deserializeAws_restJson1ListGraphqlApisCommandError(output, context)];
|
|
4125
3635
|
}
|
|
4126
|
-
contents = {
|
|
3636
|
+
contents = map({
|
|
4127
3637
|
$metadata: deserializeMetadata(output),
|
|
4128
|
-
|
|
4129
|
-
nextToken: undefined,
|
|
4130
|
-
};
|
|
3638
|
+
});
|
|
4131
3639
|
_a = __expectNonNull;
|
|
4132
3640
|
_b = __expectObject;
|
|
4133
3641
|
return [4, parseBody(output.body, context)];
|
|
4134
3642
|
case 1:
|
|
4135
3643
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4136
|
-
if (data.graphqlApis
|
|
3644
|
+
if (data.graphqlApis != null) {
|
|
4137
3645
|
contents.graphqlApis = deserializeAws_restJson1GraphqlApis(data.graphqlApis, context);
|
|
4138
3646
|
}
|
|
4139
|
-
if (data.nextToken
|
|
3647
|
+
if (data.nextToken != null) {
|
|
4140
3648
|
contents.nextToken = __expectString(data.nextToken);
|
|
4141
3649
|
}
|
|
4142
|
-
return [2,
|
|
3650
|
+
return [2, contents];
|
|
4143
3651
|
}
|
|
4144
3652
|
});
|
|
4145
3653
|
}); };
|
|
4146
3654
|
var deserializeAws_restJson1ListGraphqlApisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4147
|
-
var parsedOutput, _a,
|
|
3655
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4148
3656
|
var _c;
|
|
4149
3657
|
return __generator(this, function (_d) {
|
|
4150
3658
|
switch (_d.label) {
|
|
@@ -4173,14 +3681,14 @@ var deserializeAws_restJson1ListGraphqlApisCommandError = function (output, cont
|
|
|
4173
3681
|
case 7: throw _d.sent();
|
|
4174
3682
|
case 8:
|
|
4175
3683
|
parsedBody = parsedOutput.body;
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
$metadata: $metadata,
|
|
3684
|
+
throwDefaultError({
|
|
3685
|
+
output: output,
|
|
3686
|
+
parsedBody: parsedBody,
|
|
3687
|
+
exceptionCtor: __BaseException,
|
|
3688
|
+
errorCode: errorCode,
|
|
4182
3689
|
});
|
|
4183
|
-
|
|
3690
|
+
_d.label = 9;
|
|
3691
|
+
case 9: return [2];
|
|
4184
3692
|
}
|
|
4185
3693
|
});
|
|
4186
3694
|
}); };
|
|
@@ -4192,28 +3700,26 @@ export var deserializeAws_restJson1ListResolversCommand = function (output, cont
|
|
|
4192
3700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4193
3701
|
return [2, deserializeAws_restJson1ListResolversCommandError(output, context)];
|
|
4194
3702
|
}
|
|
4195
|
-
contents = {
|
|
3703
|
+
contents = map({
|
|
4196
3704
|
$metadata: deserializeMetadata(output),
|
|
4197
|
-
|
|
4198
|
-
resolvers: undefined,
|
|
4199
|
-
};
|
|
3705
|
+
});
|
|
4200
3706
|
_a = __expectNonNull;
|
|
4201
3707
|
_b = __expectObject;
|
|
4202
3708
|
return [4, parseBody(output.body, context)];
|
|
4203
3709
|
case 1:
|
|
4204
3710
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4205
|
-
if (data.nextToken
|
|
3711
|
+
if (data.nextToken != null) {
|
|
4206
3712
|
contents.nextToken = __expectString(data.nextToken);
|
|
4207
3713
|
}
|
|
4208
|
-
if (data.resolvers
|
|
3714
|
+
if (data.resolvers != null) {
|
|
4209
3715
|
contents.resolvers = deserializeAws_restJson1Resolvers(data.resolvers, context);
|
|
4210
3716
|
}
|
|
4211
|
-
return [2,
|
|
3717
|
+
return [2, contents];
|
|
4212
3718
|
}
|
|
4213
3719
|
});
|
|
4214
3720
|
}); };
|
|
4215
3721
|
var deserializeAws_restJson1ListResolversCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4216
|
-
var parsedOutput, _a,
|
|
3722
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4217
3723
|
var _c;
|
|
4218
3724
|
return __generator(this, function (_d) {
|
|
4219
3725
|
switch (_d.label) {
|
|
@@ -4246,14 +3752,14 @@ var deserializeAws_restJson1ListResolversCommandError = function (output, contex
|
|
|
4246
3752
|
case 9: throw _d.sent();
|
|
4247
3753
|
case 10:
|
|
4248
3754
|
parsedBody = parsedOutput.body;
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
$metadata: $metadata,
|
|
3755
|
+
throwDefaultError({
|
|
3756
|
+
output: output,
|
|
3757
|
+
parsedBody: parsedBody,
|
|
3758
|
+
exceptionCtor: __BaseException,
|
|
3759
|
+
errorCode: errorCode,
|
|
4255
3760
|
});
|
|
4256
|
-
|
|
3761
|
+
_d.label = 11;
|
|
3762
|
+
case 11: return [2];
|
|
4257
3763
|
}
|
|
4258
3764
|
});
|
|
4259
3765
|
}); };
|
|
@@ -4265,28 +3771,26 @@ export var deserializeAws_restJson1ListResolversByFunctionCommand = function (ou
|
|
|
4265
3771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4266
3772
|
return [2, deserializeAws_restJson1ListResolversByFunctionCommandError(output, context)];
|
|
4267
3773
|
}
|
|
4268
|
-
contents = {
|
|
3774
|
+
contents = map({
|
|
4269
3775
|
$metadata: deserializeMetadata(output),
|
|
4270
|
-
|
|
4271
|
-
resolvers: undefined,
|
|
4272
|
-
};
|
|
3776
|
+
});
|
|
4273
3777
|
_a = __expectNonNull;
|
|
4274
3778
|
_b = __expectObject;
|
|
4275
3779
|
return [4, parseBody(output.body, context)];
|
|
4276
3780
|
case 1:
|
|
4277
3781
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4278
|
-
if (data.nextToken
|
|
3782
|
+
if (data.nextToken != null) {
|
|
4279
3783
|
contents.nextToken = __expectString(data.nextToken);
|
|
4280
3784
|
}
|
|
4281
|
-
if (data.resolvers
|
|
3785
|
+
if (data.resolvers != null) {
|
|
4282
3786
|
contents.resolvers = deserializeAws_restJson1Resolvers(data.resolvers, context);
|
|
4283
3787
|
}
|
|
4284
|
-
return [2,
|
|
3788
|
+
return [2, contents];
|
|
4285
3789
|
}
|
|
4286
3790
|
});
|
|
4287
3791
|
}); };
|
|
4288
3792
|
var deserializeAws_restJson1ListResolversByFunctionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4289
|
-
var parsedOutput, _a,
|
|
3793
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4290
3794
|
var _c;
|
|
4291
3795
|
return __generator(this, function (_d) {
|
|
4292
3796
|
switch (_d.label) {
|
|
@@ -4319,14 +3823,14 @@ var deserializeAws_restJson1ListResolversByFunctionCommandError = function (outp
|
|
|
4319
3823
|
case 9: throw _d.sent();
|
|
4320
3824
|
case 10:
|
|
4321
3825
|
parsedBody = parsedOutput.body;
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
$metadata: $metadata,
|
|
3826
|
+
throwDefaultError({
|
|
3827
|
+
output: output,
|
|
3828
|
+
parsedBody: parsedBody,
|
|
3829
|
+
exceptionCtor: __BaseException,
|
|
3830
|
+
errorCode: errorCode,
|
|
4328
3831
|
});
|
|
4329
|
-
|
|
3832
|
+
_d.label = 11;
|
|
3833
|
+
case 11: return [2];
|
|
4330
3834
|
}
|
|
4331
3835
|
});
|
|
4332
3836
|
}); };
|
|
@@ -4338,24 +3842,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
4338
3842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4339
3843
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
4340
3844
|
}
|
|
4341
|
-
contents = {
|
|
3845
|
+
contents = map({
|
|
4342
3846
|
$metadata: deserializeMetadata(output),
|
|
4343
|
-
|
|
4344
|
-
};
|
|
3847
|
+
});
|
|
4345
3848
|
_a = __expectNonNull;
|
|
4346
3849
|
_b = __expectObject;
|
|
4347
3850
|
return [4, parseBody(output.body, context)];
|
|
4348
3851
|
case 1:
|
|
4349
3852
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4350
|
-
if (data.tags
|
|
3853
|
+
if (data.tags != null) {
|
|
4351
3854
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4352
3855
|
}
|
|
4353
|
-
return [2,
|
|
3856
|
+
return [2, contents];
|
|
4354
3857
|
}
|
|
4355
3858
|
});
|
|
4356
3859
|
}); };
|
|
4357
3860
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4358
|
-
var parsedOutput, _a,
|
|
3861
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4359
3862
|
var _c;
|
|
4360
3863
|
return __generator(this, function (_d) {
|
|
4361
3864
|
switch (_d.label) {
|
|
@@ -4396,14 +3899,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4396
3899
|
case 13: throw _d.sent();
|
|
4397
3900
|
case 14:
|
|
4398
3901
|
parsedBody = parsedOutput.body;
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
$metadata: $metadata,
|
|
3902
|
+
throwDefaultError({
|
|
3903
|
+
output: output,
|
|
3904
|
+
parsedBody: parsedBody,
|
|
3905
|
+
exceptionCtor: __BaseException,
|
|
3906
|
+
errorCode: errorCode,
|
|
4405
3907
|
});
|
|
4406
|
-
|
|
3908
|
+
_d.label = 15;
|
|
3909
|
+
case 15: return [2];
|
|
4407
3910
|
}
|
|
4408
3911
|
});
|
|
4409
3912
|
}); };
|
|
@@ -4415,28 +3918,26 @@ export var deserializeAws_restJson1ListTypesCommand = function (output, context)
|
|
|
4415
3918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4416
3919
|
return [2, deserializeAws_restJson1ListTypesCommandError(output, context)];
|
|
4417
3920
|
}
|
|
4418
|
-
contents = {
|
|
3921
|
+
contents = map({
|
|
4419
3922
|
$metadata: deserializeMetadata(output),
|
|
4420
|
-
|
|
4421
|
-
types: undefined,
|
|
4422
|
-
};
|
|
3923
|
+
});
|
|
4423
3924
|
_a = __expectNonNull;
|
|
4424
3925
|
_b = __expectObject;
|
|
4425
3926
|
return [4, parseBody(output.body, context)];
|
|
4426
3927
|
case 1:
|
|
4427
3928
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4428
|
-
if (data.nextToken
|
|
3929
|
+
if (data.nextToken != null) {
|
|
4429
3930
|
contents.nextToken = __expectString(data.nextToken);
|
|
4430
3931
|
}
|
|
4431
|
-
if (data.types
|
|
3932
|
+
if (data.types != null) {
|
|
4432
3933
|
contents.types = deserializeAws_restJson1TypeList(data.types, context);
|
|
4433
3934
|
}
|
|
4434
|
-
return [2,
|
|
3935
|
+
return [2, contents];
|
|
4435
3936
|
}
|
|
4436
3937
|
});
|
|
4437
3938
|
}); };
|
|
4438
3939
|
var deserializeAws_restJson1ListTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4439
|
-
var parsedOutput, _a,
|
|
3940
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4440
3941
|
var _c;
|
|
4441
3942
|
return __generator(this, function (_d) {
|
|
4442
3943
|
switch (_d.label) {
|
|
@@ -4473,14 +3974,14 @@ var deserializeAws_restJson1ListTypesCommandError = function (output, context) {
|
|
|
4473
3974
|
case 11: throw _d.sent();
|
|
4474
3975
|
case 12:
|
|
4475
3976
|
parsedBody = parsedOutput.body;
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
$metadata: $metadata,
|
|
3977
|
+
throwDefaultError({
|
|
3978
|
+
output: output,
|
|
3979
|
+
parsedBody: parsedBody,
|
|
3980
|
+
exceptionCtor: __BaseException,
|
|
3981
|
+
errorCode: errorCode,
|
|
4482
3982
|
});
|
|
4483
|
-
|
|
3983
|
+
_d.label = 13;
|
|
3984
|
+
case 13: return [2];
|
|
4484
3985
|
}
|
|
4485
3986
|
});
|
|
4486
3987
|
}); };
|
|
@@ -4492,24 +3993,23 @@ export var deserializeAws_restJson1StartSchemaCreationCommand = function (output
|
|
|
4492
3993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4493
3994
|
return [2, deserializeAws_restJson1StartSchemaCreationCommandError(output, context)];
|
|
4494
3995
|
}
|
|
4495
|
-
contents = {
|
|
3996
|
+
contents = map({
|
|
4496
3997
|
$metadata: deserializeMetadata(output),
|
|
4497
|
-
|
|
4498
|
-
};
|
|
3998
|
+
});
|
|
4499
3999
|
_a = __expectNonNull;
|
|
4500
4000
|
_b = __expectObject;
|
|
4501
4001
|
return [4, parseBody(output.body, context)];
|
|
4502
4002
|
case 1:
|
|
4503
4003
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4504
|
-
if (data.status
|
|
4004
|
+
if (data.status != null) {
|
|
4505
4005
|
contents.status = __expectString(data.status);
|
|
4506
4006
|
}
|
|
4507
|
-
return [2,
|
|
4007
|
+
return [2, contents];
|
|
4508
4008
|
}
|
|
4509
4009
|
});
|
|
4510
4010
|
}); };
|
|
4511
4011
|
var deserializeAws_restJson1StartSchemaCreationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4512
|
-
var parsedOutput, _a,
|
|
4012
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4513
4013
|
var _c;
|
|
4514
4014
|
return __generator(this, function (_d) {
|
|
4515
4015
|
switch (_d.label) {
|
|
@@ -4546,14 +4046,14 @@ var deserializeAws_restJson1StartSchemaCreationCommandError = function (output,
|
|
|
4546
4046
|
case 11: throw _d.sent();
|
|
4547
4047
|
case 12:
|
|
4548
4048
|
parsedBody = parsedOutput.body;
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
$metadata: $metadata,
|
|
4049
|
+
throwDefaultError({
|
|
4050
|
+
output: output,
|
|
4051
|
+
parsedBody: parsedBody,
|
|
4052
|
+
exceptionCtor: __BaseException,
|
|
4053
|
+
errorCode: errorCode,
|
|
4555
4054
|
});
|
|
4556
|
-
|
|
4055
|
+
_d.label = 13;
|
|
4056
|
+
case 13: return [2];
|
|
4557
4057
|
}
|
|
4558
4058
|
});
|
|
4559
4059
|
}); };
|
|
@@ -4565,18 +4065,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
4565
4065
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4566
4066
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
4567
4067
|
}
|
|
4568
|
-
contents = {
|
|
4068
|
+
contents = map({
|
|
4569
4069
|
$metadata: deserializeMetadata(output),
|
|
4570
|
-
};
|
|
4070
|
+
});
|
|
4571
4071
|
return [4, collectBody(output.body, context)];
|
|
4572
4072
|
case 1:
|
|
4573
4073
|
_a.sent();
|
|
4574
|
-
return [2,
|
|
4074
|
+
return [2, contents];
|
|
4575
4075
|
}
|
|
4576
4076
|
});
|
|
4577
4077
|
}); };
|
|
4578
4078
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4579
|
-
var parsedOutput, _a,
|
|
4079
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4580
4080
|
var _c;
|
|
4581
4081
|
return __generator(this, function (_d) {
|
|
4582
4082
|
switch (_d.label) {
|
|
@@ -4617,14 +4117,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4617
4117
|
case 13: throw _d.sent();
|
|
4618
4118
|
case 14:
|
|
4619
4119
|
parsedBody = parsedOutput.body;
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
$metadata: $metadata,
|
|
4120
|
+
throwDefaultError({
|
|
4121
|
+
output: output,
|
|
4122
|
+
parsedBody: parsedBody,
|
|
4123
|
+
exceptionCtor: __BaseException,
|
|
4124
|
+
errorCode: errorCode,
|
|
4626
4125
|
});
|
|
4627
|
-
|
|
4126
|
+
_d.label = 15;
|
|
4127
|
+
case 15: return [2];
|
|
4628
4128
|
}
|
|
4629
4129
|
});
|
|
4630
4130
|
}); };
|
|
@@ -4636,18 +4136,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4636
4136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4637
4137
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
4638
4138
|
}
|
|
4639
|
-
contents = {
|
|
4139
|
+
contents = map({
|
|
4640
4140
|
$metadata: deserializeMetadata(output),
|
|
4641
|
-
};
|
|
4141
|
+
});
|
|
4642
4142
|
return [4, collectBody(output.body, context)];
|
|
4643
4143
|
case 1:
|
|
4644
4144
|
_a.sent();
|
|
4645
|
-
return [2,
|
|
4145
|
+
return [2, contents];
|
|
4646
4146
|
}
|
|
4647
4147
|
});
|
|
4648
4148
|
}); };
|
|
4649
4149
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4650
|
-
var parsedOutput, _a,
|
|
4150
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4651
4151
|
var _c;
|
|
4652
4152
|
return __generator(this, function (_d) {
|
|
4653
4153
|
switch (_d.label) {
|
|
@@ -4688,14 +4188,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4688
4188
|
case 13: throw _d.sent();
|
|
4689
4189
|
case 14:
|
|
4690
4190
|
parsedBody = parsedOutput.body;
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
$metadata: $metadata,
|
|
4191
|
+
throwDefaultError({
|
|
4192
|
+
output: output,
|
|
4193
|
+
parsedBody: parsedBody,
|
|
4194
|
+
exceptionCtor: __BaseException,
|
|
4195
|
+
errorCode: errorCode,
|
|
4697
4196
|
});
|
|
4698
|
-
|
|
4197
|
+
_d.label = 15;
|
|
4198
|
+
case 15: return [2];
|
|
4699
4199
|
}
|
|
4700
4200
|
});
|
|
4701
4201
|
}); };
|
|
@@ -4707,24 +4207,23 @@ export var deserializeAws_restJson1UpdateApiCacheCommand = function (output, con
|
|
|
4707
4207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4708
4208
|
return [2, deserializeAws_restJson1UpdateApiCacheCommandError(output, context)];
|
|
4709
4209
|
}
|
|
4710
|
-
contents = {
|
|
4210
|
+
contents = map({
|
|
4711
4211
|
$metadata: deserializeMetadata(output),
|
|
4712
|
-
|
|
4713
|
-
};
|
|
4212
|
+
});
|
|
4714
4213
|
_a = __expectNonNull;
|
|
4715
4214
|
_b = __expectObject;
|
|
4716
4215
|
return [4, parseBody(output.body, context)];
|
|
4717
4216
|
case 1:
|
|
4718
4217
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4719
|
-
if (data.apiCache
|
|
4218
|
+
if (data.apiCache != null) {
|
|
4720
4219
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
4721
4220
|
}
|
|
4722
|
-
return [2,
|
|
4221
|
+
return [2, contents];
|
|
4723
4222
|
}
|
|
4724
4223
|
});
|
|
4725
4224
|
}); };
|
|
4726
4225
|
var deserializeAws_restJson1UpdateApiCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4727
|
-
var parsedOutput, _a,
|
|
4226
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4728
4227
|
var _c;
|
|
4729
4228
|
return __generator(this, function (_d) {
|
|
4730
4229
|
switch (_d.label) {
|
|
@@ -4761,14 +4260,14 @@ var deserializeAws_restJson1UpdateApiCacheCommandError = function (output, conte
|
|
|
4761
4260
|
case 11: throw _d.sent();
|
|
4762
4261
|
case 12:
|
|
4763
4262
|
parsedBody = parsedOutput.body;
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
$metadata: $metadata,
|
|
4263
|
+
throwDefaultError({
|
|
4264
|
+
output: output,
|
|
4265
|
+
parsedBody: parsedBody,
|
|
4266
|
+
exceptionCtor: __BaseException,
|
|
4267
|
+
errorCode: errorCode,
|
|
4770
4268
|
});
|
|
4771
|
-
|
|
4269
|
+
_d.label = 13;
|
|
4270
|
+
case 13: return [2];
|
|
4772
4271
|
}
|
|
4773
4272
|
});
|
|
4774
4273
|
}); };
|
|
@@ -4780,24 +4279,23 @@ export var deserializeAws_restJson1UpdateApiKeyCommand = function (output, conte
|
|
|
4780
4279
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4781
4280
|
return [2, deserializeAws_restJson1UpdateApiKeyCommandError(output, context)];
|
|
4782
4281
|
}
|
|
4783
|
-
contents = {
|
|
4282
|
+
contents = map({
|
|
4784
4283
|
$metadata: deserializeMetadata(output),
|
|
4785
|
-
|
|
4786
|
-
};
|
|
4284
|
+
});
|
|
4787
4285
|
_a = __expectNonNull;
|
|
4788
4286
|
_b = __expectObject;
|
|
4789
4287
|
return [4, parseBody(output.body, context)];
|
|
4790
4288
|
case 1:
|
|
4791
4289
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4792
|
-
if (data.apiKey
|
|
4290
|
+
if (data.apiKey != null) {
|
|
4793
4291
|
contents.apiKey = deserializeAws_restJson1ApiKey(data.apiKey, context);
|
|
4794
4292
|
}
|
|
4795
|
-
return [2,
|
|
4293
|
+
return [2, contents];
|
|
4796
4294
|
}
|
|
4797
4295
|
});
|
|
4798
4296
|
}); };
|
|
4799
4297
|
var deserializeAws_restJson1UpdateApiKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4800
|
-
var parsedOutput, _a,
|
|
4298
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4801
4299
|
var _c;
|
|
4802
4300
|
return __generator(this, function (_d) {
|
|
4803
4301
|
switch (_d.label) {
|
|
@@ -4838,14 +4336,14 @@ var deserializeAws_restJson1UpdateApiKeyCommandError = function (output, context
|
|
|
4838
4336
|
case 13: throw _d.sent();
|
|
4839
4337
|
case 14:
|
|
4840
4338
|
parsedBody = parsedOutput.body;
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
$metadata: $metadata,
|
|
4339
|
+
throwDefaultError({
|
|
4340
|
+
output: output,
|
|
4341
|
+
parsedBody: parsedBody,
|
|
4342
|
+
exceptionCtor: __BaseException,
|
|
4343
|
+
errorCode: errorCode,
|
|
4847
4344
|
});
|
|
4848
|
-
|
|
4345
|
+
_d.label = 15;
|
|
4346
|
+
case 15: return [2];
|
|
4849
4347
|
}
|
|
4850
4348
|
});
|
|
4851
4349
|
}); };
|
|
@@ -4857,24 +4355,23 @@ export var deserializeAws_restJson1UpdateDataSourceCommand = function (output, c
|
|
|
4857
4355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4858
4356
|
return [2, deserializeAws_restJson1UpdateDataSourceCommandError(output, context)];
|
|
4859
4357
|
}
|
|
4860
|
-
contents = {
|
|
4358
|
+
contents = map({
|
|
4861
4359
|
$metadata: deserializeMetadata(output),
|
|
4862
|
-
|
|
4863
|
-
};
|
|
4360
|
+
});
|
|
4864
4361
|
_a = __expectNonNull;
|
|
4865
4362
|
_b = __expectObject;
|
|
4866
4363
|
return [4, parseBody(output.body, context)];
|
|
4867
4364
|
case 1:
|
|
4868
4365
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4869
|
-
if (data.dataSource
|
|
4366
|
+
if (data.dataSource != null) {
|
|
4870
4367
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
4871
4368
|
}
|
|
4872
|
-
return [2,
|
|
4369
|
+
return [2, contents];
|
|
4873
4370
|
}
|
|
4874
4371
|
});
|
|
4875
4372
|
}); };
|
|
4876
4373
|
var deserializeAws_restJson1UpdateDataSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4877
|
-
var parsedOutput, _a,
|
|
4374
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4878
4375
|
var _c;
|
|
4879
4376
|
return __generator(this, function (_d) {
|
|
4880
4377
|
switch (_d.label) {
|
|
@@ -4911,14 +4408,14 @@ var deserializeAws_restJson1UpdateDataSourceCommandError = function (output, con
|
|
|
4911
4408
|
case 11: throw _d.sent();
|
|
4912
4409
|
case 12:
|
|
4913
4410
|
parsedBody = parsedOutput.body;
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
$metadata: $metadata,
|
|
4411
|
+
throwDefaultError({
|
|
4412
|
+
output: output,
|
|
4413
|
+
parsedBody: parsedBody,
|
|
4414
|
+
exceptionCtor: __BaseException,
|
|
4415
|
+
errorCode: errorCode,
|
|
4920
4416
|
});
|
|
4921
|
-
|
|
4417
|
+
_d.label = 13;
|
|
4418
|
+
case 13: return [2];
|
|
4922
4419
|
}
|
|
4923
4420
|
});
|
|
4924
4421
|
}); };
|
|
@@ -4930,24 +4427,23 @@ export var deserializeAws_restJson1UpdateDomainNameCommand = function (output, c
|
|
|
4930
4427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4931
4428
|
return [2, deserializeAws_restJson1UpdateDomainNameCommandError(output, context)];
|
|
4932
4429
|
}
|
|
4933
|
-
contents = {
|
|
4430
|
+
contents = map({
|
|
4934
4431
|
$metadata: deserializeMetadata(output),
|
|
4935
|
-
|
|
4936
|
-
};
|
|
4432
|
+
});
|
|
4937
4433
|
_a = __expectNonNull;
|
|
4938
4434
|
_b = __expectObject;
|
|
4939
4435
|
return [4, parseBody(output.body, context)];
|
|
4940
4436
|
case 1:
|
|
4941
4437
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4942
|
-
if (data.domainNameConfig
|
|
4438
|
+
if (data.domainNameConfig != null) {
|
|
4943
4439
|
contents.domainNameConfig = deserializeAws_restJson1DomainNameConfig(data.domainNameConfig, context);
|
|
4944
4440
|
}
|
|
4945
|
-
return [2,
|
|
4441
|
+
return [2, contents];
|
|
4946
4442
|
}
|
|
4947
4443
|
});
|
|
4948
4444
|
}); };
|
|
4949
4445
|
var deserializeAws_restJson1UpdateDomainNameCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4950
|
-
var parsedOutput, _a,
|
|
4446
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4951
4447
|
var _c;
|
|
4952
4448
|
return __generator(this, function (_d) {
|
|
4953
4449
|
switch (_d.label) {
|
|
@@ -4984,14 +4480,14 @@ var deserializeAws_restJson1UpdateDomainNameCommandError = function (output, con
|
|
|
4984
4480
|
case 11: throw _d.sent();
|
|
4985
4481
|
case 12:
|
|
4986
4482
|
parsedBody = parsedOutput.body;
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
$metadata: $metadata,
|
|
4483
|
+
throwDefaultError({
|
|
4484
|
+
output: output,
|
|
4485
|
+
parsedBody: parsedBody,
|
|
4486
|
+
exceptionCtor: __BaseException,
|
|
4487
|
+
errorCode: errorCode,
|
|
4993
4488
|
});
|
|
4994
|
-
|
|
4489
|
+
_d.label = 13;
|
|
4490
|
+
case 13: return [2];
|
|
4995
4491
|
}
|
|
4996
4492
|
});
|
|
4997
4493
|
}); };
|
|
@@ -5003,24 +4499,23 @@ export var deserializeAws_restJson1UpdateFunctionCommand = function (output, con
|
|
|
5003
4499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5004
4500
|
return [2, deserializeAws_restJson1UpdateFunctionCommandError(output, context)];
|
|
5005
4501
|
}
|
|
5006
|
-
contents = {
|
|
4502
|
+
contents = map({
|
|
5007
4503
|
$metadata: deserializeMetadata(output),
|
|
5008
|
-
|
|
5009
|
-
};
|
|
4504
|
+
});
|
|
5010
4505
|
_a = __expectNonNull;
|
|
5011
4506
|
_b = __expectObject;
|
|
5012
4507
|
return [4, parseBody(output.body, context)];
|
|
5013
4508
|
case 1:
|
|
5014
4509
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5015
|
-
if (data.functionConfiguration
|
|
4510
|
+
if (data.functionConfiguration != null) {
|
|
5016
4511
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
5017
4512
|
}
|
|
5018
|
-
return [2,
|
|
4513
|
+
return [2, contents];
|
|
5019
4514
|
}
|
|
5020
4515
|
});
|
|
5021
4516
|
}); };
|
|
5022
4517
|
var deserializeAws_restJson1UpdateFunctionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5023
|
-
var parsedOutput, _a,
|
|
4518
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5024
4519
|
var _c;
|
|
5025
4520
|
return __generator(this, function (_d) {
|
|
5026
4521
|
switch (_d.label) {
|
|
@@ -5053,14 +4548,14 @@ var deserializeAws_restJson1UpdateFunctionCommandError = function (output, conte
|
|
|
5053
4548
|
case 9: throw _d.sent();
|
|
5054
4549
|
case 10:
|
|
5055
4550
|
parsedBody = parsedOutput.body;
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
$metadata: $metadata,
|
|
4551
|
+
throwDefaultError({
|
|
4552
|
+
output: output,
|
|
4553
|
+
parsedBody: parsedBody,
|
|
4554
|
+
exceptionCtor: __BaseException,
|
|
4555
|
+
errorCode: errorCode,
|
|
5062
4556
|
});
|
|
5063
|
-
|
|
4557
|
+
_d.label = 11;
|
|
4558
|
+
case 11: return [2];
|
|
5064
4559
|
}
|
|
5065
4560
|
});
|
|
5066
4561
|
}); };
|
|
@@ -5072,24 +4567,23 @@ export var deserializeAws_restJson1UpdateGraphqlApiCommand = function (output, c
|
|
|
5072
4567
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5073
4568
|
return [2, deserializeAws_restJson1UpdateGraphqlApiCommandError(output, context)];
|
|
5074
4569
|
}
|
|
5075
|
-
contents = {
|
|
4570
|
+
contents = map({
|
|
5076
4571
|
$metadata: deserializeMetadata(output),
|
|
5077
|
-
|
|
5078
|
-
};
|
|
4572
|
+
});
|
|
5079
4573
|
_a = __expectNonNull;
|
|
5080
4574
|
_b = __expectObject;
|
|
5081
4575
|
return [4, parseBody(output.body, context)];
|
|
5082
4576
|
case 1:
|
|
5083
4577
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5084
|
-
if (data.graphqlApi
|
|
4578
|
+
if (data.graphqlApi != null) {
|
|
5085
4579
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
5086
4580
|
}
|
|
5087
|
-
return [2,
|
|
4581
|
+
return [2, contents];
|
|
5088
4582
|
}
|
|
5089
4583
|
});
|
|
5090
4584
|
}); };
|
|
5091
4585
|
var deserializeAws_restJson1UpdateGraphqlApiCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5092
|
-
var parsedOutput, _a,
|
|
4586
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5093
4587
|
var _c;
|
|
5094
4588
|
return __generator(this, function (_d) {
|
|
5095
4589
|
switch (_d.label) {
|
|
@@ -5130,14 +4624,14 @@ var deserializeAws_restJson1UpdateGraphqlApiCommandError = function (output, con
|
|
|
5130
4624
|
case 13: throw _d.sent();
|
|
5131
4625
|
case 14:
|
|
5132
4626
|
parsedBody = parsedOutput.body;
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
$metadata: $metadata,
|
|
4627
|
+
throwDefaultError({
|
|
4628
|
+
output: output,
|
|
4629
|
+
parsedBody: parsedBody,
|
|
4630
|
+
exceptionCtor: __BaseException,
|
|
4631
|
+
errorCode: errorCode,
|
|
5139
4632
|
});
|
|
5140
|
-
|
|
4633
|
+
_d.label = 15;
|
|
4634
|
+
case 15: return [2];
|
|
5141
4635
|
}
|
|
5142
4636
|
});
|
|
5143
4637
|
}); };
|
|
@@ -5149,24 +4643,23 @@ export var deserializeAws_restJson1UpdateResolverCommand = function (output, con
|
|
|
5149
4643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5150
4644
|
return [2, deserializeAws_restJson1UpdateResolverCommandError(output, context)];
|
|
5151
4645
|
}
|
|
5152
|
-
contents = {
|
|
4646
|
+
contents = map({
|
|
5153
4647
|
$metadata: deserializeMetadata(output),
|
|
5154
|
-
|
|
5155
|
-
};
|
|
4648
|
+
});
|
|
5156
4649
|
_a = __expectNonNull;
|
|
5157
4650
|
_b = __expectObject;
|
|
5158
4651
|
return [4, parseBody(output.body, context)];
|
|
5159
4652
|
case 1:
|
|
5160
4653
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5161
|
-
if (data.resolver
|
|
4654
|
+
if (data.resolver != null) {
|
|
5162
4655
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
5163
4656
|
}
|
|
5164
|
-
return [2,
|
|
4657
|
+
return [2, contents];
|
|
5165
4658
|
}
|
|
5166
4659
|
});
|
|
5167
4660
|
}); };
|
|
5168
4661
|
var deserializeAws_restJson1UpdateResolverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5169
|
-
var parsedOutput, _a,
|
|
4662
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5170
4663
|
var _c;
|
|
5171
4664
|
return __generator(this, function (_d) {
|
|
5172
4665
|
switch (_d.label) {
|
|
@@ -5199,14 +4692,14 @@ var deserializeAws_restJson1UpdateResolverCommandError = function (output, conte
|
|
|
5199
4692
|
case 9: throw _d.sent();
|
|
5200
4693
|
case 10:
|
|
5201
4694
|
parsedBody = parsedOutput.body;
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
$metadata: $metadata,
|
|
4695
|
+
throwDefaultError({
|
|
4696
|
+
output: output,
|
|
4697
|
+
parsedBody: parsedBody,
|
|
4698
|
+
exceptionCtor: __BaseException,
|
|
4699
|
+
errorCode: errorCode,
|
|
5208
4700
|
});
|
|
5209
|
-
|
|
4701
|
+
_d.label = 11;
|
|
4702
|
+
case 11: return [2];
|
|
5210
4703
|
}
|
|
5211
4704
|
});
|
|
5212
4705
|
}); };
|
|
@@ -5218,24 +4711,23 @@ export var deserializeAws_restJson1UpdateTypeCommand = function (output, context
|
|
|
5218
4711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5219
4712
|
return [2, deserializeAws_restJson1UpdateTypeCommandError(output, context)];
|
|
5220
4713
|
}
|
|
5221
|
-
contents = {
|
|
4714
|
+
contents = map({
|
|
5222
4715
|
$metadata: deserializeMetadata(output),
|
|
5223
|
-
|
|
5224
|
-
};
|
|
4716
|
+
});
|
|
5225
4717
|
_a = __expectNonNull;
|
|
5226
4718
|
_b = __expectObject;
|
|
5227
4719
|
return [4, parseBody(output.body, context)];
|
|
5228
4720
|
case 1:
|
|
5229
4721
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5230
|
-
if (data.type
|
|
4722
|
+
if (data.type != null) {
|
|
5231
4723
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
5232
4724
|
}
|
|
5233
|
-
return [2,
|
|
4725
|
+
return [2, contents];
|
|
5234
4726
|
}
|
|
5235
4727
|
});
|
|
5236
4728
|
}); };
|
|
5237
4729
|
var deserializeAws_restJson1UpdateTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5238
|
-
var parsedOutput, _a,
|
|
4730
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5239
4731
|
var _c;
|
|
5240
4732
|
return __generator(this, function (_d) {
|
|
5241
4733
|
switch (_d.label) {
|
|
@@ -5272,23 +4764,24 @@ var deserializeAws_restJson1UpdateTypeCommandError = function (output, context)
|
|
|
5272
4764
|
case 11: throw _d.sent();
|
|
5273
4765
|
case 12:
|
|
5274
4766
|
parsedBody = parsedOutput.body;
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
$metadata: $metadata,
|
|
4767
|
+
throwDefaultError({
|
|
4768
|
+
output: output,
|
|
4769
|
+
parsedBody: parsedBody,
|
|
4770
|
+
exceptionCtor: __BaseException,
|
|
4771
|
+
errorCode: errorCode,
|
|
5281
4772
|
});
|
|
5282
|
-
|
|
4773
|
+
_d.label = 13;
|
|
4774
|
+
case 13: return [2];
|
|
5283
4775
|
}
|
|
5284
4776
|
});
|
|
5285
4777
|
}); };
|
|
4778
|
+
var map = __map;
|
|
5286
4779
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5287
4780
|
var contents, data, exception;
|
|
5288
4781
|
return __generator(this, function (_a) {
|
|
5289
|
-
contents = {};
|
|
4782
|
+
contents = map({});
|
|
5290
4783
|
data = parsedOutput.body;
|
|
5291
|
-
if (data.message
|
|
4784
|
+
if (data.message != null) {
|
|
5292
4785
|
contents.message = __expectString(data.message);
|
|
5293
4786
|
}
|
|
5294
4787
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5298,9 +4791,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
5298
4791
|
var deserializeAws_restJson1ApiKeyLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5299
4792
|
var contents, data, exception;
|
|
5300
4793
|
return __generator(this, function (_a) {
|
|
5301
|
-
contents = {};
|
|
4794
|
+
contents = map({});
|
|
5302
4795
|
data = parsedOutput.body;
|
|
5303
|
-
if (data.message
|
|
4796
|
+
if (data.message != null) {
|
|
5304
4797
|
contents.message = __expectString(data.message);
|
|
5305
4798
|
}
|
|
5306
4799
|
exception = new ApiKeyLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5310,9 +4803,9 @@ var deserializeAws_restJson1ApiKeyLimitExceededExceptionResponse = function (par
|
|
|
5310
4803
|
var deserializeAws_restJson1ApiKeyValidityOutOfBoundsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5311
4804
|
var contents, data, exception;
|
|
5312
4805
|
return __generator(this, function (_a) {
|
|
5313
|
-
contents = {};
|
|
4806
|
+
contents = map({});
|
|
5314
4807
|
data = parsedOutput.body;
|
|
5315
|
-
if (data.message
|
|
4808
|
+
if (data.message != null) {
|
|
5316
4809
|
contents.message = __expectString(data.message);
|
|
5317
4810
|
}
|
|
5318
4811
|
exception = new ApiKeyValidityOutOfBoundsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5322,9 +4815,9 @@ var deserializeAws_restJson1ApiKeyValidityOutOfBoundsExceptionResponse = functio
|
|
|
5322
4815
|
var deserializeAws_restJson1ApiLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5323
4816
|
var contents, data, exception;
|
|
5324
4817
|
return __generator(this, function (_a) {
|
|
5325
|
-
contents = {};
|
|
4818
|
+
contents = map({});
|
|
5326
4819
|
data = parsedOutput.body;
|
|
5327
|
-
if (data.message
|
|
4820
|
+
if (data.message != null) {
|
|
5328
4821
|
contents.message = __expectString(data.message);
|
|
5329
4822
|
}
|
|
5330
4823
|
exception = new ApiLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5334,9 +4827,9 @@ var deserializeAws_restJson1ApiLimitExceededExceptionResponse = function (parsed
|
|
|
5334
4827
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5335
4828
|
var contents, data, exception;
|
|
5336
4829
|
return __generator(this, function (_a) {
|
|
5337
|
-
contents = {};
|
|
4830
|
+
contents = map({});
|
|
5338
4831
|
data = parsedOutput.body;
|
|
5339
|
-
if (data.message
|
|
4832
|
+
if (data.message != null) {
|
|
5340
4833
|
contents.message = __expectString(data.message);
|
|
5341
4834
|
}
|
|
5342
4835
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5346,9 +4839,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
5346
4839
|
var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5347
4840
|
var contents, data, exception;
|
|
5348
4841
|
return __generator(this, function (_a) {
|
|
5349
|
-
contents = {};
|
|
4842
|
+
contents = map({});
|
|
5350
4843
|
data = parsedOutput.body;
|
|
5351
|
-
if (data.message
|
|
4844
|
+
if (data.message != null) {
|
|
5352
4845
|
contents.message = __expectString(data.message);
|
|
5353
4846
|
}
|
|
5354
4847
|
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5358,9 +4851,9 @@ var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (
|
|
|
5358
4851
|
var deserializeAws_restJson1GraphQLSchemaExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5359
4852
|
var contents, data, exception;
|
|
5360
4853
|
return __generator(this, function (_a) {
|
|
5361
|
-
contents = {};
|
|
4854
|
+
contents = map({});
|
|
5362
4855
|
data = parsedOutput.body;
|
|
5363
|
-
if (data.message
|
|
4856
|
+
if (data.message != null) {
|
|
5364
4857
|
contents.message = __expectString(data.message);
|
|
5365
4858
|
}
|
|
5366
4859
|
exception = new GraphQLSchemaException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5370,9 +4863,9 @@ var deserializeAws_restJson1GraphQLSchemaExceptionResponse = function (parsedOut
|
|
|
5370
4863
|
var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5371
4864
|
var contents, data, exception;
|
|
5372
4865
|
return __generator(this, function (_a) {
|
|
5373
|
-
contents = {};
|
|
4866
|
+
contents = map({});
|
|
5374
4867
|
data = parsedOutput.body;
|
|
5375
|
-
if (data.message
|
|
4868
|
+
if (data.message != null) {
|
|
5376
4869
|
contents.message = __expectString(data.message);
|
|
5377
4870
|
}
|
|
5378
4871
|
exception = new InternalFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5382,9 +4875,9 @@ var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedO
|
|
|
5382
4875
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5383
4876
|
var contents, data, exception;
|
|
5384
4877
|
return __generator(this, function (_a) {
|
|
5385
|
-
contents = {};
|
|
4878
|
+
contents = map({});
|
|
5386
4879
|
data = parsedOutput.body;
|
|
5387
|
-
if (data.message
|
|
4880
|
+
if (data.message != null) {
|
|
5388
4881
|
contents.message = __expectString(data.message);
|
|
5389
4882
|
}
|
|
5390
4883
|
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5394,9 +4887,9 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
5394
4887
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5395
4888
|
var contents, data, exception;
|
|
5396
4889
|
return __generator(this, function (_a) {
|
|
5397
|
-
contents = {};
|
|
4890
|
+
contents = map({});
|
|
5398
4891
|
data = parsedOutput.body;
|
|
5399
|
-
if (data.message
|
|
4892
|
+
if (data.message != null) {
|
|
5400
4893
|
contents.message = __expectString(data.message);
|
|
5401
4894
|
}
|
|
5402
4895
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5406,9 +4899,9 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
5406
4899
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5407
4900
|
var contents, data, exception;
|
|
5408
4901
|
return __generator(this, function (_a) {
|
|
5409
|
-
contents = {};
|
|
4902
|
+
contents = map({});
|
|
5410
4903
|
data = parsedOutput.body;
|
|
5411
|
-
if (data.message
|
|
4904
|
+
if (data.message != null) {
|
|
5412
4905
|
contents.message = __expectString(data.message);
|
|
5413
4906
|
}
|
|
5414
4907
|
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5428,9 +4921,6 @@ var serializeAws_restJson1AdditionalAuthenticationProviders = function (input, c
|
|
|
5428
4921
|
return input
|
|
5429
4922
|
.filter(function (e) { return e != null; })
|
|
5430
4923
|
.map(function (entry) {
|
|
5431
|
-
if (entry === null) {
|
|
5432
|
-
return null;
|
|
5433
|
-
}
|
|
5434
4924
|
return serializeAws_restJson1AdditionalAuthenticationProvider(entry, context);
|
|
5435
4925
|
});
|
|
5436
4926
|
};
|
|
@@ -5449,9 +4939,6 @@ var serializeAws_restJson1CachingKeys = function (input, context) {
|
|
|
5449
4939
|
return input
|
|
5450
4940
|
.filter(function (e) { return e != null; })
|
|
5451
4941
|
.map(function (entry) {
|
|
5452
|
-
if (entry === null) {
|
|
5453
|
-
return null;
|
|
5454
|
-
}
|
|
5455
4942
|
return entry;
|
|
5456
4943
|
});
|
|
5457
4944
|
};
|
|
@@ -5473,9 +4960,6 @@ var serializeAws_restJson1FunctionsIds = function (input, context) {
|
|
|
5473
4960
|
return input
|
|
5474
4961
|
.filter(function (e) { return e != null; })
|
|
5475
4962
|
.map(function (entry) {
|
|
5476
|
-
if (entry === null) {
|
|
5477
|
-
return null;
|
|
5478
|
-
}
|
|
5479
4963
|
return entry;
|
|
5480
4964
|
});
|
|
5481
4965
|
};
|
|
@@ -5715,6 +5199,11 @@ var deserializeAws_restJson1ElasticsearchDataSourceConfig = function (output, co
|
|
|
5715
5199
|
endpoint: __expectString(output.endpoint),
|
|
5716
5200
|
};
|
|
5717
5201
|
};
|
|
5202
|
+
var deserializeAws_restJson1ErrorDetail = function (output, context) {
|
|
5203
|
+
return {
|
|
5204
|
+
message: __expectString(output.message),
|
|
5205
|
+
};
|
|
5206
|
+
};
|
|
5718
5207
|
var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
|
|
5719
5208
|
return {
|
|
5720
5209
|
dataSourceName: __expectString(output.dataSourceName),
|