@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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appsync",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appsync Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,45 +27,45 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"downlevel-dts": "0.7.0",
|
|
64
64
|
"jest": "^26.1.0",
|
|
65
65
|
"rimraf": "^3.0.0",
|
|
66
66
|
"ts-jest": "^26.4.1",
|
|
67
67
|
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.3.
|
|
68
|
+
"typescript": "~4.3.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=10.0.0"
|
|
@@ -96,7 +96,10 @@ import {
|
|
|
96
96
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
97
97
|
import {
|
|
98
98
|
expectBoolean as __expectBoolean,
|
|
99
|
-
|
|
99
|
+
expectInt32 as __expectInt32,
|
|
100
|
+
expectLong as __expectLong,
|
|
101
|
+
expectNonNull as __expectNonNull,
|
|
102
|
+
expectObject as __expectObject,
|
|
100
103
|
expectString as __expectString,
|
|
101
104
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
102
105
|
} from "@aws-sdk/smithy-client";
|
|
@@ -1764,7 +1767,7 @@ export const deserializeAws_restJson1CreateApiCacheCommand = async (
|
|
|
1764
1767
|
$metadata: deserializeMetadata(output),
|
|
1765
1768
|
apiCache: undefined,
|
|
1766
1769
|
};
|
|
1767
|
-
const data: any = await parseBody(output.body, context);
|
|
1770
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1768
1771
|
if (data.apiCache !== undefined && data.apiCache !== null) {
|
|
1769
1772
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
1770
1773
|
}
|
|
@@ -1851,7 +1854,7 @@ export const deserializeAws_restJson1CreateApiKeyCommand = async (
|
|
|
1851
1854
|
$metadata: deserializeMetadata(output),
|
|
1852
1855
|
apiKey: undefined,
|
|
1853
1856
|
};
|
|
1854
|
-
const data: any = await parseBody(output.body, context);
|
|
1857
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1855
1858
|
if (data.apiKey !== undefined && data.apiKey !== null) {
|
|
1856
1859
|
contents.apiKey = deserializeAws_restJson1ApiKey(data.apiKey, context);
|
|
1857
1860
|
}
|
|
@@ -1954,7 +1957,7 @@ export const deserializeAws_restJson1CreateDataSourceCommand = async (
|
|
|
1954
1957
|
$metadata: deserializeMetadata(output),
|
|
1955
1958
|
dataSource: undefined,
|
|
1956
1959
|
};
|
|
1957
|
-
const data: any = await parseBody(output.body, context);
|
|
1960
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1958
1961
|
if (data.dataSource !== undefined && data.dataSource !== null) {
|
|
1959
1962
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
1960
1963
|
}
|
|
@@ -2041,7 +2044,7 @@ export const deserializeAws_restJson1CreateFunctionCommand = async (
|
|
|
2041
2044
|
$metadata: deserializeMetadata(output),
|
|
2042
2045
|
functionConfiguration: undefined,
|
|
2043
2046
|
};
|
|
2044
|
-
const data: any = await parseBody(output.body, context);
|
|
2047
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2045
2048
|
if (data.functionConfiguration !== undefined && data.functionConfiguration !== null) {
|
|
2046
2049
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
2047
2050
|
}
|
|
@@ -2120,7 +2123,7 @@ export const deserializeAws_restJson1CreateGraphqlApiCommand = async (
|
|
|
2120
2123
|
$metadata: deserializeMetadata(output),
|
|
2121
2124
|
graphqlApi: undefined,
|
|
2122
2125
|
};
|
|
2123
|
-
const data: any = await parseBody(output.body, context);
|
|
2126
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2124
2127
|
if (data.graphqlApi !== undefined && data.graphqlApi !== null) {
|
|
2125
2128
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
2126
2129
|
}
|
|
@@ -2215,7 +2218,7 @@ export const deserializeAws_restJson1CreateResolverCommand = async (
|
|
|
2215
2218
|
$metadata: deserializeMetadata(output),
|
|
2216
2219
|
resolver: undefined,
|
|
2217
2220
|
};
|
|
2218
|
-
const data: any = await parseBody(output.body, context);
|
|
2221
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2219
2222
|
if (data.resolver !== undefined && data.resolver !== null) {
|
|
2220
2223
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
2221
2224
|
}
|
|
@@ -2294,7 +2297,7 @@ export const deserializeAws_restJson1CreateTypeCommand = async (
|
|
|
2294
2297
|
$metadata: deserializeMetadata(output),
|
|
2295
2298
|
type: undefined,
|
|
2296
2299
|
};
|
|
2297
|
-
const data: any = await parseBody(output.body, context);
|
|
2300
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2298
2301
|
if (data.type !== undefined && data.type !== null) {
|
|
2299
2302
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
2300
2303
|
}
|
|
@@ -3029,7 +3032,7 @@ export const deserializeAws_restJson1GetApiCacheCommand = async (
|
|
|
3029
3032
|
$metadata: deserializeMetadata(output),
|
|
3030
3033
|
apiCache: undefined,
|
|
3031
3034
|
};
|
|
3032
|
-
const data: any = await parseBody(output.body, context);
|
|
3035
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3033
3036
|
if (data.apiCache !== undefined && data.apiCache !== null) {
|
|
3034
3037
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
3035
3038
|
}
|
|
@@ -3116,7 +3119,7 @@ export const deserializeAws_restJson1GetDataSourceCommand = async (
|
|
|
3116
3119
|
$metadata: deserializeMetadata(output),
|
|
3117
3120
|
dataSource: undefined,
|
|
3118
3121
|
};
|
|
3119
|
-
const data: any = await parseBody(output.body, context);
|
|
3122
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3120
3123
|
if (data.dataSource !== undefined && data.dataSource !== null) {
|
|
3121
3124
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
3122
3125
|
}
|
|
@@ -3203,7 +3206,7 @@ export const deserializeAws_restJson1GetFunctionCommand = async (
|
|
|
3203
3206
|
$metadata: deserializeMetadata(output),
|
|
3204
3207
|
functionConfiguration: undefined,
|
|
3205
3208
|
};
|
|
3206
|
-
const data: any = await parseBody(output.body, context);
|
|
3209
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3207
3210
|
if (data.functionConfiguration !== undefined && data.functionConfiguration !== null) {
|
|
3208
3211
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
3209
3212
|
}
|
|
@@ -3274,7 +3277,7 @@ export const deserializeAws_restJson1GetGraphqlApiCommand = async (
|
|
|
3274
3277
|
$metadata: deserializeMetadata(output),
|
|
3275
3278
|
graphqlApi: undefined,
|
|
3276
3279
|
};
|
|
3277
|
-
const data: any = await parseBody(output.body, context);
|
|
3280
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3278
3281
|
if (data.graphqlApi !== undefined && data.graphqlApi !== null) {
|
|
3279
3282
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
3280
3283
|
}
|
|
@@ -3438,7 +3441,7 @@ export const deserializeAws_restJson1GetResolverCommand = async (
|
|
|
3438
3441
|
$metadata: deserializeMetadata(output),
|
|
3439
3442
|
resolver: undefined,
|
|
3440
3443
|
};
|
|
3441
|
-
const data: any = await parseBody(output.body, context);
|
|
3444
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3442
3445
|
if (data.resolver !== undefined && data.resolver !== null) {
|
|
3443
3446
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
3444
3447
|
}
|
|
@@ -3510,7 +3513,7 @@ export const deserializeAws_restJson1GetSchemaCreationStatusCommand = async (
|
|
|
3510
3513
|
details: undefined,
|
|
3511
3514
|
status: undefined,
|
|
3512
3515
|
};
|
|
3513
|
-
const data: any = await parseBody(output.body, context);
|
|
3516
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3514
3517
|
if (data.details !== undefined && data.details !== null) {
|
|
3515
3518
|
contents.details = __expectString(data.details);
|
|
3516
3519
|
}
|
|
@@ -3592,7 +3595,7 @@ export const deserializeAws_restJson1GetTypeCommand = async (
|
|
|
3592
3595
|
$metadata: deserializeMetadata(output),
|
|
3593
3596
|
type: undefined,
|
|
3594
3597
|
};
|
|
3595
|
-
const data: any = await parseBody(output.body, context);
|
|
3598
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3596
3599
|
if (data.type !== undefined && data.type !== null) {
|
|
3597
3600
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
3598
3601
|
}
|
|
@@ -3680,7 +3683,7 @@ export const deserializeAws_restJson1ListApiKeysCommand = async (
|
|
|
3680
3683
|
apiKeys: undefined,
|
|
3681
3684
|
nextToken: undefined,
|
|
3682
3685
|
};
|
|
3683
|
-
const data: any = await parseBody(output.body, context);
|
|
3686
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3684
3687
|
if (data.apiKeys !== undefined && data.apiKeys !== null) {
|
|
3685
3688
|
contents.apiKeys = deserializeAws_restJson1ApiKeys(data.apiKeys, context);
|
|
3686
3689
|
}
|
|
@@ -3763,7 +3766,7 @@ export const deserializeAws_restJson1ListDataSourcesCommand = async (
|
|
|
3763
3766
|
dataSources: undefined,
|
|
3764
3767
|
nextToken: undefined,
|
|
3765
3768
|
};
|
|
3766
|
-
const data: any = await parseBody(output.body, context);
|
|
3769
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3767
3770
|
if (data.dataSources !== undefined && data.dataSources !== null) {
|
|
3768
3771
|
contents.dataSources = deserializeAws_restJson1DataSources(data.dataSources, context);
|
|
3769
3772
|
}
|
|
@@ -3846,7 +3849,7 @@ export const deserializeAws_restJson1ListFunctionsCommand = async (
|
|
|
3846
3849
|
functions: undefined,
|
|
3847
3850
|
nextToken: undefined,
|
|
3848
3851
|
};
|
|
3849
|
-
const data: any = await parseBody(output.body, context);
|
|
3852
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3850
3853
|
if (data.functions !== undefined && data.functions !== null) {
|
|
3851
3854
|
contents.functions = deserializeAws_restJson1Functions(data.functions, context);
|
|
3852
3855
|
}
|
|
@@ -3929,7 +3932,7 @@ export const deserializeAws_restJson1ListGraphqlApisCommand = async (
|
|
|
3929
3932
|
graphqlApis: undefined,
|
|
3930
3933
|
nextToken: undefined,
|
|
3931
3934
|
};
|
|
3932
|
-
const data: any = await parseBody(output.body, context);
|
|
3935
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3933
3936
|
if (data.graphqlApis !== undefined && data.graphqlApis !== null) {
|
|
3934
3937
|
contents.graphqlApis = deserializeAws_restJson1GraphqlApis(data.graphqlApis, context);
|
|
3935
3938
|
}
|
|
@@ -4004,7 +4007,7 @@ export const deserializeAws_restJson1ListResolversCommand = async (
|
|
|
4004
4007
|
nextToken: undefined,
|
|
4005
4008
|
resolvers: undefined,
|
|
4006
4009
|
};
|
|
4007
|
-
const data: any = await parseBody(output.body, context);
|
|
4010
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4008
4011
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4009
4012
|
contents.nextToken = __expectString(data.nextToken);
|
|
4010
4013
|
}
|
|
@@ -4087,7 +4090,7 @@ export const deserializeAws_restJson1ListResolversByFunctionCommand = async (
|
|
|
4087
4090
|
nextToken: undefined,
|
|
4088
4091
|
resolvers: undefined,
|
|
4089
4092
|
};
|
|
4090
|
-
const data: any = await parseBody(output.body, context);
|
|
4093
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4091
4094
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4092
4095
|
contents.nextToken = __expectString(data.nextToken);
|
|
4093
4096
|
}
|
|
@@ -4169,7 +4172,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
|
|
|
4169
4172
|
$metadata: deserializeMetadata(output),
|
|
4170
4173
|
tags: undefined,
|
|
4171
4174
|
};
|
|
4172
|
-
const data: any = await parseBody(output.body, context);
|
|
4175
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4173
4176
|
if (data.tags !== undefined && data.tags !== null) {
|
|
4174
4177
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4175
4178
|
}
|
|
@@ -4265,7 +4268,7 @@ export const deserializeAws_restJson1ListTypesCommand = async (
|
|
|
4265
4268
|
nextToken: undefined,
|
|
4266
4269
|
types: undefined,
|
|
4267
4270
|
};
|
|
4268
|
-
const data: any = await parseBody(output.body, context);
|
|
4271
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4269
4272
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4270
4273
|
contents.nextToken = __expectString(data.nextToken);
|
|
4271
4274
|
}
|
|
@@ -4355,7 +4358,7 @@ export const deserializeAws_restJson1StartSchemaCreationCommand = async (
|
|
|
4355
4358
|
$metadata: deserializeMetadata(output),
|
|
4356
4359
|
status: undefined,
|
|
4357
4360
|
};
|
|
4358
|
-
const data: any = await parseBody(output.body, context);
|
|
4361
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4359
4362
|
if (data.status !== undefined && data.status !== null) {
|
|
4360
4363
|
contents.status = __expectString(data.status);
|
|
4361
4364
|
}
|
|
@@ -4624,7 +4627,7 @@ export const deserializeAws_restJson1UpdateApiCacheCommand = async (
|
|
|
4624
4627
|
$metadata: deserializeMetadata(output),
|
|
4625
4628
|
apiCache: undefined,
|
|
4626
4629
|
};
|
|
4627
|
-
const data: any = await parseBody(output.body, context);
|
|
4630
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4628
4631
|
if (data.apiCache !== undefined && data.apiCache !== null) {
|
|
4629
4632
|
contents.apiCache = deserializeAws_restJson1ApiCache(data.apiCache, context);
|
|
4630
4633
|
}
|
|
@@ -4711,7 +4714,7 @@ export const deserializeAws_restJson1UpdateApiKeyCommand = async (
|
|
|
4711
4714
|
$metadata: deserializeMetadata(output),
|
|
4712
4715
|
apiKey: undefined,
|
|
4713
4716
|
};
|
|
4714
|
-
const data: any = await parseBody(output.body, context);
|
|
4717
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4715
4718
|
if (data.apiKey !== undefined && data.apiKey !== null) {
|
|
4716
4719
|
contents.apiKey = deserializeAws_restJson1ApiKey(data.apiKey, context);
|
|
4717
4720
|
}
|
|
@@ -4806,7 +4809,7 @@ export const deserializeAws_restJson1UpdateDataSourceCommand = async (
|
|
|
4806
4809
|
$metadata: deserializeMetadata(output),
|
|
4807
4810
|
dataSource: undefined,
|
|
4808
4811
|
};
|
|
4809
|
-
const data: any = await parseBody(output.body, context);
|
|
4812
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4810
4813
|
if (data.dataSource !== undefined && data.dataSource !== null) {
|
|
4811
4814
|
contents.dataSource = deserializeAws_restJson1DataSource(data.dataSource, context);
|
|
4812
4815
|
}
|
|
@@ -4893,7 +4896,7 @@ export const deserializeAws_restJson1UpdateFunctionCommand = async (
|
|
|
4893
4896
|
$metadata: deserializeMetadata(output),
|
|
4894
4897
|
functionConfiguration: undefined,
|
|
4895
4898
|
};
|
|
4896
|
-
const data: any = await parseBody(output.body, context);
|
|
4899
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4897
4900
|
if (data.functionConfiguration !== undefined && data.functionConfiguration !== null) {
|
|
4898
4901
|
contents.functionConfiguration = deserializeAws_restJson1FunctionConfiguration(data.functionConfiguration, context);
|
|
4899
4902
|
}
|
|
@@ -4972,7 +4975,7 @@ export const deserializeAws_restJson1UpdateGraphqlApiCommand = async (
|
|
|
4972
4975
|
$metadata: deserializeMetadata(output),
|
|
4973
4976
|
graphqlApi: undefined,
|
|
4974
4977
|
};
|
|
4975
|
-
const data: any = await parseBody(output.body, context);
|
|
4978
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4976
4979
|
if (data.graphqlApi !== undefined && data.graphqlApi !== null) {
|
|
4977
4980
|
contents.graphqlApi = deserializeAws_restJson1GraphqlApi(data.graphqlApi, context);
|
|
4978
4981
|
}
|
|
@@ -5067,7 +5070,7 @@ export const deserializeAws_restJson1UpdateResolverCommand = async (
|
|
|
5067
5070
|
$metadata: deserializeMetadata(output),
|
|
5068
5071
|
resolver: undefined,
|
|
5069
5072
|
};
|
|
5070
|
-
const data: any = await parseBody(output.body, context);
|
|
5073
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5071
5074
|
if (data.resolver !== undefined && data.resolver !== null) {
|
|
5072
5075
|
contents.resolver = deserializeAws_restJson1Resolver(data.resolver, context);
|
|
5073
5076
|
}
|
|
@@ -5146,7 +5149,7 @@ export const deserializeAws_restJson1UpdateTypeCommand = async (
|
|
|
5146
5149
|
$metadata: deserializeMetadata(output),
|
|
5147
5150
|
type: undefined,
|
|
5148
5151
|
};
|
|
5149
|
-
const data: any = await parseBody(output.body, context);
|
|
5152
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5150
5153
|
if (data.type !== undefined && data.type !== null) {
|
|
5151
5154
|
contents.type = deserializeAws_restJson1Type(data.type, context);
|
|
5152
5155
|
}
|
|
@@ -5712,16 +5715,16 @@ const deserializeAws_restJson1ApiCache = (output: any, context: __SerdeContext):
|
|
|
5712
5715
|
atRestEncryptionEnabled: __expectBoolean(output.atRestEncryptionEnabled),
|
|
5713
5716
|
status: __expectString(output.status),
|
|
5714
5717
|
transitEncryptionEnabled: __expectBoolean(output.transitEncryptionEnabled),
|
|
5715
|
-
ttl:
|
|
5718
|
+
ttl: __expectLong(output.ttl),
|
|
5716
5719
|
type: __expectString(output.type),
|
|
5717
5720
|
} as any;
|
|
5718
5721
|
};
|
|
5719
5722
|
|
|
5720
5723
|
const deserializeAws_restJson1ApiKey = (output: any, context: __SerdeContext): ApiKey => {
|
|
5721
5724
|
return {
|
|
5722
|
-
deletes:
|
|
5725
|
+
deletes: __expectLong(output.deletes),
|
|
5723
5726
|
description: __expectString(output.description),
|
|
5724
|
-
expires:
|
|
5727
|
+
expires: __expectLong(output.expires),
|
|
5725
5728
|
id: __expectString(output.id),
|
|
5726
5729
|
} as any;
|
|
5727
5730
|
};
|
|
@@ -5760,7 +5763,7 @@ const deserializeAws_restJson1CachingConfig = (output: any, context: __SerdeCont
|
|
|
5760
5763
|
output.cachingKeys !== undefined && output.cachingKeys !== null
|
|
5761
5764
|
? deserializeAws_restJson1CachingKeys(output.cachingKeys, context)
|
|
5762
5765
|
: undefined,
|
|
5763
|
-
ttl:
|
|
5766
|
+
ttl: __expectLong(output.ttl),
|
|
5764
5767
|
} as any;
|
|
5765
5768
|
};
|
|
5766
5769
|
|
|
@@ -5826,9 +5829,9 @@ const deserializeAws_restJson1DataSources = (output: any, context: __SerdeContex
|
|
|
5826
5829
|
|
|
5827
5830
|
const deserializeAws_restJson1DeltaSyncConfig = (output: any, context: __SerdeContext): DeltaSyncConfig => {
|
|
5828
5831
|
return {
|
|
5829
|
-
baseTableTTL:
|
|
5832
|
+
baseTableTTL: __expectLong(output.baseTableTTL),
|
|
5830
5833
|
deltaSyncTableName: __expectString(output.deltaSyncTableName),
|
|
5831
|
-
deltaSyncTableTTL:
|
|
5834
|
+
deltaSyncTableTTL: __expectLong(output.deltaSyncTableTTL),
|
|
5832
5835
|
} as any;
|
|
5833
5836
|
};
|
|
5834
5837
|
|
|
@@ -5962,7 +5965,7 @@ const deserializeAws_restJson1LambdaAuthorizerConfig = (
|
|
|
5962
5965
|
context: __SerdeContext
|
|
5963
5966
|
): LambdaAuthorizerConfig => {
|
|
5964
5967
|
return {
|
|
5965
|
-
authorizerResultTtlInSeconds:
|
|
5968
|
+
authorizerResultTtlInSeconds: __expectInt32(output.authorizerResultTtlInSeconds),
|
|
5966
5969
|
authorizerUri: __expectString(output.authorizerUri),
|
|
5967
5970
|
identityValidationExpression: __expectString(output.identityValidationExpression),
|
|
5968
5971
|
} as any;
|
|
@@ -6011,9 +6014,9 @@ const deserializeAws_restJson1MapOfStringToString = (
|
|
|
6011
6014
|
|
|
6012
6015
|
const deserializeAws_restJson1OpenIDConnectConfig = (output: any, context: __SerdeContext): OpenIDConnectConfig => {
|
|
6013
6016
|
return {
|
|
6014
|
-
authTTL:
|
|
6017
|
+
authTTL: __expectLong(output.authTTL),
|
|
6015
6018
|
clientId: __expectString(output.clientId),
|
|
6016
|
-
iatTTL:
|
|
6019
|
+
iatTTL: __expectLong(output.iatTTL),
|
|
6017
6020
|
issuer: __expectString(output.issuer),
|
|
6018
6021
|
} as any;
|
|
6019
6022
|
};
|