amazonka-efs-1.4.5: Amazon Elastic File System SDK.

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

Network.AWS.EFS.CreateTags

Contents

Description

Creates or overwrites tags associated with a file system. Each tag is a key-value pair. If a tag key specified in the request already exists on the file system, this operation overwrites its value with the value provided in the request. If you add the Name tag to your file system, Amazon EFS returns it in the response to the DescribeFileSystems operation.

This operation requires permission for the elasticfilesystem:CreateTags action.

Synopsis

Creating a Request

createTags #

Creates a value of CreateTags with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ctFileSystemId - ID of the file system whose tags you want to modify (String). This operation modifies the tags only, not the file system.
  • ctTags - Array of Tag objects to add. Each Tag object is a key-value pair.

data CreateTags #

See: createTags smart constructor.

Instances

Eq CreateTags # 
Data CreateTags # 

Methods

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

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

toConstr :: CreateTags -> Constr #

dataTypeOf :: CreateTags -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateTags # 
Show CreateTags # 
Generic CreateTags # 

Associated Types

type Rep CreateTags :: * -> * #

Hashable CreateTags # 
ToJSON CreateTags # 
NFData CreateTags # 

Methods

rnf :: CreateTags -> () #

AWSRequest CreateTags # 
ToQuery CreateTags # 
ToPath CreateTags # 
ToHeaders CreateTags # 

Methods

toHeaders :: CreateTags -> [Header] #

type Rep CreateTags # 
type Rep CreateTags = D1 (MetaData "CreateTags" "Network.AWS.EFS.CreateTags" "amazonka-efs-1.4.5-CIZ9ZRSiO7R8wPXU6nBzmB" False) (C1 (MetaCons "CreateTags'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ctFileSystemId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ctTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Tag]))))
type Rs CreateTags # 

Request Lenses

ctFileSystemId :: Lens' CreateTags Text #

ID of the file system whose tags you want to modify (String). This operation modifies the tags only, not the file system.

ctTags :: Lens' CreateTags [Tag] #

Array of Tag objects to add. Each Tag object is a key-value pair.

Destructuring the Response

createTagsResponse :: CreateTagsResponse #

Creates a value of CreateTagsResponse with the minimum fields required to make a request.

data CreateTagsResponse #

See: createTagsResponse smart constructor.

Instances

Eq CreateTagsResponse # 
Data CreateTagsResponse # 

Methods

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

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

toConstr :: CreateTagsResponse -> Constr #

dataTypeOf :: CreateTagsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateTagsResponse # 
Show CreateTagsResponse # 
Generic CreateTagsResponse # 
NFData CreateTagsResponse # 

Methods

rnf :: CreateTagsResponse -> () #

type Rep CreateTagsResponse # 
type Rep CreateTagsResponse = D1 (MetaData "CreateTagsResponse" "Network.AWS.EFS.CreateTags" "amazonka-efs-1.4.5-CIZ9ZRSiO7R8wPXU6nBzmB" False) (C1 (MetaCons "CreateTagsResponse'" PrefixI False) U1)