AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
Creates a new, empty file system. The operation requires a creation token in the request that Amazon EFS uses to ensure idempotent creation (calling the operation with same creation token has no effect). If a file system does not currently exist that is owned by the caller's AWS account with the specified creation token, this operation does the following:

Otherwise, this operation returns a FileSystemAlreadyExists error with the ID of the existing file system.

For basic use cases, you can use a randomly generated UUID for the creation token.

The idempotent operation allows you to retry a CreateFileSystem call without risk of creating an extra file system. This can happen when an initial call fails in a way that leaves it uncertain whether or not a file system was actually created. An example might be that a transport level timeout occurred or your connection was reset. As long as you use the same creation token, if the initial call had succeeded in creating a file system, the client can learn of its existence from the FileSystemAlreadyExists error.

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 API, which among other things returns the file system state.

After the file system is fully created, Amazon EFS sets its lifecycle state to "available", at which point you can create one or more mount targets for the file system (CreateMountTarget) in your VPC. You mount your Amazon EFS file system on an EC2 instances in your VPC via the mount target. For more information, see Amazon EFS: How it Works

This operation requires permission for the elasticfilesystem:CreateFileSystem action.

Namespace: Amazon.ElasticFileSystem
Assembly: AWSSDK.dll
Version: (assembly version)


public abstract CreateFileSystemResponse CreateFileSystem(
         String creationToken


Type: System.String

String of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation.

Return Value
Type: Amazon.ElasticFileSystem.Model.CreateFileSystemResponse
The response from the CreateFileSystem service method, as returned by ElasticFileSystem.


BadRequestException Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter.
FileSystemAlreadyExistsException Returned if the file system you are trying to create already exists, with the creation token you provided.
FileSystemLimitExceededException Returned if the AWS account has already created maximum number of file systems allowed per account.
InternalServerErrorException Returned if an error occurred on the server side.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5