Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates a file share. This operation is only supported in the file gateway architecture.
Updates the following file share setting:
- 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
- updateNFSFileShare :: Text -> UpdateNFSFileShare
- data UpdateNFSFileShare
- unfsfsKMSKey :: Lens' UpdateNFSFileShare (Maybe Text)
- unfsfsKMSEncrypted :: Lens' UpdateNFSFileShare (Maybe Bool)
- unfsfsDefaultStorageClass :: Lens' UpdateNFSFileShare (Maybe Text)
- unfsfsSquash :: Lens' UpdateNFSFileShare (Maybe Text)
- unfsfsNFSFileShareDefaults :: Lens' UpdateNFSFileShare (Maybe NFSFileShareDefaults)
- unfsfsClientList :: Lens' UpdateNFSFileShare (Maybe (NonEmpty Text))
- unfsfsReadOnly :: Lens' UpdateNFSFileShare (Maybe Bool)
- unfsfsFileShareARN :: Lens' UpdateNFSFileShare Text
- updateNFSFileShareResponse :: Int -> UpdateNFSFileShareResponse
- data UpdateNFSFileShareResponse
- unfsfsrsFileShareARN :: Lens' UpdateNFSFileShareResponse (Maybe Text)
- unfsfsrsResponseStatus :: Lens' UpdateNFSFileShareResponse Int
Creating a Request
Creates a value of UpdateNFSFileShare
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
unfsfsKMSKey
- The KMS key used for Amazon S3 server side encryption. This value can only be set when KmsEncrypted is true. Optional.unfsfsKMSEncrypted
- 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.unfsfsDefaultStorageClass
- The default storage class for objects put into an Amazon S3 bucket by a 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.unfsfsSquash
- The user mapped 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.unfsfsNFSFileShareDefaults
- The default values for the file share. Optional.unfsfsClientList
- The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks.unfsfsReadOnly
- Sets the write status of a file share: "true" if the write status is read-only, otherwise "false".unfsfsFileShareARN
- The Amazon Resource Name (ARN) of the file share to be updated.
Request Lenses
unfsfsKMSKey :: Lens' UpdateNFSFileShare (Maybe Text) Source #
The KMS key used for Amazon S3 server side encryption. This value can only be set when KmsEncrypted is true. Optional.
unfsfsKMSEncrypted :: Lens' UpdateNFSFileShare (Maybe Bool) Source #
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.
unfsfsDefaultStorageClass :: Lens' UpdateNFSFileShare (Maybe Text) Source #
The default storage class for objects put into an Amazon S3 bucket by a 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.
unfsfsSquash :: Lens' UpdateNFSFileShare (Maybe Text) Source #
The user mapped 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.
unfsfsNFSFileShareDefaults :: Lens' UpdateNFSFileShare (Maybe NFSFileShareDefaults) Source #
The default values for the file share. Optional.
unfsfsClientList :: Lens' UpdateNFSFileShare (Maybe (NonEmpty Text)) Source #
The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks.
unfsfsReadOnly :: Lens' UpdateNFSFileShare (Maybe Bool) Source #
Sets the write status of a file share: "true" if the write status is read-only, otherwise "false".
unfsfsFileShareARN :: Lens' UpdateNFSFileShare Text Source #
The Amazon Resource Name (ARN) of the file share to be updated.
Destructuring the Response
updateNFSFileShareResponse Source #
Creates a value of UpdateNFSFileShareResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
unfsfsrsFileShareARN
- The Amazon Resource Name (ARN) of the updated file share.unfsfsrsResponseStatus
- -- | The response status code.
data UpdateNFSFileShareResponse Source #
UpdateNFSFileShareOutput
See: updateNFSFileShareResponse
smart constructor.
Response Lenses
unfsfsrsFileShareARN :: Lens' UpdateNFSFileShareResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the updated file share.
unfsfsrsResponseStatus :: Lens' UpdateNFSFileShareResponse Int Source #
- - | The response status code.