@aws-sdk/client-efs 3.30.0 → 3.34.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 +35 -0
- package/dist/cjs/EFSClient.js +13 -13
- package/dist/cjs/EFSClient.js.map +1 -1
- package/dist/cjs/commands/CreateAccessPointCommand.js +3 -3
- package/dist/cjs/commands/CreateAccessPointCommand.js.map +1 -1
- package/dist/cjs/commands/CreateFileSystemCommand.js +3 -3
- package/dist/cjs/commands/CreateFileSystemCommand.js.map +1 -1
- package/dist/cjs/commands/CreateMountTargetCommand.js +3 -3
- package/dist/cjs/commands/CreateMountTargetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateTagsCommand.js +3 -3
- package/dist/cjs/commands/CreateTagsCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAccessPointCommand.js +3 -3
- package/dist/cjs/commands/DeleteAccessPointCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFileSystemCommand.js +3 -3
- package/dist/cjs/commands/DeleteFileSystemCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFileSystemPolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteFileSystemPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMountTargetCommand.js +3 -3
- package/dist/cjs/commands/DeleteMountTargetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTagsCommand.js +3 -3
- package/dist/cjs/commands/DeleteTagsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAccessPointsCommand.js +3 -3
- package/dist/cjs/commands/DescribeAccessPointsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAccountPreferencesCommand.js +3 -3
- package/dist/cjs/commands/DescribeAccountPreferencesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBackupPolicyCommand.js +3 -3
- package/dist/cjs/commands/DescribeBackupPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeFileSystemPolicyCommand.js +3 -3
- package/dist/cjs/commands/DescribeFileSystemPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeFileSystemsCommand.js +3 -3
- package/dist/cjs/commands/DescribeFileSystemsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLifecycleConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DescribeLifecycleConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeMountTargetSecurityGroupsCommand.js +3 -3
- package/dist/cjs/commands/DescribeMountTargetSecurityGroupsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeMountTargetsCommand.js +3 -3
- package/dist/cjs/commands/DescribeMountTargetsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeTagsCommand.js +3 -3
- package/dist/cjs/commands/DescribeTagsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ModifyMountTargetSecurityGroupsCommand.js +3 -3
- package/dist/cjs/commands/ModifyMountTargetSecurityGroupsCommand.js.map +1 -1
- package/dist/cjs/commands/PutAccountPreferencesCommand.js +3 -3
- package/dist/cjs/commands/PutAccountPreferencesCommand.js.map +1 -1
- package/dist/cjs/commands/PutBackupPolicyCommand.js +3 -3
- package/dist/cjs/commands/PutBackupPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutFileSystemPolicyCommand.js +3 -3
- package/dist/cjs/commands/PutFileSystemPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutLifecycleConfigurationCommand.js +3 -3
- package/dist/cjs/commands/PutLifecycleConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFileSystemCommand.js +3 -3
- package/dist/cjs/commands/UpdateFileSystemCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +35 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_restJson1.js +210 -210
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/EFS.js +1 -8
- package/dist/es/EFS.js.map +1 -1
- package/dist/es/EFSClient.js +1 -13
- package/dist/es/EFSClient.js.map +1 -1
- package/dist/es/commands/CreateAccessPointCommand.js +2 -34
- package/dist/es/commands/CreateAccessPointCommand.js.map +1 -1
- package/dist/es/commands/CreateFileSystemCommand.js +2 -80
- package/dist/es/commands/CreateFileSystemCommand.js.map +1 -1
- package/dist/es/commands/CreateMountTargetCommand.js +2 -168
- package/dist/es/commands/CreateMountTargetCommand.js.map +1 -1
- package/dist/es/commands/CreateTagsCommand.js +2 -38
- package/dist/es/commands/CreateTagsCommand.js.map +1 -1
- package/dist/es/commands/DeleteAccessPointCommand.js +2 -30
- package/dist/es/commands/DeleteAccessPointCommand.js.map +1 -1
- package/dist/es/commands/DeleteFileSystemCommand.js +2 -41
- package/dist/es/commands/DeleteFileSystemCommand.js.map +1 -1
- package/dist/es/commands/DeleteFileSystemPolicyCommand.js +2 -30
- package/dist/es/commands/DeleteFileSystemPolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteMountTargetCommand.js +2 -60
- package/dist/es/commands/DeleteMountTargetCommand.js.map +1 -1
- package/dist/es/commands/DeleteTagsCommand.js +2 -39
- package/dist/es/commands/DeleteTagsCommand.js.map +1 -1
- package/dist/es/commands/DescribeAccessPointsCommand.js +2 -30
- package/dist/es/commands/DescribeAccessPointsCommand.js.map +1 -1
- package/dist/es/commands/DescribeAccountPreferencesCommand.js +2 -28
- package/dist/es/commands/DescribeAccountPreferencesCommand.js.map +1 -1
- package/dist/es/commands/DescribeBackupPolicyCommand.js +2 -27
- package/dist/es/commands/DescribeBackupPolicyCommand.js.map +1 -1
- package/dist/es/commands/DescribeFileSystemPolicyCommand.js +2 -28
- package/dist/es/commands/DescribeFileSystemPolicyCommand.js.map +1 -1
- package/dist/es/commands/DescribeFileSystemsCommand.js +2 -49
- package/dist/es/commands/DescribeFileSystemsCommand.js.map +1 -1
- package/dist/es/commands/DescribeLifecycleConfigurationCommand.js +2 -34
- package/dist/es/commands/DescribeLifecycleConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DescribeMountTargetSecurityGroupsCommand.js +2 -42
- package/dist/es/commands/DescribeMountTargetSecurityGroupsCommand.js.map +1 -1
- package/dist/es/commands/DescribeMountTargetsCommand.js +2 -34
- package/dist/es/commands/DescribeMountTargetsCommand.js.map +1 -1
- package/dist/es/commands/DescribeTagsCommand.js +2 -37
- package/dist/es/commands/DescribeTagsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -28
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ModifyMountTargetSecurityGroupsCommand.js +2 -46
- package/dist/es/commands/ModifyMountTargetSecurityGroupsCommand.js.map +1 -1
- package/dist/es/commands/PutAccountPreferencesCommand.js +2 -30
- package/dist/es/commands/PutAccountPreferencesCommand.js.map +1 -1
- package/dist/es/commands/PutBackupPolicyCommand.js +2 -27
- package/dist/es/commands/PutBackupPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutFileSystemPolicyCommand.js +2 -36
- package/dist/es/commands/PutFileSystemPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutLifecycleConfigurationCommand.js +2 -57
- package/dist/es/commands/PutLifecycleConfigurationCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -28
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -28
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateFileSystemCommand.js +2 -28
- package/dist/es/commands/UpdateFileSystemCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -231
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/DescribeAccessPointsPaginator.js +16 -28
- package/dist/es/pagination/DescribeAccessPointsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeFileSystemsPaginator.js +16 -28
- package/dist/es/pagination/DescribeFileSystemsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeTagsPaginator.js +16 -28
- package/dist/es/pagination/DescribeTagsPaginator.js.map +1 -1
- package/dist/es/pagination/ListTagsForResourcePaginator.js +16 -28
- package/dist/es/pagination/ListTagsForResourcePaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +738 -743
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_restJson1.ts +6 -4
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -14,7 +14,7 @@ const serializeAws_restJson1CreateAccessPointCommand = async (input, context) =>
|
|
|
14
14
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/access-points";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a :
|
|
17
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
18
18
|
...(input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId }),
|
|
19
19
|
...(input.PosixUser !== undefined &&
|
|
20
20
|
input.PosixUser !== null && { PosixUser: serializeAws_restJson1PosixUser(input.PosixUser, context) }),
|
|
@@ -47,14 +47,14 @@ const serializeAws_restJson1CreateFileSystemCommand = async (input, context) =>
|
|
|
47
47
|
...(input.AvailabilityZoneName !== undefined &&
|
|
48
48
|
input.AvailabilityZoneName !== null && { AvailabilityZoneName: input.AvailabilityZoneName }),
|
|
49
49
|
...(input.Backup !== undefined && input.Backup !== null && { Backup: input.Backup }),
|
|
50
|
-
CreationToken: (_a = input.CreationToken) !== null && _a !== void 0 ? _a :
|
|
50
|
+
CreationToken: (_a = input.CreationToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
51
51
|
...(input.Encrypted !== undefined && input.Encrypted !== null && { Encrypted: input.Encrypted }),
|
|
52
52
|
...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
|
|
53
53
|
...(input.PerformanceMode !== undefined &&
|
|
54
54
|
input.PerformanceMode !== null && { PerformanceMode: input.PerformanceMode }),
|
|
55
55
|
...(input.ProvisionedThroughputInMibps !== undefined &&
|
|
56
56
|
input.ProvisionedThroughputInMibps !== null && {
|
|
57
|
-
ProvisionedThroughputInMibps:
|
|
57
|
+
ProvisionedThroughputInMibps: smithy_client_1.serializeFloat(input.ProvisionedThroughputInMibps),
|
|
58
58
|
}),
|
|
59
59
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
60
60
|
...(input.ThroughputMode !== undefined &&
|
|
@@ -109,7 +109,7 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
|
|
|
109
109
|
if (labelValue.length <= 0) {
|
|
110
110
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
111
111
|
}
|
|
112
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
112
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
115
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -138,7 +138,7 @@ const serializeAws_restJson1DeleteAccessPointCommand = async (input, context) =>
|
|
|
138
138
|
if (labelValue.length <= 0) {
|
|
139
139
|
throw new Error("Empty value provided for input HTTP label: AccessPointId.");
|
|
140
140
|
}
|
|
141
|
-
resolvedPath = resolvedPath.replace("{AccessPointId}",
|
|
141
|
+
resolvedPath = resolvedPath.replace("{AccessPointId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
144
144
|
throw new Error("No value provided for input HTTP label: AccessPointId.");
|
|
@@ -164,7 +164,7 @@ const serializeAws_restJson1DeleteFileSystemCommand = async (input, context) =>
|
|
|
164
164
|
if (labelValue.length <= 0) {
|
|
165
165
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
166
166
|
}
|
|
167
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
167
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
170
170
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -191,7 +191,7 @@ const serializeAws_restJson1DeleteFileSystemPolicyCommand = async (input, contex
|
|
|
191
191
|
if (labelValue.length <= 0) {
|
|
192
192
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
193
193
|
}
|
|
194
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
194
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
195
195
|
}
|
|
196
196
|
else {
|
|
197
197
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -217,7 +217,7 @@ const serializeAws_restJson1DeleteMountTargetCommand = async (input, context) =>
|
|
|
217
217
|
if (labelValue.length <= 0) {
|
|
218
218
|
throw new Error("Empty value provided for input HTTP label: MountTargetId.");
|
|
219
219
|
}
|
|
220
|
-
resolvedPath = resolvedPath.replace("{MountTargetId}",
|
|
220
|
+
resolvedPath = resolvedPath.replace("{MountTargetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
221
221
|
}
|
|
222
222
|
else {
|
|
223
223
|
throw new Error("No value provided for input HTTP label: MountTargetId.");
|
|
@@ -245,7 +245,7 @@ const serializeAws_restJson1DeleteTagsCommand = async (input, context) => {
|
|
|
245
245
|
if (labelValue.length <= 0) {
|
|
246
246
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
247
247
|
}
|
|
248
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
248
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
249
249
|
}
|
|
250
250
|
else {
|
|
251
251
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -321,7 +321,7 @@ const serializeAws_restJson1DescribeBackupPolicyCommand = async (input, context)
|
|
|
321
321
|
if (labelValue.length <= 0) {
|
|
322
322
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
323
323
|
}
|
|
324
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
324
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
325
325
|
}
|
|
326
326
|
else {
|
|
327
327
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -348,7 +348,7 @@ const serializeAws_restJson1DescribeFileSystemPolicyCommand = async (input, cont
|
|
|
348
348
|
if (labelValue.length <= 0) {
|
|
349
349
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
350
350
|
}
|
|
351
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
351
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
352
352
|
}
|
|
353
353
|
else {
|
|
354
354
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -398,7 +398,7 @@ const serializeAws_restJson1DescribeLifecycleConfigurationCommand = async (input
|
|
|
398
398
|
if (labelValue.length <= 0) {
|
|
399
399
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
400
400
|
}
|
|
401
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
401
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
402
402
|
}
|
|
403
403
|
else {
|
|
404
404
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -449,7 +449,7 @@ const serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = async (in
|
|
|
449
449
|
if (labelValue.length <= 0) {
|
|
450
450
|
throw new Error("Empty value provided for input HTTP label: MountTargetId.");
|
|
451
451
|
}
|
|
452
|
-
resolvedPath = resolvedPath.replace("{MountTargetId}",
|
|
452
|
+
resolvedPath = resolvedPath.replace("{MountTargetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
453
453
|
}
|
|
454
454
|
else {
|
|
455
455
|
throw new Error("No value provided for input HTTP label: MountTargetId.");
|
|
@@ -475,7 +475,7 @@ const serializeAws_restJson1DescribeTagsCommand = async (input, context) => {
|
|
|
475
475
|
if (labelValue.length <= 0) {
|
|
476
476
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
477
477
|
}
|
|
478
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
478
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
479
479
|
}
|
|
480
480
|
else {
|
|
481
481
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -506,7 +506,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
506
506
|
if (labelValue.length <= 0) {
|
|
507
507
|
throw new Error("Empty value provided for input HTTP label: ResourceId.");
|
|
508
508
|
}
|
|
509
|
-
resolvedPath = resolvedPath.replace("{ResourceId}",
|
|
509
|
+
resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
510
510
|
}
|
|
511
511
|
else {
|
|
512
512
|
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
@@ -540,7 +540,7 @@ const serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = async (inpu
|
|
|
540
540
|
if (labelValue.length <= 0) {
|
|
541
541
|
throw new Error("Empty value provided for input HTTP label: MountTargetId.");
|
|
542
542
|
}
|
|
543
|
-
resolvedPath = resolvedPath.replace("{MountTargetId}",
|
|
543
|
+
resolvedPath = resolvedPath.replace("{MountTargetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
544
544
|
}
|
|
545
545
|
else {
|
|
546
546
|
throw new Error("No value provided for input HTTP label: MountTargetId.");
|
|
@@ -597,7 +597,7 @@ const serializeAws_restJson1PutBackupPolicyCommand = async (input, context) => {
|
|
|
597
597
|
if (labelValue.length <= 0) {
|
|
598
598
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
599
599
|
}
|
|
600
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
600
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
601
601
|
}
|
|
602
602
|
else {
|
|
603
603
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -630,7 +630,7 @@ const serializeAws_restJson1PutFileSystemPolicyCommand = async (input, context)
|
|
|
630
630
|
if (labelValue.length <= 0) {
|
|
631
631
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
632
632
|
}
|
|
633
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
633
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
634
634
|
}
|
|
635
635
|
else {
|
|
636
636
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -666,7 +666,7 @@ const serializeAws_restJson1PutLifecycleConfigurationCommand = async (input, con
|
|
|
666
666
|
if (labelValue.length <= 0) {
|
|
667
667
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
668
668
|
}
|
|
669
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
669
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
670
670
|
}
|
|
671
671
|
else {
|
|
672
672
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -700,7 +700,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
700
700
|
if (labelValue.length <= 0) {
|
|
701
701
|
throw new Error("Empty value provided for input HTTP label: ResourceId.");
|
|
702
702
|
}
|
|
703
|
-
resolvedPath = resolvedPath.replace("{ResourceId}",
|
|
703
|
+
resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
704
704
|
}
|
|
705
705
|
else {
|
|
706
706
|
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
@@ -729,7 +729,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
729
729
|
if (labelValue.length <= 0) {
|
|
730
730
|
throw new Error("Empty value provided for input HTTP label: ResourceId.");
|
|
731
731
|
}
|
|
732
|
-
resolvedPath = resolvedPath.replace("{ResourceId}",
|
|
732
|
+
resolvedPath = resolvedPath.replace("{ResourceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
733
733
|
}
|
|
734
734
|
else {
|
|
735
735
|
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
@@ -761,7 +761,7 @@ const serializeAws_restJson1UpdateFileSystemCommand = async (input, context) =>
|
|
|
761
761
|
if (labelValue.length <= 0) {
|
|
762
762
|
throw new Error("Empty value provided for input HTTP label: FileSystemId.");
|
|
763
763
|
}
|
|
764
|
-
resolvedPath = resolvedPath.replace("{FileSystemId}",
|
|
764
|
+
resolvedPath = resolvedPath.replace("{FileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
765
765
|
}
|
|
766
766
|
else {
|
|
767
767
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
@@ -770,7 +770,7 @@ const serializeAws_restJson1UpdateFileSystemCommand = async (input, context) =>
|
|
|
770
770
|
body = JSON.stringify({
|
|
771
771
|
...(input.ProvisionedThroughputInMibps !== undefined &&
|
|
772
772
|
input.ProvisionedThroughputInMibps !== null && {
|
|
773
|
-
ProvisionedThroughputInMibps:
|
|
773
|
+
ProvisionedThroughputInMibps: smithy_client_1.serializeFloat(input.ProvisionedThroughputInMibps),
|
|
774
774
|
}),
|
|
775
775
|
...(input.ThroughputMode !== undefined &&
|
|
776
776
|
input.ThroughputMode !== null && { ThroughputMode: input.ThroughputMode }),
|
|
@@ -803,27 +803,27 @@ const deserializeAws_restJson1CreateAccessPointCommand = async (output, context)
|
|
|
803
803
|
RootDirectory: undefined,
|
|
804
804
|
Tags: undefined,
|
|
805
805
|
};
|
|
806
|
-
const data =
|
|
806
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
807
807
|
if (data.AccessPointArn !== undefined && data.AccessPointArn !== null) {
|
|
808
|
-
contents.AccessPointArn =
|
|
808
|
+
contents.AccessPointArn = smithy_client_1.expectString(data.AccessPointArn);
|
|
809
809
|
}
|
|
810
810
|
if (data.AccessPointId !== undefined && data.AccessPointId !== null) {
|
|
811
|
-
contents.AccessPointId =
|
|
811
|
+
contents.AccessPointId = smithy_client_1.expectString(data.AccessPointId);
|
|
812
812
|
}
|
|
813
813
|
if (data.ClientToken !== undefined && data.ClientToken !== null) {
|
|
814
|
-
contents.ClientToken =
|
|
814
|
+
contents.ClientToken = smithy_client_1.expectString(data.ClientToken);
|
|
815
815
|
}
|
|
816
816
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
817
|
-
contents.FileSystemId =
|
|
817
|
+
contents.FileSystemId = smithy_client_1.expectString(data.FileSystemId);
|
|
818
818
|
}
|
|
819
819
|
if (data.LifeCycleState !== undefined && data.LifeCycleState !== null) {
|
|
820
|
-
contents.LifeCycleState =
|
|
820
|
+
contents.LifeCycleState = smithy_client_1.expectString(data.LifeCycleState);
|
|
821
821
|
}
|
|
822
822
|
if (data.Name !== undefined && data.Name !== null) {
|
|
823
|
-
contents.Name =
|
|
823
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
824
824
|
}
|
|
825
825
|
if (data.OwnerId !== undefined && data.OwnerId !== null) {
|
|
826
|
-
contents.OwnerId =
|
|
826
|
+
contents.OwnerId = smithy_client_1.expectString(data.OwnerId);
|
|
827
827
|
}
|
|
828
828
|
if (data.PosixUser !== undefined && data.PosixUser !== null) {
|
|
829
829
|
contents.PosixUser = deserializeAws_restJson1PosixUser(data.PosixUser, context);
|
|
@@ -934,48 +934,48 @@ const deserializeAws_restJson1CreateFileSystemCommand = async (output, context)
|
|
|
934
934
|
Tags: undefined,
|
|
935
935
|
ThroughputMode: undefined,
|
|
936
936
|
};
|
|
937
|
-
const data =
|
|
937
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
938
938
|
if (data.AvailabilityZoneId !== undefined && data.AvailabilityZoneId !== null) {
|
|
939
|
-
contents.AvailabilityZoneId =
|
|
939
|
+
contents.AvailabilityZoneId = smithy_client_1.expectString(data.AvailabilityZoneId);
|
|
940
940
|
}
|
|
941
941
|
if (data.AvailabilityZoneName !== undefined && data.AvailabilityZoneName !== null) {
|
|
942
|
-
contents.AvailabilityZoneName =
|
|
942
|
+
contents.AvailabilityZoneName = smithy_client_1.expectString(data.AvailabilityZoneName);
|
|
943
943
|
}
|
|
944
944
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
945
|
-
contents.CreationTime =
|
|
945
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
946
946
|
}
|
|
947
947
|
if (data.CreationToken !== undefined && data.CreationToken !== null) {
|
|
948
|
-
contents.CreationToken =
|
|
948
|
+
contents.CreationToken = smithy_client_1.expectString(data.CreationToken);
|
|
949
949
|
}
|
|
950
950
|
if (data.Encrypted !== undefined && data.Encrypted !== null) {
|
|
951
|
-
contents.Encrypted =
|
|
951
|
+
contents.Encrypted = smithy_client_1.expectBoolean(data.Encrypted);
|
|
952
952
|
}
|
|
953
953
|
if (data.FileSystemArn !== undefined && data.FileSystemArn !== null) {
|
|
954
|
-
contents.FileSystemArn =
|
|
954
|
+
contents.FileSystemArn = smithy_client_1.expectString(data.FileSystemArn);
|
|
955
955
|
}
|
|
956
956
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
957
|
-
contents.FileSystemId =
|
|
957
|
+
contents.FileSystemId = smithy_client_1.expectString(data.FileSystemId);
|
|
958
958
|
}
|
|
959
959
|
if (data.KmsKeyId !== undefined && data.KmsKeyId !== null) {
|
|
960
|
-
contents.KmsKeyId =
|
|
960
|
+
contents.KmsKeyId = smithy_client_1.expectString(data.KmsKeyId);
|
|
961
961
|
}
|
|
962
962
|
if (data.LifeCycleState !== undefined && data.LifeCycleState !== null) {
|
|
963
|
-
contents.LifeCycleState =
|
|
963
|
+
contents.LifeCycleState = smithy_client_1.expectString(data.LifeCycleState);
|
|
964
964
|
}
|
|
965
965
|
if (data.Name !== undefined && data.Name !== null) {
|
|
966
|
-
contents.Name =
|
|
966
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
967
967
|
}
|
|
968
968
|
if (data.NumberOfMountTargets !== undefined && data.NumberOfMountTargets !== null) {
|
|
969
|
-
contents.NumberOfMountTargets =
|
|
969
|
+
contents.NumberOfMountTargets = smithy_client_1.expectInt32(data.NumberOfMountTargets);
|
|
970
970
|
}
|
|
971
971
|
if (data.OwnerId !== undefined && data.OwnerId !== null) {
|
|
972
|
-
contents.OwnerId =
|
|
972
|
+
contents.OwnerId = smithy_client_1.expectString(data.OwnerId);
|
|
973
973
|
}
|
|
974
974
|
if (data.PerformanceMode !== undefined && data.PerformanceMode !== null) {
|
|
975
|
-
contents.PerformanceMode =
|
|
975
|
+
contents.PerformanceMode = smithy_client_1.expectString(data.PerformanceMode);
|
|
976
976
|
}
|
|
977
977
|
if (data.ProvisionedThroughputInMibps !== undefined && data.ProvisionedThroughputInMibps !== null) {
|
|
978
|
-
contents.ProvisionedThroughputInMibps =
|
|
978
|
+
contents.ProvisionedThroughputInMibps = smithy_client_1.limitedParseDouble(data.ProvisionedThroughputInMibps);
|
|
979
979
|
}
|
|
980
980
|
if (data.SizeInBytes !== undefined && data.SizeInBytes !== null) {
|
|
981
981
|
contents.SizeInBytes = deserializeAws_restJson1FileSystemSize(data.SizeInBytes, context);
|
|
@@ -984,7 +984,7 @@ const deserializeAws_restJson1CreateFileSystemCommand = async (output, context)
|
|
|
984
984
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
985
985
|
}
|
|
986
986
|
if (data.ThroughputMode !== undefined && data.ThroughputMode !== null) {
|
|
987
|
-
contents.ThroughputMode =
|
|
987
|
+
contents.ThroughputMode = smithy_client_1.expectString(data.ThroughputMode);
|
|
988
988
|
}
|
|
989
989
|
return Promise.resolve(contents);
|
|
990
990
|
};
|
|
@@ -1087,36 +1087,36 @@ const deserializeAws_restJson1CreateMountTargetCommand = async (output, context)
|
|
|
1087
1087
|
SubnetId: undefined,
|
|
1088
1088
|
VpcId: undefined,
|
|
1089
1089
|
};
|
|
1090
|
-
const data =
|
|
1090
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1091
1091
|
if (data.AvailabilityZoneId !== undefined && data.AvailabilityZoneId !== null) {
|
|
1092
|
-
contents.AvailabilityZoneId =
|
|
1092
|
+
contents.AvailabilityZoneId = smithy_client_1.expectString(data.AvailabilityZoneId);
|
|
1093
1093
|
}
|
|
1094
1094
|
if (data.AvailabilityZoneName !== undefined && data.AvailabilityZoneName !== null) {
|
|
1095
|
-
contents.AvailabilityZoneName =
|
|
1095
|
+
contents.AvailabilityZoneName = smithy_client_1.expectString(data.AvailabilityZoneName);
|
|
1096
1096
|
}
|
|
1097
1097
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
1098
|
-
contents.FileSystemId =
|
|
1098
|
+
contents.FileSystemId = smithy_client_1.expectString(data.FileSystemId);
|
|
1099
1099
|
}
|
|
1100
1100
|
if (data.IpAddress !== undefined && data.IpAddress !== null) {
|
|
1101
|
-
contents.IpAddress =
|
|
1101
|
+
contents.IpAddress = smithy_client_1.expectString(data.IpAddress);
|
|
1102
1102
|
}
|
|
1103
1103
|
if (data.LifeCycleState !== undefined && data.LifeCycleState !== null) {
|
|
1104
|
-
contents.LifeCycleState =
|
|
1104
|
+
contents.LifeCycleState = smithy_client_1.expectString(data.LifeCycleState);
|
|
1105
1105
|
}
|
|
1106
1106
|
if (data.MountTargetId !== undefined && data.MountTargetId !== null) {
|
|
1107
|
-
contents.MountTargetId =
|
|
1107
|
+
contents.MountTargetId = smithy_client_1.expectString(data.MountTargetId);
|
|
1108
1108
|
}
|
|
1109
1109
|
if (data.NetworkInterfaceId !== undefined && data.NetworkInterfaceId !== null) {
|
|
1110
|
-
contents.NetworkInterfaceId =
|
|
1110
|
+
contents.NetworkInterfaceId = smithy_client_1.expectString(data.NetworkInterfaceId);
|
|
1111
1111
|
}
|
|
1112
1112
|
if (data.OwnerId !== undefined && data.OwnerId !== null) {
|
|
1113
|
-
contents.OwnerId =
|
|
1113
|
+
contents.OwnerId = smithy_client_1.expectString(data.OwnerId);
|
|
1114
1114
|
}
|
|
1115
1115
|
if (data.SubnetId !== undefined && data.SubnetId !== null) {
|
|
1116
|
-
contents.SubnetId =
|
|
1116
|
+
contents.SubnetId = smithy_client_1.expectString(data.SubnetId);
|
|
1117
1117
|
}
|
|
1118
1118
|
if (data.VpcId !== undefined && data.VpcId !== null) {
|
|
1119
|
-
contents.VpcId =
|
|
1119
|
+
contents.VpcId = smithy_client_1.expectString(data.VpcId);
|
|
1120
1120
|
}
|
|
1121
1121
|
return Promise.resolve(contents);
|
|
1122
1122
|
};
|
|
@@ -1635,12 +1635,12 @@ const deserializeAws_restJson1DescribeAccessPointsCommand = async (output, conte
|
|
|
1635
1635
|
AccessPoints: undefined,
|
|
1636
1636
|
NextToken: undefined,
|
|
1637
1637
|
};
|
|
1638
|
-
const data =
|
|
1638
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1639
1639
|
if (data.AccessPoints !== undefined && data.AccessPoints !== null) {
|
|
1640
1640
|
contents.AccessPoints = deserializeAws_restJson1AccessPointDescriptions(data.AccessPoints, context);
|
|
1641
1641
|
}
|
|
1642
1642
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1643
|
-
contents.NextToken =
|
|
1643
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1644
1644
|
}
|
|
1645
1645
|
return Promise.resolve(contents);
|
|
1646
1646
|
};
|
|
@@ -1711,9 +1711,9 @@ const deserializeAws_restJson1DescribeAccountPreferencesCommand = async (output,
|
|
|
1711
1711
|
NextToken: undefined,
|
|
1712
1712
|
ResourceIdPreference: undefined,
|
|
1713
1713
|
};
|
|
1714
|
-
const data =
|
|
1714
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1715
1715
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1716
|
-
contents.NextToken =
|
|
1716
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1717
1717
|
}
|
|
1718
1718
|
if (data.ResourceIdPreference !== undefined && data.ResourceIdPreference !== null) {
|
|
1719
1719
|
contents.ResourceIdPreference = deserializeAws_restJson1ResourceIdPreference(data.ResourceIdPreference, context);
|
|
@@ -1762,7 +1762,7 @@ const deserializeAws_restJson1DescribeBackupPolicyCommand = async (output, conte
|
|
|
1762
1762
|
$metadata: deserializeMetadata(output),
|
|
1763
1763
|
BackupPolicy: undefined,
|
|
1764
1764
|
};
|
|
1765
|
-
const data =
|
|
1765
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1766
1766
|
if (data.BackupPolicy !== undefined && data.BackupPolicy !== null) {
|
|
1767
1767
|
contents.BackupPolicy = deserializeAws_restJson1BackupPolicy(data.BackupPolicy, context);
|
|
1768
1768
|
}
|
|
@@ -1843,12 +1843,12 @@ const deserializeAws_restJson1DescribeFileSystemPolicyCommand = async (output, c
|
|
|
1843
1843
|
FileSystemId: undefined,
|
|
1844
1844
|
Policy: undefined,
|
|
1845
1845
|
};
|
|
1846
|
-
const data =
|
|
1846
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1847
1847
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
1848
|
-
contents.FileSystemId =
|
|
1848
|
+
contents.FileSystemId = smithy_client_1.expectString(data.FileSystemId);
|
|
1849
1849
|
}
|
|
1850
1850
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
1851
|
-
contents.Policy =
|
|
1851
|
+
contents.Policy = smithy_client_1.expectString(data.Policy);
|
|
1852
1852
|
}
|
|
1853
1853
|
return Promise.resolve(contents);
|
|
1854
1854
|
};
|
|
@@ -1912,15 +1912,15 @@ const deserializeAws_restJson1DescribeFileSystemsCommand = async (output, contex
|
|
|
1912
1912
|
Marker: undefined,
|
|
1913
1913
|
NextMarker: undefined,
|
|
1914
1914
|
};
|
|
1915
|
-
const data =
|
|
1915
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1916
1916
|
if (data.FileSystems !== undefined && data.FileSystems !== null) {
|
|
1917
1917
|
contents.FileSystems = deserializeAws_restJson1FileSystemDescriptions(data.FileSystems, context);
|
|
1918
1918
|
}
|
|
1919
1919
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
1920
|
-
contents.Marker =
|
|
1920
|
+
contents.Marker = smithy_client_1.expectString(data.Marker);
|
|
1921
1921
|
}
|
|
1922
1922
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
1923
|
-
contents.NextMarker =
|
|
1923
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
1924
1924
|
}
|
|
1925
1925
|
return Promise.resolve(contents);
|
|
1926
1926
|
};
|
|
@@ -1982,7 +1982,7 @@ const deserializeAws_restJson1DescribeLifecycleConfigurationCommand = async (out
|
|
|
1982
1982
|
$metadata: deserializeMetadata(output),
|
|
1983
1983
|
LifecyclePolicies: undefined,
|
|
1984
1984
|
};
|
|
1985
|
-
const data =
|
|
1985
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1986
1986
|
if (data.LifecyclePolicies !== undefined && data.LifecyclePolicies !== null) {
|
|
1987
1987
|
contents.LifecyclePolicies = deserializeAws_restJson1LifecyclePolicies(data.LifecyclePolicies, context);
|
|
1988
1988
|
}
|
|
@@ -2048,15 +2048,15 @@ const deserializeAws_restJson1DescribeMountTargetsCommand = async (output, conte
|
|
|
2048
2048
|
MountTargets: undefined,
|
|
2049
2049
|
NextMarker: undefined,
|
|
2050
2050
|
};
|
|
2051
|
-
const data =
|
|
2051
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2052
2052
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
2053
|
-
contents.Marker =
|
|
2053
|
+
contents.Marker = smithy_client_1.expectString(data.Marker);
|
|
2054
2054
|
}
|
|
2055
2055
|
if (data.MountTargets !== undefined && data.MountTargets !== null) {
|
|
2056
2056
|
contents.MountTargets = deserializeAws_restJson1MountTargetDescriptions(data.MountTargets, context);
|
|
2057
2057
|
}
|
|
2058
2058
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
2059
|
-
contents.NextMarker =
|
|
2059
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
2060
2060
|
}
|
|
2061
2061
|
return Promise.resolve(contents);
|
|
2062
2062
|
};
|
|
@@ -2134,7 +2134,7 @@ const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = async (
|
|
|
2134
2134
|
$metadata: deserializeMetadata(output),
|
|
2135
2135
|
SecurityGroups: undefined,
|
|
2136
2136
|
};
|
|
2137
|
-
const data =
|
|
2137
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2138
2138
|
if (data.SecurityGroups !== undefined && data.SecurityGroups !== null) {
|
|
2139
2139
|
contents.SecurityGroups = deserializeAws_restJson1SecurityGroups(data.SecurityGroups, context);
|
|
2140
2140
|
}
|
|
@@ -2208,12 +2208,12 @@ const deserializeAws_restJson1DescribeTagsCommand = async (output, context) => {
|
|
|
2208
2208
|
NextMarker: undefined,
|
|
2209
2209
|
Tags: undefined,
|
|
2210
2210
|
};
|
|
2211
|
-
const data =
|
|
2211
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2212
2212
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
2213
|
-
contents.Marker =
|
|
2213
|
+
contents.Marker = smithy_client_1.expectString(data.Marker);
|
|
2214
2214
|
}
|
|
2215
2215
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
2216
|
-
contents.NextMarker =
|
|
2216
|
+
contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
|
|
2217
2217
|
}
|
|
2218
2218
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2219
2219
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
@@ -2279,9 +2279,9 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2279
2279
|
NextToken: undefined,
|
|
2280
2280
|
Tags: undefined,
|
|
2281
2281
|
};
|
|
2282
|
-
const data =
|
|
2282
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2283
2283
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2284
|
-
contents.NextToken =
|
|
2284
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2285
2285
|
}
|
|
2286
2286
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2287
2287
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
@@ -2438,7 +2438,7 @@ const deserializeAws_restJson1PutAccountPreferencesCommand = async (output, cont
|
|
|
2438
2438
|
$metadata: deserializeMetadata(output),
|
|
2439
2439
|
ResourceIdPreference: undefined,
|
|
2440
2440
|
};
|
|
2441
|
-
const data =
|
|
2441
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2442
2442
|
if (data.ResourceIdPreference !== undefined && data.ResourceIdPreference !== null) {
|
|
2443
2443
|
contents.ResourceIdPreference = deserializeAws_restJson1ResourceIdPreference(data.ResourceIdPreference, context);
|
|
2444
2444
|
}
|
|
@@ -2486,7 +2486,7 @@ const deserializeAws_restJson1PutBackupPolicyCommand = async (output, context) =
|
|
|
2486
2486
|
$metadata: deserializeMetadata(output),
|
|
2487
2487
|
BackupPolicy: undefined,
|
|
2488
2488
|
};
|
|
2489
|
-
const data =
|
|
2489
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2490
2490
|
if (data.BackupPolicy !== undefined && data.BackupPolicy !== null) {
|
|
2491
2491
|
contents.BackupPolicy = deserializeAws_restJson1BackupPolicy(data.BackupPolicy, context);
|
|
2492
2492
|
}
|
|
@@ -2567,12 +2567,12 @@ const deserializeAws_restJson1PutFileSystemPolicyCommand = async (output, contex
|
|
|
2567
2567
|
FileSystemId: undefined,
|
|
2568
2568
|
Policy: undefined,
|
|
2569
2569
|
};
|
|
2570
|
-
const data =
|
|
2570
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2571
2571
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
2572
|
-
contents.FileSystemId =
|
|
2572
|
+
contents.FileSystemId = smithy_client_1.expectString(data.FileSystemId);
|
|
2573
2573
|
}
|
|
2574
2574
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
2575
|
-
contents.Policy =
|
|
2575
|
+
contents.Policy = smithy_client_1.expectString(data.Policy);
|
|
2576
2576
|
}
|
|
2577
2577
|
return Promise.resolve(contents);
|
|
2578
2578
|
};
|
|
@@ -2642,7 +2642,7 @@ const deserializeAws_restJson1PutLifecycleConfigurationCommand = async (output,
|
|
|
2642
2642
|
$metadata: deserializeMetadata(output),
|
|
2643
2643
|
LifecyclePolicies: undefined,
|
|
2644
2644
|
};
|
|
2645
|
-
const data =
|
|
2645
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2646
2646
|
if (data.LifecyclePolicies !== undefined && data.LifecyclePolicies !== null) {
|
|
2647
2647
|
contents.LifecyclePolicies = deserializeAws_restJson1LifecyclePolicies(data.LifecyclePolicies, context);
|
|
2648
2648
|
}
|
|
@@ -2866,48 +2866,48 @@ const deserializeAws_restJson1UpdateFileSystemCommand = async (output, context)
|
|
|
2866
2866
|
Tags: undefined,
|
|
2867
2867
|
ThroughputMode: undefined,
|
|
2868
2868
|
};
|
|
2869
|
-
const data =
|
|
2869
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2870
2870
|
if (data.AvailabilityZoneId !== undefined && data.AvailabilityZoneId !== null) {
|
|
2871
|
-
contents.AvailabilityZoneId =
|
|
2871
|
+
contents.AvailabilityZoneId = smithy_client_1.expectString(data.AvailabilityZoneId);
|
|
2872
2872
|
}
|
|
2873
2873
|
if (data.AvailabilityZoneName !== undefined && data.AvailabilityZoneName !== null) {
|
|
2874
|
-
contents.AvailabilityZoneName =
|
|
2874
|
+
contents.AvailabilityZoneName = smithy_client_1.expectString(data.AvailabilityZoneName);
|
|
2875
2875
|
}
|
|
2876
2876
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
2877
|
-
contents.CreationTime =
|
|
2877
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
2878
2878
|
}
|
|
2879
2879
|
if (data.CreationToken !== undefined && data.CreationToken !== null) {
|
|
2880
|
-
contents.CreationToken =
|
|
2880
|
+
contents.CreationToken = smithy_client_1.expectString(data.CreationToken);
|
|
2881
2881
|
}
|
|
2882
2882
|
if (data.Encrypted !== undefined && data.Encrypted !== null) {
|
|
2883
|
-
contents.Encrypted =
|
|
2883
|
+
contents.Encrypted = smithy_client_1.expectBoolean(data.Encrypted);
|
|
2884
2884
|
}
|
|
2885
2885
|
if (data.FileSystemArn !== undefined && data.FileSystemArn !== null) {
|
|
2886
|
-
contents.FileSystemArn =
|
|
2886
|
+
contents.FileSystemArn = smithy_client_1.expectString(data.FileSystemArn);
|
|
2887
2887
|
}
|
|
2888
2888
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
2889
|
-
contents.FileSystemId =
|
|
2889
|
+
contents.FileSystemId = smithy_client_1.expectString(data.FileSystemId);
|
|
2890
2890
|
}
|
|
2891
2891
|
if (data.KmsKeyId !== undefined && data.KmsKeyId !== null) {
|
|
2892
|
-
contents.KmsKeyId =
|
|
2892
|
+
contents.KmsKeyId = smithy_client_1.expectString(data.KmsKeyId);
|
|
2893
2893
|
}
|
|
2894
2894
|
if (data.LifeCycleState !== undefined && data.LifeCycleState !== null) {
|
|
2895
|
-
contents.LifeCycleState =
|
|
2895
|
+
contents.LifeCycleState = smithy_client_1.expectString(data.LifeCycleState);
|
|
2896
2896
|
}
|
|
2897
2897
|
if (data.Name !== undefined && data.Name !== null) {
|
|
2898
|
-
contents.Name =
|
|
2898
|
+
contents.Name = smithy_client_1.expectString(data.Name);
|
|
2899
2899
|
}
|
|
2900
2900
|
if (data.NumberOfMountTargets !== undefined && data.NumberOfMountTargets !== null) {
|
|
2901
|
-
contents.NumberOfMountTargets =
|
|
2901
|
+
contents.NumberOfMountTargets = smithy_client_1.expectInt32(data.NumberOfMountTargets);
|
|
2902
2902
|
}
|
|
2903
2903
|
if (data.OwnerId !== undefined && data.OwnerId !== null) {
|
|
2904
|
-
contents.OwnerId =
|
|
2904
|
+
contents.OwnerId = smithy_client_1.expectString(data.OwnerId);
|
|
2905
2905
|
}
|
|
2906
2906
|
if (data.PerformanceMode !== undefined && data.PerformanceMode !== null) {
|
|
2907
|
-
contents.PerformanceMode =
|
|
2907
|
+
contents.PerformanceMode = smithy_client_1.expectString(data.PerformanceMode);
|
|
2908
2908
|
}
|
|
2909
2909
|
if (data.ProvisionedThroughputInMibps !== undefined && data.ProvisionedThroughputInMibps !== null) {
|
|
2910
|
-
contents.ProvisionedThroughputInMibps =
|
|
2910
|
+
contents.ProvisionedThroughputInMibps = smithy_client_1.limitedParseDouble(data.ProvisionedThroughputInMibps);
|
|
2911
2911
|
}
|
|
2912
2912
|
if (data.SizeInBytes !== undefined && data.SizeInBytes !== null) {
|
|
2913
2913
|
contents.SizeInBytes = deserializeAws_restJson1FileSystemSize(data.SizeInBytes, context);
|
|
@@ -2916,7 +2916,7 @@ const deserializeAws_restJson1UpdateFileSystemCommand = async (output, context)
|
|
|
2916
2916
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
2917
2917
|
}
|
|
2918
2918
|
if (data.ThroughputMode !== undefined && data.ThroughputMode !== null) {
|
|
2919
|
-
contents.ThroughputMode =
|
|
2919
|
+
contents.ThroughputMode = smithy_client_1.expectString(data.ThroughputMode);
|
|
2920
2920
|
}
|
|
2921
2921
|
return Promise.resolve(contents);
|
|
2922
2922
|
};
|
|
@@ -3013,13 +3013,13 @@ const deserializeAws_restJson1AccessPointAlreadyExistsResponse = async (parsedOu
|
|
|
3013
3013
|
};
|
|
3014
3014
|
const data = parsedOutput.body;
|
|
3015
3015
|
if (data.AccessPointId !== undefined && data.AccessPointId !== null) {
|
|
3016
|
-
contents.AccessPointId =
|
|
3016
|
+
contents.AccessPointId = smithy_client_1.expectString(data.AccessPointId);
|
|
3017
3017
|
}
|
|
3018
3018
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3019
|
-
contents.ErrorCode =
|
|
3019
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3020
3020
|
}
|
|
3021
3021
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3022
|
-
contents.Message =
|
|
3022
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3023
3023
|
}
|
|
3024
3024
|
return contents;
|
|
3025
3025
|
};
|
|
@@ -3033,10 +3033,10 @@ const deserializeAws_restJson1AccessPointLimitExceededResponse = async (parsedOu
|
|
|
3033
3033
|
};
|
|
3034
3034
|
const data = parsedOutput.body;
|
|
3035
3035
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3036
|
-
contents.ErrorCode =
|
|
3036
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3037
3037
|
}
|
|
3038
3038
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3039
|
-
contents.Message =
|
|
3039
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3040
3040
|
}
|
|
3041
3041
|
return contents;
|
|
3042
3042
|
};
|
|
@@ -3050,10 +3050,10 @@ const deserializeAws_restJson1AccessPointNotFoundResponse = async (parsedOutput,
|
|
|
3050
3050
|
};
|
|
3051
3051
|
const data = parsedOutput.body;
|
|
3052
3052
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3053
|
-
contents.ErrorCode =
|
|
3053
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3054
3054
|
}
|
|
3055
3055
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3056
|
-
contents.Message =
|
|
3056
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3057
3057
|
}
|
|
3058
3058
|
return contents;
|
|
3059
3059
|
};
|
|
@@ -3067,10 +3067,10 @@ const deserializeAws_restJson1AvailabilityZonesMismatchResponse = async (parsedO
|
|
|
3067
3067
|
};
|
|
3068
3068
|
const data = parsedOutput.body;
|
|
3069
3069
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3070
|
-
contents.ErrorCode =
|
|
3070
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3071
3071
|
}
|
|
3072
3072
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3073
|
-
contents.Message =
|
|
3073
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3074
3074
|
}
|
|
3075
3075
|
return contents;
|
|
3076
3076
|
};
|
|
@@ -3084,10 +3084,10 @@ const deserializeAws_restJson1BadRequestResponse = async (parsedOutput, context)
|
|
|
3084
3084
|
};
|
|
3085
3085
|
const data = parsedOutput.body;
|
|
3086
3086
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3087
|
-
contents.ErrorCode =
|
|
3087
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3088
3088
|
}
|
|
3089
3089
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3090
|
-
contents.Message =
|
|
3090
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3091
3091
|
}
|
|
3092
3092
|
return contents;
|
|
3093
3093
|
};
|
|
@@ -3101,10 +3101,10 @@ const deserializeAws_restJson1DependencyTimeoutResponse = async (parsedOutput, c
|
|
|
3101
3101
|
};
|
|
3102
3102
|
const data = parsedOutput.body;
|
|
3103
3103
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3104
|
-
contents.ErrorCode =
|
|
3104
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3105
3105
|
}
|
|
3106
3106
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3107
|
-
contents.Message =
|
|
3107
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3108
3108
|
}
|
|
3109
3109
|
return contents;
|
|
3110
3110
|
};
|
|
@@ -3119,13 +3119,13 @@ const deserializeAws_restJson1FileSystemAlreadyExistsResponse = async (parsedOut
|
|
|
3119
3119
|
};
|
|
3120
3120
|
const data = parsedOutput.body;
|
|
3121
3121
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3122
|
-
contents.ErrorCode =
|
|
3122
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3123
3123
|
}
|
|
3124
3124
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
3125
|
-
contents.FileSystemId =
|
|
3125
|
+
contents.FileSystemId = smithy_client_1.expectString(data.FileSystemId);
|
|
3126
3126
|
}
|
|
3127
3127
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3128
|
-
contents.Message =
|
|
3128
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3129
3129
|
}
|
|
3130
3130
|
return contents;
|
|
3131
3131
|
};
|
|
@@ -3139,10 +3139,10 @@ const deserializeAws_restJson1FileSystemInUseResponse = async (parsedOutput, con
|
|
|
3139
3139
|
};
|
|
3140
3140
|
const data = parsedOutput.body;
|
|
3141
3141
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3142
|
-
contents.ErrorCode =
|
|
3142
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3143
3143
|
}
|
|
3144
3144
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3145
|
-
contents.Message =
|
|
3145
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3146
3146
|
}
|
|
3147
3147
|
return contents;
|
|
3148
3148
|
};
|
|
@@ -3156,10 +3156,10 @@ const deserializeAws_restJson1FileSystemLimitExceededResponse = async (parsedOut
|
|
|
3156
3156
|
};
|
|
3157
3157
|
const data = parsedOutput.body;
|
|
3158
3158
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3159
|
-
contents.ErrorCode =
|
|
3159
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3160
3160
|
}
|
|
3161
3161
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3162
|
-
contents.Message =
|
|
3162
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3163
3163
|
}
|
|
3164
3164
|
return contents;
|
|
3165
3165
|
};
|
|
@@ -3173,10 +3173,10 @@ const deserializeAws_restJson1FileSystemNotFoundResponse = async (parsedOutput,
|
|
|
3173
3173
|
};
|
|
3174
3174
|
const data = parsedOutput.body;
|
|
3175
3175
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3176
|
-
contents.ErrorCode =
|
|
3176
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3177
3177
|
}
|
|
3178
3178
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3179
|
-
contents.Message =
|
|
3179
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3180
3180
|
}
|
|
3181
3181
|
return contents;
|
|
3182
3182
|
};
|
|
@@ -3190,10 +3190,10 @@ const deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse = async
|
|
|
3190
3190
|
};
|
|
3191
3191
|
const data = parsedOutput.body;
|
|
3192
3192
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3193
|
-
contents.ErrorCode =
|
|
3193
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3194
3194
|
}
|
|
3195
3195
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3196
|
-
contents.Message =
|
|
3196
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3197
3197
|
}
|
|
3198
3198
|
return contents;
|
|
3199
3199
|
};
|
|
@@ -3207,10 +3207,10 @@ const deserializeAws_restJson1IncorrectMountTargetStateResponse = async (parsedO
|
|
|
3207
3207
|
};
|
|
3208
3208
|
const data = parsedOutput.body;
|
|
3209
3209
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3210
|
-
contents.ErrorCode =
|
|
3210
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3211
3211
|
}
|
|
3212
3212
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3213
|
-
contents.Message =
|
|
3213
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3214
3214
|
}
|
|
3215
3215
|
return contents;
|
|
3216
3216
|
};
|
|
@@ -3224,10 +3224,10 @@ const deserializeAws_restJson1InsufficientThroughputCapacityResponse = async (pa
|
|
|
3224
3224
|
};
|
|
3225
3225
|
const data = parsedOutput.body;
|
|
3226
3226
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3227
|
-
contents.ErrorCode =
|
|
3227
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3228
3228
|
}
|
|
3229
3229
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3230
|
-
contents.Message =
|
|
3230
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3231
3231
|
}
|
|
3232
3232
|
return contents;
|
|
3233
3233
|
};
|
|
@@ -3241,10 +3241,10 @@ const deserializeAws_restJson1InternalServerErrorResponse = async (parsedOutput,
|
|
|
3241
3241
|
};
|
|
3242
3242
|
const data = parsedOutput.body;
|
|
3243
3243
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3244
|
-
contents.ErrorCode =
|
|
3244
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3245
3245
|
}
|
|
3246
3246
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3247
|
-
contents.Message =
|
|
3247
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3248
3248
|
}
|
|
3249
3249
|
return contents;
|
|
3250
3250
|
};
|
|
@@ -3258,10 +3258,10 @@ const deserializeAws_restJson1InvalidPolicyExceptionResponse = async (parsedOutp
|
|
|
3258
3258
|
};
|
|
3259
3259
|
const data = parsedOutput.body;
|
|
3260
3260
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3261
|
-
contents.ErrorCode =
|
|
3261
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3262
3262
|
}
|
|
3263
3263
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3264
|
-
contents.Message =
|
|
3264
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3265
3265
|
}
|
|
3266
3266
|
return contents;
|
|
3267
3267
|
};
|
|
@@ -3275,10 +3275,10 @@ const deserializeAws_restJson1IpAddressInUseResponse = async (parsedOutput, cont
|
|
|
3275
3275
|
};
|
|
3276
3276
|
const data = parsedOutput.body;
|
|
3277
3277
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3278
|
-
contents.ErrorCode =
|
|
3278
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3279
3279
|
}
|
|
3280
3280
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3281
|
-
contents.Message =
|
|
3281
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3282
3282
|
}
|
|
3283
3283
|
return contents;
|
|
3284
3284
|
};
|
|
@@ -3292,10 +3292,10 @@ const deserializeAws_restJson1MountTargetConflictResponse = async (parsedOutput,
|
|
|
3292
3292
|
};
|
|
3293
3293
|
const data = parsedOutput.body;
|
|
3294
3294
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3295
|
-
contents.ErrorCode =
|
|
3295
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3296
3296
|
}
|
|
3297
3297
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3298
|
-
contents.Message =
|
|
3298
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3299
3299
|
}
|
|
3300
3300
|
return contents;
|
|
3301
3301
|
};
|
|
@@ -3309,10 +3309,10 @@ const deserializeAws_restJson1MountTargetNotFoundResponse = async (parsedOutput,
|
|
|
3309
3309
|
};
|
|
3310
3310
|
const data = parsedOutput.body;
|
|
3311
3311
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3312
|
-
contents.ErrorCode =
|
|
3312
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3313
3313
|
}
|
|
3314
3314
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3315
|
-
contents.Message =
|
|
3315
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3316
3316
|
}
|
|
3317
3317
|
return contents;
|
|
3318
3318
|
};
|
|
@@ -3326,10 +3326,10 @@ const deserializeAws_restJson1NetworkInterfaceLimitExceededResponse = async (par
|
|
|
3326
3326
|
};
|
|
3327
3327
|
const data = parsedOutput.body;
|
|
3328
3328
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3329
|
-
contents.ErrorCode =
|
|
3329
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3330
3330
|
}
|
|
3331
3331
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3332
|
-
contents.Message =
|
|
3332
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3333
3333
|
}
|
|
3334
3334
|
return contents;
|
|
3335
3335
|
};
|
|
@@ -3343,10 +3343,10 @@ const deserializeAws_restJson1NoFreeAddressesInSubnetResponse = async (parsedOut
|
|
|
3343
3343
|
};
|
|
3344
3344
|
const data = parsedOutput.body;
|
|
3345
3345
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3346
|
-
contents.ErrorCode =
|
|
3346
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3347
3347
|
}
|
|
3348
3348
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3349
|
-
contents.Message =
|
|
3349
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3350
3350
|
}
|
|
3351
3351
|
return contents;
|
|
3352
3352
|
};
|
|
@@ -3360,10 +3360,10 @@ const deserializeAws_restJson1PolicyNotFoundResponse = async (parsedOutput, cont
|
|
|
3360
3360
|
};
|
|
3361
3361
|
const data = parsedOutput.body;
|
|
3362
3362
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3363
|
-
contents.ErrorCode =
|
|
3363
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3364
3364
|
}
|
|
3365
3365
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3366
|
-
contents.Message =
|
|
3366
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3367
3367
|
}
|
|
3368
3368
|
return contents;
|
|
3369
3369
|
};
|
|
@@ -3377,10 +3377,10 @@ const deserializeAws_restJson1SecurityGroupLimitExceededResponse = async (parsed
|
|
|
3377
3377
|
};
|
|
3378
3378
|
const data = parsedOutput.body;
|
|
3379
3379
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3380
|
-
contents.ErrorCode =
|
|
3380
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3381
3381
|
}
|
|
3382
3382
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3383
|
-
contents.Message =
|
|
3383
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3384
3384
|
}
|
|
3385
3385
|
return contents;
|
|
3386
3386
|
};
|
|
@@ -3394,10 +3394,10 @@ const deserializeAws_restJson1SecurityGroupNotFoundResponse = async (parsedOutpu
|
|
|
3394
3394
|
};
|
|
3395
3395
|
const data = parsedOutput.body;
|
|
3396
3396
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3397
|
-
contents.ErrorCode =
|
|
3397
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3398
3398
|
}
|
|
3399
3399
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3400
|
-
contents.Message =
|
|
3400
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3401
3401
|
}
|
|
3402
3402
|
return contents;
|
|
3403
3403
|
};
|
|
@@ -3411,10 +3411,10 @@ const deserializeAws_restJson1SubnetNotFoundResponse = async (parsedOutput, cont
|
|
|
3411
3411
|
};
|
|
3412
3412
|
const data = parsedOutput.body;
|
|
3413
3413
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3414
|
-
contents.ErrorCode =
|
|
3414
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3415
3415
|
}
|
|
3416
3416
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3417
|
-
contents.Message =
|
|
3417
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3418
3418
|
}
|
|
3419
3419
|
return contents;
|
|
3420
3420
|
};
|
|
@@ -3428,10 +3428,10 @@ const deserializeAws_restJson1ThroughputLimitExceededResponse = async (parsedOut
|
|
|
3428
3428
|
};
|
|
3429
3429
|
const data = parsedOutput.body;
|
|
3430
3430
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3431
|
-
contents.ErrorCode =
|
|
3431
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3432
3432
|
}
|
|
3433
3433
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3434
|
-
contents.Message =
|
|
3434
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3435
3435
|
}
|
|
3436
3436
|
return contents;
|
|
3437
3437
|
};
|
|
@@ -3445,10 +3445,10 @@ const deserializeAws_restJson1TooManyRequestsResponse = async (parsedOutput, con
|
|
|
3445
3445
|
};
|
|
3446
3446
|
const data = parsedOutput.body;
|
|
3447
3447
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3448
|
-
contents.ErrorCode =
|
|
3448
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3449
3449
|
}
|
|
3450
3450
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3451
|
-
contents.Message =
|
|
3451
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3452
3452
|
}
|
|
3453
3453
|
return contents;
|
|
3454
3454
|
};
|
|
@@ -3462,10 +3462,10 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneResponse = async (parse
|
|
|
3462
3462
|
};
|
|
3463
3463
|
const data = parsedOutput.body;
|
|
3464
3464
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3465
|
-
contents.ErrorCode =
|
|
3465
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3466
3466
|
}
|
|
3467
3467
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3468
|
-
contents.Message =
|
|
3468
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3469
3469
|
}
|
|
3470
3470
|
return contents;
|
|
3471
3471
|
};
|
|
@@ -3479,10 +3479,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3479
3479
|
};
|
|
3480
3480
|
const data = parsedOutput.body;
|
|
3481
3481
|
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3482
|
-
contents.ErrorCode =
|
|
3482
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3483
3483
|
}
|
|
3484
3484
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3485
|
-
contents.Message =
|
|
3485
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3486
3486
|
}
|
|
3487
3487
|
return contents;
|
|
3488
3488
|
};
|
|
@@ -3583,13 +3583,13 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
3583
3583
|
};
|
|
3584
3584
|
const deserializeAws_restJson1AccessPointDescription = (output, context) => {
|
|
3585
3585
|
return {
|
|
3586
|
-
AccessPointArn:
|
|
3587
|
-
AccessPointId:
|
|
3588
|
-
ClientToken:
|
|
3589
|
-
FileSystemId:
|
|
3590
|
-
LifeCycleState:
|
|
3591
|
-
Name:
|
|
3592
|
-
OwnerId:
|
|
3586
|
+
AccessPointArn: smithy_client_1.expectString(output.AccessPointArn),
|
|
3587
|
+
AccessPointId: smithy_client_1.expectString(output.AccessPointId),
|
|
3588
|
+
ClientToken: smithy_client_1.expectString(output.ClientToken),
|
|
3589
|
+
FileSystemId: smithy_client_1.expectString(output.FileSystemId),
|
|
3590
|
+
LifeCycleState: smithy_client_1.expectString(output.LifeCycleState),
|
|
3591
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
3592
|
+
OwnerId: smithy_client_1.expectString(output.OwnerId),
|
|
3593
3593
|
PosixUser: output.PosixUser !== undefined && output.PosixUser !== null
|
|
3594
3594
|
? deserializeAws_restJson1PosixUser(output.PosixUser, context)
|
|
3595
3595
|
: undefined,
|
|
@@ -3613,41 +3613,41 @@ const deserializeAws_restJson1AccessPointDescriptions = (output, context) => {
|
|
|
3613
3613
|
};
|
|
3614
3614
|
const deserializeAws_restJson1BackupPolicy = (output, context) => {
|
|
3615
3615
|
return {
|
|
3616
|
-
Status:
|
|
3616
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
3617
3617
|
};
|
|
3618
3618
|
};
|
|
3619
3619
|
const deserializeAws_restJson1CreationInfo = (output, context) => {
|
|
3620
3620
|
return {
|
|
3621
|
-
OwnerGid:
|
|
3622
|
-
OwnerUid:
|
|
3623
|
-
Permissions:
|
|
3621
|
+
OwnerGid: smithy_client_1.expectLong(output.OwnerGid),
|
|
3622
|
+
OwnerUid: smithy_client_1.expectLong(output.OwnerUid),
|
|
3623
|
+
Permissions: smithy_client_1.expectString(output.Permissions),
|
|
3624
3624
|
};
|
|
3625
3625
|
};
|
|
3626
3626
|
const deserializeAws_restJson1FileSystemDescription = (output, context) => {
|
|
3627
3627
|
return {
|
|
3628
|
-
AvailabilityZoneId:
|
|
3629
|
-
AvailabilityZoneName:
|
|
3628
|
+
AvailabilityZoneId: smithy_client_1.expectString(output.AvailabilityZoneId),
|
|
3629
|
+
AvailabilityZoneName: smithy_client_1.expectString(output.AvailabilityZoneName),
|
|
3630
3630
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3631
|
-
?
|
|
3631
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
3632
3632
|
: undefined,
|
|
3633
|
-
CreationToken:
|
|
3634
|
-
Encrypted:
|
|
3635
|
-
FileSystemArn:
|
|
3636
|
-
FileSystemId:
|
|
3637
|
-
KmsKeyId:
|
|
3638
|
-
LifeCycleState:
|
|
3639
|
-
Name:
|
|
3640
|
-
NumberOfMountTargets:
|
|
3641
|
-
OwnerId:
|
|
3642
|
-
PerformanceMode:
|
|
3643
|
-
ProvisionedThroughputInMibps:
|
|
3633
|
+
CreationToken: smithy_client_1.expectString(output.CreationToken),
|
|
3634
|
+
Encrypted: smithy_client_1.expectBoolean(output.Encrypted),
|
|
3635
|
+
FileSystemArn: smithy_client_1.expectString(output.FileSystemArn),
|
|
3636
|
+
FileSystemId: smithy_client_1.expectString(output.FileSystemId),
|
|
3637
|
+
KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
|
|
3638
|
+
LifeCycleState: smithy_client_1.expectString(output.LifeCycleState),
|
|
3639
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
3640
|
+
NumberOfMountTargets: smithy_client_1.expectInt32(output.NumberOfMountTargets),
|
|
3641
|
+
OwnerId: smithy_client_1.expectString(output.OwnerId),
|
|
3642
|
+
PerformanceMode: smithy_client_1.expectString(output.PerformanceMode),
|
|
3643
|
+
ProvisionedThroughputInMibps: smithy_client_1.limitedParseDouble(output.ProvisionedThroughputInMibps),
|
|
3644
3644
|
SizeInBytes: output.SizeInBytes !== undefined && output.SizeInBytes !== null
|
|
3645
3645
|
? deserializeAws_restJson1FileSystemSize(output.SizeInBytes, context)
|
|
3646
3646
|
: undefined,
|
|
3647
3647
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3648
3648
|
? deserializeAws_restJson1Tags(output.Tags, context)
|
|
3649
3649
|
: undefined,
|
|
3650
|
-
ThroughputMode:
|
|
3650
|
+
ThroughputMode: smithy_client_1.expectString(output.ThroughputMode),
|
|
3651
3651
|
};
|
|
3652
3652
|
};
|
|
3653
3653
|
const deserializeAws_restJson1FileSystemDescriptions = (output, context) => {
|
|
@@ -3663,11 +3663,11 @@ const deserializeAws_restJson1FileSystemDescriptions = (output, context) => {
|
|
|
3663
3663
|
const deserializeAws_restJson1FileSystemSize = (output, context) => {
|
|
3664
3664
|
return {
|
|
3665
3665
|
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
3666
|
-
?
|
|
3666
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Timestamp)))
|
|
3667
3667
|
: undefined,
|
|
3668
|
-
Value:
|
|
3669
|
-
ValueInIA:
|
|
3670
|
-
ValueInStandard:
|
|
3668
|
+
Value: smithy_client_1.expectLong(output.Value),
|
|
3669
|
+
ValueInIA: smithy_client_1.expectLong(output.ValueInIA),
|
|
3670
|
+
ValueInStandard: smithy_client_1.expectLong(output.ValueInStandard),
|
|
3671
3671
|
};
|
|
3672
3672
|
};
|
|
3673
3673
|
const deserializeAws_restJson1LifecyclePolicies = (output, context) => {
|
|
@@ -3682,22 +3682,22 @@ const deserializeAws_restJson1LifecyclePolicies = (output, context) => {
|
|
|
3682
3682
|
};
|
|
3683
3683
|
const deserializeAws_restJson1LifecyclePolicy = (output, context) => {
|
|
3684
3684
|
return {
|
|
3685
|
-
TransitionToIA:
|
|
3686
|
-
TransitionToPrimaryStorageClass:
|
|
3685
|
+
TransitionToIA: smithy_client_1.expectString(output.TransitionToIA),
|
|
3686
|
+
TransitionToPrimaryStorageClass: smithy_client_1.expectString(output.TransitionToPrimaryStorageClass),
|
|
3687
3687
|
};
|
|
3688
3688
|
};
|
|
3689
3689
|
const deserializeAws_restJson1MountTargetDescription = (output, context) => {
|
|
3690
3690
|
return {
|
|
3691
|
-
AvailabilityZoneId:
|
|
3692
|
-
AvailabilityZoneName:
|
|
3693
|
-
FileSystemId:
|
|
3694
|
-
IpAddress:
|
|
3695
|
-
LifeCycleState:
|
|
3696
|
-
MountTargetId:
|
|
3697
|
-
NetworkInterfaceId:
|
|
3698
|
-
OwnerId:
|
|
3699
|
-
SubnetId:
|
|
3700
|
-
VpcId:
|
|
3691
|
+
AvailabilityZoneId: smithy_client_1.expectString(output.AvailabilityZoneId),
|
|
3692
|
+
AvailabilityZoneName: smithy_client_1.expectString(output.AvailabilityZoneName),
|
|
3693
|
+
FileSystemId: smithy_client_1.expectString(output.FileSystemId),
|
|
3694
|
+
IpAddress: smithy_client_1.expectString(output.IpAddress),
|
|
3695
|
+
LifeCycleState: smithy_client_1.expectString(output.LifeCycleState),
|
|
3696
|
+
MountTargetId: smithy_client_1.expectString(output.MountTargetId),
|
|
3697
|
+
NetworkInterfaceId: smithy_client_1.expectString(output.NetworkInterfaceId),
|
|
3698
|
+
OwnerId: smithy_client_1.expectString(output.OwnerId),
|
|
3699
|
+
SubnetId: smithy_client_1.expectString(output.SubnetId),
|
|
3700
|
+
VpcId: smithy_client_1.expectString(output.VpcId),
|
|
3701
3701
|
};
|
|
3702
3702
|
};
|
|
3703
3703
|
const deserializeAws_restJson1MountTargetDescriptions = (output, context) => {
|
|
@@ -3712,16 +3712,16 @@ const deserializeAws_restJson1MountTargetDescriptions = (output, context) => {
|
|
|
3712
3712
|
};
|
|
3713
3713
|
const deserializeAws_restJson1PosixUser = (output, context) => {
|
|
3714
3714
|
return {
|
|
3715
|
-
Gid:
|
|
3715
|
+
Gid: smithy_client_1.expectLong(output.Gid),
|
|
3716
3716
|
SecondaryGids: output.SecondaryGids !== undefined && output.SecondaryGids !== null
|
|
3717
3717
|
? deserializeAws_restJson1SecondaryGids(output.SecondaryGids, context)
|
|
3718
3718
|
: undefined,
|
|
3719
|
-
Uid:
|
|
3719
|
+
Uid: smithy_client_1.expectLong(output.Uid),
|
|
3720
3720
|
};
|
|
3721
3721
|
};
|
|
3722
3722
|
const deserializeAws_restJson1ResourceIdPreference = (output, context) => {
|
|
3723
3723
|
return {
|
|
3724
|
-
ResourceIdType:
|
|
3724
|
+
ResourceIdType: smithy_client_1.expectString(output.ResourceIdType),
|
|
3725
3725
|
Resources: output.Resources !== undefined && output.Resources !== null
|
|
3726
3726
|
? deserializeAws_restJson1Resources(output.Resources, context)
|
|
3727
3727
|
: undefined,
|
|
@@ -3734,7 +3734,7 @@ const deserializeAws_restJson1Resources = (output, context) => {
|
|
|
3734
3734
|
if (entry === null) {
|
|
3735
3735
|
return null;
|
|
3736
3736
|
}
|
|
3737
|
-
return
|
|
3737
|
+
return smithy_client_1.expectString(entry);
|
|
3738
3738
|
});
|
|
3739
3739
|
};
|
|
3740
3740
|
const deserializeAws_restJson1RootDirectory = (output, context) => {
|
|
@@ -3742,7 +3742,7 @@ const deserializeAws_restJson1RootDirectory = (output, context) => {
|
|
|
3742
3742
|
CreationInfo: output.CreationInfo !== undefined && output.CreationInfo !== null
|
|
3743
3743
|
? deserializeAws_restJson1CreationInfo(output.CreationInfo, context)
|
|
3744
3744
|
: undefined,
|
|
3745
|
-
Path:
|
|
3745
|
+
Path: smithy_client_1.expectString(output.Path),
|
|
3746
3746
|
};
|
|
3747
3747
|
};
|
|
3748
3748
|
const deserializeAws_restJson1SecondaryGids = (output, context) => {
|
|
@@ -3752,7 +3752,7 @@ const deserializeAws_restJson1SecondaryGids = (output, context) => {
|
|
|
3752
3752
|
if (entry === null) {
|
|
3753
3753
|
return null;
|
|
3754
3754
|
}
|
|
3755
|
-
return
|
|
3755
|
+
return smithy_client_1.expectLong(entry);
|
|
3756
3756
|
});
|
|
3757
3757
|
};
|
|
3758
3758
|
const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
@@ -3762,13 +3762,13 @@ const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
|
3762
3762
|
if (entry === null) {
|
|
3763
3763
|
return null;
|
|
3764
3764
|
}
|
|
3765
|
-
return
|
|
3765
|
+
return smithy_client_1.expectString(entry);
|
|
3766
3766
|
});
|
|
3767
3767
|
};
|
|
3768
3768
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
3769
3769
|
return {
|
|
3770
|
-
Key:
|
|
3771
|
-
Value:
|
|
3770
|
+
Key: smithy_client_1.expectString(output.Key),
|
|
3771
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
3772
3772
|
};
|
|
3773
3773
|
};
|
|
3774
3774
|
const deserializeAws_restJson1Tags = (output, context) => {
|