create_file_system_from_backup
async
¶
create_file_system_from_backup(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
backup_id: Optional[BackupId] = None,
client_request_token: Optional[ClientRequestToken] = None,
subnet_ids: Optional[SubnetIds] = None,
security_group_ids: Optional[SecurityGroupIds] = None,
tags: Optional[Tags] = None,
windows_configuration: Optional[CreateFileSystemWindowsConfiguration] = None,
lustre_configuration: Optional[CreateFileSystemLustreConfiguration] = None,
storage_type: Optional[StorageType] = None,
kms_key_id: Optional[KmsKeyId] = None,
file_system_type_version: Optional[FileSystemTypeVersion] = None,
open_zfs_configuration: Optional[CreateFileSystemOpenZFSConfiguration] = None,
storage_capacity: Optional[StorageCapacity] = None,
network_type: Optional[NetworkType] = None,
) -> CreateFileSystemFromBackupResponse
Creates a new Amazon FSx for Lustre, Amazon FSx for Windows File Server, or Amazon FSx for OpenZFS file system from an existing Amazon FSx backup.
If a file system with the specified client request token exists and the parameters match, this operation returns the description of the file system. If a file system with the specified client request token exists but the parameters don't match, this call returns IncompatibleParameterError. If a file system with the specified client request token doesn't exist, this operation does the following:
-
Creates a new Amazon FSx file system from backup with an assigned ID, and an initial lifecycle state of
CREATING. -
Returns the description of the file system.
Parameters like the Active Directory, default share name, automatic backup, and backup settings default to the parameters of the file system that was backed up, unless overridden. You can explicitly supply other settings.
By using the idempotent operation, you can retry a CreateFileSystemFromBackup call without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives a success message as long as the parameters are the same.
The CreateFileSystemFromBackup call returns while the file system's lifecycle state is still CREATING. You can check the file-system creation status by calling the DescribeFileSystems operation, which returns the file system state along with other information.
Parameters:
-
client_request_token(Optional[ClientRequestToken], default:None) –A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
-
subnet_ids(Optional[SubnetIds], default:None) –Specifies the IDs of the subnets that the file system will be accessible from. For Windows
MULTI_AZ_1file system deployment types, provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using theWindowsConfiguration > PreferredSubnetIDproperty.Windows
SINGLE_AZ_1andSINGLE_AZ_2file system deployment types, Lustre file systems, and OpenZFS file systems provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone. -
security_group_ids(Optional[SecurityGroupIds], default:None) –A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups apply to all network interfaces. This value isn't returned in later
DescribeFileSystemrequests. -
tags(Optional[Tags], default:None) –The tags to be applied to the file system at file system creation. The key value of the
Nametag appears in the console as the file system name. -
windows_configuration(Optional[CreateFileSystemWindowsConfiguration], default:None) –The configuration for this Microsoft Windows file system.
-
storage_type(Optional[StorageType], default:None) –Sets the storage type for the Windows, OpenZFS, or Lustre file system that you're creating from a backup. Valid values are
SSD,HDD, andINTELLIGENT_TIERING.-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types. -
Set to
HDDto use hard disk drive storage. HDD is supported onSINGLE_AZ_2andMULTI_AZ_1FSx for Windows File Server file system deployment types. -
Set to
INTELLIGENT_TIERINGto use fully elastic, intelligently-tiered storage. Intelligent-Tiering is only available for OpenZFS file systems with the Multi-AZ deployment type and for Lustre file systems with the Persistent_2 deployment type.
The default value is
SSD.HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.
-
-
file_system_type_version(Optional[FileSystemTypeVersion], default:None) –Sets the version for the Amazon FSx for Lustre file system that you're creating from a backup. Valid values are
2.10,2.12, and2.15.You can enter a Lustre version that is newer than the backup's
FileSystemTypeVersionsetting. If you don't enter a newer Lustre version, it defaults to the backup's setting. -
open_zfs_configuration(Optional[CreateFileSystemOpenZFSConfiguration], default:None) –The OpenZFS configuration for the file system that's being created.
-
storage_capacity(Optional[StorageCapacity], default:None) –Sets the storage capacity of the OpenZFS file system that you're creating from a backup, in gibibytes (GiB). Valid values are from 64 GiB up to 524,288 GiB (512 TiB). However, the value that you specify must be equal to or greater than the backup's storage capacity value. If you don't use the
StorageCapacityparameter, the default is the backup'sStorageCapacityvalue.If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
StorageCapacityvalue. If you provide any other value, Amazon FSx responds with an HTTP status code 400 Bad Request. -
network_type(Optional[NetworkType], default:None) –Sets the network type for the Amazon FSx for OpenZFS file system that you're creating from a backup.
Raises:
-
ActiveDirectoryError–An Active Directory error.
-
BackupNotFound–No Amazon FSx backups were found based upon the supplied parameters.
-
BadRequest–A generic error indicating a failure with a client request.
-
IncompatibleParameterError–The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError–A generic error indicating a server-side failure.
-
InvalidNetworkSettings–One or more network settings specified in the request are invalid.
-
InvalidPerUnitStorageThroughput–An invalid value for
PerUnitStorageThroughputwas provided. Please create your file system again, using a valid value. -
MissingFileSystemConfiguration–A file system configuration is required for this operation.
-
ServiceLimitExceeded–An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/async_f_sx.py
1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 | |