Copyright | (c) 2013-2018 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 type.
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)
- unfsfsObjectACL :: Lens' UpdateNFSFileShare (Maybe ObjectACL)
- unfsfsKMSEncrypted :: Lens' UpdateNFSFileShare (Maybe Bool)
- unfsfsDefaultStorageClass :: Lens' UpdateNFSFileShare (Maybe Text)
- unfsfsSquash :: Lens' UpdateNFSFileShare (Maybe Text)
- unfsfsRequesterPays :: Lens' UpdateNFSFileShare (Maybe Bool)
- unfsfsNFSFileShareDefaults :: Lens' UpdateNFSFileShare (Maybe NFSFileShareDefaults)
- unfsfsClientList :: Lens' UpdateNFSFileShare (Maybe (NonEmpty Text))
- unfsfsGuessMIMETypeEnabled :: Lens' UpdateNFSFileShare (Maybe Bool)
- 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.unfsfsObjectACL
- Sets the access control list permission for objects in the S3 bucket that a file gateway puts objects into. The default value is "private".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.unfsfsRequesterPays
- Sets who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to true if you want the requester to pay instead of the bucket owner, and otherwise to false.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.unfsfsGuessMIMETypeEnabled
- Enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, and otherwise to false. The default value is true.unfsfsReadOnly
- Sets the write status of a file share. This value is true if the write status is read-only, and 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.
unfsfsObjectACL :: Lens' UpdateNFSFileShare (Maybe ObjectACL) Source #
Sets the access control list permission for objects in the S3 bucket that a file gateway puts objects into. The default value is "private".
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.
unfsfsRequesterPays :: Lens' UpdateNFSFileShare (Maybe Bool) Source #
Sets who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to true if you want the requester to pay instead of the bucket owner, and otherwise to false.
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.
unfsfsGuessMIMETypeEnabled :: Lens' UpdateNFSFileShare (Maybe Bool) Source #
Enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, and otherwise to false. The default value is true.
unfsfsReadOnly :: Lens' UpdateNFSFileShare (Maybe Bool) Source #
Sets the write status of a file share. This value is true if the write status is read-only, and 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.