create_file_system_from_backup
¶
create_file_system_from_backup(
*,
config_overrides: Optional[FSxClientConfig] = 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/f_sx.py
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 | |