amazonka-storagegateway-1.5.0: Amazon Storage Gateway SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.StorageGateway.UpdateNFSFileShare

Contents

Description

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

Synopsis

Creating a Request

updateNFSFileShare Source #

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.

data UpdateNFSFileShare Source #

UpdateNFSFileShareInput

See: updateNFSFileShare smart constructor.

Instances

Eq UpdateNFSFileShare Source # 
Data UpdateNFSFileShare Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateNFSFileShare -> c UpdateNFSFileShare #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateNFSFileShare #

toConstr :: UpdateNFSFileShare -> Constr #

dataTypeOf :: UpdateNFSFileShare -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateNFSFileShare) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateNFSFileShare) #

gmapT :: (forall b. Data b => b -> b) -> UpdateNFSFileShare -> UpdateNFSFileShare #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateNFSFileShare -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateNFSFileShare -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateNFSFileShare -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateNFSFileShare -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateNFSFileShare -> m UpdateNFSFileShare #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateNFSFileShare -> m UpdateNFSFileShare #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateNFSFileShare -> m UpdateNFSFileShare #

Read UpdateNFSFileShare Source # 
Show UpdateNFSFileShare Source # 
Generic UpdateNFSFileShare Source # 
Hashable UpdateNFSFileShare Source # 
ToJSON UpdateNFSFileShare Source # 
NFData UpdateNFSFileShare Source # 

Methods

rnf :: UpdateNFSFileShare -> () #

AWSRequest UpdateNFSFileShare Source # 
ToQuery UpdateNFSFileShare Source # 
ToPath UpdateNFSFileShare Source # 
ToHeaders UpdateNFSFileShare Source # 
type Rep UpdateNFSFileShare Source # 
type Rep UpdateNFSFileShare = D1 (MetaData "UpdateNFSFileShare" "Network.AWS.StorageGateway.UpdateNFSFileShare" "amazonka-storagegateway-1.5.0-Dl0pEQb6pvFBwTkfuWFwCu" False) (C1 (MetaCons "UpdateNFSFileShare'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_unfsfsKMSKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_unfsfsKMSEncrypted") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_unfsfsDefaultStorageClass") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_unfsfsSquash") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_unfsfsNFSFileShareDefaults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NFSFileShareDefaults))) (S1 (MetaSel (Just Symbol "_unfsfsClientList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_unfsfsReadOnly") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_unfsfsFileShareARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs UpdateNFSFileShare Source # 

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:

data UpdateNFSFileShareResponse Source #

UpdateNFSFileShareOutput

See: updateNFSFileShareResponse smart constructor.

Instances

Eq UpdateNFSFileShareResponse Source # 
Data UpdateNFSFileShareResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateNFSFileShareResponse -> c UpdateNFSFileShareResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateNFSFileShareResponse #

toConstr :: UpdateNFSFileShareResponse -> Constr #

dataTypeOf :: UpdateNFSFileShareResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateNFSFileShareResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateNFSFileShareResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateNFSFileShareResponse -> UpdateNFSFileShareResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateNFSFileShareResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateNFSFileShareResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateNFSFileShareResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateNFSFileShareResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateNFSFileShareResponse -> m UpdateNFSFileShareResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateNFSFileShareResponse -> m UpdateNFSFileShareResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateNFSFileShareResponse -> m UpdateNFSFileShareResponse #

Read UpdateNFSFileShareResponse Source # 
Show UpdateNFSFileShareResponse Source # 
Generic UpdateNFSFileShareResponse Source # 
NFData UpdateNFSFileShareResponse Source # 
type Rep UpdateNFSFileShareResponse Source # 
type Rep UpdateNFSFileShareResponse = D1 (MetaData "UpdateNFSFileShareResponse" "Network.AWS.StorageGateway.UpdateNFSFileShare" "amazonka-storagegateway-1.5.0-Dl0pEQb6pvFBwTkfuWFwCu" False) (C1 (MetaCons "UpdateNFSFileShareResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_unfsfsrsFileShareARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_unfsfsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

unfsfsrsFileShareARN :: Lens' UpdateNFSFileShareResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the updated file share.