amazonka-appstream-1.6.0: Amazon AppStream SDK.

Copyright(c) 2013-2018 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.AppStream.TagResource

Contents

Description

Adds or overwrites one or more tags for the specified AppStream 2.0 resource. You can tag AppStream 2.0 image builders, images, fleets, and stacks.

Each tag consists of a key and an optional value. If a resource already has a tag with the same key, this operation updates its value.

To list the current tags for your resources, use ListTagsForResource . To disassociate tags from your resources, use UntagResource .

For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Developer Guide .

Synopsis

Creating a Request

tagResource #

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

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

  • trResourceARN - The Amazon Resource Name (ARN) of the resource.
  • trTags - The tags to associate. A tag is a key-value pair (the value is optional). For example, Environment=Test , or, if you do not specify a value, Environment= . If you do not specify a value, we set the value to an empty string.

data TagResource #

See: tagResource smart constructor.

Instances

Eq TagResource # 
Data TagResource # 

Methods

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

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

toConstr :: TagResource -> Constr #

dataTypeOf :: TagResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagResource # 
Show TagResource # 
Generic TagResource # 

Associated Types

type Rep TagResource :: * -> * #

Hashable TagResource # 
ToJSON TagResource # 
NFData TagResource # 

Methods

rnf :: TagResource -> () #

AWSRequest TagResource # 
ToHeaders TagResource # 

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource # 
ToQuery TagResource # 
type Rep TagResource # 
type Rep TagResource = D1 * (MetaData "TagResource" "Network.AWS.AppStream.TagResource" "amazonka-appstream-1.6.0-y8y45x8oYo6J4ypuRyPpf" False) (C1 * (MetaCons "TagResource'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_trResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_trTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Map Text Text)))))
type Rs TagResource # 

Request Lenses

trResourceARN :: Lens' TagResource Text #

The Amazon Resource Name (ARN) of the resource.

trTags :: Lens' TagResource (HashMap Text Text) #

The tags to associate. A tag is a key-value pair (the value is optional). For example, Environment=Test , or, if you do not specify a value, Environment= . If you do not specify a value, we set the value to an empty string.

Destructuring the Response

tagResourceResponse #

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

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

data TagResourceResponse #

See: tagResourceResponse smart constructor.

Instances

Eq TagResourceResponse # 
Data TagResourceResponse # 

Methods

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

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

toConstr :: TagResourceResponse -> Constr #

dataTypeOf :: TagResourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagResourceResponse # 
Show TagResourceResponse # 
Generic TagResourceResponse # 
NFData TagResourceResponse # 

Methods

rnf :: TagResourceResponse -> () #

type Rep TagResourceResponse # 
type Rep TagResourceResponse = D1 * (MetaData "TagResourceResponse" "Network.AWS.AppStream.TagResource" "amazonka-appstream-1.6.0-y8y45x8oYo6J4ypuRyPpf" True) (C1 * (MetaCons "TagResourceResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_trrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

trrsResponseStatus :: Lens' TagResourceResponse Int #

  • - | The response status code.