@aws-sdk/client-appsync 3.28.0 → 3.32.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 +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +39 -39
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +190 -130
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +43 -40
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1CreateApiCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
@@ -1622,9 +1622,9 @@ export var serializeAws_restJson1UpdateTypeCommand = function (input, context) {
|
|
|
1622
1622
|
});
|
|
1623
1623
|
}); };
|
|
1624
1624
|
export var deserializeAws_restJson1CreateApiCacheCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1625
|
-
var contents, data;
|
|
1626
|
-
return __generator(this, function (
|
|
1627
|
-
switch (
|
|
1625
|
+
var contents, data, _a, _b;
|
|
1626
|
+
return __generator(this, function (_c) {
|
|
1627
|
+
switch (_c.label) {
|
|
1628
1628
|
case 0:
|
|
1629
1629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1630
1630
|
return [2 /*return*/, deserializeAws_restJson1CreateApiCacheCommandError(output, context)];
|
|
@@ -1633,9 +1633,11 @@ export var deserializeAws_restJson1CreateApiCacheCommand = function (output, con
|
|
|
1633
1633
|
$metadata: deserializeMetadata(output),
|
|
1634
1634
|
apiCache: undefined,
|
|
1635
1635
|
};
|
|
1636
|
+
_a = __expectNonNull;
|
|
1637
|
+
_b = __expectObject;
|
|
1636
1638
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1637
1639
|
case 1:
|
|
1638
|
-
data = _a.sent();
|
|
1640
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1639
1641
|
if (data.apiCache !== undefined && data.apiCache !== null) {
|
|
1640
1642
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
1641
1643
|
}
|
|
@@ -1714,9 +1716,9 @@ var deserializeAws_restJson1CreateApiCacheCommandError = function (output, conte
|
|
|
1714
1716
|
});
|
|
1715
1717
|
}); };
|
|
1716
1718
|
export var deserializeAws_restJson1CreateApiKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1717
|
-
var contents, data;
|
|
1718
|
-
return __generator(this, function (
|
|
1719
|
-
switch (
|
|
1719
|
+
var contents, data, _a, _b;
|
|
1720
|
+
return __generator(this, function (_c) {
|
|
1721
|
+
switch (_c.label) {
|
|
1720
1722
|
case 0:
|
|
1721
1723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1722
1724
|
return [2 /*return*/, deserializeAws_restJson1CreateApiKeyCommandError(output, context)];
|
|
@@ -1725,9 +1727,11 @@ export var deserializeAws_restJson1CreateApiKeyCommand = function (output, conte
|
|
|
1725
1727
|
$metadata: deserializeMetadata(output),
|
|
1726
1728
|
apiKey: undefined,
|
|
1727
1729
|
};
|
|
1730
|
+
_a = __expectNonNull;
|
|
1731
|
+
_b = __expectObject;
|
|
1728
1732
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1729
1733
|
case 1:
|
|
1730
|
-
data = _a.sent();
|
|
1734
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1731
1735
|
if (data.apiKey !== undefined && data.apiKey !== null) {
|
|
1732
1736
|
contents.apiKey = deserializeAws_restJson1ApiKey(data.apiKey, context);
|
|
1733
1737
|
}
|
|
@@ -1822,9 +1826,9 @@ var deserializeAws_restJson1CreateApiKeyCommandError = function (output, context
|
|
|
1822
1826
|
});
|
|
1823
1827
|
}); };
|
|
1824
1828
|
export var deserializeAws_restJson1CreateDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1825
|
-
var contents, data;
|
|
1826
|
-
return __generator(this, function (
|
|
1827
|
-
switch (
|
|
1829
|
+
var contents, data, _a, _b;
|
|
1830
|
+
return __generator(this, function (_c) {
|
|
1831
|
+
switch (_c.label) {
|
|
1828
1832
|
case 0:
|
|
1829
1833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
1834
|
return [2 /*return*/, deserializeAws_restJson1CreateDataSourceCommandError(output, context)];
|
|
@@ -1833,9 +1837,11 @@ export var deserializeAws_restJson1CreateDataSourceCommand = function (output, c
|
|
|
1833
1837
|
$metadata: deserializeMetadata(output),
|
|
1834
1838
|
dataSource: undefined,
|
|
1835
1839
|
};
|
|
1840
|
+
_a = __expectNonNull;
|
|
1841
|
+
_b = __expectObject;
|
|
1836
1842
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1837
1843
|
case 1:
|
|
1838
|
-
data = _a.sent();
|
|
1844
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1839
1845
|
if (data.dataSource !== undefined && data.dataSource !== null) {
|
|
1840
1846
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
1841
1847
|
}
|
|
@@ -1914,9 +1920,9 @@ var deserializeAws_restJson1CreateDataSourceCommandError = function (output, con
|
|
|
1914
1920
|
});
|
|
1915
1921
|
}); };
|
|
1916
1922
|
export var deserializeAws_restJson1CreateFunctionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1917
|
-
var contents, data;
|
|
1918
|
-
return __generator(this, function (
|
|
1919
|
-
switch (
|
|
1923
|
+
var contents, data, _a, _b;
|
|
1924
|
+
return __generator(this, function (_c) {
|
|
1925
|
+
switch (_c.label) {
|
|
1920
1926
|
case 0:
|
|
1921
1927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
1928
|
return [2 /*return*/, deserializeAws_restJson1CreateFunctionCommandError(output, context)];
|
|
@@ -1925,9 +1931,11 @@ export var deserializeAws_restJson1CreateFunctionCommand = function (output, con
|
|
|
1925
1931
|
$metadata: deserializeMetadata(output),
|
|
1926
1932
|
functionConfiguration: undefined,
|
|
1927
1933
|
};
|
|
1934
|
+
_a = __expectNonNull;
|
|
1935
|
+
_b = __expectObject;
|
|
1928
1936
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1929
1937
|
case 1:
|
|
1930
|
-
data = _a.sent();
|
|
1938
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1931
1939
|
if (data.functionConfiguration !== undefined && data.functionConfiguration !== null) {
|
|
1932
1940
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
1933
1941
|
}
|
|
@@ -1998,9 +2006,9 @@ var deserializeAws_restJson1CreateFunctionCommandError = function (output, conte
|
|
|
1998
2006
|
});
|
|
1999
2007
|
}); };
|
|
2000
2008
|
export var deserializeAws_restJson1CreateGraphqlApiCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2001
|
-
var contents, data;
|
|
2002
|
-
return __generator(this, function (
|
|
2003
|
-
switch (
|
|
2009
|
+
var contents, data, _a, _b;
|
|
2010
|
+
return __generator(this, function (_c) {
|
|
2011
|
+
switch (_c.label) {
|
|
2004
2012
|
case 0:
|
|
2005
2013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
2014
|
return [2 /*return*/, deserializeAws_restJson1CreateGraphqlApiCommandError(output, context)];
|
|
@@ -2009,9 +2017,11 @@ export var deserializeAws_restJson1CreateGraphqlApiCommand = function (output, c
|
|
|
2009
2017
|
$metadata: deserializeMetadata(output),
|
|
2010
2018
|
graphqlApi: undefined,
|
|
2011
2019
|
};
|
|
2020
|
+
_a = __expectNonNull;
|
|
2021
|
+
_b = __expectObject;
|
|
2012
2022
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2013
2023
|
case 1:
|
|
2014
|
-
data = _a.sent();
|
|
2024
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2015
2025
|
if (data.graphqlApi !== undefined && data.graphqlApi !== null) {
|
|
2016
2026
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
2017
2027
|
}
|
|
@@ -2098,9 +2108,9 @@ var deserializeAws_restJson1CreateGraphqlApiCommandError = function (output, con
|
|
|
2098
2108
|
});
|
|
2099
2109
|
}); };
|
|
2100
2110
|
export var deserializeAws_restJson1CreateResolverCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2101
|
-
var contents, data;
|
|
2102
|
-
return __generator(this, function (
|
|
2103
|
-
switch (
|
|
2111
|
+
var contents, data, _a, _b;
|
|
2112
|
+
return __generator(this, function (_c) {
|
|
2113
|
+
switch (_c.label) {
|
|
2104
2114
|
case 0:
|
|
2105
2115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2106
2116
|
return [2 /*return*/, deserializeAws_restJson1CreateResolverCommandError(output, context)];
|
|
@@ -2109,9 +2119,11 @@ export var deserializeAws_restJson1CreateResolverCommand = function (output, con
|
|
|
2109
2119
|
$metadata: deserializeMetadata(output),
|
|
2110
2120
|
resolver: undefined,
|
|
2111
2121
|
};
|
|
2122
|
+
_a = __expectNonNull;
|
|
2123
|
+
_b = __expectObject;
|
|
2112
2124
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2113
2125
|
case 1:
|
|
2114
|
-
data = _a.sent();
|
|
2126
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2115
2127
|
if (data.resolver !== undefined && data.resolver !== null) {
|
|
2116
2128
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
2117
2129
|
}
|
|
@@ -2182,9 +2194,9 @@ var deserializeAws_restJson1CreateResolverCommandError = function (output, conte
|
|
|
2182
2194
|
});
|
|
2183
2195
|
}); };
|
|
2184
2196
|
export var deserializeAws_restJson1CreateTypeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2185
|
-
var contents, data;
|
|
2186
|
-
return __generator(this, function (
|
|
2187
|
-
switch (
|
|
2197
|
+
var contents, data, _a, _b;
|
|
2198
|
+
return __generator(this, function (_c) {
|
|
2199
|
+
switch (_c.label) {
|
|
2188
2200
|
case 0:
|
|
2189
2201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2190
2202
|
return [2 /*return*/, deserializeAws_restJson1CreateTypeCommandError(output, context)];
|
|
@@ -2193,9 +2205,11 @@ export var deserializeAws_restJson1CreateTypeCommand = function (output, context
|
|
|
2193
2205
|
$metadata: deserializeMetadata(output),
|
|
2194
2206
|
type: undefined,
|
|
2195
2207
|
};
|
|
2208
|
+
_a = __expectNonNull;
|
|
2209
|
+
_b = __expectObject;
|
|
2196
2210
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2197
2211
|
case 1:
|
|
2198
|
-
data = _a.sent();
|
|
2212
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2199
2213
|
if (data.type !== undefined && data.type !== null) {
|
|
2200
2214
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
2201
2215
|
}
|
|
@@ -2962,9 +2976,9 @@ var deserializeAws_restJson1FlushApiCacheCommandError = function (output, contex
|
|
|
2962
2976
|
});
|
|
2963
2977
|
}); };
|
|
2964
2978
|
export var deserializeAws_restJson1GetApiCacheCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2965
|
-
var contents, data;
|
|
2966
|
-
return __generator(this, function (
|
|
2967
|
-
switch (
|
|
2979
|
+
var contents, data, _a, _b;
|
|
2980
|
+
return __generator(this, function (_c) {
|
|
2981
|
+
switch (_c.label) {
|
|
2968
2982
|
case 0:
|
|
2969
2983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2970
2984
|
return [2 /*return*/, deserializeAws_restJson1GetApiCacheCommandError(output, context)];
|
|
@@ -2973,9 +2987,11 @@ export var deserializeAws_restJson1GetApiCacheCommand = function (output, contex
|
|
|
2973
2987
|
$metadata: deserializeMetadata(output),
|
|
2974
2988
|
apiCache: undefined,
|
|
2975
2989
|
};
|
|
2990
|
+
_a = __expectNonNull;
|
|
2991
|
+
_b = __expectObject;
|
|
2976
2992
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2977
2993
|
case 1:
|
|
2978
|
-
data = _a.sent();
|
|
2994
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2979
2995
|
if (data.apiCache !== undefined && data.apiCache !== null) {
|
|
2980
2996
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
2981
2997
|
}
|
|
@@ -3054,9 +3070,9 @@ var deserializeAws_restJson1GetApiCacheCommandError = function (output, context)
|
|
|
3054
3070
|
});
|
|
3055
3071
|
}); };
|
|
3056
3072
|
export var deserializeAws_restJson1GetDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3057
|
-
var contents, data;
|
|
3058
|
-
return __generator(this, function (
|
|
3059
|
-
switch (
|
|
3073
|
+
var contents, data, _a, _b;
|
|
3074
|
+
return __generator(this, function (_c) {
|
|
3075
|
+
switch (_c.label) {
|
|
3060
3076
|
case 0:
|
|
3061
3077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3062
3078
|
return [2 /*return*/, deserializeAws_restJson1GetDataSourceCommandError(output, context)];
|
|
@@ -3065,9 +3081,11 @@ export var deserializeAws_restJson1GetDataSourceCommand = function (output, cont
|
|
|
3065
3081
|
$metadata: deserializeMetadata(output),
|
|
3066
3082
|
dataSource: undefined,
|
|
3067
3083
|
};
|
|
3084
|
+
_a = __expectNonNull;
|
|
3085
|
+
_b = __expectObject;
|
|
3068
3086
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3069
3087
|
case 1:
|
|
3070
|
-
data = _a.sent();
|
|
3088
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3071
3089
|
if (data.dataSource !== undefined && data.dataSource !== null) {
|
|
3072
3090
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
3073
3091
|
}
|
|
@@ -3146,9 +3164,9 @@ var deserializeAws_restJson1GetDataSourceCommandError = function (output, contex
|
|
|
3146
3164
|
});
|
|
3147
3165
|
}); };
|
|
3148
3166
|
export var deserializeAws_restJson1GetFunctionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3149
|
-
var contents, data;
|
|
3150
|
-
return __generator(this, function (
|
|
3151
|
-
switch (
|
|
3167
|
+
var contents, data, _a, _b;
|
|
3168
|
+
return __generator(this, function (_c) {
|
|
3169
|
+
switch (_c.label) {
|
|
3152
3170
|
case 0:
|
|
3153
3171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3154
3172
|
return [2 /*return*/, deserializeAws_restJson1GetFunctionCommandError(output, context)];
|
|
@@ -3157,9 +3175,11 @@ export var deserializeAws_restJson1GetFunctionCommand = function (output, contex
|
|
|
3157
3175
|
$metadata: deserializeMetadata(output),
|
|
3158
3176
|
functionConfiguration: undefined,
|
|
3159
3177
|
};
|
|
3178
|
+
_a = __expectNonNull;
|
|
3179
|
+
_b = __expectObject;
|
|
3160
3180
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3161
3181
|
case 1:
|
|
3162
|
-
data = _a.sent();
|
|
3182
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3163
3183
|
if (data.functionConfiguration !== undefined && data.functionConfiguration !== null) {
|
|
3164
3184
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
3165
3185
|
}
|
|
@@ -3222,9 +3242,9 @@ var deserializeAws_restJson1GetFunctionCommandError = function (output, context)
|
|
|
3222
3242
|
});
|
|
3223
3243
|
}); };
|
|
3224
3244
|
export var deserializeAws_restJson1GetGraphqlApiCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3225
|
-
var contents, data;
|
|
3226
|
-
return __generator(this, function (
|
|
3227
|
-
switch (
|
|
3245
|
+
var contents, data, _a, _b;
|
|
3246
|
+
return __generator(this, function (_c) {
|
|
3247
|
+
switch (_c.label) {
|
|
3228
3248
|
case 0:
|
|
3229
3249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3230
3250
|
return [2 /*return*/, deserializeAws_restJson1GetGraphqlApiCommandError(output, context)];
|
|
@@ -3233,9 +3253,11 @@ export var deserializeAws_restJson1GetGraphqlApiCommand = function (output, cont
|
|
|
3233
3253
|
$metadata: deserializeMetadata(output),
|
|
3234
3254
|
graphqlApi: undefined,
|
|
3235
3255
|
};
|
|
3256
|
+
_a = __expectNonNull;
|
|
3257
|
+
_b = __expectObject;
|
|
3236
3258
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3237
3259
|
case 1:
|
|
3238
|
-
data = _a.sent();
|
|
3260
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3239
3261
|
if (data.graphqlApi !== undefined && data.graphqlApi !== null) {
|
|
3240
3262
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
3241
3263
|
}
|
|
@@ -3396,9 +3418,9 @@ var deserializeAws_restJson1GetIntrospectionSchemaCommandError = function (outpu
|
|
|
3396
3418
|
});
|
|
3397
3419
|
}); };
|
|
3398
3420
|
export var deserializeAws_restJson1GetResolverCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3399
|
-
var contents, data;
|
|
3400
|
-
return __generator(this, function (
|
|
3401
|
-
switch (
|
|
3421
|
+
var contents, data, _a, _b;
|
|
3422
|
+
return __generator(this, function (_c) {
|
|
3423
|
+
switch (_c.label) {
|
|
3402
3424
|
case 0:
|
|
3403
3425
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3404
3426
|
return [2 /*return*/, deserializeAws_restJson1GetResolverCommandError(output, context)];
|
|
@@ -3407,9 +3429,11 @@ export var deserializeAws_restJson1GetResolverCommand = function (output, contex
|
|
|
3407
3429
|
$metadata: deserializeMetadata(output),
|
|
3408
3430
|
resolver: undefined,
|
|
3409
3431
|
};
|
|
3432
|
+
_a = __expectNonNull;
|
|
3433
|
+
_b = __expectObject;
|
|
3410
3434
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3411
3435
|
case 1:
|
|
3412
|
-
data = _a.sent();
|
|
3436
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3413
3437
|
if (data.resolver !== undefined && data.resolver !== null) {
|
|
3414
3438
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
3415
3439
|
}
|
|
@@ -3472,9 +3496,9 @@ var deserializeAws_restJson1GetResolverCommandError = function (output, context)
|
|
|
3472
3496
|
});
|
|
3473
3497
|
}); };
|
|
3474
3498
|
export var deserializeAws_restJson1GetSchemaCreationStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3475
|
-
var contents, data;
|
|
3476
|
-
return __generator(this, function (
|
|
3477
|
-
switch (
|
|
3499
|
+
var contents, data, _a, _b;
|
|
3500
|
+
return __generator(this, function (_c) {
|
|
3501
|
+
switch (_c.label) {
|
|
3478
3502
|
case 0:
|
|
3479
3503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3480
3504
|
return [2 /*return*/, deserializeAws_restJson1GetSchemaCreationStatusCommandError(output, context)];
|
|
@@ -3484,9 +3508,11 @@ export var deserializeAws_restJson1GetSchemaCreationStatusCommand = function (ou
|
|
|
3484
3508
|
details: undefined,
|
|
3485
3509
|
status: undefined,
|
|
3486
3510
|
};
|
|
3511
|
+
_a = __expectNonNull;
|
|
3512
|
+
_b = __expectObject;
|
|
3487
3513
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3488
3514
|
case 1:
|
|
3489
|
-
data = _a.sent();
|
|
3515
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3490
3516
|
if (data.details !== undefined && data.details !== null) {
|
|
3491
3517
|
contents.details = __expectString(data.details);
|
|
3492
3518
|
}
|
|
@@ -3560,9 +3586,9 @@ var deserializeAws_restJson1GetSchemaCreationStatusCommandError = function (outp
|
|
|
3560
3586
|
});
|
|
3561
3587
|
}); };
|
|
3562
3588
|
export var deserializeAws_restJson1GetTypeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3563
|
-
var contents, data;
|
|
3564
|
-
return __generator(this, function (
|
|
3565
|
-
switch (
|
|
3589
|
+
var contents, data, _a, _b;
|
|
3590
|
+
return __generator(this, function (_c) {
|
|
3591
|
+
switch (_c.label) {
|
|
3566
3592
|
case 0:
|
|
3567
3593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3568
3594
|
return [2 /*return*/, deserializeAws_restJson1GetTypeCommandError(output, context)];
|
|
@@ -3571,9 +3597,11 @@ export var deserializeAws_restJson1GetTypeCommand = function (output, context) {
|
|
|
3571
3597
|
$metadata: deserializeMetadata(output),
|
|
3572
3598
|
type: undefined,
|
|
3573
3599
|
};
|
|
3600
|
+
_a = __expectNonNull;
|
|
3601
|
+
_b = __expectObject;
|
|
3574
3602
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3575
3603
|
case 1:
|
|
3576
|
-
data = _a.sent();
|
|
3604
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3577
3605
|
if (data.type !== undefined && data.type !== null) {
|
|
3578
3606
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
3579
3607
|
}
|
|
@@ -3652,9 +3680,9 @@ var deserializeAws_restJson1GetTypeCommandError = function (output, context) { r
|
|
|
3652
3680
|
});
|
|
3653
3681
|
}); };
|
|
3654
3682
|
export var deserializeAws_restJson1ListApiKeysCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3655
|
-
var contents, data;
|
|
3656
|
-
return __generator(this, function (
|
|
3657
|
-
switch (
|
|
3683
|
+
var contents, data, _a, _b;
|
|
3684
|
+
return __generator(this, function (_c) {
|
|
3685
|
+
switch (_c.label) {
|
|
3658
3686
|
case 0:
|
|
3659
3687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3660
3688
|
return [2 /*return*/, deserializeAws_restJson1ListApiKeysCommandError(output, context)];
|
|
@@ -3664,9 +3692,11 @@ export var deserializeAws_restJson1ListApiKeysCommand = function (output, contex
|
|
|
3664
3692
|
apiKeys: undefined,
|
|
3665
3693
|
nextToken: undefined,
|
|
3666
3694
|
};
|
|
3695
|
+
_a = __expectNonNull;
|
|
3696
|
+
_b = __expectObject;
|
|
3667
3697
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3668
3698
|
case 1:
|
|
3669
|
-
data = _a.sent();
|
|
3699
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3670
3700
|
if (data.apiKeys !== undefined && data.apiKeys !== null) {
|
|
3671
3701
|
contents.apiKeys = deserializeAws_restJson1ApiKeys(data.apiKeys, context);
|
|
3672
3702
|
}
|
|
@@ -3740,9 +3770,9 @@ var deserializeAws_restJson1ListApiKeysCommandError = function (output, context)
|
|
|
3740
3770
|
});
|
|
3741
3771
|
}); };
|
|
3742
3772
|
export var deserializeAws_restJson1ListDataSourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3743
|
-
var contents, data;
|
|
3744
|
-
return __generator(this, function (
|
|
3745
|
-
switch (
|
|
3773
|
+
var contents, data, _a, _b;
|
|
3774
|
+
return __generator(this, function (_c) {
|
|
3775
|
+
switch (_c.label) {
|
|
3746
3776
|
case 0:
|
|
3747
3777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3748
3778
|
return [2 /*return*/, deserializeAws_restJson1ListDataSourcesCommandError(output, context)];
|
|
@@ -3752,9 +3782,11 @@ export var deserializeAws_restJson1ListDataSourcesCommand = function (output, co
|
|
|
3752
3782
|
dataSources: undefined,
|
|
3753
3783
|
nextToken: undefined,
|
|
3754
3784
|
};
|
|
3785
|
+
_a = __expectNonNull;
|
|
3786
|
+
_b = __expectObject;
|
|
3755
3787
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3756
3788
|
case 1:
|
|
3757
|
-
data = _a.sent();
|
|
3789
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3758
3790
|
if (data.dataSources !== undefined && data.dataSources !== null) {
|
|
3759
3791
|
contents.dataSources = deserializeAws_restJson1DataSources(data.dataSources, context);
|
|
3760
3792
|
}
|
|
@@ -3828,9 +3860,9 @@ var deserializeAws_restJson1ListDataSourcesCommandError = function (output, cont
|
|
|
3828
3860
|
});
|
|
3829
3861
|
}); };
|
|
3830
3862
|
export var deserializeAws_restJson1ListFunctionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3831
|
-
var contents, data;
|
|
3832
|
-
return __generator(this, function (
|
|
3833
|
-
switch (
|
|
3863
|
+
var contents, data, _a, _b;
|
|
3864
|
+
return __generator(this, function (_c) {
|
|
3865
|
+
switch (_c.label) {
|
|
3834
3866
|
case 0:
|
|
3835
3867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3836
3868
|
return [2 /*return*/, deserializeAws_restJson1ListFunctionsCommandError(output, context)];
|
|
@@ -3840,9 +3872,11 @@ export var deserializeAws_restJson1ListFunctionsCommand = function (output, cont
|
|
|
3840
3872
|
functions: undefined,
|
|
3841
3873
|
nextToken: undefined,
|
|
3842
3874
|
};
|
|
3875
|
+
_a = __expectNonNull;
|
|
3876
|
+
_b = __expectObject;
|
|
3843
3877
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3844
3878
|
case 1:
|
|
3845
|
-
data = _a.sent();
|
|
3879
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3846
3880
|
if (data.functions !== undefined && data.functions !== null) {
|
|
3847
3881
|
contents.functions = deserializeAws_restJson1Functions(data.functions, context);
|
|
3848
3882
|
}
|
|
@@ -3916,9 +3950,9 @@ var deserializeAws_restJson1ListFunctionsCommandError = function (output, contex
|
|
|
3916
3950
|
});
|
|
3917
3951
|
}); };
|
|
3918
3952
|
export var deserializeAws_restJson1ListGraphqlApisCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3919
|
-
var contents, data;
|
|
3920
|
-
return __generator(this, function (
|
|
3921
|
-
switch (
|
|
3953
|
+
var contents, data, _a, _b;
|
|
3954
|
+
return __generator(this, function (_c) {
|
|
3955
|
+
switch (_c.label) {
|
|
3922
3956
|
case 0:
|
|
3923
3957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3924
3958
|
return [2 /*return*/, deserializeAws_restJson1ListGraphqlApisCommandError(output, context)];
|
|
@@ -3928,9 +3962,11 @@ export var deserializeAws_restJson1ListGraphqlApisCommand = function (output, co
|
|
|
3928
3962
|
graphqlApis: undefined,
|
|
3929
3963
|
nextToken: undefined,
|
|
3930
3964
|
};
|
|
3965
|
+
_a = __expectNonNull;
|
|
3966
|
+
_b = __expectObject;
|
|
3931
3967
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3932
3968
|
case 1:
|
|
3933
|
-
data = _a.sent();
|
|
3969
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3934
3970
|
if (data.graphqlApis !== undefined && data.graphqlApis !== null) {
|
|
3935
3971
|
contents.graphqlApis = deserializeAws_restJson1GraphqlApis(data.graphqlApis, context);
|
|
3936
3972
|
}
|
|
@@ -3996,9 +4032,9 @@ var deserializeAws_restJson1ListGraphqlApisCommandError = function (output, cont
|
|
|
3996
4032
|
});
|
|
3997
4033
|
}); };
|
|
3998
4034
|
export var deserializeAws_restJson1ListResolversCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3999
|
-
var contents, data;
|
|
4000
|
-
return __generator(this, function (
|
|
4001
|
-
switch (
|
|
4035
|
+
var contents, data, _a, _b;
|
|
4036
|
+
return __generator(this, function (_c) {
|
|
4037
|
+
switch (_c.label) {
|
|
4002
4038
|
case 0:
|
|
4003
4039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4004
4040
|
return [2 /*return*/, deserializeAws_restJson1ListResolversCommandError(output, context)];
|
|
@@ -4008,9 +4044,11 @@ export var deserializeAws_restJson1ListResolversCommand = function (output, cont
|
|
|
4008
4044
|
nextToken: undefined,
|
|
4009
4045
|
resolvers: undefined,
|
|
4010
4046
|
};
|
|
4047
|
+
_a = __expectNonNull;
|
|
4048
|
+
_b = __expectObject;
|
|
4011
4049
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4012
4050
|
case 1:
|
|
4013
|
-
data = _a.sent();
|
|
4051
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4014
4052
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4015
4053
|
contents.nextToken = __expectString(data.nextToken);
|
|
4016
4054
|
}
|
|
@@ -4084,9 +4122,9 @@ var deserializeAws_restJson1ListResolversCommandError = function (output, contex
|
|
|
4084
4122
|
});
|
|
4085
4123
|
}); };
|
|
4086
4124
|
export var deserializeAws_restJson1ListResolversByFunctionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4087
|
-
var contents, data;
|
|
4088
|
-
return __generator(this, function (
|
|
4089
|
-
switch (
|
|
4125
|
+
var contents, data, _a, _b;
|
|
4126
|
+
return __generator(this, function (_c) {
|
|
4127
|
+
switch (_c.label) {
|
|
4090
4128
|
case 0:
|
|
4091
4129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4092
4130
|
return [2 /*return*/, deserializeAws_restJson1ListResolversByFunctionCommandError(output, context)];
|
|
@@ -4096,9 +4134,11 @@ export var deserializeAws_restJson1ListResolversByFunctionCommand = function (ou
|
|
|
4096
4134
|
nextToken: undefined,
|
|
4097
4135
|
resolvers: undefined,
|
|
4098
4136
|
};
|
|
4137
|
+
_a = __expectNonNull;
|
|
4138
|
+
_b = __expectObject;
|
|
4099
4139
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4100
4140
|
case 1:
|
|
4101
|
-
data = _a.sent();
|
|
4141
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4102
4142
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4103
4143
|
contents.nextToken = __expectString(data.nextToken);
|
|
4104
4144
|
}
|
|
@@ -4172,9 +4212,9 @@ var deserializeAws_restJson1ListResolversByFunctionCommandError = function (outp
|
|
|
4172
4212
|
});
|
|
4173
4213
|
}); };
|
|
4174
4214
|
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4175
|
-
var contents, data;
|
|
4176
|
-
return __generator(this, function (
|
|
4177
|
-
switch (
|
|
4215
|
+
var contents, data, _a, _b;
|
|
4216
|
+
return __generator(this, function (_c) {
|
|
4217
|
+
switch (_c.label) {
|
|
4178
4218
|
case 0:
|
|
4179
4219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4180
4220
|
return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
@@ -4183,9 +4223,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
4183
4223
|
$metadata: deserializeMetadata(output),
|
|
4184
4224
|
tags: undefined,
|
|
4185
4225
|
};
|
|
4226
|
+
_a = __expectNonNull;
|
|
4227
|
+
_b = __expectObject;
|
|
4186
4228
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4187
4229
|
case 1:
|
|
4188
|
-
data = _a.sent();
|
|
4230
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4189
4231
|
if (data.tags !== undefined && data.tags !== null) {
|
|
4190
4232
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4191
4233
|
}
|
|
@@ -4272,9 +4314,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4272
4314
|
});
|
|
4273
4315
|
}); };
|
|
4274
4316
|
export var deserializeAws_restJson1ListTypesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4275
|
-
var contents, data;
|
|
4276
|
-
return __generator(this, function (
|
|
4277
|
-
switch (
|
|
4317
|
+
var contents, data, _a, _b;
|
|
4318
|
+
return __generator(this, function (_c) {
|
|
4319
|
+
switch (_c.label) {
|
|
4278
4320
|
case 0:
|
|
4279
4321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4280
4322
|
return [2 /*return*/, deserializeAws_restJson1ListTypesCommandError(output, context)];
|
|
@@ -4284,9 +4326,11 @@ export var deserializeAws_restJson1ListTypesCommand = function (output, context)
|
|
|
4284
4326
|
nextToken: undefined,
|
|
4285
4327
|
types: undefined,
|
|
4286
4328
|
};
|
|
4329
|
+
_a = __expectNonNull;
|
|
4330
|
+
_b = __expectObject;
|
|
4287
4331
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4288
4332
|
case 1:
|
|
4289
|
-
data = _a.sent();
|
|
4333
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4290
4334
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4291
4335
|
contents.nextToken = __expectString(data.nextToken);
|
|
4292
4336
|
}
|
|
@@ -4368,9 +4412,9 @@ var deserializeAws_restJson1ListTypesCommandError = function (output, context) {
|
|
|
4368
4412
|
});
|
|
4369
4413
|
}); };
|
|
4370
4414
|
export var deserializeAws_restJson1StartSchemaCreationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4371
|
-
var contents, data;
|
|
4372
|
-
return __generator(this, function (
|
|
4373
|
-
switch (
|
|
4415
|
+
var contents, data, _a, _b;
|
|
4416
|
+
return __generator(this, function (_c) {
|
|
4417
|
+
switch (_c.label) {
|
|
4374
4418
|
case 0:
|
|
4375
4419
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4376
4420
|
return [2 /*return*/, deserializeAws_restJson1StartSchemaCreationCommandError(output, context)];
|
|
@@ -4379,9 +4423,11 @@ export var deserializeAws_restJson1StartSchemaCreationCommand = function (output
|
|
|
4379
4423
|
$metadata: deserializeMetadata(output),
|
|
4380
4424
|
status: undefined,
|
|
4381
4425
|
};
|
|
4426
|
+
_a = __expectNonNull;
|
|
4427
|
+
_b = __expectObject;
|
|
4382
4428
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4383
4429
|
case 1:
|
|
4384
|
-
data = _a.sent();
|
|
4430
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4385
4431
|
if (data.status !== undefined && data.status !== null) {
|
|
4386
4432
|
contents.status = __expectString(data.status);
|
|
4387
4433
|
}
|
|
@@ -4652,9 +4698,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4652
4698
|
});
|
|
4653
4699
|
}); };
|
|
4654
4700
|
export var deserializeAws_restJson1UpdateApiCacheCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4655
|
-
var contents, data;
|
|
4656
|
-
return __generator(this, function (
|
|
4657
|
-
switch (
|
|
4701
|
+
var contents, data, _a, _b;
|
|
4702
|
+
return __generator(this, function (_c) {
|
|
4703
|
+
switch (_c.label) {
|
|
4658
4704
|
case 0:
|
|
4659
4705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4660
4706
|
return [2 /*return*/, deserializeAws_restJson1UpdateApiCacheCommandError(output, context)];
|
|
@@ -4663,9 +4709,11 @@ export var deserializeAws_restJson1UpdateApiCacheCommand = function (output, con
|
|
|
4663
4709
|
$metadata: deserializeMetadata(output),
|
|
4664
4710
|
apiCache: undefined,
|
|
4665
4711
|
};
|
|
4712
|
+
_a = __expectNonNull;
|
|
4713
|
+
_b = __expectObject;
|
|
4666
4714
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4667
4715
|
case 1:
|
|
4668
|
-
data = _a.sent();
|
|
4716
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4669
4717
|
if (data.apiCache !== undefined && data.apiCache !== null) {
|
|
4670
4718
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
4671
4719
|
}
|
|
@@ -4744,9 +4792,9 @@ var deserializeAws_restJson1UpdateApiCacheCommandError = function (output, conte
|
|
|
4744
4792
|
});
|
|
4745
4793
|
}); };
|
|
4746
4794
|
export var deserializeAws_restJson1UpdateApiKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4747
|
-
var contents, data;
|
|
4748
|
-
return __generator(this, function (
|
|
4749
|
-
switch (
|
|
4795
|
+
var contents, data, _a, _b;
|
|
4796
|
+
return __generator(this, function (_c) {
|
|
4797
|
+
switch (_c.label) {
|
|
4750
4798
|
case 0:
|
|
4751
4799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4752
4800
|
return [2 /*return*/, deserializeAws_restJson1UpdateApiKeyCommandError(output, context)];
|
|
@@ -4755,9 +4803,11 @@ export var deserializeAws_restJson1UpdateApiKeyCommand = function (output, conte
|
|
|
4755
4803
|
$metadata: deserializeMetadata(output),
|
|
4756
4804
|
apiKey: undefined,
|
|
4757
4805
|
};
|
|
4806
|
+
_a = __expectNonNull;
|
|
4807
|
+
_b = __expectObject;
|
|
4758
4808
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4759
4809
|
case 1:
|
|
4760
|
-
data = _a.sent();
|
|
4810
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4761
4811
|
if (data.apiKey !== undefined && data.apiKey !== null) {
|
|
4762
4812
|
contents.apiKey = deserializeAws_restJson1ApiKey(data.apiKey, context);
|
|
4763
4813
|
}
|
|
@@ -4844,9 +4894,9 @@ var deserializeAws_restJson1UpdateApiKeyCommandError = function (output, context
|
|
|
4844
4894
|
});
|
|
4845
4895
|
}); };
|
|
4846
4896
|
export var deserializeAws_restJson1UpdateDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4847
|
-
var contents, data;
|
|
4848
|
-
return __generator(this, function (
|
|
4849
|
-
switch (
|
|
4897
|
+
var contents, data, _a, _b;
|
|
4898
|
+
return __generator(this, function (_c) {
|
|
4899
|
+
switch (_c.label) {
|
|
4850
4900
|
case 0:
|
|
4851
4901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4852
4902
|
return [2 /*return*/, deserializeAws_restJson1UpdateDataSourceCommandError(output, context)];
|
|
@@ -4855,9 +4905,11 @@ export var deserializeAws_restJson1UpdateDataSourceCommand = function (output, c
|
|
|
4855
4905
|
$metadata: deserializeMetadata(output),
|
|
4856
4906
|
dataSource: undefined,
|
|
4857
4907
|
};
|
|
4908
|
+
_a = __expectNonNull;
|
|
4909
|
+
_b = __expectObject;
|
|
4858
4910
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4859
4911
|
case 1:
|
|
4860
|
-
data = _a.sent();
|
|
4912
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4861
4913
|
if (data.dataSource !== undefined && data.dataSource !== null) {
|
|
4862
4914
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
4863
4915
|
}
|
|
@@ -4936,9 +4988,9 @@ var deserializeAws_restJson1UpdateDataSourceCommandError = function (output, con
|
|
|
4936
4988
|
});
|
|
4937
4989
|
}); };
|
|
4938
4990
|
export var deserializeAws_restJson1UpdateFunctionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4939
|
-
var contents, data;
|
|
4940
|
-
return __generator(this, function (
|
|
4941
|
-
switch (
|
|
4991
|
+
var contents, data, _a, _b;
|
|
4992
|
+
return __generator(this, function (_c) {
|
|
4993
|
+
switch (_c.label) {
|
|
4942
4994
|
case 0:
|
|
4943
4995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4944
4996
|
return [2 /*return*/, deserializeAws_restJson1UpdateFunctionCommandError(output, context)];
|
|
@@ -4947,9 +4999,11 @@ export var deserializeAws_restJson1UpdateFunctionCommand = function (output, con
|
|
|
4947
4999
|
$metadata: deserializeMetadata(output),
|
|
4948
5000
|
functionConfiguration: undefined,
|
|
4949
5001
|
};
|
|
5002
|
+
_a = __expectNonNull;
|
|
5003
|
+
_b = __expectObject;
|
|
4950
5004
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4951
5005
|
case 1:
|
|
4952
|
-
data = _a.sent();
|
|
5006
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4953
5007
|
if (data.functionConfiguration !== undefined && data.functionConfiguration !== null) {
|
|
4954
5008
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
4955
5009
|
}
|
|
@@ -5020,9 +5074,9 @@ var deserializeAws_restJson1UpdateFunctionCommandError = function (output, conte
|
|
|
5020
5074
|
});
|
|
5021
5075
|
}); };
|
|
5022
5076
|
export var deserializeAws_restJson1UpdateGraphqlApiCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5023
|
-
var contents, data;
|
|
5024
|
-
return __generator(this, function (
|
|
5025
|
-
switch (
|
|
5077
|
+
var contents, data, _a, _b;
|
|
5078
|
+
return __generator(this, function (_c) {
|
|
5079
|
+
switch (_c.label) {
|
|
5026
5080
|
case 0:
|
|
5027
5081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5028
5082
|
return [2 /*return*/, deserializeAws_restJson1UpdateGraphqlApiCommandError(output, context)];
|
|
@@ -5031,9 +5085,11 @@ export var deserializeAws_restJson1UpdateGraphqlApiCommand = function (output, c
|
|
|
5031
5085
|
$metadata: deserializeMetadata(output),
|
|
5032
5086
|
graphqlApi: undefined,
|
|
5033
5087
|
};
|
|
5088
|
+
_a = __expectNonNull;
|
|
5089
|
+
_b = __expectObject;
|
|
5034
5090
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5035
5091
|
case 1:
|
|
5036
|
-
data = _a.sent();
|
|
5092
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5037
5093
|
if (data.graphqlApi !== undefined && data.graphqlApi !== null) {
|
|
5038
5094
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
5039
5095
|
}
|
|
@@ -5120,9 +5176,9 @@ var deserializeAws_restJson1UpdateGraphqlApiCommandError = function (output, con
|
|
|
5120
5176
|
});
|
|
5121
5177
|
}); };
|
|
5122
5178
|
export var deserializeAws_restJson1UpdateResolverCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5123
|
-
var contents, data;
|
|
5124
|
-
return __generator(this, function (
|
|
5125
|
-
switch (
|
|
5179
|
+
var contents, data, _a, _b;
|
|
5180
|
+
return __generator(this, function (_c) {
|
|
5181
|
+
switch (_c.label) {
|
|
5126
5182
|
case 0:
|
|
5127
5183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5128
5184
|
return [2 /*return*/, deserializeAws_restJson1UpdateResolverCommandError(output, context)];
|
|
@@ -5131,9 +5187,11 @@ export var deserializeAws_restJson1UpdateResolverCommand = function (output, con
|
|
|
5131
5187
|
$metadata: deserializeMetadata(output),
|
|
5132
5188
|
resolver: undefined,
|
|
5133
5189
|
};
|
|
5190
|
+
_a = __expectNonNull;
|
|
5191
|
+
_b = __expectObject;
|
|
5134
5192
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5135
5193
|
case 1:
|
|
5136
|
-
data = _a.sent();
|
|
5194
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5137
5195
|
if (data.resolver !== undefined && data.resolver !== null) {
|
|
5138
5196
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
5139
5197
|
}
|
|
@@ -5204,9 +5262,9 @@ var deserializeAws_restJson1UpdateResolverCommandError = function (output, conte
|
|
|
5204
5262
|
});
|
|
5205
5263
|
}); };
|
|
5206
5264
|
export var deserializeAws_restJson1UpdateTypeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5207
|
-
var contents, data;
|
|
5208
|
-
return __generator(this, function (
|
|
5209
|
-
switch (
|
|
5265
|
+
var contents, data, _a, _b;
|
|
5266
|
+
return __generator(this, function (_c) {
|
|
5267
|
+
switch (_c.label) {
|
|
5210
5268
|
case 0:
|
|
5211
5269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5212
5270
|
return [2 /*return*/, deserializeAws_restJson1UpdateTypeCommandError(output, context)];
|
|
@@ -5215,9 +5273,11 @@ export var deserializeAws_restJson1UpdateTypeCommand = function (output, context
|
|
|
5215
5273
|
$metadata: deserializeMetadata(output),
|
|
5216
5274
|
type: undefined,
|
|
5217
5275
|
};
|
|
5276
|
+
_a = __expectNonNull;
|
|
5277
|
+
_b = __expectObject;
|
|
5218
5278
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5219
5279
|
case 1:
|
|
5220
|
-
data = _a.sent();
|
|
5280
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5221
5281
|
if (data.type !== undefined && data.type !== null) {
|
|
5222
5282
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
5223
5283
|
}
|
|
@@ -5647,15 +5707,15 @@ var deserializeAws_restJson1ApiCache = function (output, context) {
|
|
|
5647
5707
|
atRestEncryptionEnabled: __expectBoolean(output.atRestEncryptionEnabled),
|
|
5648
5708
|
status: __expectString(output.status),
|
|
5649
5709
|
transitEncryptionEnabled: __expectBoolean(output.transitEncryptionEnabled),
|
|
5650
|
-
ttl:
|
|
5710
|
+
ttl: __expectLong(output.ttl),
|
|
5651
5711
|
type: __expectString(output.type),
|
|
5652
5712
|
};
|
|
5653
5713
|
};
|
|
5654
5714
|
var deserializeAws_restJson1ApiKey = function (output, context) {
|
|
5655
5715
|
return {
|
|
5656
|
-
deletes:
|
|
5716
|
+
deletes: __expectLong(output.deletes),
|
|
5657
5717
|
description: __expectString(output.description),
|
|
5658
|
-
expires:
|
|
5718
|
+
expires: __expectLong(output.expires),
|
|
5659
5719
|
id: __expectString(output.id),
|
|
5660
5720
|
};
|
|
5661
5721
|
};
|
|
@@ -5688,7 +5748,7 @@ var deserializeAws_restJson1CachingConfig = function (output, context) {
|
|
|
5688
5748
|
cachingKeys: output.cachingKeys !== undefined && output.cachingKeys !== null
|
|
5689
5749
|
? deserializeAws_restJson1CachingKeys(output.cachingKeys, context)
|
|
5690
5750
|
: undefined,
|
|
5691
|
-
ttl:
|
|
5751
|
+
ttl: __expectLong(output.ttl),
|
|
5692
5752
|
};
|
|
5693
5753
|
};
|
|
5694
5754
|
var deserializeAws_restJson1CachingKeys = function (output, context) {
|
|
@@ -5744,9 +5804,9 @@ var deserializeAws_restJson1DataSources = function (output, context) {
|
|
|
5744
5804
|
};
|
|
5745
5805
|
var deserializeAws_restJson1DeltaSyncConfig = function (output, context) {
|
|
5746
5806
|
return {
|
|
5747
|
-
baseTableTTL:
|
|
5807
|
+
baseTableTTL: __expectLong(output.baseTableTTL),
|
|
5748
5808
|
deltaSyncTableName: __expectString(output.deltaSyncTableName),
|
|
5749
|
-
deltaSyncTableTTL:
|
|
5809
|
+
deltaSyncTableTTL: __expectLong(output.deltaSyncTableTTL),
|
|
5750
5810
|
};
|
|
5751
5811
|
};
|
|
5752
5812
|
var deserializeAws_restJson1DynamodbDataSourceConfig = function (output, context) {
|
|
@@ -5852,7 +5912,7 @@ var deserializeAws_restJson1HttpDataSourceConfig = function (output, context) {
|
|
|
5852
5912
|
};
|
|
5853
5913
|
var deserializeAws_restJson1LambdaAuthorizerConfig = function (output, context) {
|
|
5854
5914
|
return {
|
|
5855
|
-
authorizerResultTtlInSeconds:
|
|
5915
|
+
authorizerResultTtlInSeconds: __expectInt32(output.authorizerResultTtlInSeconds),
|
|
5856
5916
|
authorizerUri: __expectString(output.authorizerUri),
|
|
5857
5917
|
identityValidationExpression: __expectString(output.identityValidationExpression),
|
|
5858
5918
|
};
|
|
@@ -5886,9 +5946,9 @@ var deserializeAws_restJson1MapOfStringToString = function (output, context) {
|
|
|
5886
5946
|
};
|
|
5887
5947
|
var deserializeAws_restJson1OpenIDConnectConfig = function (output, context) {
|
|
5888
5948
|
return {
|
|
5889
|
-
authTTL:
|
|
5949
|
+
authTTL: __expectLong(output.authTTL),
|
|
5890
5950
|
clientId: __expectString(output.clientId),
|
|
5891
|
-
iatTTL:
|
|
5951
|
+
iatTTL: __expectLong(output.iatTTL),
|
|
5892
5952
|
issuer: __expectString(output.issuer),
|
|
5893
5953
|
};
|
|
5894
5954
|
};
|