@aws-sdk/client-efs 3.121.0 → 3.130.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 CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-efs
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-efs
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -17,14 +17,12 @@ const serializeAws_restJson1CreateAccessPointCommand = async (input, context) =>
17
17
  let body;
18
18
  body = JSON.stringify({
19
19
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
20
- ...(input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId }),
21
- ...(input.PosixUser !== undefined &&
22
- input.PosixUser !== null && { PosixUser: serializeAws_restJson1PosixUser(input.PosixUser, context) }),
23
- ...(input.RootDirectory !== undefined &&
24
- input.RootDirectory !== null && {
20
+ ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
21
+ ...(input.PosixUser != null && { PosixUser: serializeAws_restJson1PosixUser(input.PosixUser, context) }),
22
+ ...(input.RootDirectory != null && {
25
23
  RootDirectory: serializeAws_restJson1RootDirectory(input.RootDirectory, context),
26
24
  }),
27
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
25
+ ...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
28
26
  });
29
27
  return new protocol_http_1.HttpRequest({
30
28
  protocol,
@@ -46,21 +44,17 @@ const serializeAws_restJson1CreateFileSystemCommand = async (input, context) =>
46
44
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems";
47
45
  let body;
48
46
  body = JSON.stringify({
49
- ...(input.AvailabilityZoneName !== undefined &&
50
- input.AvailabilityZoneName !== null && { AvailabilityZoneName: input.AvailabilityZoneName }),
51
- ...(input.Backup !== undefined && input.Backup !== null && { Backup: input.Backup }),
47
+ ...(input.AvailabilityZoneName != null && { AvailabilityZoneName: input.AvailabilityZoneName }),
48
+ ...(input.Backup != null && { Backup: input.Backup }),
52
49
  CreationToken: (_a = input.CreationToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
53
- ...(input.Encrypted !== undefined && input.Encrypted !== null && { Encrypted: input.Encrypted }),
54
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
55
- ...(input.PerformanceMode !== undefined &&
56
- input.PerformanceMode !== null && { PerformanceMode: input.PerformanceMode }),
57
- ...(input.ProvisionedThroughputInMibps !== undefined &&
58
- input.ProvisionedThroughputInMibps !== null && {
50
+ ...(input.Encrypted != null && { Encrypted: input.Encrypted }),
51
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
52
+ ...(input.PerformanceMode != null && { PerformanceMode: input.PerformanceMode }),
53
+ ...(input.ProvisionedThroughputInMibps != null && {
59
54
  ProvisionedThroughputInMibps: (0, smithy_client_1.serializeFloat)(input.ProvisionedThroughputInMibps),
60
55
  }),
61
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
62
- ...(input.ThroughputMode !== undefined &&
63
- input.ThroughputMode !== null && { ThroughputMode: input.ThroughputMode }),
56
+ ...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
57
+ ...(input.ThroughputMode != null && { ThroughputMode: input.ThroughputMode }),
64
58
  });
65
59
  return new protocol_http_1.HttpRequest({
66
60
  protocol,
@@ -81,13 +75,12 @@ const serializeAws_restJson1CreateMountTargetCommand = async (input, context) =>
81
75
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/mount-targets";
82
76
  let body;
83
77
  body = JSON.stringify({
84
- ...(input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId }),
85
- ...(input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress }),
86
- ...(input.SecurityGroups !== undefined &&
87
- input.SecurityGroups !== null && {
78
+ ...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
79
+ ...(input.IpAddress != null && { IpAddress: input.IpAddress }),
80
+ ...(input.SecurityGroups != null && {
88
81
  SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
89
82
  }),
90
- ...(input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId }),
83
+ ...(input.SubnetId != null && { SubnetId: input.SubnetId }),
91
84
  });
92
85
  return new protocol_http_1.HttpRequest({
93
86
  protocol,
@@ -119,8 +112,7 @@ const serializeAws_restJson1CreateReplicationConfigurationCommand = async (input
119
112
  }
120
113
  let body;
121
114
  body = JSON.stringify({
122
- ...(input.Destinations !== undefined &&
123
- input.Destinations !== null && {
115
+ ...(input.Destinations != null && {
124
116
  Destinations: serializeAws_restJson1DestinationsToCreate(input.Destinations, context),
125
117
  }),
126
118
  });
@@ -153,7 +145,7 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
153
145
  }
154
146
  let body;
155
147
  body = JSON.stringify({
156
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
148
+ ...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
157
149
  });
158
150
  return new protocol_http_1.HttpRequest({
159
151
  protocol,
@@ -316,8 +308,7 @@ const serializeAws_restJson1DeleteTagsCommand = async (input, context) => {
316
308
  }
317
309
  let body;
318
310
  body = JSON.stringify({
319
- ...(input.TagKeys !== undefined &&
320
- input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) }),
311
+ ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) }),
321
312
  });
322
313
  return new protocol_http_1.HttpRequest({
323
314
  protocol,
@@ -361,8 +352,8 @@ const serializeAws_restJson1DescribeAccountPreferencesCommand = async (input, co
361
352
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/account-preferences";
362
353
  let body;
363
354
  body = JSON.stringify({
364
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
365
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
355
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
356
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
366
357
  });
367
358
  return new protocol_http_1.HttpRequest({
368
359
  protocol,
@@ -634,8 +625,7 @@ const serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = async (inpu
634
625
  }
635
626
  let body;
636
627
  body = JSON.stringify({
637
- ...(input.SecurityGroups !== undefined &&
638
- input.SecurityGroups !== null && {
628
+ ...(input.SecurityGroups != null && {
639
629
  SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
640
630
  }),
641
631
  });
@@ -658,8 +648,7 @@ const serializeAws_restJson1PutAccountPreferencesCommand = async (input, context
658
648
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/account-preferences";
659
649
  let body;
660
650
  body = JSON.stringify({
661
- ...(input.ResourceIdType !== undefined &&
662
- input.ResourceIdType !== null && { ResourceIdType: input.ResourceIdType }),
651
+ ...(input.ResourceIdType != null && { ResourceIdType: input.ResourceIdType }),
663
652
  });
664
653
  return new protocol_http_1.HttpRequest({
665
654
  protocol,
@@ -691,8 +680,9 @@ const serializeAws_restJson1PutBackupPolicyCommand = async (input, context) => {
691
680
  }
692
681
  let body;
693
682
  body = JSON.stringify({
694
- ...(input.BackupPolicy !== undefined &&
695
- input.BackupPolicy !== null && { BackupPolicy: serializeAws_restJson1BackupPolicy(input.BackupPolicy, context) }),
683
+ ...(input.BackupPolicy != null && {
684
+ BackupPolicy: serializeAws_restJson1BackupPolicy(input.BackupPolicy, context),
685
+ }),
696
686
  });
697
687
  return new protocol_http_1.HttpRequest({
698
688
  protocol,
@@ -724,11 +714,10 @@ const serializeAws_restJson1PutFileSystemPolicyCommand = async (input, context)
724
714
  }
725
715
  let body;
726
716
  body = JSON.stringify({
727
- ...(input.BypassPolicyLockoutSafetyCheck !== undefined &&
728
- input.BypassPolicyLockoutSafetyCheck !== null && {
717
+ ...(input.BypassPolicyLockoutSafetyCheck != null && {
729
718
  BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
730
719
  }),
731
- ...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
720
+ ...(input.Policy != null && { Policy: input.Policy }),
732
721
  });
733
722
  return new protocol_http_1.HttpRequest({
734
723
  protocol,
@@ -760,8 +749,7 @@ const serializeAws_restJson1PutLifecycleConfigurationCommand = async (input, con
760
749
  }
761
750
  let body;
762
751
  body = JSON.stringify({
763
- ...(input.LifecyclePolicies !== undefined &&
764
- input.LifecyclePolicies !== null && {
752
+ ...(input.LifecyclePolicies != null && {
765
753
  LifecyclePolicies: serializeAws_restJson1LifecyclePolicies(input.LifecyclePolicies, context),
766
754
  }),
767
755
  });
@@ -794,7 +782,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
794
782
  }
795
783
  let body;
796
784
  body = JSON.stringify({
797
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
785
+ ...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
798
786
  });
799
787
  return new protocol_http_1.HttpRequest({
800
788
  protocol,
@@ -855,12 +843,10 @@ const serializeAws_restJson1UpdateFileSystemCommand = async (input, context) =>
855
843
  }
856
844
  let body;
857
845
  body = JSON.stringify({
858
- ...(input.ProvisionedThroughputInMibps !== undefined &&
859
- input.ProvisionedThroughputInMibps !== null && {
846
+ ...(input.ProvisionedThroughputInMibps != null && {
860
847
  ProvisionedThroughputInMibps: (0, smithy_client_1.serializeFloat)(input.ProvisionedThroughputInMibps),
861
848
  }),
862
- ...(input.ThroughputMode !== undefined &&
863
- input.ThroughputMode !== null && { ThroughputMode: input.ThroughputMode }),
849
+ ...(input.ThroughputMode != null && { ThroughputMode: input.ThroughputMode }),
864
850
  });
865
851
  return new protocol_http_1.HttpRequest({
866
852
  protocol,
@@ -3029,14 +3015,14 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
3029
3015
  };
3030
3016
  const serializeAws_restJson1BackupPolicy = (input, context) => {
3031
3017
  return {
3032
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
3018
+ ...(input.Status != null && { Status: input.Status }),
3033
3019
  };
3034
3020
  };
3035
3021
  const serializeAws_restJson1CreationInfo = (input, context) => {
3036
3022
  return {
3037
- ...(input.OwnerGid !== undefined && input.OwnerGid !== null && { OwnerGid: input.OwnerGid }),
3038
- ...(input.OwnerUid !== undefined && input.OwnerUid !== null && { OwnerUid: input.OwnerUid }),
3039
- ...(input.Permissions !== undefined && input.Permissions !== null && { Permissions: input.Permissions }),
3023
+ ...(input.OwnerGid != null && { OwnerGid: input.OwnerGid }),
3024
+ ...(input.OwnerUid != null && { OwnerUid: input.OwnerUid }),
3025
+ ...(input.Permissions != null && { Permissions: input.Permissions }),
3040
3026
  };
3041
3027
  };
3042
3028
  const serializeAws_restJson1DestinationsToCreate = (input, context) => {
@@ -3051,10 +3037,9 @@ const serializeAws_restJson1DestinationsToCreate = (input, context) => {
3051
3037
  };
3052
3038
  const serializeAws_restJson1DestinationToCreate = (input, context) => {
3053
3039
  return {
3054
- ...(input.AvailabilityZoneName !== undefined &&
3055
- input.AvailabilityZoneName !== null && { AvailabilityZoneName: input.AvailabilityZoneName }),
3056
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
3057
- ...(input.Region !== undefined && input.Region !== null && { Region: input.Region }),
3040
+ ...(input.AvailabilityZoneName != null && { AvailabilityZoneName: input.AvailabilityZoneName }),
3041
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
3042
+ ...(input.Region != null && { Region: input.Region }),
3058
3043
  };
3059
3044
  };
3060
3045
  const serializeAws_restJson1LifecyclePolicies = (input, context) => {
@@ -3069,29 +3054,27 @@ const serializeAws_restJson1LifecyclePolicies = (input, context) => {
3069
3054
  };
3070
3055
  const serializeAws_restJson1LifecyclePolicy = (input, context) => {
3071
3056
  return {
3072
- ...(input.TransitionToIA !== undefined &&
3073
- input.TransitionToIA !== null && { TransitionToIA: input.TransitionToIA }),
3074
- ...(input.TransitionToPrimaryStorageClass !== undefined &&
3075
- input.TransitionToPrimaryStorageClass !== null && {
3057
+ ...(input.TransitionToIA != null && { TransitionToIA: input.TransitionToIA }),
3058
+ ...(input.TransitionToPrimaryStorageClass != null && {
3076
3059
  TransitionToPrimaryStorageClass: input.TransitionToPrimaryStorageClass,
3077
3060
  }),
3078
3061
  };
3079
3062
  };
3080
3063
  const serializeAws_restJson1PosixUser = (input, context) => {
3081
3064
  return {
3082
- ...(input.Gid !== undefined && input.Gid !== null && { Gid: input.Gid }),
3083
- ...(input.SecondaryGids !== undefined &&
3084
- input.SecondaryGids !== null && {
3065
+ ...(input.Gid != null && { Gid: input.Gid }),
3066
+ ...(input.SecondaryGids != null && {
3085
3067
  SecondaryGids: serializeAws_restJson1SecondaryGids(input.SecondaryGids, context),
3086
3068
  }),
3087
- ...(input.Uid !== undefined && input.Uid !== null && { Uid: input.Uid }),
3069
+ ...(input.Uid != null && { Uid: input.Uid }),
3088
3070
  };
3089
3071
  };
3090
3072
  const serializeAws_restJson1RootDirectory = (input, context) => {
3091
3073
  return {
3092
- ...(input.CreationInfo !== undefined &&
3093
- input.CreationInfo !== null && { CreationInfo: serializeAws_restJson1CreationInfo(input.CreationInfo, context) }),
3094
- ...(input.Path !== undefined && input.Path !== null && { Path: input.Path }),
3074
+ ...(input.CreationInfo != null && {
3075
+ CreationInfo: serializeAws_restJson1CreationInfo(input.CreationInfo, context),
3076
+ }),
3077
+ ...(input.Path != null && { Path: input.Path }),
3095
3078
  };
3096
3079
  };
3097
3080
  const serializeAws_restJson1SecondaryGids = (input, context) => {
@@ -3116,8 +3099,8 @@ const serializeAws_restJson1SecurityGroups = (input, context) => {
3116
3099
  };
3117
3100
  const serializeAws_restJson1Tag = (input, context) => {
3118
3101
  return {
3119
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
3120
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
3102
+ ...(input.Key != null && { Key: input.Key }),
3103
+ ...(input.Value != null && { Value: input.Value }),
3121
3104
  };
3122
3105
  };
3123
3106
  const serializeAws_restJson1TagKeys = (input, context) => {
@@ -3149,15 +3132,9 @@ const deserializeAws_restJson1AccessPointDescription = (output, context) => {
3149
3132
  LifeCycleState: (0, smithy_client_1.expectString)(output.LifeCycleState),
3150
3133
  Name: (0, smithy_client_1.expectString)(output.Name),
3151
3134
  OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
3152
- PosixUser: output.PosixUser !== undefined && output.PosixUser !== null
3153
- ? deserializeAws_restJson1PosixUser(output.PosixUser, context)
3154
- : undefined,
3155
- RootDirectory: output.RootDirectory !== undefined && output.RootDirectory !== null
3156
- ? deserializeAws_restJson1RootDirectory(output.RootDirectory, context)
3157
- : undefined,
3158
- Tags: output.Tags !== undefined && output.Tags !== null
3159
- ? deserializeAws_restJson1Tags(output.Tags, context)
3160
- : undefined,
3135
+ PosixUser: output.PosixUser != null ? deserializeAws_restJson1PosixUser(output.PosixUser, context) : undefined,
3136
+ RootDirectory: output.RootDirectory != null ? deserializeAws_restJson1RootDirectory(output.RootDirectory, context) : undefined,
3137
+ Tags: output.Tags != null ? deserializeAws_restJson1Tags(output.Tags, context) : undefined,
3161
3138
  };
3162
3139
  };
3163
3140
  const deserializeAws_restJson1AccessPointDescriptions = (output, context) => {
@@ -3186,7 +3163,7 @@ const deserializeAws_restJson1CreationInfo = (output, context) => {
3186
3163
  const deserializeAws_restJson1Destination = (output, context) => {
3187
3164
  return {
3188
3165
  FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
3189
- LastReplicatedTimestamp: output.LastReplicatedTimestamp !== undefined && output.LastReplicatedTimestamp !== null
3166
+ LastReplicatedTimestamp: output.LastReplicatedTimestamp != null
3190
3167
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastReplicatedTimestamp)))
3191
3168
  : undefined,
3192
3169
  Region: (0, smithy_client_1.expectString)(output.Region),
@@ -3208,7 +3185,7 @@ const deserializeAws_restJson1FileSystemDescription = (output, context) => {
3208
3185
  return {
3209
3186
  AvailabilityZoneId: (0, smithy_client_1.expectString)(output.AvailabilityZoneId),
3210
3187
  AvailabilityZoneName: (0, smithy_client_1.expectString)(output.AvailabilityZoneName),
3211
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3188
+ CreationTime: output.CreationTime != null
3212
3189
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3213
3190
  : undefined,
3214
3191
  CreationToken: (0, smithy_client_1.expectString)(output.CreationToken),
@@ -3222,12 +3199,8 @@ const deserializeAws_restJson1FileSystemDescription = (output, context) => {
3222
3199
  OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
3223
3200
  PerformanceMode: (0, smithy_client_1.expectString)(output.PerformanceMode),
3224
3201
  ProvisionedThroughputInMibps: (0, smithy_client_1.limitedParseDouble)(output.ProvisionedThroughputInMibps),
3225
- SizeInBytes: output.SizeInBytes !== undefined && output.SizeInBytes !== null
3226
- ? deserializeAws_restJson1FileSystemSize(output.SizeInBytes, context)
3227
- : undefined,
3228
- Tags: output.Tags !== undefined && output.Tags !== null
3229
- ? deserializeAws_restJson1Tags(output.Tags, context)
3230
- : undefined,
3202
+ SizeInBytes: output.SizeInBytes != null ? deserializeAws_restJson1FileSystemSize(output.SizeInBytes, context) : undefined,
3203
+ Tags: output.Tags != null ? deserializeAws_restJson1Tags(output.Tags, context) : undefined,
3231
3204
  ThroughputMode: (0, smithy_client_1.expectString)(output.ThroughputMode),
3232
3205
  };
3233
3206
  };
@@ -3244,9 +3217,7 @@ const deserializeAws_restJson1FileSystemDescriptions = (output, context) => {
3244
3217
  };
3245
3218
  const deserializeAws_restJson1FileSystemSize = (output, context) => {
3246
3219
  return {
3247
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
3248
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
3249
- : undefined,
3220
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
3250
3221
  Value: (0, smithy_client_1.expectLong)(output.Value),
3251
3222
  ValueInIA: (0, smithy_client_1.expectLong)(output.ValueInIA),
3252
3223
  ValueInStandard: (0, smithy_client_1.expectLong)(output.ValueInStandard),
@@ -3297,20 +3268,16 @@ const deserializeAws_restJson1MountTargetDescriptions = (output, context) => {
3297
3268
  const deserializeAws_restJson1PosixUser = (output, context) => {
3298
3269
  return {
3299
3270
  Gid: (0, smithy_client_1.expectLong)(output.Gid),
3300
- SecondaryGids: output.SecondaryGids !== undefined && output.SecondaryGids !== null
3301
- ? deserializeAws_restJson1SecondaryGids(output.SecondaryGids, context)
3302
- : undefined,
3271
+ SecondaryGids: output.SecondaryGids != null ? deserializeAws_restJson1SecondaryGids(output.SecondaryGids, context) : undefined,
3303
3272
  Uid: (0, smithy_client_1.expectLong)(output.Uid),
3304
3273
  };
3305
3274
  };
3306
3275
  const deserializeAws_restJson1ReplicationConfigurationDescription = (output, context) => {
3307
3276
  return {
3308
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3277
+ CreationTime: output.CreationTime != null
3309
3278
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3310
3279
  : undefined,
3311
- Destinations: output.Destinations !== undefined && output.Destinations !== null
3312
- ? deserializeAws_restJson1Destinations(output.Destinations, context)
3313
- : undefined,
3280
+ Destinations: output.Destinations != null ? deserializeAws_restJson1Destinations(output.Destinations, context) : undefined,
3314
3281
  OriginalSourceFileSystemArn: (0, smithy_client_1.expectString)(output.OriginalSourceFileSystemArn),
3315
3282
  SourceFileSystemArn: (0, smithy_client_1.expectString)(output.SourceFileSystemArn),
3316
3283
  SourceFileSystemId: (0, smithy_client_1.expectString)(output.SourceFileSystemId),
@@ -3331,9 +3298,7 @@ const deserializeAws_restJson1ReplicationConfigurationDescriptions = (output, co
3331
3298
  const deserializeAws_restJson1ResourceIdPreference = (output, context) => {
3332
3299
  return {
3333
3300
  ResourceIdType: (0, smithy_client_1.expectString)(output.ResourceIdType),
3334
- Resources: output.Resources !== undefined && output.Resources !== null
3335
- ? deserializeAws_restJson1Resources(output.Resources, context)
3336
- : undefined,
3301
+ Resources: output.Resources != null ? deserializeAws_restJson1Resources(output.Resources, context) : undefined,
3337
3302
  };
3338
3303
  };
3339
3304
  const deserializeAws_restJson1Resources = (output, context) => {
@@ -3349,9 +3314,7 @@ const deserializeAws_restJson1Resources = (output, context) => {
3349
3314
  };
3350
3315
  const deserializeAws_restJson1RootDirectory = (output, context) => {
3351
3316
  return {
3352
- CreationInfo: output.CreationInfo !== undefined && output.CreationInfo !== null
3353
- ? deserializeAws_restJson1CreationInfo(output.CreationInfo, context)
3354
- : undefined,
3317
+ CreationInfo: output.CreationInfo != null ? deserializeAws_restJson1CreationInfo(output.CreationInfo, context) : undefined,
3355
3318
  Path: (0, smithy_client_1.expectString)(output.Path),
3356
3319
  };
3357
3320
  };
@@ -3425,6 +3388,9 @@ const loadRestJsonErrorCode = (output, data) => {
3425
3388
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3426
3389
  const sanitizeErrorCode = (rawValue) => {
3427
3390
  let cleanValue = rawValue;
3391
+ if (typeof cleanValue === "number") {
3392
+ cleanValue = cleanValue.toString();
3393
+ }
3428
3394
  if (cleanValue.indexOf(":") >= 0) {
3429
3395
  cleanValue = cleanValue.split(":")[0];
3430
3396
  }
@@ -16,11 +16,9 @@ export var serializeAws_restJson1CreateAccessPointCommand = function (input, con
16
16
  "content-type": "application/json",
17
17
  };
18
18
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/access-points";
19
- body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.PosixUser !== undefined &&
20
- input.PosixUser !== null && { PosixUser: serializeAws_restJson1PosixUser(input.PosixUser, context) })), (input.RootDirectory !== undefined &&
21
- input.RootDirectory !== null && {
19
+ body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.FileSystemId != null && { FileSystemId: input.FileSystemId })), (input.PosixUser != null && { PosixUser: serializeAws_restJson1PosixUser(input.PosixUser, context) })), (input.RootDirectory != null && {
22
20
  RootDirectory: serializeAws_restJson1RootDirectory(input.RootDirectory, context),
23
- })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
21
+ })), (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
24
22
  return [2, new __HttpRequest({
25
23
  protocol: protocol,
26
24
  hostname: hostname,
@@ -45,13 +43,9 @@ export var serializeAws_restJson1CreateFileSystemCommand = function (input, cont
45
43
  "content-type": "application/json",
46
44
  };
47
45
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/file-systems";
48
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AvailabilityZoneName !== undefined &&
49
- input.AvailabilityZoneName !== null && { AvailabilityZoneName: input.AvailabilityZoneName })), (input.Backup !== undefined && input.Backup !== null && { Backup: input.Backup })), { CreationToken: (_c = input.CreationToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Encrypted !== undefined && input.Encrypted !== null && { Encrypted: input.Encrypted })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.PerformanceMode !== undefined &&
50
- input.PerformanceMode !== null && { PerformanceMode: input.PerformanceMode })), (input.ProvisionedThroughputInMibps !== undefined &&
51
- input.ProvisionedThroughputInMibps !== null && {
46
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AvailabilityZoneName != null && { AvailabilityZoneName: input.AvailabilityZoneName })), (input.Backup != null && { Backup: input.Backup })), { CreationToken: (_c = input.CreationToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Encrypted != null && { Encrypted: input.Encrypted })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.PerformanceMode != null && { PerformanceMode: input.PerformanceMode })), (input.ProvisionedThroughputInMibps != null && {
52
47
  ProvisionedThroughputInMibps: __serializeFloat(input.ProvisionedThroughputInMibps),
53
- })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.ThroughputMode !== undefined &&
54
- input.ThroughputMode !== null && { ThroughputMode: input.ThroughputMode })));
48
+ })), (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.ThroughputMode != null && { ThroughputMode: input.ThroughputMode })));
55
49
  return [2, new __HttpRequest({
56
50
  protocol: protocol,
57
51
  hostname: hostname,
@@ -75,10 +69,9 @@ export var serializeAws_restJson1CreateMountTargetCommand = function (input, con
75
69
  "content-type": "application/json",
76
70
  };
77
71
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/mount-targets";
78
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FileSystemId !== undefined && input.FileSystemId !== null && { FileSystemId: input.FileSystemId })), (input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress })), (input.SecurityGroups !== undefined &&
79
- input.SecurityGroups !== null && {
72
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FileSystemId != null && { FileSystemId: input.FileSystemId })), (input.IpAddress != null && { IpAddress: input.IpAddress })), (input.SecurityGroups != null && {
80
73
  SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
81
- })), (input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId })));
74
+ })), (input.SubnetId != null && { SubnetId: input.SubnetId })));
82
75
  return [2, new __HttpRequest({
83
76
  protocol: protocol,
84
77
  hostname: hostname,
@@ -113,8 +106,7 @@ export var serializeAws_restJson1CreateReplicationConfigurationCommand = functio
113
106
  else {
114
107
  throw new Error("No value provided for input HTTP label: SourceFileSystemId.");
115
108
  }
116
- body = JSON.stringify(__assign({}, (input.Destinations !== undefined &&
117
- input.Destinations !== null && {
109
+ body = JSON.stringify(__assign({}, (input.Destinations != null && {
118
110
  Destinations: serializeAws_restJson1DestinationsToCreate(input.Destinations, context),
119
111
  })));
120
112
  return [2, new __HttpRequest({
@@ -150,7 +142,7 @@ export var serializeAws_restJson1CreateTagsCommand = function (input, context) {
150
142
  else {
151
143
  throw new Error("No value provided for input HTTP label: FileSystemId.");
152
144
  }
153
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
145
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
154
146
  return [2, new __HttpRequest({
155
147
  protocol: protocol,
156
148
  hostname: hostname,
@@ -341,8 +333,7 @@ export var serializeAws_restJson1DeleteTagsCommand = function (input, context) {
341
333
  else {
342
334
  throw new Error("No value provided for input HTTP label: FileSystemId.");
343
335
  }
344
- body = JSON.stringify(__assign({}, (input.TagKeys !== undefined &&
345
- input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) })));
336
+ body = JSON.stringify(__assign({}, (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) })));
346
337
  return [2, new __HttpRequest({
347
338
  protocol: protocol,
348
339
  hostname: hostname,
@@ -389,7 +380,7 @@ export var serializeAws_restJson1DescribeAccountPreferencesCommand = function (i
389
380
  "content-type": "application/json",
390
381
  };
391
382
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/account-preferences";
392
- body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
383
+ body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
393
384
  return [2, new __HttpRequest({
394
385
  protocol: protocol,
395
386
  hostname: hostname,
@@ -688,8 +679,7 @@ export var serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = functi
688
679
  else {
689
680
  throw new Error("No value provided for input HTTP label: MountTargetId.");
690
681
  }
691
- body = JSON.stringify(__assign({}, (input.SecurityGroups !== undefined &&
692
- input.SecurityGroups !== null && {
682
+ body = JSON.stringify(__assign({}, (input.SecurityGroups != null && {
693
683
  SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
694
684
  })));
695
685
  return [2, new __HttpRequest({
@@ -715,8 +705,7 @@ export var serializeAws_restJson1PutAccountPreferencesCommand = function (input,
715
705
  "content-type": "application/json",
716
706
  };
717
707
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/account-preferences";
718
- body = JSON.stringify(__assign({}, (input.ResourceIdType !== undefined &&
719
- input.ResourceIdType !== null && { ResourceIdType: input.ResourceIdType })));
708
+ body = JSON.stringify(__assign({}, (input.ResourceIdType != null && { ResourceIdType: input.ResourceIdType })));
720
709
  return [2, new __HttpRequest({
721
710
  protocol: protocol,
722
711
  hostname: hostname,
@@ -751,8 +740,9 @@ export var serializeAws_restJson1PutBackupPolicyCommand = function (input, conte
751
740
  else {
752
741
  throw new Error("No value provided for input HTTP label: FileSystemId.");
753
742
  }
754
- body = JSON.stringify(__assign({}, (input.BackupPolicy !== undefined &&
755
- input.BackupPolicy !== null && { BackupPolicy: serializeAws_restJson1BackupPolicy(input.BackupPolicy, context) })));
743
+ body = JSON.stringify(__assign({}, (input.BackupPolicy != null && {
744
+ BackupPolicy: serializeAws_restJson1BackupPolicy(input.BackupPolicy, context),
745
+ })));
756
746
  return [2, new __HttpRequest({
757
747
  protocol: protocol,
758
748
  hostname: hostname,
@@ -787,10 +777,9 @@ export var serializeAws_restJson1PutFileSystemPolicyCommand = function (input, c
787
777
  else {
788
778
  throw new Error("No value provided for input HTTP label: FileSystemId.");
789
779
  }
790
- body = JSON.stringify(__assign(__assign({}, (input.BypassPolicyLockoutSafetyCheck !== undefined &&
791
- input.BypassPolicyLockoutSafetyCheck !== null && {
780
+ body = JSON.stringify(__assign(__assign({}, (input.BypassPolicyLockoutSafetyCheck != null && {
792
781
  BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
793
- })), (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })));
782
+ })), (input.Policy != null && { Policy: input.Policy })));
794
783
  return [2, new __HttpRequest({
795
784
  protocol: protocol,
796
785
  hostname: hostname,
@@ -825,8 +814,7 @@ export var serializeAws_restJson1PutLifecycleConfigurationCommand = function (in
825
814
  else {
826
815
  throw new Error("No value provided for input HTTP label: FileSystemId.");
827
816
  }
828
- body = JSON.stringify(__assign({}, (input.LifecyclePolicies !== undefined &&
829
- input.LifecyclePolicies !== null && {
817
+ body = JSON.stringify(__assign({}, (input.LifecyclePolicies != null && {
830
818
  LifecyclePolicies: serializeAws_restJson1LifecyclePolicies(input.LifecyclePolicies, context),
831
819
  })));
832
820
  return [2, new __HttpRequest({
@@ -862,7 +850,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
862
850
  else {
863
851
  throw new Error("No value provided for input HTTP label: ResourceId.");
864
852
  }
865
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
853
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
866
854
  return [2, new __HttpRequest({
867
855
  protocol: protocol,
868
856
  hostname: hostname,
@@ -929,11 +917,9 @@ export var serializeAws_restJson1UpdateFileSystemCommand = function (input, cont
929
917
  else {
930
918
  throw new Error("No value provided for input HTTP label: FileSystemId.");
931
919
  }
932
- body = JSON.stringify(__assign(__assign({}, (input.ProvisionedThroughputInMibps !== undefined &&
933
- input.ProvisionedThroughputInMibps !== null && {
920
+ body = JSON.stringify(__assign(__assign({}, (input.ProvisionedThroughputInMibps != null && {
934
921
  ProvisionedThroughputInMibps: __serializeFloat(input.ProvisionedThroughputInMibps),
935
- })), (input.ThroughputMode !== undefined &&
936
- input.ThroughputMode !== null && { ThroughputMode: input.ThroughputMode })));
922
+ })), (input.ThroughputMode != null && { ThroughputMode: input.ThroughputMode })));
937
923
  return [2, new __HttpRequest({
938
924
  protocol: protocol,
939
925
  hostname: hostname,
@@ -3761,10 +3747,10 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
3761
3747
  });
3762
3748
  }); };
3763
3749
  var serializeAws_restJson1BackupPolicy = function (input, context) {
3764
- return __assign({}, (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
3750
+ return __assign({}, (input.Status != null && { Status: input.Status }));
3765
3751
  };
3766
3752
  var serializeAws_restJson1CreationInfo = function (input, context) {
3767
- return __assign(__assign(__assign({}, (input.OwnerGid !== undefined && input.OwnerGid !== null && { OwnerGid: input.OwnerGid })), (input.OwnerUid !== undefined && input.OwnerUid !== null && { OwnerUid: input.OwnerUid })), (input.Permissions !== undefined && input.Permissions !== null && { Permissions: input.Permissions }));
3753
+ return __assign(__assign(__assign({}, (input.OwnerGid != null && { OwnerGid: input.OwnerGid })), (input.OwnerUid != null && { OwnerUid: input.OwnerUid })), (input.Permissions != null && { Permissions: input.Permissions }));
3768
3754
  };
3769
3755
  var serializeAws_restJson1DestinationsToCreate = function (input, context) {
3770
3756
  return input
@@ -3777,8 +3763,7 @@ var serializeAws_restJson1DestinationsToCreate = function (input, context) {
3777
3763
  });
3778
3764
  };
3779
3765
  var serializeAws_restJson1DestinationToCreate = function (input, context) {
3780
- return __assign(__assign(__assign({}, (input.AvailabilityZoneName !== undefined &&
3781
- input.AvailabilityZoneName !== null && { AvailabilityZoneName: input.AvailabilityZoneName })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Region !== undefined && input.Region !== null && { Region: input.Region }));
3766
+ return __assign(__assign(__assign({}, (input.AvailabilityZoneName != null && { AvailabilityZoneName: input.AvailabilityZoneName })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Region != null && { Region: input.Region }));
3782
3767
  };
3783
3768
  var serializeAws_restJson1LifecyclePolicies = function (input, context) {
3784
3769
  return input
@@ -3791,21 +3776,19 @@ var serializeAws_restJson1LifecyclePolicies = function (input, context) {
3791
3776
  });
3792
3777
  };
3793
3778
  var serializeAws_restJson1LifecyclePolicy = function (input, context) {
3794
- return __assign(__assign({}, (input.TransitionToIA !== undefined &&
3795
- input.TransitionToIA !== null && { TransitionToIA: input.TransitionToIA })), (input.TransitionToPrimaryStorageClass !== undefined &&
3796
- input.TransitionToPrimaryStorageClass !== null && {
3779
+ return __assign(__assign({}, (input.TransitionToIA != null && { TransitionToIA: input.TransitionToIA })), (input.TransitionToPrimaryStorageClass != null && {
3797
3780
  TransitionToPrimaryStorageClass: input.TransitionToPrimaryStorageClass,
3798
3781
  }));
3799
3782
  };
3800
3783
  var serializeAws_restJson1PosixUser = function (input, context) {
3801
- return __assign(__assign(__assign({}, (input.Gid !== undefined && input.Gid !== null && { Gid: input.Gid })), (input.SecondaryGids !== undefined &&
3802
- input.SecondaryGids !== null && {
3784
+ return __assign(__assign(__assign({}, (input.Gid != null && { Gid: input.Gid })), (input.SecondaryGids != null && {
3803
3785
  SecondaryGids: serializeAws_restJson1SecondaryGids(input.SecondaryGids, context),
3804
- })), (input.Uid !== undefined && input.Uid !== null && { Uid: input.Uid }));
3786
+ })), (input.Uid != null && { Uid: input.Uid }));
3805
3787
  };
3806
3788
  var serializeAws_restJson1RootDirectory = function (input, context) {
3807
- return __assign(__assign({}, (input.CreationInfo !== undefined &&
3808
- input.CreationInfo !== null && { CreationInfo: serializeAws_restJson1CreationInfo(input.CreationInfo, context) })), (input.Path !== undefined && input.Path !== null && { Path: input.Path }));
3789
+ return __assign(__assign({}, (input.CreationInfo != null && {
3790
+ CreationInfo: serializeAws_restJson1CreationInfo(input.CreationInfo, context),
3791
+ })), (input.Path != null && { Path: input.Path }));
3809
3792
  };
3810
3793
  var serializeAws_restJson1SecondaryGids = function (input, context) {
3811
3794
  return input
@@ -3828,7 +3811,7 @@ var serializeAws_restJson1SecurityGroups = function (input, context) {
3828
3811
  });
3829
3812
  };
3830
3813
  var serializeAws_restJson1Tag = function (input, context) {
3831
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
3814
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
3832
3815
  };
3833
3816
  var serializeAws_restJson1TagKeys = function (input, context) {
3834
3817
  return input
@@ -3859,15 +3842,9 @@ var deserializeAws_restJson1AccessPointDescription = function (output, context)
3859
3842
  LifeCycleState: __expectString(output.LifeCycleState),
3860
3843
  Name: __expectString(output.Name),
3861
3844
  OwnerId: __expectString(output.OwnerId),
3862
- PosixUser: output.PosixUser !== undefined && output.PosixUser !== null
3863
- ? deserializeAws_restJson1PosixUser(output.PosixUser, context)
3864
- : undefined,
3865
- RootDirectory: output.RootDirectory !== undefined && output.RootDirectory !== null
3866
- ? deserializeAws_restJson1RootDirectory(output.RootDirectory, context)
3867
- : undefined,
3868
- Tags: output.Tags !== undefined && output.Tags !== null
3869
- ? deserializeAws_restJson1Tags(output.Tags, context)
3870
- : undefined,
3845
+ PosixUser: output.PosixUser != null ? deserializeAws_restJson1PosixUser(output.PosixUser, context) : undefined,
3846
+ RootDirectory: output.RootDirectory != null ? deserializeAws_restJson1RootDirectory(output.RootDirectory, context) : undefined,
3847
+ Tags: output.Tags != null ? deserializeAws_restJson1Tags(output.Tags, context) : undefined,
3871
3848
  };
3872
3849
  };
3873
3850
  var deserializeAws_restJson1AccessPointDescriptions = function (output, context) {
@@ -3896,7 +3873,7 @@ var deserializeAws_restJson1CreationInfo = function (output, context) {
3896
3873
  var deserializeAws_restJson1Destination = function (output, context) {
3897
3874
  return {
3898
3875
  FileSystemId: __expectString(output.FileSystemId),
3899
- LastReplicatedTimestamp: output.LastReplicatedTimestamp !== undefined && output.LastReplicatedTimestamp !== null
3876
+ LastReplicatedTimestamp: output.LastReplicatedTimestamp != null
3900
3877
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastReplicatedTimestamp)))
3901
3878
  : undefined,
3902
3879
  Region: __expectString(output.Region),
@@ -3918,7 +3895,7 @@ var deserializeAws_restJson1FileSystemDescription = function (output, context) {
3918
3895
  return {
3919
3896
  AvailabilityZoneId: __expectString(output.AvailabilityZoneId),
3920
3897
  AvailabilityZoneName: __expectString(output.AvailabilityZoneName),
3921
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3898
+ CreationTime: output.CreationTime != null
3922
3899
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3923
3900
  : undefined,
3924
3901
  CreationToken: __expectString(output.CreationToken),
@@ -3932,12 +3909,8 @@ var deserializeAws_restJson1FileSystemDescription = function (output, context) {
3932
3909
  OwnerId: __expectString(output.OwnerId),
3933
3910
  PerformanceMode: __expectString(output.PerformanceMode),
3934
3911
  ProvisionedThroughputInMibps: __limitedParseDouble(output.ProvisionedThroughputInMibps),
3935
- SizeInBytes: output.SizeInBytes !== undefined && output.SizeInBytes !== null
3936
- ? deserializeAws_restJson1FileSystemSize(output.SizeInBytes, context)
3937
- : undefined,
3938
- Tags: output.Tags !== undefined && output.Tags !== null
3939
- ? deserializeAws_restJson1Tags(output.Tags, context)
3940
- : undefined,
3912
+ SizeInBytes: output.SizeInBytes != null ? deserializeAws_restJson1FileSystemSize(output.SizeInBytes, context) : undefined,
3913
+ Tags: output.Tags != null ? deserializeAws_restJson1Tags(output.Tags, context) : undefined,
3941
3914
  ThroughputMode: __expectString(output.ThroughputMode),
3942
3915
  };
3943
3916
  };
@@ -3954,9 +3927,7 @@ var deserializeAws_restJson1FileSystemDescriptions = function (output, context)
3954
3927
  };
3955
3928
  var deserializeAws_restJson1FileSystemSize = function (output, context) {
3956
3929
  return {
3957
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
3958
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
3959
- : undefined,
3930
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
3960
3931
  Value: __expectLong(output.Value),
3961
3932
  ValueInIA: __expectLong(output.ValueInIA),
3962
3933
  ValueInStandard: __expectLong(output.ValueInStandard),
@@ -4007,20 +3978,16 @@ var deserializeAws_restJson1MountTargetDescriptions = function (output, context)
4007
3978
  var deserializeAws_restJson1PosixUser = function (output, context) {
4008
3979
  return {
4009
3980
  Gid: __expectLong(output.Gid),
4010
- SecondaryGids: output.SecondaryGids !== undefined && output.SecondaryGids !== null
4011
- ? deserializeAws_restJson1SecondaryGids(output.SecondaryGids, context)
4012
- : undefined,
3981
+ SecondaryGids: output.SecondaryGids != null ? deserializeAws_restJson1SecondaryGids(output.SecondaryGids, context) : undefined,
4013
3982
  Uid: __expectLong(output.Uid),
4014
3983
  };
4015
3984
  };
4016
3985
  var deserializeAws_restJson1ReplicationConfigurationDescription = function (output, context) {
4017
3986
  return {
4018
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3987
+ CreationTime: output.CreationTime != null
4019
3988
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4020
3989
  : undefined,
4021
- Destinations: output.Destinations !== undefined && output.Destinations !== null
4022
- ? deserializeAws_restJson1Destinations(output.Destinations, context)
4023
- : undefined,
3990
+ Destinations: output.Destinations != null ? deserializeAws_restJson1Destinations(output.Destinations, context) : undefined,
4024
3991
  OriginalSourceFileSystemArn: __expectString(output.OriginalSourceFileSystemArn),
4025
3992
  SourceFileSystemArn: __expectString(output.SourceFileSystemArn),
4026
3993
  SourceFileSystemId: __expectString(output.SourceFileSystemId),
@@ -4041,9 +4008,7 @@ var deserializeAws_restJson1ReplicationConfigurationDescriptions = function (out
4041
4008
  var deserializeAws_restJson1ResourceIdPreference = function (output, context) {
4042
4009
  return {
4043
4010
  ResourceIdType: __expectString(output.ResourceIdType),
4044
- Resources: output.Resources !== undefined && output.Resources !== null
4045
- ? deserializeAws_restJson1Resources(output.Resources, context)
4046
- : undefined,
4011
+ Resources: output.Resources != null ? deserializeAws_restJson1Resources(output.Resources, context) : undefined,
4047
4012
  };
4048
4013
  };
4049
4014
  var deserializeAws_restJson1Resources = function (output, context) {
@@ -4059,9 +4024,7 @@ var deserializeAws_restJson1Resources = function (output, context) {
4059
4024
  };
4060
4025
  var deserializeAws_restJson1RootDirectory = function (output, context) {
4061
4026
  return {
4062
- CreationInfo: output.CreationInfo !== undefined && output.CreationInfo !== null
4063
- ? deserializeAws_restJson1CreationInfo(output.CreationInfo, context)
4064
- : undefined,
4027
+ CreationInfo: output.CreationInfo != null ? deserializeAws_restJson1CreationInfo(output.CreationInfo, context) : undefined,
4065
4028
  Path: __expectString(output.Path),
4066
4029
  };
4067
4030
  };
@@ -4142,6 +4105,9 @@ var loadRestJsonErrorCode = function (output, data) {
4142
4105
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4143
4106
  var sanitizeErrorCode = function (rawValue) {
4144
4107
  var cleanValue = rawValue;
4108
+ if (typeof cleanValue === "number") {
4109
+ cleanValue = cleanValue.toString();
4110
+ }
4145
4111
  if (cleanValue.indexOf(":") >= 0) {
4146
4112
  cleanValue = cleanValue.split(":")[0];
4147
4113
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-efs",
3
3
  "description": "AWS SDK for JavaScript Efs Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",