@aws-sdk/client-efs 3.52.0 → 3.53.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.
@@ -1,11 +1,12 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { EFSServiceException as __BaseException } from "./EFSServiceException";
2
3
  /**
3
4
  * <p>Returned if the access point you are trying to create already exists, with the
4
5
  * creation token you provided in the request.</p>
5
6
  */
6
- export interface AccessPointAlreadyExists extends __SmithyException, $MetadataBearer {
7
- name: "AccessPointAlreadyExists";
8
- $fault: "client";
7
+ export declare class AccessPointAlreadyExists extends __BaseException {
8
+ readonly name: "AccessPointAlreadyExists";
9
+ readonly $fault: "client";
9
10
  /**
10
11
  * <p>The error code is a string that uniquely identifies an error condition.
11
12
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -20,6 +21,10 @@ export interface AccessPointAlreadyExists extends __SmithyException, $MetadataBe
20
21
  */
21
22
  Message?: string;
22
23
  AccessPointId: string | undefined;
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<AccessPointAlreadyExists, __BaseException>);
23
28
  }
24
29
  export declare enum LifeCycleState {
25
30
  AVAILABLE = "available",
@@ -195,9 +200,9 @@ export declare namespace AccessPointDescription {
195
200
  * <p>Returned if the Amazon Web Services account has already created the maximum number of access points
196
201
  * allowed per file system.</p>
197
202
  */
198
- export interface AccessPointLimitExceeded extends __SmithyException, $MetadataBearer {
199
- name: "AccessPointLimitExceeded";
200
- $fault: "client";
203
+ export declare class AccessPointLimitExceeded extends __BaseException {
204
+ readonly name: "AccessPointLimitExceeded";
205
+ readonly $fault: "client";
201
206
  /**
202
207
  * <p>The error code is a string that uniquely identifies an error condition.
203
208
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -211,14 +216,18 @@ export interface AccessPointLimitExceeded extends __SmithyException, $MetadataBe
211
216
  * more likely to ignore the error message.</p>
212
217
  */
213
218
  Message?: string;
219
+ /**
220
+ * @internal
221
+ */
222
+ constructor(opts: __ExceptionOptionType<AccessPointLimitExceeded, __BaseException>);
214
223
  }
215
224
  /**
216
225
  * <p>Returned if the specified <code>AccessPointId</code> value doesn't exist in the
217
226
  * requester's Amazon Web Services account.</p>
218
227
  */
219
- export interface AccessPointNotFound extends __SmithyException, $MetadataBearer {
220
- name: "AccessPointNotFound";
221
- $fault: "client";
228
+ export declare class AccessPointNotFound extends __BaseException {
229
+ readonly name: "AccessPointNotFound";
230
+ readonly $fault: "client";
222
231
  /**
223
232
  * <p>The error code is a string that uniquely identifies an error condition.
224
233
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -232,14 +241,18 @@ export interface AccessPointNotFound extends __SmithyException, $MetadataBearer
232
241
  * more likely to ignore the error message.</p>
233
242
  */
234
243
  Message?: string;
244
+ /**
245
+ * @internal
246
+ */
247
+ constructor(opts: __ExceptionOptionType<AccessPointNotFound, __BaseException>);
235
248
  }
236
249
  /**
237
250
  * <p>Returned if the Availability Zone that was specified for a mount target is different from the Availability Zone that was specified for One Zone storage classes.
238
251
  * For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html">Regional and One Zone storage redundancy</a>.</p>
239
252
  */
240
- export interface AvailabilityZonesMismatch extends __SmithyException, $MetadataBearer {
241
- name: "AvailabilityZonesMismatch";
242
- $fault: "client";
253
+ export declare class AvailabilityZonesMismatch extends __BaseException {
254
+ readonly name: "AvailabilityZonesMismatch";
255
+ readonly $fault: "client";
243
256
  /**
244
257
  * <p>The error code is a string that uniquely identifies an error condition.
245
258
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -253,6 +266,10 @@ export interface AvailabilityZonesMismatch extends __SmithyException, $MetadataB
253
266
  * more likely to ignore the error message.</p>
254
267
  */
255
268
  Message?: string;
269
+ /**
270
+ * @internal
271
+ */
272
+ constructor(opts: __ExceptionOptionType<AvailabilityZonesMismatch, __BaseException>);
256
273
  }
257
274
  export declare enum Status {
258
275
  DISABLED = "DISABLED",
@@ -318,9 +335,9 @@ export declare namespace BackupPolicyDescription {
318
335
  * <p>Returned if the request is malformed or contains an error such as an invalid
319
336
  * parameter value or a missing required parameter.</p>
320
337
  */
321
- export interface BadRequest extends __SmithyException, $MetadataBearer {
322
- name: "BadRequest";
323
- $fault: "client";
338
+ export declare class BadRequest extends __BaseException {
339
+ readonly name: "BadRequest";
340
+ readonly $fault: "client";
324
341
  /**
325
342
  * <p>The error code is a string that uniquely identifies an error condition.
326
343
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -334,6 +351,10 @@ export interface BadRequest extends __SmithyException, $MetadataBearer {
334
351
  * more likely to ignore the error message.</p>
335
352
  */
336
353
  Message?: string;
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts: __ExceptionOptionType<BadRequest, __BaseException>);
337
358
  }
338
359
  export interface CreateAccessPointRequest {
339
360
  /**
@@ -379,9 +400,9 @@ export declare namespace CreateAccessPointRequest {
379
400
  * <p>Returned if the specified <code>FileSystemId</code> value doesn't exist in the
380
401
  * requester's Amazon Web Services account.</p>
381
402
  */
382
- export interface FileSystemNotFound extends __SmithyException, $MetadataBearer {
383
- name: "FileSystemNotFound";
384
- $fault: "client";
403
+ export declare class FileSystemNotFound extends __BaseException {
404
+ readonly name: "FileSystemNotFound";
405
+ readonly $fault: "client";
385
406
  /**
386
407
  * <p>The error code is a string that uniquely identifies an error condition.
387
408
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -395,13 +416,17 @@ export interface FileSystemNotFound extends __SmithyException, $MetadataBearer {
395
416
  * more likely to ignore the error message.</p>
396
417
  */
397
418
  Message?: string;
419
+ /**
420
+ * @internal
421
+ */
422
+ constructor(opts: __ExceptionOptionType<FileSystemNotFound, __BaseException>);
398
423
  }
399
424
  /**
400
425
  * <p>Returned if the file system's lifecycle state is not "available".</p>
401
426
  */
402
- export interface IncorrectFileSystemLifeCycleState extends __SmithyException, $MetadataBearer {
403
- name: "IncorrectFileSystemLifeCycleState";
404
- $fault: "client";
427
+ export declare class IncorrectFileSystemLifeCycleState extends __BaseException {
428
+ readonly name: "IncorrectFileSystemLifeCycleState";
429
+ readonly $fault: "client";
405
430
  /**
406
431
  * <p>The error code is a string that uniquely identifies an error condition.
407
432
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -415,13 +440,17 @@ export interface IncorrectFileSystemLifeCycleState extends __SmithyException, $M
415
440
  * more likely to ignore the error message.</p>
416
441
  */
417
442
  Message?: string;
443
+ /**
444
+ * @internal
445
+ */
446
+ constructor(opts: __ExceptionOptionType<IncorrectFileSystemLifeCycleState, __BaseException>);
418
447
  }
419
448
  /**
420
449
  * <p>Returned if an error occurred on the server side.</p>
421
450
  */
422
- export interface InternalServerError extends __SmithyException, $MetadataBearer {
423
- name: "InternalServerError";
424
- $fault: "server";
451
+ export declare class InternalServerError extends __BaseException {
452
+ readonly name: "InternalServerError";
453
+ readonly $fault: "server";
425
454
  /**
426
455
  * <p>The error code is a string that uniquely identifies an error condition.
427
456
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -435,6 +464,10 @@ export interface InternalServerError extends __SmithyException, $MetadataBearer
435
464
  * more likely to ignore the error message.</p>
436
465
  */
437
466
  Message?: string;
467
+ /**
468
+ * @internal
469
+ */
470
+ constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
438
471
  }
439
472
  export declare enum PerformanceMode {
440
473
  GENERAL_PURPOSE = "generalPurpose",
@@ -563,9 +596,9 @@ export declare namespace CreateFileSystemRequest {
563
596
  * <p>Returned if the file system you are trying to create already exists, with the
564
597
  * creation token you provided.</p>
565
598
  */
566
- export interface FileSystemAlreadyExists extends __SmithyException, $MetadataBearer {
567
- name: "FileSystemAlreadyExists";
568
- $fault: "client";
599
+ export declare class FileSystemAlreadyExists extends __BaseException {
600
+ readonly name: "FileSystemAlreadyExists";
601
+ readonly $fault: "client";
569
602
  /**
570
603
  * <p>The error code is a string that uniquely identifies an error condition.
571
604
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -580,6 +613,10 @@ export interface FileSystemAlreadyExists extends __SmithyException, $MetadataBea
580
613
  */
581
614
  Message?: string;
582
615
  FileSystemId: string | undefined;
616
+ /**
617
+ * @internal
618
+ */
619
+ constructor(opts: __ExceptionOptionType<FileSystemAlreadyExists, __BaseException>);
583
620
  }
584
621
  /**
585
622
  * <p>The latest known metered size (in bytes) of data stored in the file system, in its
@@ -725,9 +762,9 @@ export declare namespace FileSystemDescription {
725
762
  * <p>Returned if the Amazon Web Services account has already created the maximum number of file systems
726
763
  * allowed per account.</p>
727
764
  */
728
- export interface FileSystemLimitExceeded extends __SmithyException, $MetadataBearer {
729
- name: "FileSystemLimitExceeded";
730
- $fault: "client";
765
+ export declare class FileSystemLimitExceeded extends __BaseException {
766
+ readonly name: "FileSystemLimitExceeded";
767
+ readonly $fault: "client";
731
768
  /**
732
769
  * <p>The error code is a string that uniquely identifies an error condition.
733
770
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -741,6 +778,10 @@ export interface FileSystemLimitExceeded extends __SmithyException, $MetadataBea
741
778
  * more likely to ignore the error message.</p>
742
779
  */
743
780
  Message?: string;
781
+ /**
782
+ * @internal
783
+ */
784
+ constructor(opts: __ExceptionOptionType<FileSystemLimitExceeded, __BaseException>);
744
785
  }
745
786
  /**
746
787
  * <p>Returned if there's not enough capacity to provision additional throughput. This value
@@ -749,9 +790,9 @@ export interface FileSystemLimitExceeded extends __SmithyException, $MetadataBea
749
790
  * when you attempt to change an existing file system from bursting to provisioned
750
791
  * throughput mode. Try again later.</p>
751
792
  */
752
- export interface InsufficientThroughputCapacity extends __SmithyException, $MetadataBearer {
753
- name: "InsufficientThroughputCapacity";
754
- $fault: "server";
793
+ export declare class InsufficientThroughputCapacity extends __BaseException {
794
+ readonly name: "InsufficientThroughputCapacity";
795
+ readonly $fault: "server";
755
796
  /**
756
797
  * <p>The error code is a string that uniquely identifies an error condition.
757
798
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -765,14 +806,18 @@ export interface InsufficientThroughputCapacity extends __SmithyException, $Meta
765
806
  * more likely to ignore the error message.</p>
766
807
  */
767
808
  Message?: string;
809
+ /**
810
+ * @internal
811
+ */
812
+ constructor(opts: __ExceptionOptionType<InsufficientThroughputCapacity, __BaseException>);
768
813
  }
769
814
  /**
770
815
  * <p>Returned if the throughput mode or amount of provisioned throughput can't be changed
771
816
  * because the throughput limit of 1024 MiB/s has been reached.</p>
772
817
  */
773
- export interface ThroughputLimitExceeded extends __SmithyException, $MetadataBearer {
774
- name: "ThroughputLimitExceeded";
775
- $fault: "client";
818
+ export declare class ThroughputLimitExceeded extends __BaseException {
819
+ readonly name: "ThroughputLimitExceeded";
820
+ readonly $fault: "client";
776
821
  /**
777
822
  * <p>The error code is a string that uniquely identifies an error condition.
778
823
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -786,13 +831,17 @@ export interface ThroughputLimitExceeded extends __SmithyException, $MetadataBea
786
831
  * more likely to ignore the error message.</p>
787
832
  */
788
833
  Message?: string;
834
+ /**
835
+ * @internal
836
+ */
837
+ constructor(opts: __ExceptionOptionType<ThroughputLimitExceeded, __BaseException>);
789
838
  }
790
839
  /**
791
840
  * <p>Returned if the requested Amazon EFS functionality is not available in the specified Availability Zone.</p>
792
841
  */
793
- export interface UnsupportedAvailabilityZone extends __SmithyException, $MetadataBearer {
794
- name: "UnsupportedAvailabilityZone";
795
- $fault: "client";
842
+ export declare class UnsupportedAvailabilityZone extends __BaseException {
843
+ readonly name: "UnsupportedAvailabilityZone";
844
+ readonly $fault: "client";
796
845
  /**
797
846
  * <p>The error code is a string that uniquely identifies an error condition.
798
847
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -806,6 +855,10 @@ export interface UnsupportedAvailabilityZone extends __SmithyException, $Metadat
806
855
  * more likely to ignore the error message.</p>
807
856
  */
808
857
  Message?: string;
858
+ /**
859
+ * @internal
860
+ */
861
+ constructor(opts: __ExceptionOptionType<UnsupportedAvailabilityZone, __BaseException>);
809
862
  }
810
863
  /**
811
864
  * <p></p>
@@ -840,9 +893,9 @@ export declare namespace CreateMountTargetRequest {
840
893
  * <p>Returned if the request specified an <code>IpAddress</code> that is already in use
841
894
  * in the subnet.</p>
842
895
  */
843
- export interface IpAddressInUse extends __SmithyException, $MetadataBearer {
844
- name: "IpAddressInUse";
845
- $fault: "client";
896
+ export declare class IpAddressInUse extends __BaseException {
897
+ readonly name: "IpAddressInUse";
898
+ readonly $fault: "client";
846
899
  /**
847
900
  * <p>The error code is a string that uniquely identifies an error condition.
848
901
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -856,14 +909,18 @@ export interface IpAddressInUse extends __SmithyException, $MetadataBearer {
856
909
  * more likely to ignore the error message.</p>
857
910
  */
858
911
  Message?: string;
912
+ /**
913
+ * @internal
914
+ */
915
+ constructor(opts: __ExceptionOptionType<IpAddressInUse, __BaseException>);
859
916
  }
860
917
  /**
861
918
  * <p>Returned if the mount target would violate one of the specified restrictions based
862
919
  * on the file system's existing mount targets.</p>
863
920
  */
864
- export interface MountTargetConflict extends __SmithyException, $MetadataBearer {
865
- name: "MountTargetConflict";
866
- $fault: "client";
921
+ export declare class MountTargetConflict extends __BaseException {
922
+ readonly name: "MountTargetConflict";
923
+ readonly $fault: "client";
867
924
  /**
868
925
  * <p>The error code is a string that uniquely identifies an error condition.
869
926
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -877,6 +934,10 @@ export interface MountTargetConflict extends __SmithyException, $MetadataBearer
877
934
  * more likely to ignore the error message.</p>
878
935
  */
879
936
  Message?: string;
937
+ /**
938
+ * @internal
939
+ */
940
+ constructor(opts: __ExceptionOptionType<MountTargetConflict, __BaseException>);
880
941
  }
881
942
  /**
882
943
  * <p>Provides a description of a mount target.</p>
@@ -940,9 +1001,9 @@ export declare namespace MountTargetDescription {
940
1001
  * in the <i>Amazon VPC User Guide </i> (see the Network interfaces per VPC
941
1002
  * entry in the table). </p>
942
1003
  */
943
- export interface NetworkInterfaceLimitExceeded extends __SmithyException, $MetadataBearer {
944
- name: "NetworkInterfaceLimitExceeded";
945
- $fault: "client";
1004
+ export declare class NetworkInterfaceLimitExceeded extends __BaseException {
1005
+ readonly name: "NetworkInterfaceLimitExceeded";
1006
+ readonly $fault: "client";
946
1007
  /**
947
1008
  * <p>The error code is a string that uniquely identifies an error condition.
948
1009
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -956,14 +1017,18 @@ export interface NetworkInterfaceLimitExceeded extends __SmithyException, $Metad
956
1017
  * more likely to ignore the error message.</p>
957
1018
  */
958
1019
  Message?: string;
1020
+ /**
1021
+ * @internal
1022
+ */
1023
+ constructor(opts: __ExceptionOptionType<NetworkInterfaceLimitExceeded, __BaseException>);
959
1024
  }
960
1025
  /**
961
1026
  * <p>Returned if <code>IpAddress</code> was not specified in the request and there are
962
1027
  * no free IP addresses in the subnet.</p>
963
1028
  */
964
- export interface NoFreeAddressesInSubnet extends __SmithyException, $MetadataBearer {
965
- name: "NoFreeAddressesInSubnet";
966
- $fault: "client";
1029
+ export declare class NoFreeAddressesInSubnet extends __BaseException {
1030
+ readonly name: "NoFreeAddressesInSubnet";
1031
+ readonly $fault: "client";
967
1032
  /**
968
1033
  * <p>The error code is a string that uniquely identifies an error condition.
969
1034
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -977,14 +1042,18 @@ export interface NoFreeAddressesInSubnet extends __SmithyException, $MetadataBea
977
1042
  * more likely to ignore the error message.</p>
978
1043
  */
979
1044
  Message?: string;
1045
+ /**
1046
+ * @internal
1047
+ */
1048
+ constructor(opts: __ExceptionOptionType<NoFreeAddressesInSubnet, __BaseException>);
980
1049
  }
981
1050
  /**
982
1051
  * <p>Returned if the size of <code>SecurityGroups</code> specified in the request is
983
1052
  * greater than five.</p>
984
1053
  */
985
- export interface SecurityGroupLimitExceeded extends __SmithyException, $MetadataBearer {
986
- name: "SecurityGroupLimitExceeded";
987
- $fault: "client";
1054
+ export declare class SecurityGroupLimitExceeded extends __BaseException {
1055
+ readonly name: "SecurityGroupLimitExceeded";
1056
+ readonly $fault: "client";
988
1057
  /**
989
1058
  * <p>The error code is a string that uniquely identifies an error condition.
990
1059
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -998,14 +1067,18 @@ export interface SecurityGroupLimitExceeded extends __SmithyException, $Metadata
998
1067
  * more likely to ignore the error message.</p>
999
1068
  */
1000
1069
  Message?: string;
1070
+ /**
1071
+ * @internal
1072
+ */
1073
+ constructor(opts: __ExceptionOptionType<SecurityGroupLimitExceeded, __BaseException>);
1001
1074
  }
1002
1075
  /**
1003
1076
  * <p>Returned if one of the specified security groups doesn't exist in the subnet's
1004
1077
  * VPC.</p>
1005
1078
  */
1006
- export interface SecurityGroupNotFound extends __SmithyException, $MetadataBearer {
1007
- name: "SecurityGroupNotFound";
1008
- $fault: "client";
1079
+ export declare class SecurityGroupNotFound extends __BaseException {
1080
+ readonly name: "SecurityGroupNotFound";
1081
+ readonly $fault: "client";
1009
1082
  /**
1010
1083
  * <p>The error code is a string that uniquely identifies an error condition.
1011
1084
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1019,14 +1092,18 @@ export interface SecurityGroupNotFound extends __SmithyException, $MetadataBeare
1019
1092
  * more likely to ignore the error message.</p>
1020
1093
  */
1021
1094
  Message?: string;
1095
+ /**
1096
+ * @internal
1097
+ */
1098
+ constructor(opts: __ExceptionOptionType<SecurityGroupNotFound, __BaseException>);
1022
1099
  }
1023
1100
  /**
1024
1101
  * <p>Returned if there is no subnet with ID <code>SubnetId</code> provided in the
1025
1102
  * request.</p>
1026
1103
  */
1027
- export interface SubnetNotFound extends __SmithyException, $MetadataBearer {
1028
- name: "SubnetNotFound";
1029
- $fault: "client";
1104
+ export declare class SubnetNotFound extends __BaseException {
1105
+ readonly name: "SubnetNotFound";
1106
+ readonly $fault: "client";
1030
1107
  /**
1031
1108
  * <p>The error code is a string that uniquely identifies an error condition.
1032
1109
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1040,6 +1117,10 @@ export interface SubnetNotFound extends __SmithyException, $MetadataBearer {
1040
1117
  * more likely to ignore the error message.</p>
1041
1118
  */
1042
1119
  Message?: string;
1120
+ /**
1121
+ * @internal
1122
+ */
1123
+ constructor(opts: __ExceptionOptionType<SubnetNotFound, __BaseException>);
1043
1124
  }
1044
1125
  /**
1045
1126
  * <p>Describes the destination file system to create in the replication configuration.</p>
@@ -1175,9 +1256,9 @@ export declare namespace ReplicationConfigurationDescription {
1175
1256
  /**
1176
1257
  * <p>Returned if the specified file system did not have a replication configuration.</p>
1177
1258
  */
1178
- export interface ReplicationNotFound extends __SmithyException, $MetadataBearer {
1179
- name: "ReplicationNotFound";
1180
- $fault: "client";
1259
+ export declare class ReplicationNotFound extends __BaseException {
1260
+ readonly name: "ReplicationNotFound";
1261
+ readonly $fault: "client";
1181
1262
  /**
1182
1263
  * <p>ReplicationNotFound</p>
1183
1264
  */
@@ -1190,13 +1271,17 @@ export interface ReplicationNotFound extends __SmithyException, $MetadataBearer
1190
1271
  * more likely to ignore the error message.</p>
1191
1272
  */
1192
1273
  Message?: string;
1274
+ /**
1275
+ * @internal
1276
+ */
1277
+ constructor(opts: __ExceptionOptionType<ReplicationNotFound, __BaseException>);
1193
1278
  }
1194
1279
  /**
1195
1280
  * <p>Returned if the Backup service is not available in the Amazon Web Services Region in which the request was made.</p>
1196
1281
  */
1197
- export interface ValidationException extends __SmithyException, $MetadataBearer {
1198
- name: "ValidationException";
1199
- $fault: "client";
1282
+ export declare class ValidationException extends __BaseException {
1283
+ readonly name: "ValidationException";
1284
+ readonly $fault: "client";
1200
1285
  /**
1201
1286
  * <p>The error code is a string that uniquely identifies an error condition.
1202
1287
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1210,6 +1295,10 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
1210
1295
  * more likely to ignore the error message.</p>
1211
1296
  */
1212
1297
  Message?: string;
1298
+ /**
1299
+ * @internal
1300
+ */
1301
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
1213
1302
  }
1214
1303
  /**
1215
1304
  * <p></p>
@@ -1262,9 +1351,9 @@ export declare namespace DeleteFileSystemRequest {
1262
1351
  /**
1263
1352
  * <p>Returned if a file system has mount targets.</p>
1264
1353
  */
1265
- export interface FileSystemInUse extends __SmithyException, $MetadataBearer {
1266
- name: "FileSystemInUse";
1267
- $fault: "client";
1354
+ export declare class FileSystemInUse extends __BaseException {
1355
+ readonly name: "FileSystemInUse";
1356
+ readonly $fault: "client";
1268
1357
  /**
1269
1358
  * <p>The error code is a string that uniquely identifies an error condition.
1270
1359
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1278,6 +1367,10 @@ export interface FileSystemInUse extends __SmithyException, $MetadataBearer {
1278
1367
  * more likely to ignore the error message.</p>
1279
1368
  */
1280
1369
  Message?: string;
1370
+ /**
1371
+ * @internal
1372
+ */
1373
+ constructor(opts: __ExceptionOptionType<FileSystemInUse, __BaseException>);
1281
1374
  }
1282
1375
  export interface DeleteFileSystemPolicyRequest {
1283
1376
  /**
@@ -1310,9 +1403,9 @@ export declare namespace DeleteMountTargetRequest {
1310
1403
  * <p>The service timed out trying to fulfill the request, and the client should try the
1311
1404
  * call again.</p>
1312
1405
  */
1313
- export interface DependencyTimeout extends __SmithyException, $MetadataBearer {
1314
- name: "DependencyTimeout";
1315
- $fault: "server";
1406
+ export declare class DependencyTimeout extends __BaseException {
1407
+ readonly name: "DependencyTimeout";
1408
+ readonly $fault: "server";
1316
1409
  /**
1317
1410
  * <p>The error code is a string that uniquely identifies an error condition.
1318
1411
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1326,14 +1419,18 @@ export interface DependencyTimeout extends __SmithyException, $MetadataBearer {
1326
1419
  * more likely to ignore the error message.</p>
1327
1420
  */
1328
1421
  Message?: string;
1422
+ /**
1423
+ * @internal
1424
+ */
1425
+ constructor(opts: __ExceptionOptionType<DependencyTimeout, __BaseException>);
1329
1426
  }
1330
1427
  /**
1331
1428
  * <p>Returned if there is no mount target with the specified ID found in the
1332
1429
  * caller's Amazon Web Services account.</p>
1333
1430
  */
1334
- export interface MountTargetNotFound extends __SmithyException, $MetadataBearer {
1335
- name: "MountTargetNotFound";
1336
- $fault: "client";
1431
+ export declare class MountTargetNotFound extends __BaseException {
1432
+ readonly name: "MountTargetNotFound";
1433
+ readonly $fault: "client";
1337
1434
  /**
1338
1435
  * <p>The error code is a string that uniquely identifies an error condition.
1339
1436
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1347,6 +1444,10 @@ export interface MountTargetNotFound extends __SmithyException, $MetadataBearer
1347
1444
  * more likely to ignore the error message.</p>
1348
1445
  */
1349
1446
  Message?: string;
1447
+ /**
1448
+ * @internal
1449
+ */
1450
+ constructor(opts: __ExceptionOptionType<MountTargetNotFound, __BaseException>);
1350
1451
  }
1351
1452
  export interface DeleteReplicationConfigurationRequest {
1352
1453
  /**
@@ -1502,9 +1603,9 @@ export declare namespace DescribeBackupPolicyRequest {
1502
1603
  /**
1503
1604
  * <p>Returned if the default file system policy is in effect for the EFS file system specified.</p>
1504
1605
  */
1505
- export interface PolicyNotFound extends __SmithyException, $MetadataBearer {
1506
- name: "PolicyNotFound";
1507
- $fault: "client";
1606
+ export declare class PolicyNotFound extends __BaseException {
1607
+ readonly name: "PolicyNotFound";
1608
+ readonly $fault: "client";
1508
1609
  /**
1509
1610
  * <p>The error code is a string that uniquely identifies an error condition.
1510
1611
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1518,6 +1619,10 @@ export interface PolicyNotFound extends __SmithyException, $MetadataBearer {
1518
1619
  * more likely to ignore the error message.</p>
1519
1620
  */
1520
1621
  Message?: string;
1622
+ /**
1623
+ * @internal
1624
+ */
1625
+ constructor(opts: __ExceptionOptionType<PolicyNotFound, __BaseException>);
1521
1626
  }
1522
1627
  export interface DescribeFileSystemPolicyRequest {
1523
1628
  /**
@@ -1766,9 +1871,9 @@ export declare namespace DescribeMountTargetSecurityGroupsResponse {
1766
1871
  * <p>Returned if the mount target is not in the correct state for the
1767
1872
  * operation.</p>
1768
1873
  */
1769
- export interface IncorrectMountTargetState extends __SmithyException, $MetadataBearer {
1770
- name: "IncorrectMountTargetState";
1771
- $fault: "client";
1874
+ export declare class IncorrectMountTargetState extends __BaseException {
1875
+ readonly name: "IncorrectMountTargetState";
1876
+ readonly $fault: "client";
1772
1877
  /**
1773
1878
  * <p>The error code is a string that uniquely identifies an error condition.
1774
1879
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1782,6 +1887,10 @@ export interface IncorrectMountTargetState extends __SmithyException, $MetadataB
1782
1887
  * more likely to ignore the error message.</p>
1783
1888
  */
1784
1889
  Message?: string;
1890
+ /**
1891
+ * @internal
1892
+ */
1893
+ constructor(opts: __ExceptionOptionType<IncorrectMountTargetState, __BaseException>);
1785
1894
  }
1786
1895
  export interface DescribeReplicationConfigurationsRequest {
1787
1896
  /**
@@ -1881,9 +1990,9 @@ export declare namespace DescribeTagsResponse {
1881
1990
  * <p>Returned if the <code>FileSystemPolicy</code> is is malformed or contains an error such as an invalid
1882
1991
  * parameter value or a missing required parameter. Returned in the case of a policy lockout safety check error.</p>
1883
1992
  */
1884
- export interface InvalidPolicyException extends __SmithyException, $MetadataBearer {
1885
- name: "InvalidPolicyException";
1886
- $fault: "client";
1993
+ export declare class InvalidPolicyException extends __BaseException {
1994
+ readonly name: "InvalidPolicyException";
1995
+ readonly $fault: "client";
1887
1996
  /**
1888
1997
  * <p>The error code is a string that uniquely identifies an error condition.
1889
1998
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -1897,6 +2006,10 @@ export interface InvalidPolicyException extends __SmithyException, $MetadataBear
1897
2006
  * more likely to ignore the error message.</p>
1898
2007
  */
1899
2008
  Message?: string;
2009
+ /**
2010
+ * @internal
2011
+ */
2012
+ constructor(opts: __ExceptionOptionType<InvalidPolicyException, __BaseException>);
1900
2013
  }
1901
2014
  export interface ListTagsForResourceRequest {
1902
2015
  /**
@@ -2102,9 +2215,9 @@ export declare namespace UntagResourceRequest {
2102
2215
  * <p>Returned if you don’t wait at least 24 hours before changing the throughput mode, or
2103
2216
  * decreasing the Provisioned Throughput value.</p>
2104
2217
  */
2105
- export interface TooManyRequests extends __SmithyException, $MetadataBearer {
2106
- name: "TooManyRequests";
2107
- $fault: "client";
2218
+ export declare class TooManyRequests extends __BaseException {
2219
+ readonly name: "TooManyRequests";
2220
+ readonly $fault: "client";
2108
2221
  /**
2109
2222
  * <p>The error code is a string that uniquely identifies an error condition.
2110
2223
  * It is meant to be read and understood by programs that detect and handle errors by type. </p>
@@ -2118,6 +2231,10 @@ export interface TooManyRequests extends __SmithyException, $MetadataBearer {
2118
2231
  * more likely to ignore the error message.</p>
2119
2232
  */
2120
2233
  Message?: string;
2234
+ /**
2235
+ * @internal
2236
+ */
2237
+ constructor(opts: __ExceptionOptionType<TooManyRequests, __BaseException>);
2121
2238
  }
2122
2239
  export interface UpdateFileSystemRequest {
2123
2240
  /**
@@ -3,3 +3,4 @@ export * from "./EFSClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { EFSServiceException } from "./models/EFSServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class EFSServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }