| 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 |
Network.AWS.ResourceGroups.Tag
Description
Adds specified tags to a resource with the specified ARN. Existing tags on a resource are not changed if they are not specified in the request parameters.
Synopsis
- tag :: Text -> Tag
- data Tag
- tagARN :: Lens' Tag Text
- tagTags :: Lens' Tag (HashMap Text Text)
- tagResponse :: Int -> TagResponse
- data TagResponse
- tagrsARN :: Lens' TagResponse (Maybe Text)
- tagrsTags :: Lens' TagResponse (HashMap Text Text)
- tagrsResponseStatus :: Lens' TagResponse Int
Creating a Request
Creates a value of Tag with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
See: tag smart constructor.
Instances
| Eq Tag Source # | |
| Data Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Tag -> c Tag # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Tag # dataTypeOf :: Tag -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Tag) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Tag) # gmapT :: (forall b. Data b => b -> b) -> Tag -> Tag # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Tag -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Tag -> r # gmapQ :: (forall d. Data d => d -> u) -> Tag -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Tag -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Tag -> m Tag # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Tag -> m Tag # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Tag -> m Tag # | |
| Read Tag Source # | |
| Show Tag Source # | |
| Generic Tag Source # | |
| Hashable Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag | |
| ToJSON Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag | |
| AWSRequest Tag Source # | |
| ToHeaders Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag | |
| ToPath Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag Methods toPath :: Tag -> ByteString # | |
| ToQuery Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag Methods toQuery :: Tag -> QueryString # | |
| NFData Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag | |
| type Rep Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag type Rep Tag = D1 (MetaData "Tag" "Network.AWS.ResourceGroups.Tag" "amazonka-resourcegroups-1.6.1-ESIAO7l4Zjz1j0LGvWxGeP" False) (C1 (MetaCons "Tag'" PrefixI True) (S1 (MetaSel (Just "_tagARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tagTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text)))) | |
| type Rs Tag Source # | |
Defined in Network.AWS.ResourceGroups.Tag | |
Request Lenses
tagTags :: Lens' Tag (HashMap Text Text) Source #
The tags to add to the specified resource. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.
Destructuring the Response
Arguments
| :: Int | |
| -> TagResponse |
Creates a value of TagResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tagrsARN- The ARN of the tagged resource.tagrsTags- The tags that have been added to the specified resource.tagrsResponseStatus- -- | The response status code.
data TagResponse Source #
See: tagResponse smart constructor.
Instances
Response Lenses
tagrsTags :: Lens' TagResponse (HashMap Text Text) Source #
The tags that have been added to the specified resource.
tagrsResponseStatus :: Lens' TagResponse Int Source #
- - | The response status code.