@aws-sdk/client-clouddirectory 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 +58 -58
- 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 +314 -212
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +64 -59
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { TypedAttributeValue, } from "../models/models_0";
|
|
3
3
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
4
|
-
import { expectBoolean as __expectBoolean,
|
|
4
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
5
5
|
export var serializeAws_restJson1AddFacetToObjectCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
7
7
|
return __generator(this, function (_c) {
|
|
@@ -1835,9 +1835,9 @@ var deserializeAws_restJson1AddFacetToObjectCommandError = function (output, con
|
|
|
1835
1835
|
});
|
|
1836
1836
|
}); };
|
|
1837
1837
|
export var deserializeAws_restJson1ApplySchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1838
|
-
var contents, data;
|
|
1839
|
-
return __generator(this, function (
|
|
1840
|
-
switch (
|
|
1838
|
+
var contents, data, _a, _b;
|
|
1839
|
+
return __generator(this, function (_c) {
|
|
1840
|
+
switch (_c.label) {
|
|
1841
1841
|
case 0:
|
|
1842
1842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1843
1843
|
return [2 /*return*/, deserializeAws_restJson1ApplySchemaCommandError(output, context)];
|
|
@@ -1847,9 +1847,11 @@ export var deserializeAws_restJson1ApplySchemaCommand = function (output, contex
|
|
|
1847
1847
|
AppliedSchemaArn: undefined,
|
|
1848
1848
|
DirectoryArn: undefined,
|
|
1849
1849
|
};
|
|
1850
|
+
_a = __expectNonNull;
|
|
1851
|
+
_b = __expectObject;
|
|
1850
1852
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1851
1853
|
case 1:
|
|
1852
|
-
data = _a.sent();
|
|
1854
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1853
1855
|
if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
|
|
1854
1856
|
contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
|
|
1855
1857
|
}
|
|
@@ -1963,9 +1965,9 @@ var deserializeAws_restJson1ApplySchemaCommandError = function (output, context)
|
|
|
1963
1965
|
});
|
|
1964
1966
|
}); };
|
|
1965
1967
|
export var deserializeAws_restJson1AttachObjectCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1966
|
-
var contents, data;
|
|
1967
|
-
return __generator(this, function (
|
|
1968
|
-
switch (
|
|
1968
|
+
var contents, data, _a, _b;
|
|
1969
|
+
return __generator(this, function (_c) {
|
|
1970
|
+
switch (_c.label) {
|
|
1969
1971
|
case 0:
|
|
1970
1972
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1971
1973
|
return [2 /*return*/, deserializeAws_restJson1AttachObjectCommandError(output, context)];
|
|
@@ -1974,9 +1976,11 @@ export var deserializeAws_restJson1AttachObjectCommand = function (output, conte
|
|
|
1974
1976
|
$metadata: deserializeMetadata(output),
|
|
1975
1977
|
AttachedObjectIdentifier: undefined,
|
|
1976
1978
|
};
|
|
1979
|
+
_a = __expectNonNull;
|
|
1980
|
+
_b = __expectObject;
|
|
1977
1981
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1978
1982
|
case 1:
|
|
1979
|
-
data = _a.sent();
|
|
1983
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1980
1984
|
if (data.AttachedObjectIdentifier !== undefined && data.AttachedObjectIdentifier !== null) {
|
|
1981
1985
|
contents.AttachedObjectIdentifier = __expectString(data.AttachedObjectIdentifier);
|
|
1982
1986
|
}
|
|
@@ -2223,9 +2227,9 @@ var deserializeAws_restJson1AttachPolicyCommandError = function (output, context
|
|
|
2223
2227
|
});
|
|
2224
2228
|
}); };
|
|
2225
2229
|
export var deserializeAws_restJson1AttachToIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2226
|
-
var contents, data;
|
|
2227
|
-
return __generator(this, function (
|
|
2228
|
-
switch (
|
|
2230
|
+
var contents, data, _a, _b;
|
|
2231
|
+
return __generator(this, function (_c) {
|
|
2232
|
+
switch (_c.label) {
|
|
2229
2233
|
case 0:
|
|
2230
2234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2231
2235
|
return [2 /*return*/, deserializeAws_restJson1AttachToIndexCommandError(output, context)];
|
|
@@ -2234,9 +2238,11 @@ export var deserializeAws_restJson1AttachToIndexCommand = function (output, cont
|
|
|
2234
2238
|
$metadata: deserializeMetadata(output),
|
|
2235
2239
|
AttachedObjectIdentifier: undefined,
|
|
2236
2240
|
};
|
|
2241
|
+
_a = __expectNonNull;
|
|
2242
|
+
_b = __expectObject;
|
|
2237
2243
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2238
2244
|
case 1:
|
|
2239
|
-
data = _a.sent();
|
|
2245
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2240
2246
|
if (data.AttachedObjectIdentifier !== undefined && data.AttachedObjectIdentifier !== null) {
|
|
2241
2247
|
contents.AttachedObjectIdentifier = __expectString(data.AttachedObjectIdentifier);
|
|
2242
2248
|
}
|
|
@@ -2371,9 +2377,9 @@ var deserializeAws_restJson1AttachToIndexCommandError = function (output, contex
|
|
|
2371
2377
|
});
|
|
2372
2378
|
}); };
|
|
2373
2379
|
export var deserializeAws_restJson1AttachTypedLinkCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2374
|
-
var contents, data;
|
|
2375
|
-
return __generator(this, function (
|
|
2376
|
-
switch (
|
|
2380
|
+
var contents, data, _a, _b;
|
|
2381
|
+
return __generator(this, function (_c) {
|
|
2382
|
+
switch (_c.label) {
|
|
2377
2383
|
case 0:
|
|
2378
2384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2379
2385
|
return [2 /*return*/, deserializeAws_restJson1AttachTypedLinkCommandError(output, context)];
|
|
@@ -2382,9 +2388,11 @@ export var deserializeAws_restJson1AttachTypedLinkCommand = function (output, co
|
|
|
2382
2388
|
$metadata: deserializeMetadata(output),
|
|
2383
2389
|
TypedLinkSpecifier: undefined,
|
|
2384
2390
|
};
|
|
2391
|
+
_a = __expectNonNull;
|
|
2392
|
+
_b = __expectObject;
|
|
2385
2393
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2386
2394
|
case 1:
|
|
2387
|
-
data = _a.sent();
|
|
2395
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2388
2396
|
if (data.TypedLinkSpecifier !== undefined && data.TypedLinkSpecifier !== null) {
|
|
2389
2397
|
contents.TypedLinkSpecifier = deserializeAws_restJson1TypedLinkSpecifier(data.TypedLinkSpecifier, context);
|
|
2390
2398
|
}
|
|
@@ -2503,9 +2511,9 @@ var deserializeAws_restJson1AttachTypedLinkCommandError = function (output, cont
|
|
|
2503
2511
|
});
|
|
2504
2512
|
}); };
|
|
2505
2513
|
export var deserializeAws_restJson1BatchReadCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2506
|
-
var contents, data;
|
|
2507
|
-
return __generator(this, function (
|
|
2508
|
-
switch (
|
|
2514
|
+
var contents, data, _a, _b;
|
|
2515
|
+
return __generator(this, function (_c) {
|
|
2516
|
+
switch (_c.label) {
|
|
2509
2517
|
case 0:
|
|
2510
2518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2511
2519
|
return [2 /*return*/, deserializeAws_restJson1BatchReadCommandError(output, context)];
|
|
@@ -2514,9 +2522,11 @@ export var deserializeAws_restJson1BatchReadCommand = function (output, context)
|
|
|
2514
2522
|
$metadata: deserializeMetadata(output),
|
|
2515
2523
|
Responses: undefined,
|
|
2516
2524
|
};
|
|
2525
|
+
_a = __expectNonNull;
|
|
2526
|
+
_b = __expectObject;
|
|
2517
2527
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2518
2528
|
case 1:
|
|
2519
|
-
data = _a.sent();
|
|
2529
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2520
2530
|
if (data.Responses !== undefined && data.Responses !== null) {
|
|
2521
2531
|
contents.Responses = deserializeAws_restJson1BatchReadOperationResponseList(data.Responses, context);
|
|
2522
2532
|
}
|
|
@@ -2611,9 +2621,9 @@ var deserializeAws_restJson1BatchReadCommandError = function (output, context) {
|
|
|
2611
2621
|
});
|
|
2612
2622
|
}); };
|
|
2613
2623
|
export var deserializeAws_restJson1BatchWriteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2614
|
-
var contents, data;
|
|
2615
|
-
return __generator(this, function (
|
|
2616
|
-
switch (
|
|
2624
|
+
var contents, data, _a, _b;
|
|
2625
|
+
return __generator(this, function (_c) {
|
|
2626
|
+
switch (_c.label) {
|
|
2617
2627
|
case 0:
|
|
2618
2628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2619
2629
|
return [2 /*return*/, deserializeAws_restJson1BatchWriteCommandError(output, context)];
|
|
@@ -2622,9 +2632,11 @@ export var deserializeAws_restJson1BatchWriteCommand = function (output, context
|
|
|
2622
2632
|
$metadata: deserializeMetadata(output),
|
|
2623
2633
|
Responses: undefined,
|
|
2624
2634
|
};
|
|
2635
|
+
_a = __expectNonNull;
|
|
2636
|
+
_b = __expectObject;
|
|
2625
2637
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2626
2638
|
case 1:
|
|
2627
|
-
data = _a.sent();
|
|
2639
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2628
2640
|
if (data.Responses !== undefined && data.Responses !== null) {
|
|
2629
2641
|
contents.Responses = deserializeAws_restJson1BatchWriteOperationResponseList(data.Responses, context);
|
|
2630
2642
|
}
|
|
@@ -2727,9 +2739,9 @@ var deserializeAws_restJson1BatchWriteCommandError = function (output, context)
|
|
|
2727
2739
|
});
|
|
2728
2740
|
}); };
|
|
2729
2741
|
export var deserializeAws_restJson1CreateDirectoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2730
|
-
var contents, data;
|
|
2731
|
-
return __generator(this, function (
|
|
2732
|
-
switch (
|
|
2742
|
+
var contents, data, _a, _b;
|
|
2743
|
+
return __generator(this, function (_c) {
|
|
2744
|
+
switch (_c.label) {
|
|
2733
2745
|
case 0:
|
|
2734
2746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2735
2747
|
return [2 /*return*/, deserializeAws_restJson1CreateDirectoryCommandError(output, context)];
|
|
@@ -2741,9 +2753,11 @@ export var deserializeAws_restJson1CreateDirectoryCommand = function (output, co
|
|
|
2741
2753
|
Name: undefined,
|
|
2742
2754
|
ObjectIdentifier: undefined,
|
|
2743
2755
|
};
|
|
2756
|
+
_a = __expectNonNull;
|
|
2757
|
+
_b = __expectObject;
|
|
2744
2758
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2745
2759
|
case 1:
|
|
2746
|
-
data = _a.sent();
|
|
2760
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2747
2761
|
if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
|
|
2748
2762
|
contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
|
|
2749
2763
|
}
|
|
@@ -2983,9 +2997,9 @@ var deserializeAws_restJson1CreateFacetCommandError = function (output, context)
|
|
|
2983
2997
|
});
|
|
2984
2998
|
}); };
|
|
2985
2999
|
export var deserializeAws_restJson1CreateIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2986
|
-
var contents, data;
|
|
2987
|
-
return __generator(this, function (
|
|
2988
|
-
switch (
|
|
3000
|
+
var contents, data, _a, _b;
|
|
3001
|
+
return __generator(this, function (_c) {
|
|
3002
|
+
switch (_c.label) {
|
|
2989
3003
|
case 0:
|
|
2990
3004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2991
3005
|
return [2 /*return*/, deserializeAws_restJson1CreateIndexCommandError(output, context)];
|
|
@@ -2994,9 +3008,11 @@ export var deserializeAws_restJson1CreateIndexCommand = function (output, contex
|
|
|
2994
3008
|
$metadata: deserializeMetadata(output),
|
|
2995
3009
|
ObjectIdentifier: undefined,
|
|
2996
3010
|
};
|
|
3011
|
+
_a = __expectNonNull;
|
|
3012
|
+
_b = __expectObject;
|
|
2997
3013
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2998
3014
|
case 1:
|
|
2999
|
-
data = _a.sent();
|
|
3015
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3000
3016
|
if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
|
|
3001
3017
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
3002
3018
|
}
|
|
@@ -3123,9 +3139,9 @@ var deserializeAws_restJson1CreateIndexCommandError = function (output, context)
|
|
|
3123
3139
|
});
|
|
3124
3140
|
}); };
|
|
3125
3141
|
export var deserializeAws_restJson1CreateObjectCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3126
|
-
var contents, data;
|
|
3127
|
-
return __generator(this, function (
|
|
3128
|
-
switch (
|
|
3142
|
+
var contents, data, _a, _b;
|
|
3143
|
+
return __generator(this, function (_c) {
|
|
3144
|
+
switch (_c.label) {
|
|
3129
3145
|
case 0:
|
|
3130
3146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3131
3147
|
return [2 /*return*/, deserializeAws_restJson1CreateObjectCommandError(output, context)];
|
|
@@ -3134,9 +3150,11 @@ export var deserializeAws_restJson1CreateObjectCommand = function (output, conte
|
|
|
3134
3150
|
$metadata: deserializeMetadata(output),
|
|
3135
3151
|
ObjectIdentifier: undefined,
|
|
3136
3152
|
};
|
|
3153
|
+
_a = __expectNonNull;
|
|
3154
|
+
_b = __expectObject;
|
|
3137
3155
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3138
3156
|
case 1:
|
|
3139
|
-
data = _a.sent();
|
|
3157
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3140
3158
|
if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
|
|
3141
3159
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
3142
3160
|
}
|
|
@@ -3263,9 +3281,9 @@ var deserializeAws_restJson1CreateObjectCommandError = function (output, context
|
|
|
3263
3281
|
});
|
|
3264
3282
|
}); };
|
|
3265
3283
|
export var deserializeAws_restJson1CreateSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3266
|
-
var contents, data;
|
|
3267
|
-
return __generator(this, function (
|
|
3268
|
-
switch (
|
|
3284
|
+
var contents, data, _a, _b;
|
|
3285
|
+
return __generator(this, function (_c) {
|
|
3286
|
+
switch (_c.label) {
|
|
3269
3287
|
case 0:
|
|
3270
3288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3271
3289
|
return [2 /*return*/, deserializeAws_restJson1CreateSchemaCommandError(output, context)];
|
|
@@ -3274,9 +3292,11 @@ export var deserializeAws_restJson1CreateSchemaCommand = function (output, conte
|
|
|
3274
3292
|
$metadata: deserializeMetadata(output),
|
|
3275
3293
|
SchemaArn: undefined,
|
|
3276
3294
|
};
|
|
3295
|
+
_a = __expectNonNull;
|
|
3296
|
+
_b = __expectObject;
|
|
3277
3297
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3278
3298
|
case 1:
|
|
3279
|
-
data = _a.sent();
|
|
3299
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3280
3300
|
if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
|
|
3281
3301
|
contents.SchemaArn = __expectString(data.SchemaArn);
|
|
3282
3302
|
}
|
|
@@ -3499,9 +3519,9 @@ var deserializeAws_restJson1CreateTypedLinkFacetCommandError = function (output,
|
|
|
3499
3519
|
});
|
|
3500
3520
|
}); };
|
|
3501
3521
|
export var deserializeAws_restJson1DeleteDirectoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3502
|
-
var contents, data;
|
|
3503
|
-
return __generator(this, function (
|
|
3504
|
-
switch (
|
|
3522
|
+
var contents, data, _a, _b;
|
|
3523
|
+
return __generator(this, function (_c) {
|
|
3524
|
+
switch (_c.label) {
|
|
3505
3525
|
case 0:
|
|
3506
3526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3507
3527
|
return [2 /*return*/, deserializeAws_restJson1DeleteDirectoryCommandError(output, context)];
|
|
@@ -3510,9 +3530,11 @@ export var deserializeAws_restJson1DeleteDirectoryCommand = function (output, co
|
|
|
3510
3530
|
$metadata: deserializeMetadata(output),
|
|
3511
3531
|
DirectoryArn: undefined,
|
|
3512
3532
|
};
|
|
3533
|
+
_a = __expectNonNull;
|
|
3534
|
+
_b = __expectObject;
|
|
3513
3535
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3514
3536
|
case 1:
|
|
3515
|
-
data = _a.sent();
|
|
3537
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3516
3538
|
if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
|
|
3517
3539
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
3518
3540
|
}
|
|
@@ -3863,9 +3885,9 @@ var deserializeAws_restJson1DeleteObjectCommandError = function (output, context
|
|
|
3863
3885
|
});
|
|
3864
3886
|
}); };
|
|
3865
3887
|
export var deserializeAws_restJson1DeleteSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3866
|
-
var contents, data;
|
|
3867
|
-
return __generator(this, function (
|
|
3868
|
-
switch (
|
|
3888
|
+
var contents, data, _a, _b;
|
|
3889
|
+
return __generator(this, function (_c) {
|
|
3890
|
+
switch (_c.label) {
|
|
3869
3891
|
case 0:
|
|
3870
3892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3871
3893
|
return [2 /*return*/, deserializeAws_restJson1DeleteSchemaCommandError(output, context)];
|
|
@@ -3874,9 +3896,11 @@ export var deserializeAws_restJson1DeleteSchemaCommand = function (output, conte
|
|
|
3874
3896
|
$metadata: deserializeMetadata(output),
|
|
3875
3897
|
SchemaArn: undefined,
|
|
3876
3898
|
};
|
|
3899
|
+
_a = __expectNonNull;
|
|
3900
|
+
_b = __expectObject;
|
|
3877
3901
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3878
3902
|
case 1:
|
|
3879
|
-
data = _a.sent();
|
|
3903
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3880
3904
|
if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
|
|
3881
3905
|
contents.SchemaArn = __expectString(data.SchemaArn);
|
|
3882
3906
|
}
|
|
@@ -4091,9 +4115,9 @@ var deserializeAws_restJson1DeleteTypedLinkFacetCommandError = function (output,
|
|
|
4091
4115
|
});
|
|
4092
4116
|
}); };
|
|
4093
4117
|
export var deserializeAws_restJson1DetachFromIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4094
|
-
var contents, data;
|
|
4095
|
-
return __generator(this, function (
|
|
4096
|
-
switch (
|
|
4118
|
+
var contents, data, _a, _b;
|
|
4119
|
+
return __generator(this, function (_c) {
|
|
4120
|
+
switch (_c.label) {
|
|
4097
4121
|
case 0:
|
|
4098
4122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4099
4123
|
return [2 /*return*/, deserializeAws_restJson1DetachFromIndexCommandError(output, context)];
|
|
@@ -4102,9 +4126,11 @@ export var deserializeAws_restJson1DetachFromIndexCommand = function (output, co
|
|
|
4102
4126
|
$metadata: deserializeMetadata(output),
|
|
4103
4127
|
DetachedObjectIdentifier: undefined,
|
|
4104
4128
|
};
|
|
4129
|
+
_a = __expectNonNull;
|
|
4130
|
+
_b = __expectObject;
|
|
4105
4131
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4106
4132
|
case 1:
|
|
4107
|
-
data = _a.sent();
|
|
4133
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4108
4134
|
if (data.DetachedObjectIdentifier !== undefined && data.DetachedObjectIdentifier !== null) {
|
|
4109
4135
|
contents.DetachedObjectIdentifier = __expectString(data.DetachedObjectIdentifier);
|
|
4110
4136
|
}
|
|
@@ -4223,9 +4249,9 @@ var deserializeAws_restJson1DetachFromIndexCommandError = function (output, cont
|
|
|
4223
4249
|
});
|
|
4224
4250
|
}); };
|
|
4225
4251
|
export var deserializeAws_restJson1DetachObjectCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4226
|
-
var contents, data;
|
|
4227
|
-
return __generator(this, function (
|
|
4228
|
-
switch (
|
|
4252
|
+
var contents, data, _a, _b;
|
|
4253
|
+
return __generator(this, function (_c) {
|
|
4254
|
+
switch (_c.label) {
|
|
4229
4255
|
case 0:
|
|
4230
4256
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4231
4257
|
return [2 /*return*/, deserializeAws_restJson1DetachObjectCommandError(output, context)];
|
|
@@ -4234,9 +4260,11 @@ export var deserializeAws_restJson1DetachObjectCommand = function (output, conte
|
|
|
4234
4260
|
$metadata: deserializeMetadata(output),
|
|
4235
4261
|
DetachedObjectIdentifier: undefined,
|
|
4236
4262
|
};
|
|
4263
|
+
_a = __expectNonNull;
|
|
4264
|
+
_b = __expectObject;
|
|
4237
4265
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4238
4266
|
case 1:
|
|
4239
|
-
data = _a.sent();
|
|
4267
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4240
4268
|
if (data.DetachedObjectIdentifier !== undefined && data.DetachedObjectIdentifier !== null) {
|
|
4241
4269
|
contents.DetachedObjectIdentifier = __expectString(data.DetachedObjectIdentifier);
|
|
4242
4270
|
}
|
|
@@ -4587,9 +4615,9 @@ var deserializeAws_restJson1DetachTypedLinkCommandError = function (output, cont
|
|
|
4587
4615
|
});
|
|
4588
4616
|
}); };
|
|
4589
4617
|
export var deserializeAws_restJson1DisableDirectoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4590
|
-
var contents, data;
|
|
4591
|
-
return __generator(this, function (
|
|
4592
|
-
switch (
|
|
4618
|
+
var contents, data, _a, _b;
|
|
4619
|
+
return __generator(this, function (_c) {
|
|
4620
|
+
switch (_c.label) {
|
|
4593
4621
|
case 0:
|
|
4594
4622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4595
4623
|
return [2 /*return*/, deserializeAws_restJson1DisableDirectoryCommandError(output, context)];
|
|
@@ -4598,9 +4626,11 @@ export var deserializeAws_restJson1DisableDirectoryCommand = function (output, c
|
|
|
4598
4626
|
$metadata: deserializeMetadata(output),
|
|
4599
4627
|
DirectoryArn: undefined,
|
|
4600
4628
|
};
|
|
4629
|
+
_a = __expectNonNull;
|
|
4630
|
+
_b = __expectObject;
|
|
4601
4631
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4602
4632
|
case 1:
|
|
4603
|
-
data = _a.sent();
|
|
4633
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4604
4634
|
if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
|
|
4605
4635
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
4606
4636
|
}
|
|
@@ -4703,9 +4733,9 @@ var deserializeAws_restJson1DisableDirectoryCommandError = function (output, con
|
|
|
4703
4733
|
});
|
|
4704
4734
|
}); };
|
|
4705
4735
|
export var deserializeAws_restJson1EnableDirectoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4706
|
-
var contents, data;
|
|
4707
|
-
return __generator(this, function (
|
|
4708
|
-
switch (
|
|
4736
|
+
var contents, data, _a, _b;
|
|
4737
|
+
return __generator(this, function (_c) {
|
|
4738
|
+
switch (_c.label) {
|
|
4709
4739
|
case 0:
|
|
4710
4740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4711
4741
|
return [2 /*return*/, deserializeAws_restJson1EnableDirectoryCommandError(output, context)];
|
|
@@ -4714,9 +4744,11 @@ export var deserializeAws_restJson1EnableDirectoryCommand = function (output, co
|
|
|
4714
4744
|
$metadata: deserializeMetadata(output),
|
|
4715
4745
|
DirectoryArn: undefined,
|
|
4716
4746
|
};
|
|
4747
|
+
_a = __expectNonNull;
|
|
4748
|
+
_b = __expectObject;
|
|
4717
4749
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4718
4750
|
case 1:
|
|
4719
|
-
data = _a.sent();
|
|
4751
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4720
4752
|
if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
|
|
4721
4753
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
4722
4754
|
}
|
|
@@ -4819,9 +4851,9 @@ var deserializeAws_restJson1EnableDirectoryCommandError = function (output, cont
|
|
|
4819
4851
|
});
|
|
4820
4852
|
}); };
|
|
4821
4853
|
export var deserializeAws_restJson1GetAppliedSchemaVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4822
|
-
var contents, data;
|
|
4823
|
-
return __generator(this, function (
|
|
4824
|
-
switch (
|
|
4854
|
+
var contents, data, _a, _b;
|
|
4855
|
+
return __generator(this, function (_c) {
|
|
4856
|
+
switch (_c.label) {
|
|
4825
4857
|
case 0:
|
|
4826
4858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4827
4859
|
return [2 /*return*/, deserializeAws_restJson1GetAppliedSchemaVersionCommandError(output, context)];
|
|
@@ -4830,9 +4862,11 @@ export var deserializeAws_restJson1GetAppliedSchemaVersionCommand = function (ou
|
|
|
4830
4862
|
$metadata: deserializeMetadata(output),
|
|
4831
4863
|
AppliedSchemaArn: undefined,
|
|
4832
4864
|
};
|
|
4865
|
+
_a = __expectNonNull;
|
|
4866
|
+
_b = __expectObject;
|
|
4833
4867
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4834
4868
|
case 1:
|
|
4835
|
-
data = _a.sent();
|
|
4869
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4836
4870
|
if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
|
|
4837
4871
|
contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
|
|
4838
4872
|
}
|
|
@@ -4927,9 +4961,9 @@ var deserializeAws_restJson1GetAppliedSchemaVersionCommandError = function (outp
|
|
|
4927
4961
|
});
|
|
4928
4962
|
}); };
|
|
4929
4963
|
export var deserializeAws_restJson1GetDirectoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4930
|
-
var contents, data;
|
|
4931
|
-
return __generator(this, function (
|
|
4932
|
-
switch (
|
|
4964
|
+
var contents, data, _a, _b;
|
|
4965
|
+
return __generator(this, function (_c) {
|
|
4966
|
+
switch (_c.label) {
|
|
4933
4967
|
case 0:
|
|
4934
4968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4935
4969
|
return [2 /*return*/, deserializeAws_restJson1GetDirectoryCommandError(output, context)];
|
|
@@ -4938,9 +4972,11 @@ export var deserializeAws_restJson1GetDirectoryCommand = function (output, conte
|
|
|
4938
4972
|
$metadata: deserializeMetadata(output),
|
|
4939
4973
|
Directory: undefined,
|
|
4940
4974
|
};
|
|
4975
|
+
_a = __expectNonNull;
|
|
4976
|
+
_b = __expectObject;
|
|
4941
4977
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4942
4978
|
case 1:
|
|
4943
|
-
data = _a.sent();
|
|
4979
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4944
4980
|
if (data.Directory !== undefined && data.Directory !== null) {
|
|
4945
4981
|
contents.Directory = deserializeAws_restJson1Directory(data.Directory, context);
|
|
4946
4982
|
}
|
|
@@ -5027,9 +5063,9 @@ var deserializeAws_restJson1GetDirectoryCommandError = function (output, context
|
|
|
5027
5063
|
});
|
|
5028
5064
|
}); };
|
|
5029
5065
|
export var deserializeAws_restJson1GetFacetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5030
|
-
var contents, data;
|
|
5031
|
-
return __generator(this, function (
|
|
5032
|
-
switch (
|
|
5066
|
+
var contents, data, _a, _b;
|
|
5067
|
+
return __generator(this, function (_c) {
|
|
5068
|
+
switch (_c.label) {
|
|
5033
5069
|
case 0:
|
|
5034
5070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5035
5071
|
return [2 /*return*/, deserializeAws_restJson1GetFacetCommandError(output, context)];
|
|
@@ -5038,9 +5074,11 @@ export var deserializeAws_restJson1GetFacetCommand = function (output, context)
|
|
|
5038
5074
|
$metadata: deserializeMetadata(output),
|
|
5039
5075
|
Facet: undefined,
|
|
5040
5076
|
};
|
|
5077
|
+
_a = __expectNonNull;
|
|
5078
|
+
_b = __expectObject;
|
|
5041
5079
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5042
5080
|
case 1:
|
|
5043
|
-
data = _a.sent();
|
|
5081
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5044
5082
|
if (data.Facet !== undefined && data.Facet !== null) {
|
|
5045
5083
|
contents.Facet = deserializeAws_restJson1Facet(data.Facet, context);
|
|
5046
5084
|
}
|
|
@@ -5143,9 +5181,9 @@ var deserializeAws_restJson1GetFacetCommandError = function (output, context) {
|
|
|
5143
5181
|
});
|
|
5144
5182
|
}); };
|
|
5145
5183
|
export var deserializeAws_restJson1GetLinkAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5146
|
-
var contents, data;
|
|
5147
|
-
return __generator(this, function (
|
|
5148
|
-
switch (
|
|
5184
|
+
var contents, data, _a, _b;
|
|
5185
|
+
return __generator(this, function (_c) {
|
|
5186
|
+
switch (_c.label) {
|
|
5149
5187
|
case 0:
|
|
5150
5188
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5151
5189
|
return [2 /*return*/, deserializeAws_restJson1GetLinkAttributesCommandError(output, context)];
|
|
@@ -5154,9 +5192,11 @@ export var deserializeAws_restJson1GetLinkAttributesCommand = function (output,
|
|
|
5154
5192
|
$metadata: deserializeMetadata(output),
|
|
5155
5193
|
Attributes: undefined,
|
|
5156
5194
|
};
|
|
5195
|
+
_a = __expectNonNull;
|
|
5196
|
+
_b = __expectObject;
|
|
5157
5197
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5158
5198
|
case 1:
|
|
5159
|
-
data = _a.sent();
|
|
5199
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5160
5200
|
if (data.Attributes !== undefined && data.Attributes !== null) {
|
|
5161
5201
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
5162
5202
|
}
|
|
@@ -5267,9 +5307,9 @@ var deserializeAws_restJson1GetLinkAttributesCommandError = function (output, co
|
|
|
5267
5307
|
});
|
|
5268
5308
|
}); };
|
|
5269
5309
|
export var deserializeAws_restJson1GetObjectAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5270
|
-
var contents, data;
|
|
5271
|
-
return __generator(this, function (
|
|
5272
|
-
switch (
|
|
5310
|
+
var contents, data, _a, _b;
|
|
5311
|
+
return __generator(this, function (_c) {
|
|
5312
|
+
switch (_c.label) {
|
|
5273
5313
|
case 0:
|
|
5274
5314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5275
5315
|
return [2 /*return*/, deserializeAws_restJson1GetObjectAttributesCommandError(output, context)];
|
|
@@ -5278,9 +5318,11 @@ export var deserializeAws_restJson1GetObjectAttributesCommand = function (output
|
|
|
5278
5318
|
$metadata: deserializeMetadata(output),
|
|
5279
5319
|
Attributes: undefined,
|
|
5280
5320
|
};
|
|
5321
|
+
_a = __expectNonNull;
|
|
5322
|
+
_b = __expectObject;
|
|
5281
5323
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5282
5324
|
case 1:
|
|
5283
|
-
data = _a.sent();
|
|
5325
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5284
5326
|
if (data.Attributes !== undefined && data.Attributes !== null) {
|
|
5285
5327
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
5286
5328
|
}
|
|
@@ -5391,9 +5433,9 @@ var deserializeAws_restJson1GetObjectAttributesCommandError = function (output,
|
|
|
5391
5433
|
});
|
|
5392
5434
|
}); };
|
|
5393
5435
|
export var deserializeAws_restJson1GetObjectInformationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5394
|
-
var contents, data;
|
|
5395
|
-
return __generator(this, function (
|
|
5396
|
-
switch (
|
|
5436
|
+
var contents, data, _a, _b;
|
|
5437
|
+
return __generator(this, function (_c) {
|
|
5438
|
+
switch (_c.label) {
|
|
5397
5439
|
case 0:
|
|
5398
5440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5399
5441
|
return [2 /*return*/, deserializeAws_restJson1GetObjectInformationCommandError(output, context)];
|
|
@@ -5403,9 +5445,11 @@ export var deserializeAws_restJson1GetObjectInformationCommand = function (outpu
|
|
|
5403
5445
|
ObjectIdentifier: undefined,
|
|
5404
5446
|
SchemaFacets: undefined,
|
|
5405
5447
|
};
|
|
5448
|
+
_a = __expectNonNull;
|
|
5449
|
+
_b = __expectObject;
|
|
5406
5450
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5407
5451
|
case 1:
|
|
5408
|
-
data = _a.sent();
|
|
5452
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5409
5453
|
if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
|
|
5410
5454
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
5411
5455
|
}
|
|
@@ -5511,9 +5555,9 @@ var deserializeAws_restJson1GetObjectInformationCommandError = function (output,
|
|
|
5511
5555
|
});
|
|
5512
5556
|
}); };
|
|
5513
5557
|
export var deserializeAws_restJson1GetSchemaAsJsonCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5514
|
-
var contents, data;
|
|
5515
|
-
return __generator(this, function (
|
|
5516
|
-
switch (
|
|
5558
|
+
var contents, data, _a, _b;
|
|
5559
|
+
return __generator(this, function (_c) {
|
|
5560
|
+
switch (_c.label) {
|
|
5517
5561
|
case 0:
|
|
5518
5562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5519
5563
|
return [2 /*return*/, deserializeAws_restJson1GetSchemaAsJsonCommandError(output, context)];
|
|
@@ -5523,9 +5567,11 @@ export var deserializeAws_restJson1GetSchemaAsJsonCommand = function (output, co
|
|
|
5523
5567
|
Document: undefined,
|
|
5524
5568
|
Name: undefined,
|
|
5525
5569
|
};
|
|
5570
|
+
_a = __expectNonNull;
|
|
5571
|
+
_b = __expectObject;
|
|
5526
5572
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5527
5573
|
case 1:
|
|
5528
|
-
data = _a.sent();
|
|
5574
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5529
5575
|
if (data.Document !== undefined && data.Document !== null) {
|
|
5530
5576
|
contents.Document = __expectString(data.Document);
|
|
5531
5577
|
}
|
|
@@ -5623,9 +5669,9 @@ var deserializeAws_restJson1GetSchemaAsJsonCommandError = function (output, cont
|
|
|
5623
5669
|
});
|
|
5624
5670
|
}); };
|
|
5625
5671
|
export var deserializeAws_restJson1GetTypedLinkFacetInformationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5626
|
-
var contents, data;
|
|
5627
|
-
return __generator(this, function (
|
|
5628
|
-
switch (
|
|
5672
|
+
var contents, data, _a, _b;
|
|
5673
|
+
return __generator(this, function (_c) {
|
|
5674
|
+
switch (_c.label) {
|
|
5629
5675
|
case 0:
|
|
5630
5676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5631
5677
|
return [2 /*return*/, deserializeAws_restJson1GetTypedLinkFacetInformationCommandError(output, context)];
|
|
@@ -5634,9 +5680,11 @@ export var deserializeAws_restJson1GetTypedLinkFacetInformationCommand = functio
|
|
|
5634
5680
|
$metadata: deserializeMetadata(output),
|
|
5635
5681
|
IdentityAttributeOrder: undefined,
|
|
5636
5682
|
};
|
|
5683
|
+
_a = __expectNonNull;
|
|
5684
|
+
_b = __expectObject;
|
|
5637
5685
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5638
5686
|
case 1:
|
|
5639
|
-
data = _a.sent();
|
|
5687
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5640
5688
|
if (data.IdentityAttributeOrder !== undefined && data.IdentityAttributeOrder !== null) {
|
|
5641
5689
|
contents.IdentityAttributeOrder = deserializeAws_restJson1AttributeNameList(data.IdentityAttributeOrder, context);
|
|
5642
5690
|
}
|
|
@@ -5747,9 +5795,9 @@ var deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = function
|
|
|
5747
5795
|
});
|
|
5748
5796
|
}); };
|
|
5749
5797
|
export var deserializeAws_restJson1ListAppliedSchemaArnsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5750
|
-
var contents, data;
|
|
5751
|
-
return __generator(this, function (
|
|
5752
|
-
switch (
|
|
5798
|
+
var contents, data, _a, _b;
|
|
5799
|
+
return __generator(this, function (_c) {
|
|
5800
|
+
switch (_c.label) {
|
|
5753
5801
|
case 0:
|
|
5754
5802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5755
5803
|
return [2 /*return*/, deserializeAws_restJson1ListAppliedSchemaArnsCommandError(output, context)];
|
|
@@ -5759,9 +5807,11 @@ export var deserializeAws_restJson1ListAppliedSchemaArnsCommand = function (outp
|
|
|
5759
5807
|
NextToken: undefined,
|
|
5760
5808
|
SchemaArns: undefined,
|
|
5761
5809
|
};
|
|
5810
|
+
_a = __expectNonNull;
|
|
5811
|
+
_b = __expectObject;
|
|
5762
5812
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5763
5813
|
case 1:
|
|
5764
|
-
data = _a.sent();
|
|
5814
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5765
5815
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
5766
5816
|
contents.NextToken = __expectString(data.NextToken);
|
|
5767
5817
|
}
|
|
@@ -5867,9 +5917,9 @@ var deserializeAws_restJson1ListAppliedSchemaArnsCommandError = function (output
|
|
|
5867
5917
|
});
|
|
5868
5918
|
}); };
|
|
5869
5919
|
export var deserializeAws_restJson1ListAttachedIndicesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5870
|
-
var contents, data;
|
|
5871
|
-
return __generator(this, function (
|
|
5872
|
-
switch (
|
|
5920
|
+
var contents, data, _a, _b;
|
|
5921
|
+
return __generator(this, function (_c) {
|
|
5922
|
+
switch (_c.label) {
|
|
5873
5923
|
case 0:
|
|
5874
5924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5875
5925
|
return [2 /*return*/, deserializeAws_restJson1ListAttachedIndicesCommandError(output, context)];
|
|
@@ -5879,9 +5929,11 @@ export var deserializeAws_restJson1ListAttachedIndicesCommand = function (output
|
|
|
5879
5929
|
IndexAttachments: undefined,
|
|
5880
5930
|
NextToken: undefined,
|
|
5881
5931
|
};
|
|
5932
|
+
_a = __expectNonNull;
|
|
5933
|
+
_b = __expectObject;
|
|
5882
5934
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
5883
5935
|
case 1:
|
|
5884
|
-
data = _a.sent();
|
|
5936
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5885
5937
|
if (data.IndexAttachments !== undefined && data.IndexAttachments !== null) {
|
|
5886
5938
|
contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
|
|
5887
5939
|
}
|
|
@@ -5987,9 +6039,9 @@ var deserializeAws_restJson1ListAttachedIndicesCommandError = function (output,
|
|
|
5987
6039
|
});
|
|
5988
6040
|
}); };
|
|
5989
6041
|
export var deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5990
|
-
var contents, data;
|
|
5991
|
-
return __generator(this, function (
|
|
5992
|
-
switch (
|
|
6042
|
+
var contents, data, _a, _b;
|
|
6043
|
+
return __generator(this, function (_c) {
|
|
6044
|
+
switch (_c.label) {
|
|
5993
6045
|
case 0:
|
|
5994
6046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5995
6047
|
return [2 /*return*/, deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError(output, context)];
|
|
@@ -5999,9 +6051,11 @@ export var deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = function (
|
|
|
5999
6051
|
NextToken: undefined,
|
|
6000
6052
|
SchemaArns: undefined,
|
|
6001
6053
|
};
|
|
6054
|
+
_a = __expectNonNull;
|
|
6055
|
+
_b = __expectObject;
|
|
6002
6056
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6003
6057
|
case 1:
|
|
6004
|
-
data = _a.sent();
|
|
6058
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6005
6059
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
6006
6060
|
contents.NextToken = __expectString(data.NextToken);
|
|
6007
6061
|
}
|
|
@@ -6107,9 +6161,9 @@ var deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = function (ou
|
|
|
6107
6161
|
});
|
|
6108
6162
|
}); };
|
|
6109
6163
|
export var deserializeAws_restJson1ListDirectoriesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6110
|
-
var contents, data;
|
|
6111
|
-
return __generator(this, function (
|
|
6112
|
-
switch (
|
|
6164
|
+
var contents, data, _a, _b;
|
|
6165
|
+
return __generator(this, function (_c) {
|
|
6166
|
+
switch (_c.label) {
|
|
6113
6167
|
case 0:
|
|
6114
6168
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6115
6169
|
return [2 /*return*/, deserializeAws_restJson1ListDirectoriesCommandError(output, context)];
|
|
@@ -6119,9 +6173,11 @@ export var deserializeAws_restJson1ListDirectoriesCommand = function (output, co
|
|
|
6119
6173
|
Directories: undefined,
|
|
6120
6174
|
NextToken: undefined,
|
|
6121
6175
|
};
|
|
6176
|
+
_a = __expectNonNull;
|
|
6177
|
+
_b = __expectObject;
|
|
6122
6178
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6123
6179
|
case 1:
|
|
6124
|
-
data = _a.sent();
|
|
6180
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6125
6181
|
if (data.Directories !== undefined && data.Directories !== null) {
|
|
6126
6182
|
contents.Directories = deserializeAws_restJson1DirectoryList(data.Directories, context);
|
|
6127
6183
|
}
|
|
@@ -6219,9 +6275,9 @@ var deserializeAws_restJson1ListDirectoriesCommandError = function (output, cont
|
|
|
6219
6275
|
});
|
|
6220
6276
|
}); };
|
|
6221
6277
|
export var deserializeAws_restJson1ListFacetAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6222
|
-
var contents, data;
|
|
6223
|
-
return __generator(this, function (
|
|
6224
|
-
switch (
|
|
6278
|
+
var contents, data, _a, _b;
|
|
6279
|
+
return __generator(this, function (_c) {
|
|
6280
|
+
switch (_c.label) {
|
|
6225
6281
|
case 0:
|
|
6226
6282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6227
6283
|
return [2 /*return*/, deserializeAws_restJson1ListFacetAttributesCommandError(output, context)];
|
|
@@ -6231,9 +6287,11 @@ export var deserializeAws_restJson1ListFacetAttributesCommand = function (output
|
|
|
6231
6287
|
Attributes: undefined,
|
|
6232
6288
|
NextToken: undefined,
|
|
6233
6289
|
};
|
|
6290
|
+
_a = __expectNonNull;
|
|
6291
|
+
_b = __expectObject;
|
|
6234
6292
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6235
6293
|
case 1:
|
|
6236
|
-
data = _a.sent();
|
|
6294
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6237
6295
|
if (data.Attributes !== undefined && data.Attributes !== null) {
|
|
6238
6296
|
contents.Attributes = deserializeAws_restJson1FacetAttributeList(data.Attributes, context);
|
|
6239
6297
|
}
|
|
@@ -6347,9 +6405,9 @@ var deserializeAws_restJson1ListFacetAttributesCommandError = function (output,
|
|
|
6347
6405
|
});
|
|
6348
6406
|
}); };
|
|
6349
6407
|
export var deserializeAws_restJson1ListFacetNamesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6350
|
-
var contents, data;
|
|
6351
|
-
return __generator(this, function (
|
|
6352
|
-
switch (
|
|
6408
|
+
var contents, data, _a, _b;
|
|
6409
|
+
return __generator(this, function (_c) {
|
|
6410
|
+
switch (_c.label) {
|
|
6353
6411
|
case 0:
|
|
6354
6412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6355
6413
|
return [2 /*return*/, deserializeAws_restJson1ListFacetNamesCommandError(output, context)];
|
|
@@ -6359,9 +6417,11 @@ export var deserializeAws_restJson1ListFacetNamesCommand = function (output, con
|
|
|
6359
6417
|
FacetNames: undefined,
|
|
6360
6418
|
NextToken: undefined,
|
|
6361
6419
|
};
|
|
6420
|
+
_a = __expectNonNull;
|
|
6421
|
+
_b = __expectObject;
|
|
6362
6422
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6363
6423
|
case 1:
|
|
6364
|
-
data = _a.sent();
|
|
6424
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6365
6425
|
if (data.FacetNames !== undefined && data.FacetNames !== null) {
|
|
6366
6426
|
contents.FacetNames = deserializeAws_restJson1FacetNameList(data.FacetNames, context);
|
|
6367
6427
|
}
|
|
@@ -6467,9 +6527,9 @@ var deserializeAws_restJson1ListFacetNamesCommandError = function (output, conte
|
|
|
6467
6527
|
});
|
|
6468
6528
|
}); };
|
|
6469
6529
|
export var deserializeAws_restJson1ListIncomingTypedLinksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6470
|
-
var contents, data;
|
|
6471
|
-
return __generator(this, function (
|
|
6472
|
-
switch (
|
|
6530
|
+
var contents, data, _a, _b;
|
|
6531
|
+
return __generator(this, function (_c) {
|
|
6532
|
+
switch (_c.label) {
|
|
6473
6533
|
case 0:
|
|
6474
6534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6475
6535
|
return [2 /*return*/, deserializeAws_restJson1ListIncomingTypedLinksCommandError(output, context)];
|
|
@@ -6479,9 +6539,11 @@ export var deserializeAws_restJson1ListIncomingTypedLinksCommand = function (out
|
|
|
6479
6539
|
LinkSpecifiers: undefined,
|
|
6480
6540
|
NextToken: undefined,
|
|
6481
6541
|
};
|
|
6542
|
+
_a = __expectNonNull;
|
|
6543
|
+
_b = __expectObject;
|
|
6482
6544
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6483
6545
|
case 1:
|
|
6484
|
-
data = _a.sent();
|
|
6546
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6485
6547
|
if (data.LinkSpecifiers !== undefined && data.LinkSpecifiers !== null) {
|
|
6486
6548
|
contents.LinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.LinkSpecifiers, context);
|
|
6487
6549
|
}
|
|
@@ -6603,9 +6665,9 @@ var deserializeAws_restJson1ListIncomingTypedLinksCommandError = function (outpu
|
|
|
6603
6665
|
});
|
|
6604
6666
|
}); };
|
|
6605
6667
|
export var deserializeAws_restJson1ListIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6606
|
-
var contents, data;
|
|
6607
|
-
return __generator(this, function (
|
|
6608
|
-
switch (
|
|
6668
|
+
var contents, data, _a, _b;
|
|
6669
|
+
return __generator(this, function (_c) {
|
|
6670
|
+
switch (_c.label) {
|
|
6609
6671
|
case 0:
|
|
6610
6672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6611
6673
|
return [2 /*return*/, deserializeAws_restJson1ListIndexCommandError(output, context)];
|
|
@@ -6615,9 +6677,11 @@ export var deserializeAws_restJson1ListIndexCommand = function (output, context)
|
|
|
6615
6677
|
IndexAttachments: undefined,
|
|
6616
6678
|
NextToken: undefined,
|
|
6617
6679
|
};
|
|
6680
|
+
_a = __expectNonNull;
|
|
6681
|
+
_b = __expectObject;
|
|
6618
6682
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6619
6683
|
case 1:
|
|
6620
|
-
data = _a.sent();
|
|
6684
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6621
6685
|
if (data.IndexAttachments !== undefined && data.IndexAttachments !== null) {
|
|
6622
6686
|
contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
|
|
6623
6687
|
}
|
|
@@ -6747,9 +6811,9 @@ var deserializeAws_restJson1ListIndexCommandError = function (output, context) {
|
|
|
6747
6811
|
});
|
|
6748
6812
|
}); };
|
|
6749
6813
|
export var deserializeAws_restJson1ListManagedSchemaArnsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6750
|
-
var contents, data;
|
|
6751
|
-
return __generator(this, function (
|
|
6752
|
-
switch (
|
|
6814
|
+
var contents, data, _a, _b;
|
|
6815
|
+
return __generator(this, function (_c) {
|
|
6816
|
+
switch (_c.label) {
|
|
6753
6817
|
case 0:
|
|
6754
6818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6755
6819
|
return [2 /*return*/, deserializeAws_restJson1ListManagedSchemaArnsCommandError(output, context)];
|
|
@@ -6759,9 +6823,11 @@ export var deserializeAws_restJson1ListManagedSchemaArnsCommand = function (outp
|
|
|
6759
6823
|
NextToken: undefined,
|
|
6760
6824
|
SchemaArns: undefined,
|
|
6761
6825
|
};
|
|
6826
|
+
_a = __expectNonNull;
|
|
6827
|
+
_b = __expectObject;
|
|
6762
6828
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6763
6829
|
case 1:
|
|
6764
|
-
data = _a.sent();
|
|
6830
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6765
6831
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
6766
6832
|
contents.NextToken = __expectString(data.NextToken);
|
|
6767
6833
|
}
|
|
@@ -6851,9 +6917,9 @@ var deserializeAws_restJson1ListManagedSchemaArnsCommandError = function (output
|
|
|
6851
6917
|
});
|
|
6852
6918
|
}); };
|
|
6853
6919
|
export var deserializeAws_restJson1ListObjectAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6854
|
-
var contents, data;
|
|
6855
|
-
return __generator(this, function (
|
|
6856
|
-
switch (
|
|
6920
|
+
var contents, data, _a, _b;
|
|
6921
|
+
return __generator(this, function (_c) {
|
|
6922
|
+
switch (_c.label) {
|
|
6857
6923
|
case 0:
|
|
6858
6924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6859
6925
|
return [2 /*return*/, deserializeAws_restJson1ListObjectAttributesCommandError(output, context)];
|
|
@@ -6863,9 +6929,11 @@ export var deserializeAws_restJson1ListObjectAttributesCommand = function (outpu
|
|
|
6863
6929
|
Attributes: undefined,
|
|
6864
6930
|
NextToken: undefined,
|
|
6865
6931
|
};
|
|
6932
|
+
_a = __expectNonNull;
|
|
6933
|
+
_b = __expectObject;
|
|
6866
6934
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
6867
6935
|
case 1:
|
|
6868
|
-
data = _a.sent();
|
|
6936
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6869
6937
|
if (data.Attributes !== undefined && data.Attributes !== null) {
|
|
6870
6938
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
6871
6939
|
}
|
|
@@ -6987,9 +7055,9 @@ var deserializeAws_restJson1ListObjectAttributesCommandError = function (output,
|
|
|
6987
7055
|
});
|
|
6988
7056
|
}); };
|
|
6989
7057
|
export var deserializeAws_restJson1ListObjectChildrenCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6990
|
-
var contents, data;
|
|
6991
|
-
return __generator(this, function (
|
|
6992
|
-
switch (
|
|
7058
|
+
var contents, data, _a, _b;
|
|
7059
|
+
return __generator(this, function (_c) {
|
|
7060
|
+
switch (_c.label) {
|
|
6993
7061
|
case 0:
|
|
6994
7062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6995
7063
|
return [2 /*return*/, deserializeAws_restJson1ListObjectChildrenCommandError(output, context)];
|
|
@@ -6999,9 +7067,11 @@ export var deserializeAws_restJson1ListObjectChildrenCommand = function (output,
|
|
|
6999
7067
|
Children: undefined,
|
|
7000
7068
|
NextToken: undefined,
|
|
7001
7069
|
};
|
|
7070
|
+
_a = __expectNonNull;
|
|
7071
|
+
_b = __expectObject;
|
|
7002
7072
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7003
7073
|
case 1:
|
|
7004
|
-
data = _a.sent();
|
|
7074
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7005
7075
|
if (data.Children !== undefined && data.Children !== null) {
|
|
7006
7076
|
contents.Children = deserializeAws_restJson1LinkNameToObjectIdentifierMap(data.Children, context);
|
|
7007
7077
|
}
|
|
@@ -7123,9 +7193,9 @@ var deserializeAws_restJson1ListObjectChildrenCommandError = function (output, c
|
|
|
7123
7193
|
});
|
|
7124
7194
|
}); };
|
|
7125
7195
|
export var deserializeAws_restJson1ListObjectParentPathsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7126
|
-
var contents, data;
|
|
7127
|
-
return __generator(this, function (
|
|
7128
|
-
switch (
|
|
7196
|
+
var contents, data, _a, _b;
|
|
7197
|
+
return __generator(this, function (_c) {
|
|
7198
|
+
switch (_c.label) {
|
|
7129
7199
|
case 0:
|
|
7130
7200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7131
7201
|
return [2 /*return*/, deserializeAws_restJson1ListObjectParentPathsCommandError(output, context)];
|
|
@@ -7135,9 +7205,11 @@ export var deserializeAws_restJson1ListObjectParentPathsCommand = function (outp
|
|
|
7135
7205
|
NextToken: undefined,
|
|
7136
7206
|
PathToObjectIdentifiersList: undefined,
|
|
7137
7207
|
};
|
|
7208
|
+
_a = __expectNonNull;
|
|
7209
|
+
_b = __expectObject;
|
|
7138
7210
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7139
7211
|
case 1:
|
|
7140
|
-
data = _a.sent();
|
|
7212
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7141
7213
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
7142
7214
|
contents.NextToken = __expectString(data.NextToken);
|
|
7143
7215
|
}
|
|
@@ -7251,9 +7323,9 @@ var deserializeAws_restJson1ListObjectParentPathsCommandError = function (output
|
|
|
7251
7323
|
});
|
|
7252
7324
|
}); };
|
|
7253
7325
|
export var deserializeAws_restJson1ListObjectParentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7254
|
-
var contents, data;
|
|
7255
|
-
return __generator(this, function (
|
|
7256
|
-
switch (
|
|
7326
|
+
var contents, data, _a, _b;
|
|
7327
|
+
return __generator(this, function (_c) {
|
|
7328
|
+
switch (_c.label) {
|
|
7257
7329
|
case 0:
|
|
7258
7330
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7259
7331
|
return [2 /*return*/, deserializeAws_restJson1ListObjectParentsCommandError(output, context)];
|
|
@@ -7264,9 +7336,11 @@ export var deserializeAws_restJson1ListObjectParentsCommand = function (output,
|
|
|
7264
7336
|
ParentLinks: undefined,
|
|
7265
7337
|
Parents: undefined,
|
|
7266
7338
|
};
|
|
7339
|
+
_a = __expectNonNull;
|
|
7340
|
+
_b = __expectObject;
|
|
7267
7341
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7268
7342
|
case 1:
|
|
7269
|
-
data = _a.sent();
|
|
7343
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7270
7344
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
7271
7345
|
contents.NextToken = __expectString(data.NextToken);
|
|
7272
7346
|
}
|
|
@@ -7391,9 +7465,9 @@ var deserializeAws_restJson1ListObjectParentsCommandError = function (output, co
|
|
|
7391
7465
|
});
|
|
7392
7466
|
}); };
|
|
7393
7467
|
export var deserializeAws_restJson1ListObjectPoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7394
|
-
var contents, data;
|
|
7395
|
-
return __generator(this, function (
|
|
7396
|
-
switch (
|
|
7468
|
+
var contents, data, _a, _b;
|
|
7469
|
+
return __generator(this, function (_c) {
|
|
7470
|
+
switch (_c.label) {
|
|
7397
7471
|
case 0:
|
|
7398
7472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7399
7473
|
return [2 /*return*/, deserializeAws_restJson1ListObjectPoliciesCommandError(output, context)];
|
|
@@ -7403,9 +7477,11 @@ export var deserializeAws_restJson1ListObjectPoliciesCommand = function (output,
|
|
|
7403
7477
|
AttachedPolicyIds: undefined,
|
|
7404
7478
|
NextToken: undefined,
|
|
7405
7479
|
};
|
|
7480
|
+
_a = __expectNonNull;
|
|
7481
|
+
_b = __expectObject;
|
|
7406
7482
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7407
7483
|
case 1:
|
|
7408
|
-
data = _a.sent();
|
|
7484
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7409
7485
|
if (data.AttachedPolicyIds !== undefined && data.AttachedPolicyIds !== null) {
|
|
7410
7486
|
contents.AttachedPolicyIds = deserializeAws_restJson1ObjectIdentifierList(data.AttachedPolicyIds, context);
|
|
7411
7487
|
}
|
|
@@ -7519,9 +7595,9 @@ var deserializeAws_restJson1ListObjectPoliciesCommandError = function (output, c
|
|
|
7519
7595
|
});
|
|
7520
7596
|
}); };
|
|
7521
7597
|
export var deserializeAws_restJson1ListOutgoingTypedLinksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7522
|
-
var contents, data;
|
|
7523
|
-
return __generator(this, function (
|
|
7524
|
-
switch (
|
|
7598
|
+
var contents, data, _a, _b;
|
|
7599
|
+
return __generator(this, function (_c) {
|
|
7600
|
+
switch (_c.label) {
|
|
7525
7601
|
case 0:
|
|
7526
7602
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7527
7603
|
return [2 /*return*/, deserializeAws_restJson1ListOutgoingTypedLinksCommandError(output, context)];
|
|
@@ -7531,9 +7607,11 @@ export var deserializeAws_restJson1ListOutgoingTypedLinksCommand = function (out
|
|
|
7531
7607
|
NextToken: undefined,
|
|
7532
7608
|
TypedLinkSpecifiers: undefined,
|
|
7533
7609
|
};
|
|
7610
|
+
_a = __expectNonNull;
|
|
7611
|
+
_b = __expectObject;
|
|
7534
7612
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7535
7613
|
case 1:
|
|
7536
|
-
data = _a.sent();
|
|
7614
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7537
7615
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
7538
7616
|
contents.NextToken = __expectString(data.NextToken);
|
|
7539
7617
|
}
|
|
@@ -7655,9 +7733,9 @@ var deserializeAws_restJson1ListOutgoingTypedLinksCommandError = function (outpu
|
|
|
7655
7733
|
});
|
|
7656
7734
|
}); };
|
|
7657
7735
|
export var deserializeAws_restJson1ListPolicyAttachmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7658
|
-
var contents, data;
|
|
7659
|
-
return __generator(this, function (
|
|
7660
|
-
switch (
|
|
7736
|
+
var contents, data, _a, _b;
|
|
7737
|
+
return __generator(this, function (_c) {
|
|
7738
|
+
switch (_c.label) {
|
|
7661
7739
|
case 0:
|
|
7662
7740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7663
7741
|
return [2 /*return*/, deserializeAws_restJson1ListPolicyAttachmentsCommandError(output, context)];
|
|
@@ -7667,9 +7745,11 @@ export var deserializeAws_restJson1ListPolicyAttachmentsCommand = function (outp
|
|
|
7667
7745
|
NextToken: undefined,
|
|
7668
7746
|
ObjectIdentifiers: undefined,
|
|
7669
7747
|
};
|
|
7748
|
+
_a = __expectNonNull;
|
|
7749
|
+
_b = __expectObject;
|
|
7670
7750
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7671
7751
|
case 1:
|
|
7672
|
-
data = _a.sent();
|
|
7752
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7673
7753
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
7674
7754
|
contents.NextToken = __expectString(data.NextToken);
|
|
7675
7755
|
}
|
|
@@ -7791,9 +7871,9 @@ var deserializeAws_restJson1ListPolicyAttachmentsCommandError = function (output
|
|
|
7791
7871
|
});
|
|
7792
7872
|
}); };
|
|
7793
7873
|
export var deserializeAws_restJson1ListPublishedSchemaArnsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7794
|
-
var contents, data;
|
|
7795
|
-
return __generator(this, function (
|
|
7796
|
-
switch (
|
|
7874
|
+
var contents, data, _a, _b;
|
|
7875
|
+
return __generator(this, function (_c) {
|
|
7876
|
+
switch (_c.label) {
|
|
7797
7877
|
case 0:
|
|
7798
7878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7799
7879
|
return [2 /*return*/, deserializeAws_restJson1ListPublishedSchemaArnsCommandError(output, context)];
|
|
@@ -7803,9 +7883,11 @@ export var deserializeAws_restJson1ListPublishedSchemaArnsCommand = function (ou
|
|
|
7803
7883
|
NextToken: undefined,
|
|
7804
7884
|
SchemaArns: undefined,
|
|
7805
7885
|
};
|
|
7886
|
+
_a = __expectNonNull;
|
|
7887
|
+
_b = __expectObject;
|
|
7806
7888
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7807
7889
|
case 1:
|
|
7808
|
-
data = _a.sent();
|
|
7890
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7809
7891
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
7810
7892
|
contents.NextToken = __expectString(data.NextToken);
|
|
7811
7893
|
}
|
|
@@ -7911,9 +7993,9 @@ var deserializeAws_restJson1ListPublishedSchemaArnsCommandError = function (outp
|
|
|
7911
7993
|
});
|
|
7912
7994
|
}); };
|
|
7913
7995
|
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7914
|
-
var contents, data;
|
|
7915
|
-
return __generator(this, function (
|
|
7916
|
-
switch (
|
|
7996
|
+
var contents, data, _a, _b;
|
|
7997
|
+
return __generator(this, function (_c) {
|
|
7998
|
+
switch (_c.label) {
|
|
7917
7999
|
case 0:
|
|
7918
8000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7919
8001
|
return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
@@ -7923,9 +8005,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
7923
8005
|
NextToken: undefined,
|
|
7924
8006
|
Tags: undefined,
|
|
7925
8007
|
};
|
|
8008
|
+
_a = __expectNonNull;
|
|
8009
|
+
_b = __expectObject;
|
|
7926
8010
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
7927
8011
|
case 1:
|
|
7928
|
-
data = _a.sent();
|
|
8012
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7929
8013
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
7930
8014
|
contents.NextToken = __expectString(data.NextToken);
|
|
7931
8015
|
}
|
|
@@ -8031,9 +8115,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
8031
8115
|
});
|
|
8032
8116
|
}); };
|
|
8033
8117
|
export var deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8034
|
-
var contents, data;
|
|
8035
|
-
return __generator(this, function (
|
|
8036
|
-
switch (
|
|
8118
|
+
var contents, data, _a, _b;
|
|
8119
|
+
return __generator(this, function (_c) {
|
|
8120
|
+
switch (_c.label) {
|
|
8037
8121
|
case 0:
|
|
8038
8122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8039
8123
|
return [2 /*return*/, deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError(output, context)];
|
|
@@ -8043,9 +8127,11 @@ export var deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = functio
|
|
|
8043
8127
|
Attributes: undefined,
|
|
8044
8128
|
NextToken: undefined,
|
|
8045
8129
|
};
|
|
8130
|
+
_a = __expectNonNull;
|
|
8131
|
+
_b = __expectObject;
|
|
8046
8132
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8047
8133
|
case 1:
|
|
8048
|
-
data = _a.sent();
|
|
8134
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8049
8135
|
if (data.Attributes !== undefined && data.Attributes !== null) {
|
|
8050
8136
|
contents.Attributes = deserializeAws_restJson1TypedLinkAttributeDefinitionList(data.Attributes, context);
|
|
8051
8137
|
}
|
|
@@ -8159,9 +8245,9 @@ var deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = function
|
|
|
8159
8245
|
});
|
|
8160
8246
|
}); };
|
|
8161
8247
|
export var deserializeAws_restJson1ListTypedLinkFacetNamesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8162
|
-
var contents, data;
|
|
8163
|
-
return __generator(this, function (
|
|
8164
|
-
switch (
|
|
8248
|
+
var contents, data, _a, _b;
|
|
8249
|
+
return __generator(this, function (_c) {
|
|
8250
|
+
switch (_c.label) {
|
|
8165
8251
|
case 0:
|
|
8166
8252
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8167
8253
|
return [2 /*return*/, deserializeAws_restJson1ListTypedLinkFacetNamesCommandError(output, context)];
|
|
@@ -8171,9 +8257,11 @@ export var deserializeAws_restJson1ListTypedLinkFacetNamesCommand = function (ou
|
|
|
8171
8257
|
FacetNames: undefined,
|
|
8172
8258
|
NextToken: undefined,
|
|
8173
8259
|
};
|
|
8260
|
+
_a = __expectNonNull;
|
|
8261
|
+
_b = __expectObject;
|
|
8174
8262
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8175
8263
|
case 1:
|
|
8176
|
-
data = _a.sent();
|
|
8264
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8177
8265
|
if (data.FacetNames !== undefined && data.FacetNames !== null) {
|
|
8178
8266
|
contents.FacetNames = deserializeAws_restJson1TypedLinkNameList(data.FacetNames, context);
|
|
8179
8267
|
}
|
|
@@ -8279,9 +8367,9 @@ var deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = function (outp
|
|
|
8279
8367
|
});
|
|
8280
8368
|
}); };
|
|
8281
8369
|
export var deserializeAws_restJson1LookupPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8282
|
-
var contents, data;
|
|
8283
|
-
return __generator(this, function (
|
|
8284
|
-
switch (
|
|
8370
|
+
var contents, data, _a, _b;
|
|
8371
|
+
return __generator(this, function (_c) {
|
|
8372
|
+
switch (_c.label) {
|
|
8285
8373
|
case 0:
|
|
8286
8374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8287
8375
|
return [2 /*return*/, deserializeAws_restJson1LookupPolicyCommandError(output, context)];
|
|
@@ -8291,9 +8379,11 @@ export var deserializeAws_restJson1LookupPolicyCommand = function (output, conte
|
|
|
8291
8379
|
NextToken: undefined,
|
|
8292
8380
|
PolicyToPathList: undefined,
|
|
8293
8381
|
};
|
|
8382
|
+
_a = __expectNonNull;
|
|
8383
|
+
_b = __expectObject;
|
|
8294
8384
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8295
8385
|
case 1:
|
|
8296
|
-
data = _a.sent();
|
|
8386
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8297
8387
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
8298
8388
|
contents.NextToken = __expectString(data.NextToken);
|
|
8299
8389
|
}
|
|
@@ -8407,9 +8497,9 @@ var deserializeAws_restJson1LookupPolicyCommandError = function (output, context
|
|
|
8407
8497
|
});
|
|
8408
8498
|
}); };
|
|
8409
8499
|
export var deserializeAws_restJson1PublishSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8410
|
-
var contents, data;
|
|
8411
|
-
return __generator(this, function (
|
|
8412
|
-
switch (
|
|
8500
|
+
var contents, data, _a, _b;
|
|
8501
|
+
return __generator(this, function (_c) {
|
|
8502
|
+
switch (_c.label) {
|
|
8413
8503
|
case 0:
|
|
8414
8504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8415
8505
|
return [2 /*return*/, deserializeAws_restJson1PublishSchemaCommandError(output, context)];
|
|
@@ -8418,9 +8508,11 @@ export var deserializeAws_restJson1PublishSchemaCommand = function (output, cont
|
|
|
8418
8508
|
$metadata: deserializeMetadata(output),
|
|
8419
8509
|
PublishedSchemaArn: undefined,
|
|
8420
8510
|
};
|
|
8511
|
+
_a = __expectNonNull;
|
|
8512
|
+
_b = __expectObject;
|
|
8421
8513
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8422
8514
|
case 1:
|
|
8423
|
-
data = _a.sent();
|
|
8515
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8424
8516
|
if (data.PublishedSchemaArn !== undefined && data.PublishedSchemaArn !== null) {
|
|
8425
8517
|
contents.PublishedSchemaArn = __expectString(data.PublishedSchemaArn);
|
|
8426
8518
|
}
|
|
@@ -8523,9 +8615,9 @@ var deserializeAws_restJson1PublishSchemaCommandError = function (output, contex
|
|
|
8523
8615
|
});
|
|
8524
8616
|
}); };
|
|
8525
8617
|
export var deserializeAws_restJson1PutSchemaFromJsonCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8526
|
-
var contents, data;
|
|
8527
|
-
return __generator(this, function (
|
|
8528
|
-
switch (
|
|
8618
|
+
var contents, data, _a, _b;
|
|
8619
|
+
return __generator(this, function (_c) {
|
|
8620
|
+
switch (_c.label) {
|
|
8529
8621
|
case 0:
|
|
8530
8622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8531
8623
|
return [2 /*return*/, deserializeAws_restJson1PutSchemaFromJsonCommandError(output, context)];
|
|
@@ -8534,9 +8626,11 @@ export var deserializeAws_restJson1PutSchemaFromJsonCommand = function (output,
|
|
|
8534
8626
|
$metadata: deserializeMetadata(output),
|
|
8535
8627
|
Arn: undefined,
|
|
8536
8628
|
};
|
|
8629
|
+
_a = __expectNonNull;
|
|
8630
|
+
_b = __expectObject;
|
|
8537
8631
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
8538
8632
|
case 1:
|
|
8539
|
-
data = _a.sent();
|
|
8633
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
8540
8634
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
8541
8635
|
contents.Arn = __expectString(data.Arn);
|
|
8542
8636
|
}
|
|
@@ -9239,9 +9333,9 @@ var deserializeAws_restJson1UpdateLinkAttributesCommandError = function (output,
|
|
|
9239
9333
|
});
|
|
9240
9334
|
}); };
|
|
9241
9335
|
export var deserializeAws_restJson1UpdateObjectAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9242
|
-
var contents, data;
|
|
9243
|
-
return __generator(this, function (
|
|
9244
|
-
switch (
|
|
9336
|
+
var contents, data, _a, _b;
|
|
9337
|
+
return __generator(this, function (_c) {
|
|
9338
|
+
switch (_c.label) {
|
|
9245
9339
|
case 0:
|
|
9246
9340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9247
9341
|
return [2 /*return*/, deserializeAws_restJson1UpdateObjectAttributesCommandError(output, context)];
|
|
@@ -9250,9 +9344,11 @@ export var deserializeAws_restJson1UpdateObjectAttributesCommand = function (out
|
|
|
9250
9344
|
$metadata: deserializeMetadata(output),
|
|
9251
9345
|
ObjectIdentifier: undefined,
|
|
9252
9346
|
};
|
|
9347
|
+
_a = __expectNonNull;
|
|
9348
|
+
_b = __expectObject;
|
|
9253
9349
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
9254
9350
|
case 1:
|
|
9255
|
-
data = _a.sent();
|
|
9351
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
9256
9352
|
if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
|
|
9257
9353
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
9258
9354
|
}
|
|
@@ -9371,9 +9467,9 @@ var deserializeAws_restJson1UpdateObjectAttributesCommandError = function (outpu
|
|
|
9371
9467
|
});
|
|
9372
9468
|
}); };
|
|
9373
9469
|
export var deserializeAws_restJson1UpdateSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9374
|
-
var contents, data;
|
|
9375
|
-
return __generator(this, function (
|
|
9376
|
-
switch (
|
|
9470
|
+
var contents, data, _a, _b;
|
|
9471
|
+
return __generator(this, function (_c) {
|
|
9472
|
+
switch (_c.label) {
|
|
9377
9473
|
case 0:
|
|
9378
9474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9379
9475
|
return [2 /*return*/, deserializeAws_restJson1UpdateSchemaCommandError(output, context)];
|
|
@@ -9382,9 +9478,11 @@ export var deserializeAws_restJson1UpdateSchemaCommand = function (output, conte
|
|
|
9382
9478
|
$metadata: deserializeMetadata(output),
|
|
9383
9479
|
SchemaArn: undefined,
|
|
9384
9480
|
};
|
|
9481
|
+
_a = __expectNonNull;
|
|
9482
|
+
_b = __expectObject;
|
|
9385
9483
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
9386
9484
|
case 1:
|
|
9387
|
-
data = _a.sent();
|
|
9485
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
9388
9486
|
if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
|
|
9389
9487
|
contents.SchemaArn = __expectString(data.SchemaArn);
|
|
9390
9488
|
}
|
|
@@ -9615,9 +9713,9 @@ var deserializeAws_restJson1UpdateTypedLinkFacetCommandError = function (output,
|
|
|
9615
9713
|
});
|
|
9616
9714
|
}); };
|
|
9617
9715
|
export var deserializeAws_restJson1UpgradeAppliedSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9618
|
-
var contents, data;
|
|
9619
|
-
return __generator(this, function (
|
|
9620
|
-
switch (
|
|
9716
|
+
var contents, data, _a, _b;
|
|
9717
|
+
return __generator(this, function (_c) {
|
|
9718
|
+
switch (_c.label) {
|
|
9621
9719
|
case 0:
|
|
9622
9720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9623
9721
|
return [2 /*return*/, deserializeAws_restJson1UpgradeAppliedSchemaCommandError(output, context)];
|
|
@@ -9627,9 +9725,11 @@ export var deserializeAws_restJson1UpgradeAppliedSchemaCommand = function (outpu
|
|
|
9627
9725
|
DirectoryArn: undefined,
|
|
9628
9726
|
UpgradedSchemaArn: undefined,
|
|
9629
9727
|
};
|
|
9728
|
+
_a = __expectNonNull;
|
|
9729
|
+
_b = __expectObject;
|
|
9630
9730
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
9631
9731
|
case 1:
|
|
9632
|
-
data = _a.sent();
|
|
9732
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
9633
9733
|
if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
|
|
9634
9734
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
9635
9735
|
}
|
|
@@ -9743,9 +9843,9 @@ var deserializeAws_restJson1UpgradeAppliedSchemaCommandError = function (output,
|
|
|
9743
9843
|
});
|
|
9744
9844
|
}); };
|
|
9745
9845
|
export var deserializeAws_restJson1UpgradePublishedSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9746
|
-
var contents, data;
|
|
9747
|
-
return __generator(this, function (
|
|
9748
|
-
switch (
|
|
9846
|
+
var contents, data, _a, _b;
|
|
9847
|
+
return __generator(this, function (_c) {
|
|
9848
|
+
switch (_c.label) {
|
|
9749
9849
|
case 0:
|
|
9750
9850
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9751
9851
|
return [2 /*return*/, deserializeAws_restJson1UpgradePublishedSchemaCommandError(output, context)];
|
|
@@ -9754,9 +9854,11 @@ export var deserializeAws_restJson1UpgradePublishedSchemaCommand = function (out
|
|
|
9754
9854
|
$metadata: deserializeMetadata(output),
|
|
9755
9855
|
UpgradedSchemaArn: undefined,
|
|
9756
9856
|
};
|
|
9857
|
+
_a = __expectNonNull;
|
|
9858
|
+
_b = __expectObject;
|
|
9757
9859
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
9758
9860
|
case 1:
|
|
9759
|
-
data = _a.sent();
|
|
9861
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
9760
9862
|
if (data.UpgradedSchemaArn !== undefined && data.UpgradedSchemaArn !== null) {
|
|
9761
9863
|
contents.UpgradedSchemaArn = __expectString(data.UpgradedSchemaArn);
|
|
9762
9864
|
}
|
|
@@ -9895,7 +9997,7 @@ var deserializeAws_restJson1BatchWriteExceptionResponse = function (parsedOutput
|
|
|
9895
9997
|
};
|
|
9896
9998
|
data = parsedOutput.body;
|
|
9897
9999
|
if (data.Index !== undefined && data.Index !== null) {
|
|
9898
|
-
contents.Index =
|
|
10000
|
+
contents.Index = __expectInt32(data.Index);
|
|
9899
10001
|
}
|
|
9900
10002
|
if (data.Message !== undefined && data.Message !== null) {
|
|
9901
10003
|
contents.Message = __expectString(data.Message);
|
|
@@ -11128,7 +11230,7 @@ var deserializeAws_restJson1AttributeKeyAndValue = function (output, context) {
|
|
|
11128
11230
|
? deserializeAws_restJson1AttributeKey(output.Key, context)
|
|
11129
11231
|
: undefined,
|
|
11130
11232
|
Value: output.Value !== undefined && output.Value !== null
|
|
11131
|
-
? deserializeAws_restJson1TypedAttributeValue(output.Value, context)
|
|
11233
|
+
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.Value), context)
|
|
11132
11234
|
: undefined,
|
|
11133
11235
|
};
|
|
11134
11236
|
};
|
|
@@ -11146,7 +11248,7 @@ var deserializeAws_restJson1AttributeNameAndValue = function (output, context) {
|
|
|
11146
11248
|
return {
|
|
11147
11249
|
AttributeName: __expectString(output.AttributeName),
|
|
11148
11250
|
Value: output.Value !== undefined && output.Value !== null
|
|
11149
|
-
? deserializeAws_restJson1TypedAttributeValue(output.Value, context)
|
|
11251
|
+
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.Value), context)
|
|
11150
11252
|
: undefined,
|
|
11151
11253
|
};
|
|
11152
11254
|
};
|
|
@@ -11477,7 +11579,7 @@ var deserializeAws_restJson1BatchWriteOperationResponseList = function (output,
|
|
|
11477
11579
|
var deserializeAws_restJson1Directory = function (output, context) {
|
|
11478
11580
|
return {
|
|
11479
11581
|
CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
|
|
11480
|
-
?
|
|
11582
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDateTime)))
|
|
11481
11583
|
: undefined,
|
|
11482
11584
|
DirectoryArn: __expectString(output.DirectoryArn),
|
|
11483
11585
|
Name: __expectString(output.Name),
|
|
@@ -11516,7 +11618,7 @@ var deserializeAws_restJson1FacetAttribute = function (output, context) {
|
|
|
11516
11618
|
var deserializeAws_restJson1FacetAttributeDefinition = function (output, context) {
|
|
11517
11619
|
return {
|
|
11518
11620
|
DefaultValue: output.DefaultValue !== undefined && output.DefaultValue !== null
|
|
11519
|
-
? deserializeAws_restJson1TypedAttributeValue(output.DefaultValue, context)
|
|
11621
|
+
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.DefaultValue), context)
|
|
11520
11622
|
: undefined,
|
|
11521
11623
|
IsImmutable: __expectBoolean(output.IsImmutable),
|
|
11522
11624
|
Rules: output.Rules !== undefined && output.Rules !== null
|
|
@@ -11744,7 +11846,7 @@ var deserializeAws_restJson1TypedAttributeValue = function (output, context) {
|
|
|
11744
11846
|
}
|
|
11745
11847
|
if (output.DatetimeValue !== undefined && output.DatetimeValue !== null) {
|
|
11746
11848
|
return {
|
|
11747
|
-
DatetimeValue:
|
|
11849
|
+
DatetimeValue: __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DatetimeValue))),
|
|
11748
11850
|
};
|
|
11749
11851
|
}
|
|
11750
11852
|
if (__expectString(output.NumberValue) !== undefined) {
|
|
@@ -11758,7 +11860,7 @@ var deserializeAws_restJson1TypedAttributeValue = function (output, context) {
|
|
|
11758
11860
|
var deserializeAws_restJson1TypedLinkAttributeDefinition = function (output, context) {
|
|
11759
11861
|
return {
|
|
11760
11862
|
DefaultValue: output.DefaultValue !== undefined && output.DefaultValue !== null
|
|
11761
|
-
? deserializeAws_restJson1TypedAttributeValue(output.DefaultValue, context)
|
|
11863
|
+
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.DefaultValue), context)
|
|
11762
11864
|
: undefined,
|
|
11763
11865
|
IsImmutable: __expectBoolean(output.IsImmutable),
|
|
11764
11866
|
Name: __expectString(output.Name),
|