create_file_system
¶
create_file_system(
*,
config_overrides: Optional[FSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
file_system_type: Optional[FileSystemType] = None,
storage_capacity: Optional[StorageCapacity] = None,
storage_type: Optional[StorageType] = None,
subnet_ids: Optional[SubnetIds] = None,
security_group_ids: Optional[SecurityGroupIds] = None,
tags: Optional[Tags] = None,
kms_key_id: Optional[KmsKeyId] = None,
windows_configuration: Optional[CreateFileSystemWindowsConfiguration] = None,
lustre_configuration: Optional[CreateFileSystemLustreConfiguration] = None,
ontap_configuration: Optional[CreateFileSystemOntapConfiguration] = None,
file_system_type_version: Optional[FileSystemTypeVersion] = None,
open_zfs_configuration: Optional[CreateFileSystemOpenZFSConfiguration] = None,
network_type: Optional[NetworkType] = None,
) -> CreateFileSystemResponse
Creates a new, empty Amazon FSx file system. You can create the following supported Amazon FSx file systems using the CreateFileSystem API operation:
-
Amazon FSx for Lustre
-
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
This operation requires a client request token in the request that Amazon FSx uses to ensure idempotent creation. This means that calling the operation multiple times with the same client request token has no effect. By using the idempotent operation, you can retry a CreateFileSystem operation 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 success as long as the parameters are the same.
If a file system with the specified client request token exists and the parameters match, CreateFileSystem returns the description of the existing file system. If a file system with the specified client request token exists and the parameters don't match, this call returns IncompatibleParameterError. If a file system with the specified client request token doesn't exist, CreateFileSystem does the following:
-
Creates a new, empty Amazon FSx file system with an assigned ID, and an initial lifecycle state of
CREATING. -
Returns the description of the file system in JSON format.
The CreateFileSystem 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.
-
file_system_type(Optional[FileSystemType], default:None) –The type of Amazon FSx file system to create. Valid values are
WINDOWS,LUSTRE,ONTAP, andOPENZFS. -
storage_capacity(Optional[StorageCapacity], default:None) –Sets the storage capacity of the file system that you're creating, in gibibytes (GiB).
FSx for Lustre file systems - The amount of storage capacity that you can configure depends on the value that you set for
StorageTypeand the LustreDeploymentType, as follows:-
For
SCRATCH_2,PERSISTENT_2, andPERSISTENT_1deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. -
For
PERSISTENT_1HDD file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems. -
For
SCRATCH_1deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.
FSx for ONTAP file systems - The amount of storage capacity that you can configure depends on the value of the
HAPairsproperty. The minimum value is calculated as 1,024 *HAPairsand the maximum is calculated as 524,288 *HAPairs.FSx for OpenZFS file systems - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB).
FSx for Windows File Server file systems - The amount of storage capacity that you can configure depends on the value that you set for
StorageTypeas follows:-
For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).
-
For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).
-
-
storage_type(Optional[StorageType], default:None) –Sets the storage class for the file system that you're creating. Valid values are
SSD,HDD, andINTELLIGENT_TIERING.-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types. -
Set to
HDDto use hard disk drive storage, which is supported onSINGLE_AZ_2andMULTI_AZ_1Windows file system deployment types, and onPERSISTENT_1Lustre 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.
Default value is
SSD. For more information, see Storage type options in the FSx for Windows File Server User Guide, FSx for Lustre storage classes in the FSx for Lustre User Guide, and Working with Intelligent-Tiering in the Amazon FSx for OpenZFS User Guide. -
-
subnet_ids(Optional[SubnetIds], default:None) –Specifies the IDs of the subnets that the file system will be accessible from. For Windows and ONTAP
MULTI_AZ_1deployment 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 > PreferredSubnetIDorOntapConfiguration > PreferredSubnetIDproperties. For more information about Multi-AZ file system configuration, see Availability and durability: Single-AZ and Multi-AZ file systems in the Amazon FSx for Windows User Guide and Availability and durability in the Amazon FSx for ONTAP User Guide.For Windows
SINGLE_AZ_1andSINGLE_AZ_2and all Lustre deployment types, 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 specifying the security groups to apply to all network interfaces created for file system access. This list isn't returned in later requests to describe the file system.
You must specify a security group if you are creating a Multi-AZ FSx for ONTAP file system in a VPC subnet that has been shared with you.
-
tags(Optional[Tags], default:None) –The tags to apply to the file system that's being created. The key value of the
Nametag appears in the console as the file system name. -
windows_configuration(Optional[CreateFileSystemWindowsConfiguration], default:None) –The Microsoft Windows configuration for the file system that's being created.
-
file_system_type_version(Optional[FileSystemTypeVersion], default:None) –For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating. Valid values are
2.10,2.12, and2.15:-
2.10is supported by the Scratch and Persistent_1 Lustre deployment types. -
2.12is supported by all Lustre deployment types, except forPERSISTENT_2with a metadata configuration mode. -
2.15is supported by all Lustre deployment types and is recommended for all new file systems.
Default value is
2.10, except for the following deployments:-
Default value is
2.12whenDeploymentTypeis set toPERSISTENT_2without a metadata configuration mode. -
Default value is
2.15whenDeploymentTypeis set toPERSISTENT_2with a metadata configuration mode.
-
-
open_zfs_configuration(Optional[CreateFileSystemOpenZFSConfiguration], default:None) –The OpenZFS configuration for the file system that's being created.
-
network_type(Optional[NetworkType], default:None) –The network type of the Amazon FSx file system that you are creating. Valid values are
IPV4(which supports IPv4 only) andDUAL(for dual-stack mode, which supports both IPv4 and IPv6). The default isIPV4. Supported for FSx for OpenZFS, FSx for ONTAP, and FSx for Windows File Server file systems.
Raises:
-
ActiveDirectoryError–An Active Directory error.
-
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.
-
InvalidExportPath–The path provided for data repository export isn't valid.
-
InvalidImportPath–The path provided for data repository import isn't valid.
-
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
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 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 | |