AWS SDK Version 3 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.

A description of the file system.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.ElasticFileSystem.Model.CreateFileSystemResponse

Namespace: Amazon.ElasticFileSystem.Model
Assembly: AWSSDK.ElasticFileSystem.dll
Version: 3.x.y.z

Syntax

C#
public class CreateFileSystemResponse : AmazonWebServiceResponse

The CreateFileSystemResponse type exposes the following members

Constructors

NameDescription
Public Method CreateFileSystemResponse()

Properties

NameTypeDescription
Public Property AvailabilityZoneId System.String

Gets and sets the property AvailabilityZoneId.

The unique and consistent identifier of the Availability Zone in which the file system is located, and is valid only for One Zone file systems. For example, use1-az1 is an Availability Zone ID for the us-east-1 Amazon Web Services Region, and it has the same location in every Amazon Web Services account.

Public Property AvailabilityZoneName System.String

Gets and sets the property AvailabilityZoneName.

Describes the Amazon Web Services Availability Zone in which the file system is located, and is valid only for One Zone file systems. For more information, see Using EFS storage classes in the Amazon EFS User Guide.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property CreationTime System.DateTime

Gets and sets the property CreationTime.

The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).

Public Property CreationToken System.String

Gets and sets the property CreationToken.

The opaque string specified in the request.

Public Property Encrypted System.Boolean

Gets and sets the property Encrypted.

A Boolean value that, if true, indicates that the file system is encrypted.

Public Property FileSystemArn System.String

Gets and sets the property FileSystemArn.

The Amazon Resource Name (ARN) for the EFS file system, in the format arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id. Example with sample data: arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567

Public Property FileSystemId System.String

Gets and sets the property FileSystemId.

The ID of the file system, assigned by Amazon EFS.

Public Property FileSystemProtection Amazon.ElasticFileSystem.Model.FileSystemProtectionDescription

Gets and sets the property FileSystemProtection.

Describes the protection on the file system.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property KmsKeyId System.String

Gets and sets the property KmsKeyId.

The ID of an KMS key used to protect the encrypted file system.

Public Property LifeCycleState Amazon.ElasticFileSystem.LifeCycleState

Gets and sets the property LifeCycleState.

The lifecycle phase of the file system.

Public Property Name System.String

Gets and sets the property Name.

You can add tags to a file system, including a Name tag. For more information, see CreateFileSystem. If the file system has a Name tag, Amazon EFS returns the value in this field.

Public Property NumberOfMountTargets System.Int32

Gets and sets the property NumberOfMountTargets.

The current number of mount targets that the file system has. For more information, see CreateMountTarget.

Public Property OwnerId System.String

Gets and sets the property OwnerId.

The Amazon Web Services account that created the file system.

Public Property PerformanceMode Amazon.ElasticFileSystem.PerformanceMode

Gets and sets the property PerformanceMode.

The Performance mode of the file system.

Public Property ProvisionedThroughputInMibps System.Double

Gets and sets the property ProvisionedThroughputInMibps.

The amount of provisioned throughput, measured in MiBps, for the file system. Valid for file systems using ThroughputMode set to provisioned.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property SizeInBytes Amazon.ElasticFileSystem.Model.FileSystemSize

Gets and sets the property SizeInBytes.

The latest known metered size (in bytes) of data stored in the file system, in its Value field, and the time at which that size was determined in its Timestamp field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. The SizeInBytes value doesn't represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, SizeInBytes represents actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size that the file system was at any point in time.

Public Property Tags System.Collections.Generic.List<Amazon.ElasticFileSystem.Model.Tag>

Gets and sets the property Tags.

The tags associated with the file system, presented as an array of Tag objects.

Public Property ThroughputMode Amazon.ElasticFileSystem.ThroughputMode

Gets and sets the property ThroughputMode.

Displays the file system's throughput mode. For more information, see Throughput modes in the Amazon EFS User Guide.

Examples

This operation creates a new, encrypted file system with automatic backups enabled, and the default generalpurpose performance mode.

To create a new file system


var client = new AmazonElasticFileSystemClient();
var response = client.CreateFileSystem(new CreateFileSystemRequest 
{
    Backup = true,
    CreationToken = "tokenstring",
    Encrypted = true,
    PerformanceMode = "generalPurpose",
    Tags = new List<Tag> {
        new Tag {
            Key = "Name",
            Value = "MyFileSystem"
        }
    }
});

DateTime creationTime = response.CreationTime;
string creationToken = response.CreationToken;
bool encrypted = response.Encrypted;
string fileSystemId = response.FileSystemId;
string lifeCycleState = response.LifeCycleState;
int numberOfMountTargets = response.NumberOfMountTargets;
string ownerId = response.OwnerId;
string performanceMode = response.PerformanceMode;
FileSystemSize sizeInBytes = response.SizeInBytes;
List<Tag> tags = response.Tags;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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