AWS Tools for Windows PowerShell
Command 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.

Synopsis

Calls the AWS Storage Gateway UpdateNFSFileShare API operation.

Syntax

Update-SGNFSFileShare
-FileShareARN <String>
-AuditDestinationARN <String>
-CacheAttributes_CacheStaleTimeoutInSecond <Int32>
-ClientList <String[]>
-DefaultStorageClass <String>
-NFSFileShareDefaults_DirectoryMode <String>
-NFSFileShareDefaults_FileMode <String>
-FileShareName <String>
-NFSFileShareDefaults_GroupId <Int64>
-GuessMIMETypeEnabled <Boolean>
-KMSEncrypted <Boolean>
-KMSKey <String>
-NotificationPolicy <String>
-ObjectACL <ObjectACL>
-NFSFileShareDefaults_OwnerId <Int64>
-ReadOnly <Boolean>
-RequesterPay <Boolean>
-Squash <String>
-Select <String>
-PassThru <SwitchParameter>
-Force <SwitchParameter>
-ClientConfig <AmazonStorageGatewayConfig>

Description

Updates a Network File System (NFS) file share. This operation is only supported in S3 File Gateways. To leave a file share field unchanged, set the corresponding input field to null. Updates the following file share settings:
  • Default storage class for your S3 bucket
  • Metadata defaults for your S3 bucket
  • Allowed NFS clients for your file share
  • Squash settings
  • Write status of your file share

Parameters

-AuditDestinationARN <String>
The Amazon Resource Name (ARN) of the storage used for audit logs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-CacheAttributes_CacheStaleTimeoutInSecond <Int32>
Refreshes a file share's cache by using Time To Live (TTL). TTL is the length of time since the last refresh after which access to the directory would cause the file gateway to first refresh that directory's contents from the Amazon S3 bucket or Amazon FSx file system. The TTL duration is in seconds.Valid Values:0, 300 to 2,592,000 seconds (5 minutes to 30 days)
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesCacheAttributes_CacheStaleTimeoutInSeconds
Amazon.PowerShell.Cmdlets.SG.AmazonStorageGatewayClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientList <String[]>
The list of clients that are allowed to access the S3 File Gateway. The list must contain either valid IP addresses or valid CIDR blocks.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-DefaultStorageClass <String>
The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is S3_STANDARD. Optional.Valid Values: S3_STANDARD | S3_INTELLIGENT_TIERING | S3_STANDARD_IA | S3_ONEZONE_IA
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-FileShareARN <String>
The Amazon Resource Name (ARN) of the file share to be updated.
Required?True
Position?1
Accept pipeline input?True (ByValue, ByPropertyName)
-FileShareName <String>
The name of the file share. Optional.FileShareName must be set if an S3 prefix name is set in LocationARN, or if an access point or access point alias is used.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-GuessMIMETypeEnabled <Boolean>
A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, otherwise set to false. The default value is true.Valid Values: true | false
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-KMSEncrypted <Boolean>
Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3. Optional.Valid Values: true | false
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-KMSKey <String>
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value can only be set when KMSEncrypted is true. Optional.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NFSFileShareDefaults_DirectoryMode <String>
The Unix directory mode in the form "nnnn". For example, 0666 represents the default access mode for all directories inside the file share. The default value is 0777.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NFSFileShareDefaults_FileMode <String>
The Unix file mode in the form "nnnn". For example, 0666 represents the default file mode inside the file share. The default value is 0666.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NFSFileShareDefaults_GroupId <Int64>
The default group ID for the file share (unless the files have another group ID specified). The default value is nfsnobody.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NFSFileShareDefaults_OwnerId <Int64>
The default owner ID for files in the file share (unless the files have another owner ID specified). The default value is nfsnobody.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NotificationPolicy <String>
The notification policy of the file share. SettlingTimeInSeconds controls the number of seconds to wait after the last point in time a client wrote to a file before generating an ObjectUploaded notification. Because clients can make many small writes to files, it's best to set this parameter for as long as possible to avoid generating multiple notifications for the same file in a small time period.SettlingTimeInSeconds has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.The following example sets NotificationPolicy on with SettlingTimeInSeconds set to 60.{\"Upload\": {\"SettlingTimeInSeconds\": 60}}The following example sets NotificationPolicy off.{}
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ObjectACL <ObjectACL>
A value that sets the access control list (ACL) permission for objects in the S3 bucket that a S3 File Gateway puts objects into. The default value is private.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PassThru <SwitchParameter>
Changes the cmdlet behavior to return the value passed to the FileShareARN parameter. The -PassThru parameter is deprecated, use -Select '^FileShareARN' instead. This parameter will be removed in a future version.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ReadOnly <Boolean>
A value that sets the write status of a file share. Set this value to true to set the write status to read-only, otherwise set to false.Valid Values: true | false
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-RequesterPay <Boolean>
A value that sets who pays the cost of the request and the cost associated with data download from the S3 bucket. If this value is set to true, the requester pays the costs; otherwise, the S3 bucket owner pays. However, the S3 bucket owner always pays the cost of storing data.RequesterPays is a configuration for the S3 bucket that backs the file share, so make sure that the configuration on the file share is the same as the S3 bucket configuration.Valid Values: true | false
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRequesterPays
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is 'FileShareARN'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.StorageGateway.Model.UpdateNFSFileShareResponse). Specifying the name of a property of type Amazon.StorageGateway.Model.UpdateNFSFileShareResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Squash <String>
The user mapped to anonymous user.Valid values 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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns a System.String object. The service call response (type Amazon.StorageGateway.Model.UpdateNFSFileShareResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack.

Supported Version

AWS Tools for PowerShell: 2.x.y.z