{-# 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.CertificateManagerPCA.ListTags
(
ListTags (..),
newListTags,
listTags_nextToken,
listTags_maxResults,
listTags_certificateAuthorityArn,
ListTagsResponse (..),
newListTagsResponse,
listTagsResponse_nextToken,
listTagsResponse_tags,
listTagsResponse_httpStatus,
)
where
import Amazonka.CertificateManagerPCA.Types
import qualified Amazonka.Core as Core
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 ListTags = ListTags'
{
ListTags -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTags -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListTags -> Text
certificateAuthorityArn :: Prelude.Text
}
deriving (ListTags -> ListTags -> Bool
(ListTags -> ListTags -> Bool)
-> (ListTags -> ListTags -> Bool) -> Eq ListTags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTags -> ListTags -> Bool
$c/= :: ListTags -> ListTags -> Bool
== :: ListTags -> ListTags -> Bool
$c== :: ListTags -> ListTags -> Bool
Prelude.Eq, ReadPrec [ListTags]
ReadPrec ListTags
Int -> ReadS ListTags
ReadS [ListTags]
(Int -> ReadS ListTags)
-> ReadS [ListTags]
-> ReadPrec ListTags
-> ReadPrec [ListTags]
-> Read ListTags
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTags]
$creadListPrec :: ReadPrec [ListTags]
readPrec :: ReadPrec ListTags
$creadPrec :: ReadPrec ListTags
readList :: ReadS [ListTags]
$creadList :: ReadS [ListTags]
readsPrec :: Int -> ReadS ListTags
$creadsPrec :: Int -> ReadS ListTags
Prelude.Read, Int -> ListTags -> ShowS
[ListTags] -> ShowS
ListTags -> String
(Int -> ListTags -> ShowS)
-> (ListTags -> String) -> ([ListTags] -> ShowS) -> Show ListTags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTags] -> ShowS
$cshowList :: [ListTags] -> ShowS
show :: ListTags -> String
$cshow :: ListTags -> String
showsPrec :: Int -> ListTags -> ShowS
$cshowsPrec :: Int -> ListTags -> ShowS
Prelude.Show, (forall x. ListTags -> Rep ListTags x)
-> (forall x. Rep ListTags x -> ListTags) -> Generic ListTags
forall x. Rep ListTags x -> ListTags
forall x. ListTags -> Rep ListTags x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTags x -> ListTags
$cfrom :: forall x. ListTags -> Rep ListTags x
Prelude.Generic)
newListTags ::
Prelude.Text ->
ListTags
newListTags :: Text -> ListTags
newListTags Text
pCertificateAuthorityArn_ =
ListTags' :: Maybe Text -> Maybe Natural -> Text -> ListTags
ListTags'
{ $sel:nextToken:ListTags' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListTags' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:certificateAuthorityArn:ListTags' :: Text
certificateAuthorityArn = Text
pCertificateAuthorityArn_
}
listTags_nextToken :: Lens.Lens' ListTags (Prelude.Maybe Prelude.Text)
listTags_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListTags -> f ListTags
listTags_nextToken = (ListTags -> Maybe Text)
-> (ListTags -> Maybe Text -> ListTags)
-> Lens ListTags ListTags (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTags' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTags' :: ListTags -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTags
s@ListTags' {} Maybe Text
a -> ListTags
s {$sel:nextToken:ListTags' :: Maybe Text
nextToken = Maybe Text
a} :: ListTags)
listTags_maxResults :: Lens.Lens' ListTags (Prelude.Maybe Prelude.Natural)
listTags_maxResults :: (Maybe Natural -> f (Maybe Natural)) -> ListTags -> f ListTags
listTags_maxResults = (ListTags -> Maybe Natural)
-> (ListTags -> Maybe Natural -> ListTags)
-> Lens ListTags ListTags (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTags' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTags' :: ListTags -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTags
s@ListTags' {} Maybe Natural
a -> ListTags
s {$sel:maxResults:ListTags' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTags)
listTags_certificateAuthorityArn :: Lens.Lens' ListTags Prelude.Text
listTags_certificateAuthorityArn :: (Text -> f Text) -> ListTags -> f ListTags
listTags_certificateAuthorityArn = (ListTags -> Text)
-> (ListTags -> Text -> ListTags)
-> Lens ListTags ListTags Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTags' {Text
certificateAuthorityArn :: Text
$sel:certificateAuthorityArn:ListTags' :: ListTags -> Text
certificateAuthorityArn} -> Text
certificateAuthorityArn) (\s :: ListTags
s@ListTags' {} Text
a -> ListTags
s {$sel:certificateAuthorityArn:ListTags' :: Text
certificateAuthorityArn = Text
a} :: ListTags)
instance Core.AWSPager ListTags where
page :: ListTags -> AWSResponse ListTags -> Maybe ListTags
page ListTags
rq AWSResponse ListTags
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTags
ListTagsResponse
rs
ListTagsResponse
-> Getting (First Text) ListTagsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagsResponse -> Const (First Text) ListTagsResponse
Lens' ListTagsResponse (Maybe Text)
listTagsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagsResponse -> Const (First Text) ListTagsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTagsResponse 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 ListTags
forall a. Maybe a
Prelude.Nothing
| Maybe [Tag] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTags
ListTagsResponse
rs
ListTagsResponse
-> Getting (First [Tag]) ListTagsResponse [Tag] -> Maybe [Tag]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe (NonEmpty Tag)
-> Const (First [Tag]) (Maybe (NonEmpty Tag)))
-> ListTagsResponse -> Const (First [Tag]) ListTagsResponse
Lens' ListTagsResponse (Maybe (NonEmpty Tag))
listTagsResponse_tags ((Maybe (NonEmpty Tag)
-> Const (First [Tag]) (Maybe (NonEmpty Tag)))
-> ListTagsResponse -> Const (First [Tag]) ListTagsResponse)
-> (([Tag] -> Const (First [Tag]) [Tag])
-> Maybe (NonEmpty Tag)
-> Const (First [Tag]) (Maybe (NonEmpty Tag)))
-> Getting (First [Tag]) ListTagsResponse [Tag]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Tag -> Const (First [Tag]) (NonEmpty Tag))
-> Maybe (NonEmpty Tag)
-> Const (First [Tag]) (Maybe (NonEmpty Tag))
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
((NonEmpty Tag -> Const (First [Tag]) (NonEmpty Tag))
-> Maybe (NonEmpty Tag)
-> Const (First [Tag]) (Maybe (NonEmpty Tag)))
-> (([Tag] -> Const (First [Tag]) [Tag])
-> NonEmpty Tag -> Const (First [Tag]) (NonEmpty Tag))
-> ([Tag] -> Const (First [Tag]) [Tag])
-> Maybe (NonEmpty Tag)
-> Const (First [Tag]) (Maybe (NonEmpty Tag))
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Tag -> [Tag])
-> ([Tag] -> Const (First [Tag]) [Tag])
-> NonEmpty Tag
-> Const (First [Tag]) (NonEmpty Tag)
forall (p :: * -> * -> *) (f :: * -> *) s a.
(Profunctor p, Contravariant f) =>
(s -> a) -> Optic' p f s a
Lens.to NonEmpty Tag -> [Tag]
forall l. IsList l => l -> [Item l]
Prelude.toList
) =
Maybe ListTags
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTags -> Maybe ListTags
forall a. a -> Maybe a
Prelude.Just (ListTags -> Maybe ListTags) -> ListTags -> Maybe ListTags
forall a b. (a -> b) -> a -> b
Prelude.$
ListTags
rq
ListTags -> (ListTags -> ListTags) -> ListTags
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTags -> Identity ListTags
Lens ListTags ListTags (Maybe Text) (Maybe Text)
listTags_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListTags -> Identity ListTags)
-> Maybe Text -> ListTags -> ListTags
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTags
ListTagsResponse
rs
ListTagsResponse
-> Getting (First Text) ListTagsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagsResponse -> Const (First Text) ListTagsResponse
Lens' ListTagsResponse (Maybe Text)
listTagsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTagsResponse -> Const (First Text) ListTagsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTagsResponse 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 ListTags where
type AWSResponse ListTags = ListTagsResponse
request :: ListTags -> Request ListTags
request = Service -> ListTags -> Request ListTags
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListTags
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTags)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTags))
-> Logger
-> Service
-> Proxy ListTags
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTags)))
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 (NonEmpty Tag) -> Int -> ListTagsResponse
ListTagsResponse'
(Maybe Text -> Maybe (NonEmpty Tag) -> Int -> ListTagsResponse)
-> Either String (Maybe Text)
-> Either String (Maybe (NonEmpty Tag) -> Int -> ListTagsResponse)
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 (NonEmpty Tag) -> Int -> ListTagsResponse)
-> Either String (Maybe (NonEmpty Tag))
-> Either String (Int -> ListTagsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Tag))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags")
Either String (Int -> ListTagsResponse)
-> Either String Int -> Either String ListTagsResponse
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 ListTags
instance Prelude.NFData ListTags
instance Core.ToHeaders ListTags where
toHeaders :: ListTags -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListTags -> 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
"ACMPrivateCA.ListTags" :: Prelude.ByteString),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListTags where
toJSON :: ListTags -> Value
toJSON ListTags' {Maybe Natural
Maybe Text
Text
certificateAuthorityArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:certificateAuthorityArn:ListTags' :: ListTags -> Text
$sel:maxResults:ListTags' :: ListTags -> Maybe Natural
$sel:nextToken:ListTags' :: ListTags -> 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,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"CertificateAuthorityArn"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
certificateAuthorityArn
)
]
)
instance Core.ToPath ListTags where
toPath :: ListTags -> ByteString
toPath = ByteString -> ListTags -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListTags where
toQuery :: ListTags -> QueryString
toQuery = QueryString -> ListTags -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListTagsResponse = ListTagsResponse'
{
ListTagsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTagsResponse -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
ListTagsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListTagsResponse -> ListTagsResponse -> Bool
(ListTagsResponse -> ListTagsResponse -> Bool)
-> (ListTagsResponse -> ListTagsResponse -> Bool)
-> Eq ListTagsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTagsResponse -> ListTagsResponse -> Bool
$c/= :: ListTagsResponse -> ListTagsResponse -> Bool
== :: ListTagsResponse -> ListTagsResponse -> Bool
$c== :: ListTagsResponse -> ListTagsResponse -> Bool
Prelude.Eq, ReadPrec [ListTagsResponse]
ReadPrec ListTagsResponse
Int -> ReadS ListTagsResponse
ReadS [ListTagsResponse]
(Int -> ReadS ListTagsResponse)
-> ReadS [ListTagsResponse]
-> ReadPrec ListTagsResponse
-> ReadPrec [ListTagsResponse]
-> Read ListTagsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTagsResponse]
$creadListPrec :: ReadPrec [ListTagsResponse]
readPrec :: ReadPrec ListTagsResponse
$creadPrec :: ReadPrec ListTagsResponse
readList :: ReadS [ListTagsResponse]
$creadList :: ReadS [ListTagsResponse]
readsPrec :: Int -> ReadS ListTagsResponse
$creadsPrec :: Int -> ReadS ListTagsResponse
Prelude.Read, Int -> ListTagsResponse -> ShowS
[ListTagsResponse] -> ShowS
ListTagsResponse -> String
(Int -> ListTagsResponse -> ShowS)
-> (ListTagsResponse -> String)
-> ([ListTagsResponse] -> ShowS)
-> Show ListTagsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTagsResponse] -> ShowS
$cshowList :: [ListTagsResponse] -> ShowS
show :: ListTagsResponse -> String
$cshow :: ListTagsResponse -> String
showsPrec :: Int -> ListTagsResponse -> ShowS
$cshowsPrec :: Int -> ListTagsResponse -> ShowS
Prelude.Show, (forall x. ListTagsResponse -> Rep ListTagsResponse x)
-> (forall x. Rep ListTagsResponse x -> ListTagsResponse)
-> Generic ListTagsResponse
forall x. Rep ListTagsResponse x -> ListTagsResponse
forall x. ListTagsResponse -> Rep ListTagsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTagsResponse x -> ListTagsResponse
$cfrom :: forall x. ListTagsResponse -> Rep ListTagsResponse x
Prelude.Generic)
newListTagsResponse ::
Prelude.Int ->
ListTagsResponse
newListTagsResponse :: Int -> ListTagsResponse
newListTagsResponse Int
pHttpStatus_ =
ListTagsResponse' :: Maybe Text -> Maybe (NonEmpty Tag) -> Int -> ListTagsResponse
ListTagsResponse'
{ $sel:nextToken:ListTagsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:ListTagsResponse' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTagsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listTagsResponse_nextToken :: Lens.Lens' ListTagsResponse (Prelude.Maybe Prelude.Text)
listTagsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTagsResponse -> f ListTagsResponse
listTagsResponse_nextToken = (ListTagsResponse -> Maybe Text)
-> (ListTagsResponse -> Maybe Text -> ListTagsResponse)
-> Lens' ListTagsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTagsResponse' :: ListTagsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTagsResponse
s@ListTagsResponse' {} Maybe Text
a -> ListTagsResponse
s {$sel:nextToken:ListTagsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTagsResponse)
listTagsResponse_tags :: Lens.Lens' ListTagsResponse (Prelude.Maybe (Prelude.NonEmpty Tag))
listTagsResponse_tags :: (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> ListTagsResponse -> f ListTagsResponse
listTagsResponse_tags = (ListTagsResponse -> Maybe (NonEmpty Tag))
-> (ListTagsResponse -> Maybe (NonEmpty Tag) -> ListTagsResponse)
-> Lens' ListTagsResponse (Maybe (NonEmpty Tag))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsResponse' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:ListTagsResponse' :: ListTagsResponse -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: ListTagsResponse
s@ListTagsResponse' {} Maybe (NonEmpty Tag)
a -> ListTagsResponse
s {$sel:tags:ListTagsResponse' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: ListTagsResponse) ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> ListTagsResponse -> f ListTagsResponse)
-> ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> ListTagsResponse
-> f ListTagsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
-> Iso
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty 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 (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTagsResponse_httpStatus :: Lens.Lens' ListTagsResponse Prelude.Int
listTagsResponse_httpStatus :: (Int -> f Int) -> ListTagsResponse -> f ListTagsResponse
listTagsResponse_httpStatus = (ListTagsResponse -> Int)
-> (ListTagsResponse -> Int -> ListTagsResponse)
-> Lens ListTagsResponse ListTagsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTagsResponse' :: ListTagsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTagsResponse
s@ListTagsResponse' {} Int
a -> ListTagsResponse
s {$sel:httpStatus:ListTagsResponse' :: Int
httpStatus = Int
a} :: ListTagsResponse)
instance Prelude.NFData ListTagsResponse