{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DynamoDB.ListTagsOfResource
(
ListTagsOfResource (..),
newListTagsOfResource,
listTagsOfResource_nextToken,
listTagsOfResource_resourceArn,
ListTagsOfResourceResponse (..),
newListTagsOfResourceResponse,
listTagsOfResourceResponse_nextToken,
listTagsOfResourceResponse_tags,
listTagsOfResourceResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DynamoDB.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListTagsOfResource = ListTagsOfResource'
{
ListTagsOfResource -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTagsOfResource -> Text
resourceArn :: Prelude.Text
}
deriving (ListTagsOfResource -> ListTagsOfResource -> Bool
(ListTagsOfResource -> ListTagsOfResource -> Bool)
-> (ListTagsOfResource -> ListTagsOfResource -> Bool)
-> Eq ListTagsOfResource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTagsOfResource -> ListTagsOfResource -> Bool
$c/= :: ListTagsOfResource -> ListTagsOfResource -> Bool
== :: ListTagsOfResource -> ListTagsOfResource -> Bool
$c== :: ListTagsOfResource -> ListTagsOfResource -> Bool
Prelude.Eq, ReadPrec [ListTagsOfResource]
ReadPrec ListTagsOfResource
Int -> ReadS ListTagsOfResource
ReadS [ListTagsOfResource]
(Int -> ReadS ListTagsOfResource)
-> ReadS [ListTagsOfResource]
-> ReadPrec ListTagsOfResource
-> ReadPrec [ListTagsOfResource]
-> Read ListTagsOfResource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTagsOfResource]
$creadListPrec :: ReadPrec [ListTagsOfResource]
readPrec :: ReadPrec ListTagsOfResource
$creadPrec :: ReadPrec ListTagsOfResource
readList :: ReadS [ListTagsOfResource]
$creadList :: ReadS [ListTagsOfResource]
readsPrec :: Int -> ReadS ListTagsOfResource
$creadsPrec :: Int -> ReadS ListTagsOfResource
Prelude.Read, Int -> ListTagsOfResource -> ShowS
[ListTagsOfResource] -> ShowS
ListTagsOfResource -> String
(Int -> ListTagsOfResource -> ShowS)
-> (ListTagsOfResource -> String)
-> ([ListTagsOfResource] -> ShowS)
-> Show ListTagsOfResource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTagsOfResource] -> ShowS
$cshowList :: [ListTagsOfResource] -> ShowS
show :: ListTagsOfResource -> String
$cshow :: ListTagsOfResource -> String
showsPrec :: Int -> ListTagsOfResource -> ShowS
$cshowsPrec :: Int -> ListTagsOfResource -> ShowS
Prelude.Show, (forall x. ListTagsOfResource -> Rep ListTagsOfResource x)
-> (forall x. Rep ListTagsOfResource x -> ListTagsOfResource)
-> Generic ListTagsOfResource
forall x. Rep ListTagsOfResource x -> ListTagsOfResource
forall x. ListTagsOfResource -> Rep ListTagsOfResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTagsOfResource x -> ListTagsOfResource
$cfrom :: forall x. ListTagsOfResource -> Rep ListTagsOfResource x
Prelude.Generic)
newListTagsOfResource ::
Prelude.Text ->
ListTagsOfResource
newListTagsOfResource :: Text -> ListTagsOfResource
newListTagsOfResource Text
pResourceArn_ =
ListTagsOfResource' :: Maybe Text -> Text -> ListTagsOfResource
ListTagsOfResource'
{ $sel:nextToken:ListTagsOfResource' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceArn:ListTagsOfResource' :: Text
resourceArn = Text
pResourceArn_
}
listTagsOfResource_nextToken :: Lens.Lens' ListTagsOfResource (Prelude.Maybe Prelude.Text)
listTagsOfResource_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTagsOfResource -> f ListTagsOfResource
listTagsOfResource_nextToken = (ListTagsOfResource -> Maybe Text)
-> (ListTagsOfResource -> Maybe Text -> ListTagsOfResource)
-> Lens
ListTagsOfResource ListTagsOfResource (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsOfResource' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTagsOfResource' :: ListTagsOfResource -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTagsOfResource
s@ListTagsOfResource' {} Maybe Text
a -> ListTagsOfResource
s {$sel:nextToken:ListTagsOfResource' :: Maybe Text
nextToken = Maybe Text
a} :: ListTagsOfResource)
listTagsOfResource_resourceArn :: Lens.Lens' ListTagsOfResource Prelude.Text
listTagsOfResource_resourceArn :: (Text -> f Text) -> ListTagsOfResource -> f ListTagsOfResource
listTagsOfResource_resourceArn = (ListTagsOfResource -> Text)
-> (ListTagsOfResource -> Text -> ListTagsOfResource)
-> Lens ListTagsOfResource ListTagsOfResource Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsOfResource' {Text
resourceArn :: Text
$sel:resourceArn:ListTagsOfResource' :: ListTagsOfResource -> Text
resourceArn} -> Text
resourceArn) (\s :: ListTagsOfResource
s@ListTagsOfResource' {} Text
a -> ListTagsOfResource
s {$sel:resourceArn:ListTagsOfResource' :: Text
resourceArn = Text
a} :: ListTagsOfResource)
instance Core.AWSPager ListTagsOfResource where
page :: ListTagsOfResource
-> AWSResponse ListTagsOfResource -> Maybe ListTagsOfResource
page ListTagsOfResource
rq AWSResponse ListTagsOfResource
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTagsOfResource
ListTagsOfResourceResponse
rs
ListTagsOfResourceResponse
-> Getting (First Text) ListTagsOfResourceResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagsOfResourceResponse
-> Const (First Text) ListTagsOfResourceResponse
Lens' ListTagsOfResourceResponse (Maybe Text)
listTagsOfResourceResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagsOfResourceResponse
-> Const (First Text) ListTagsOfResourceResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTagsOfResourceResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTagsOfResource
forall a. Maybe a
Prelude.Nothing
| Maybe [Tag] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTagsOfResource
ListTagsOfResourceResponse
rs
ListTagsOfResourceResponse
-> Getting (First [Tag]) ListTagsOfResourceResponse [Tag]
-> Maybe [Tag]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Tag] -> Const (First [Tag]) (Maybe [Tag]))
-> ListTagsOfResourceResponse
-> Const (First [Tag]) ListTagsOfResourceResponse
Lens' ListTagsOfResourceResponse (Maybe [Tag])
listTagsOfResourceResponse_tags ((Maybe [Tag] -> Const (First [Tag]) (Maybe [Tag]))
-> ListTagsOfResourceResponse
-> Const (First [Tag]) ListTagsOfResourceResponse)
-> (([Tag] -> Const (First [Tag]) [Tag])
-> Maybe [Tag] -> Const (First [Tag]) (Maybe [Tag]))
-> Getting (First [Tag]) ListTagsOfResourceResponse [Tag]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Tag] -> Const (First [Tag]) [Tag])
-> Maybe [Tag] -> Const (First [Tag]) (Maybe [Tag])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTagsOfResource
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTagsOfResource -> Maybe ListTagsOfResource
forall a. a -> Maybe a
Prelude.Just (ListTagsOfResource -> Maybe ListTagsOfResource)
-> ListTagsOfResource -> Maybe ListTagsOfResource
forall a b. (a -> b) -> a -> b
Prelude.$
ListTagsOfResource
rq
ListTagsOfResource
-> (ListTagsOfResource -> ListTagsOfResource) -> ListTagsOfResource
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTagsOfResource -> Identity ListTagsOfResource
Lens
ListTagsOfResource ListTagsOfResource (Maybe Text) (Maybe Text)
listTagsOfResource_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListTagsOfResource -> Identity ListTagsOfResource)
-> Maybe Text -> ListTagsOfResource -> ListTagsOfResource
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTagsOfResource
ListTagsOfResourceResponse
rs
ListTagsOfResourceResponse
-> Getting (First Text) ListTagsOfResourceResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagsOfResourceResponse
-> Const (First Text) ListTagsOfResourceResponse
Lens' ListTagsOfResourceResponse (Maybe Text)
listTagsOfResourceResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagsOfResourceResponse
-> Const (First Text) ListTagsOfResourceResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTagsOfResourceResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListTagsOfResource where
type
AWSResponse ListTagsOfResource =
ListTagsOfResourceResponse
request :: ListTagsOfResource -> Request ListTagsOfResource
request = Service -> ListTagsOfResource -> Request ListTagsOfResource
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListTagsOfResource
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTagsOfResource)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTagsOfResource))
-> Logger
-> Service
-> Proxy ListTagsOfResource
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTagsOfResource)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Maybe [Tag] -> Int -> ListTagsOfResourceResponse
ListTagsOfResourceResponse'
(Maybe Text -> Maybe [Tag] -> Int -> ListTagsOfResourceResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Tag] -> Int -> ListTagsOfResourceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Maybe [Tag] -> Int -> ListTagsOfResourceResponse)
-> Either String (Maybe [Tag])
-> Either String (Int -> ListTagsOfResourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Tag]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe [Tag]))
-> Maybe [Tag] -> Either String (Maybe [Tag])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Tag]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListTagsOfResourceResponse)
-> Either String Int -> Either String ListTagsOfResourceResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListTagsOfResource
instance Prelude.NFData ListTagsOfResource
instance Core.ToHeaders ListTagsOfResource where
toHeaders :: ListTagsOfResource -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListTagsOfResource -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"DynamoDB_20120810.ListTagsOfResource" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListTagsOfResource where
toJSON :: ListTagsOfResource -> Value
toJSON ListTagsOfResource' {Maybe Text
Text
resourceArn :: Text
nextToken :: Maybe Text
$sel:resourceArn:ListTagsOfResource' :: ListTagsOfResource -> Text
$sel:nextToken:ListTagsOfResource' :: ListTagsOfResource -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceArn)
]
)
instance Core.ToPath ListTagsOfResource where
toPath :: ListTagsOfResource -> ByteString
toPath = ByteString -> ListTagsOfResource -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListTagsOfResource where
toQuery :: ListTagsOfResource -> QueryString
toQuery = QueryString -> ListTagsOfResource -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListTagsOfResourceResponse = ListTagsOfResourceResponse'
{
ListTagsOfResourceResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTagsOfResourceResponse -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
ListTagsOfResourceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListTagsOfResourceResponse -> ListTagsOfResourceResponse -> Bool
(ListTagsOfResourceResponse -> ListTagsOfResourceResponse -> Bool)
-> (ListTagsOfResourceResponse
-> ListTagsOfResourceResponse -> Bool)
-> Eq ListTagsOfResourceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTagsOfResourceResponse -> ListTagsOfResourceResponse -> Bool
$c/= :: ListTagsOfResourceResponse -> ListTagsOfResourceResponse -> Bool
== :: ListTagsOfResourceResponse -> ListTagsOfResourceResponse -> Bool
$c== :: ListTagsOfResourceResponse -> ListTagsOfResourceResponse -> Bool
Prelude.Eq, ReadPrec [ListTagsOfResourceResponse]
ReadPrec ListTagsOfResourceResponse
Int -> ReadS ListTagsOfResourceResponse
ReadS [ListTagsOfResourceResponse]
(Int -> ReadS ListTagsOfResourceResponse)
-> ReadS [ListTagsOfResourceResponse]
-> ReadPrec ListTagsOfResourceResponse
-> ReadPrec [ListTagsOfResourceResponse]
-> Read ListTagsOfResourceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTagsOfResourceResponse]
$creadListPrec :: ReadPrec [ListTagsOfResourceResponse]
readPrec :: ReadPrec ListTagsOfResourceResponse
$creadPrec :: ReadPrec ListTagsOfResourceResponse
readList :: ReadS [ListTagsOfResourceResponse]
$creadList :: ReadS [ListTagsOfResourceResponse]
readsPrec :: Int -> ReadS ListTagsOfResourceResponse
$creadsPrec :: Int -> ReadS ListTagsOfResourceResponse
Prelude.Read, Int -> ListTagsOfResourceResponse -> ShowS
[ListTagsOfResourceResponse] -> ShowS
ListTagsOfResourceResponse -> String
(Int -> ListTagsOfResourceResponse -> ShowS)
-> (ListTagsOfResourceResponse -> String)
-> ([ListTagsOfResourceResponse] -> ShowS)
-> Show ListTagsOfResourceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTagsOfResourceResponse] -> ShowS
$cshowList :: [ListTagsOfResourceResponse] -> ShowS
show :: ListTagsOfResourceResponse -> String
$cshow :: ListTagsOfResourceResponse -> String
showsPrec :: Int -> ListTagsOfResourceResponse -> ShowS
$cshowsPrec :: Int -> ListTagsOfResourceResponse -> ShowS
Prelude.Show, (forall x.
ListTagsOfResourceResponse -> Rep ListTagsOfResourceResponse x)
-> (forall x.
Rep ListTagsOfResourceResponse x -> ListTagsOfResourceResponse)
-> Generic ListTagsOfResourceResponse
forall x.
Rep ListTagsOfResourceResponse x -> ListTagsOfResourceResponse
forall x.
ListTagsOfResourceResponse -> Rep ListTagsOfResourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTagsOfResourceResponse x -> ListTagsOfResourceResponse
$cfrom :: forall x.
ListTagsOfResourceResponse -> Rep ListTagsOfResourceResponse x
Prelude.Generic)
newListTagsOfResourceResponse ::
Prelude.Int ->
ListTagsOfResourceResponse
newListTagsOfResourceResponse :: Int -> ListTagsOfResourceResponse
newListTagsOfResourceResponse Int
pHttpStatus_ =
ListTagsOfResourceResponse' :: Maybe Text -> Maybe [Tag] -> Int -> ListTagsOfResourceResponse
ListTagsOfResourceResponse'
{ $sel:nextToken:ListTagsOfResourceResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:ListTagsOfResourceResponse' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTagsOfResourceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listTagsOfResourceResponse_nextToken :: Lens.Lens' ListTagsOfResourceResponse (Prelude.Maybe Prelude.Text)
listTagsOfResourceResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTagsOfResourceResponse -> f ListTagsOfResourceResponse
listTagsOfResourceResponse_nextToken = (ListTagsOfResourceResponse -> Maybe Text)
-> (ListTagsOfResourceResponse
-> Maybe Text -> ListTagsOfResourceResponse)
-> Lens' ListTagsOfResourceResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsOfResourceResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTagsOfResourceResponse' :: ListTagsOfResourceResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTagsOfResourceResponse
s@ListTagsOfResourceResponse' {} Maybe Text
a -> ListTagsOfResourceResponse
s {$sel:nextToken:ListTagsOfResourceResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTagsOfResourceResponse)
listTagsOfResourceResponse_tags :: Lens.Lens' ListTagsOfResourceResponse (Prelude.Maybe [Tag])
listTagsOfResourceResponse_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> ListTagsOfResourceResponse -> f ListTagsOfResourceResponse
listTagsOfResourceResponse_tags = (ListTagsOfResourceResponse -> Maybe [Tag])
-> (ListTagsOfResourceResponse
-> Maybe [Tag] -> ListTagsOfResourceResponse)
-> Lens' ListTagsOfResourceResponse (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsOfResourceResponse' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:ListTagsOfResourceResponse' :: ListTagsOfResourceResponse -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: ListTagsOfResourceResponse
s@ListTagsOfResourceResponse' {} Maybe [Tag]
a -> ListTagsOfResourceResponse
s {$sel:tags:ListTagsOfResourceResponse' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: ListTagsOfResourceResponse) ((Maybe [Tag] -> f (Maybe [Tag]))
-> ListTagsOfResourceResponse -> f ListTagsOfResourceResponse)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> ListTagsOfResourceResponse
-> f ListTagsOfResourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTagsOfResourceResponse_httpStatus :: Lens.Lens' ListTagsOfResourceResponse Prelude.Int
listTagsOfResourceResponse_httpStatus :: (Int -> f Int)
-> ListTagsOfResourceResponse -> f ListTagsOfResourceResponse
listTagsOfResourceResponse_httpStatus = (ListTagsOfResourceResponse -> Int)
-> (ListTagsOfResourceResponse
-> Int -> ListTagsOfResourceResponse)
-> Lens
ListTagsOfResourceResponse ListTagsOfResourceResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsOfResourceResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTagsOfResourceResponse' :: ListTagsOfResourceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTagsOfResourceResponse
s@ListTagsOfResourceResponse' {} Int
a -> ListTagsOfResourceResponse
s {$sel:httpStatus:ListTagsOfResourceResponse' :: Int
httpStatus = Int
a} :: ListTagsOfResourceResponse)
instance Prelude.NFData ListTagsOfResourceResponse