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.

Container for the parameters to the CreateNFSFileShare operation. Creates a file share on an existing file gateway. In Storage Gateway, a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway exposes file shares using a Network File System (NFS) interface. This operation is only supported in the file gateway architecture.

File gateway requires AWS Security Token Service (AWS STS) to be activated to enable you create a file share. Make sure AWS STS is activated in the region you are creating your file gateway in. If AWS STS is not activated in the region, activate it. For information about how to activate AWS STS, see Activating and Deactivating AWS STS in an AWS Region in the AWS Identity and Access Management User Guide.

File gateway does not support creating hard or symbolic links on a file share.

Inheritance Hierarchy


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


public class CreateNFSFileShareRequest : AmazonStorageGatewayRequest

The CreateNFSFileShareRequest type exposes the following members


Public Method CreateNFSFileShareRequest()


Public Property ClientList System.Collections.Generic.List<System.String>

Gets and sets the property ClientList.

The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks.

Public Property ClientToken System.String

Gets and sets the property ClientToken.

A unique string value that you supply that is used by file gateway to ensure idempotent file share creation.

Public Property DefaultStorageClass System.String

Gets and sets the property DefaultStorageClass.

The default storage class for objects put into an Amazon S3 bucket by file gateway. Possible values are S3_STANDARD or S3_STANDARD_IA. If this field is not populated, the default value S3_STANDARD is used. Optional.

Public Property GatewayARN System.String

Gets and sets the property GatewayARN.

The Amazon Resource Name (ARN) of the file gateway on which you want to create a file share.

Public Property KMSEncrypted System.Boolean

Gets and sets the property KMSEncrypted.

True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

Public Property KMSKey System.String

Gets and sets the property KMSKey.

The KMS key used for Amazon S3 server side encryption. This value can only be set when KmsEncrypted is true. Optional.

Public Property LocationARN System.String

Gets and sets the property LocationARN.

The ARN of the backed storage used for storing file data.

Public Property NFSFileShareDefaults Amazon.StorageGateway.Model.NFSFileShareDefaults

Gets and sets the property NFSFileShareDefaults.

File share default values. Optional.

Public Property ReadOnly System.Boolean

Gets and sets the property ReadOnly.

Sets the write status of a file share: "true" if the write status is read-only, and otherwise "false".

Public Property Role System.String

Gets and sets the property Role.

The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.

Public Property Squash System.String

Gets and sets the property Squash.

Maps a user to anonymous user. Valid options are the following:

  • "RootSquash" - Only root is mapped to anonymous user.

  • "NoSquash" - No one is mapped to anonymous user.

  • "AllSquash" - Everyone is mapped to anonymous user.

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms