{-# 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.IAM.ListMFADeviceTags
(
ListMFADeviceTags (..),
newListMFADeviceTags,
listMFADeviceTags_marker,
listMFADeviceTags_maxItems,
listMFADeviceTags_serialNumber,
ListMFADeviceTagsResponse (..),
newListMFADeviceTagsResponse,
listMFADeviceTagsResponse_marker,
listMFADeviceTagsResponse_isTruncated,
listMFADeviceTagsResponse_httpStatus,
listMFADeviceTagsResponse_tags,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IAM.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 ListMFADeviceTags = ListMFADeviceTags'
{
ListMFADeviceTags -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListMFADeviceTags -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
ListMFADeviceTags -> Text
serialNumber :: Prelude.Text
}
deriving (ListMFADeviceTags -> ListMFADeviceTags -> Bool
(ListMFADeviceTags -> ListMFADeviceTags -> Bool)
-> (ListMFADeviceTags -> ListMFADeviceTags -> Bool)
-> Eq ListMFADeviceTags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMFADeviceTags -> ListMFADeviceTags -> Bool
$c/= :: ListMFADeviceTags -> ListMFADeviceTags -> Bool
== :: ListMFADeviceTags -> ListMFADeviceTags -> Bool
$c== :: ListMFADeviceTags -> ListMFADeviceTags -> Bool
Prelude.Eq, ReadPrec [ListMFADeviceTags]
ReadPrec ListMFADeviceTags
Int -> ReadS ListMFADeviceTags
ReadS [ListMFADeviceTags]
(Int -> ReadS ListMFADeviceTags)
-> ReadS [ListMFADeviceTags]
-> ReadPrec ListMFADeviceTags
-> ReadPrec [ListMFADeviceTags]
-> Read ListMFADeviceTags
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMFADeviceTags]
$creadListPrec :: ReadPrec [ListMFADeviceTags]
readPrec :: ReadPrec ListMFADeviceTags
$creadPrec :: ReadPrec ListMFADeviceTags
readList :: ReadS [ListMFADeviceTags]
$creadList :: ReadS [ListMFADeviceTags]
readsPrec :: Int -> ReadS ListMFADeviceTags
$creadsPrec :: Int -> ReadS ListMFADeviceTags
Prelude.Read, Int -> ListMFADeviceTags -> ShowS
[ListMFADeviceTags] -> ShowS
ListMFADeviceTags -> String
(Int -> ListMFADeviceTags -> ShowS)
-> (ListMFADeviceTags -> String)
-> ([ListMFADeviceTags] -> ShowS)
-> Show ListMFADeviceTags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMFADeviceTags] -> ShowS
$cshowList :: [ListMFADeviceTags] -> ShowS
show :: ListMFADeviceTags -> String
$cshow :: ListMFADeviceTags -> String
showsPrec :: Int -> ListMFADeviceTags -> ShowS
$cshowsPrec :: Int -> ListMFADeviceTags -> ShowS
Prelude.Show, (forall x. ListMFADeviceTags -> Rep ListMFADeviceTags x)
-> (forall x. Rep ListMFADeviceTags x -> ListMFADeviceTags)
-> Generic ListMFADeviceTags
forall x. Rep ListMFADeviceTags x -> ListMFADeviceTags
forall x. ListMFADeviceTags -> Rep ListMFADeviceTags x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListMFADeviceTags x -> ListMFADeviceTags
$cfrom :: forall x. ListMFADeviceTags -> Rep ListMFADeviceTags x
Prelude.Generic)
newListMFADeviceTags ::
Prelude.Text ->
ListMFADeviceTags
newListMFADeviceTags :: Text -> ListMFADeviceTags
newListMFADeviceTags Text
pSerialNumber_ =
ListMFADeviceTags' :: Maybe Text -> Maybe Natural -> Text -> ListMFADeviceTags
ListMFADeviceTags'
{ $sel:marker:ListMFADeviceTags' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListMFADeviceTags' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:serialNumber:ListMFADeviceTags' :: Text
serialNumber = Text
pSerialNumber_
}
listMFADeviceTags_marker :: Lens.Lens' ListMFADeviceTags (Prelude.Maybe Prelude.Text)
listMFADeviceTags_marker :: (Maybe Text -> f (Maybe Text))
-> ListMFADeviceTags -> f ListMFADeviceTags
listMFADeviceTags_marker = (ListMFADeviceTags -> Maybe Text)
-> (ListMFADeviceTags -> Maybe Text -> ListMFADeviceTags)
-> Lens
ListMFADeviceTags ListMFADeviceTags (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMFADeviceTags' {Maybe Text
marker :: Maybe Text
$sel:marker:ListMFADeviceTags' :: ListMFADeviceTags -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListMFADeviceTags
s@ListMFADeviceTags' {} Maybe Text
a -> ListMFADeviceTags
s {$sel:marker:ListMFADeviceTags' :: Maybe Text
marker = Maybe Text
a} :: ListMFADeviceTags)
listMFADeviceTags_maxItems :: Lens.Lens' ListMFADeviceTags (Prelude.Maybe Prelude.Natural)
listMFADeviceTags_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> ListMFADeviceTags -> f ListMFADeviceTags
listMFADeviceTags_maxItems = (ListMFADeviceTags -> Maybe Natural)
-> (ListMFADeviceTags -> Maybe Natural -> ListMFADeviceTags)
-> Lens
ListMFADeviceTags ListMFADeviceTags (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMFADeviceTags' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListMFADeviceTags' :: ListMFADeviceTags -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListMFADeviceTags
s@ListMFADeviceTags' {} Maybe Natural
a -> ListMFADeviceTags
s {$sel:maxItems:ListMFADeviceTags' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListMFADeviceTags)
listMFADeviceTags_serialNumber :: Lens.Lens' ListMFADeviceTags Prelude.Text
listMFADeviceTags_serialNumber :: (Text -> f Text) -> ListMFADeviceTags -> f ListMFADeviceTags
listMFADeviceTags_serialNumber = (ListMFADeviceTags -> Text)
-> (ListMFADeviceTags -> Text -> ListMFADeviceTags)
-> Lens ListMFADeviceTags ListMFADeviceTags Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMFADeviceTags' {Text
serialNumber :: Text
$sel:serialNumber:ListMFADeviceTags' :: ListMFADeviceTags -> Text
serialNumber} -> Text
serialNumber) (\s :: ListMFADeviceTags
s@ListMFADeviceTags' {} Text
a -> ListMFADeviceTags
s {$sel:serialNumber:ListMFADeviceTags' :: Text
serialNumber = Text
a} :: ListMFADeviceTags)
instance Core.AWSRequest ListMFADeviceTags where
type
AWSResponse ListMFADeviceTags =
ListMFADeviceTagsResponse
request :: ListMFADeviceTags -> Request ListMFADeviceTags
request = Service -> ListMFADeviceTags -> Request ListMFADeviceTags
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ListMFADeviceTags
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListMFADeviceTags)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListMFADeviceTags))
-> Logger
-> Service
-> Proxy ListMFADeviceTags
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListMFADeviceTags)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"ListMFADeviceTagsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe Bool -> Int -> [Tag] -> ListMFADeviceTagsResponse
ListMFADeviceTagsResponse'
(Maybe Text
-> Maybe Bool -> Int -> [Tag] -> ListMFADeviceTagsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Bool -> Int -> [Tag] -> ListMFADeviceTagsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
Either
String (Maybe Bool -> Int -> [Tag] -> ListMFADeviceTagsResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> [Tag] -> ListMFADeviceTagsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IsTruncated")
Either String (Int -> [Tag] -> ListMFADeviceTagsResponse)
-> Either String Int
-> Either String ([Tag] -> ListMFADeviceTagsResponse)
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))
Either String ([Tag] -> ListMFADeviceTagsResponse)
-> Either String [Tag] -> Either String ListMFADeviceTagsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Tags" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String [Tag]) -> Either String [Tag]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [Tag]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member"
)
)
instance Prelude.Hashable ListMFADeviceTags
instance Prelude.NFData ListMFADeviceTags
instance Core.ToHeaders ListMFADeviceTags where
toHeaders :: ListMFADeviceTags -> ResponseHeaders
toHeaders = ResponseHeaders -> ListMFADeviceTags -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListMFADeviceTags where
toPath :: ListMFADeviceTags -> ByteString
toPath = ByteString -> ListMFADeviceTags -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListMFADeviceTags where
toQuery :: ListMFADeviceTags -> QueryString
toQuery ListMFADeviceTags' {Maybe Natural
Maybe Text
Text
serialNumber :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:serialNumber:ListMFADeviceTags' :: ListMFADeviceTags -> Text
$sel:maxItems:ListMFADeviceTags' :: ListMFADeviceTags -> Maybe Natural
$sel:marker:ListMFADeviceTags' :: ListMFADeviceTags -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"ListMFADeviceTags" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxItems" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxItems,
ByteString
"SerialNumber" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
serialNumber
]
data ListMFADeviceTagsResponse = ListMFADeviceTagsResponse'
{
ListMFADeviceTagsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListMFADeviceTagsResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListMFADeviceTagsResponse -> Int
httpStatus :: Prelude.Int,
ListMFADeviceTagsResponse -> [Tag]
tags :: [Tag]
}
deriving (ListMFADeviceTagsResponse -> ListMFADeviceTagsResponse -> Bool
(ListMFADeviceTagsResponse -> ListMFADeviceTagsResponse -> Bool)
-> (ListMFADeviceTagsResponse -> ListMFADeviceTagsResponse -> Bool)
-> Eq ListMFADeviceTagsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMFADeviceTagsResponse -> ListMFADeviceTagsResponse -> Bool
$c/= :: ListMFADeviceTagsResponse -> ListMFADeviceTagsResponse -> Bool
== :: ListMFADeviceTagsResponse -> ListMFADeviceTagsResponse -> Bool
$c== :: ListMFADeviceTagsResponse -> ListMFADeviceTagsResponse -> Bool
Prelude.Eq, ReadPrec [ListMFADeviceTagsResponse]
ReadPrec ListMFADeviceTagsResponse
Int -> ReadS ListMFADeviceTagsResponse
ReadS [ListMFADeviceTagsResponse]
(Int -> ReadS ListMFADeviceTagsResponse)
-> ReadS [ListMFADeviceTagsResponse]
-> ReadPrec ListMFADeviceTagsResponse
-> ReadPrec [ListMFADeviceTagsResponse]
-> Read ListMFADeviceTagsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMFADeviceTagsResponse]
$creadListPrec :: ReadPrec [ListMFADeviceTagsResponse]
readPrec :: ReadPrec ListMFADeviceTagsResponse
$creadPrec :: ReadPrec ListMFADeviceTagsResponse
readList :: ReadS [ListMFADeviceTagsResponse]
$creadList :: ReadS [ListMFADeviceTagsResponse]
readsPrec :: Int -> ReadS ListMFADeviceTagsResponse
$creadsPrec :: Int -> ReadS ListMFADeviceTagsResponse
Prelude.Read, Int -> ListMFADeviceTagsResponse -> ShowS
[ListMFADeviceTagsResponse] -> ShowS
ListMFADeviceTagsResponse -> String
(Int -> ListMFADeviceTagsResponse -> ShowS)
-> (ListMFADeviceTagsResponse -> String)
-> ([ListMFADeviceTagsResponse] -> ShowS)
-> Show ListMFADeviceTagsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMFADeviceTagsResponse] -> ShowS
$cshowList :: [ListMFADeviceTagsResponse] -> ShowS
show :: ListMFADeviceTagsResponse -> String
$cshow :: ListMFADeviceTagsResponse -> String
showsPrec :: Int -> ListMFADeviceTagsResponse -> ShowS
$cshowsPrec :: Int -> ListMFADeviceTagsResponse -> ShowS
Prelude.Show, (forall x.
ListMFADeviceTagsResponse -> Rep ListMFADeviceTagsResponse x)
-> (forall x.
Rep ListMFADeviceTagsResponse x -> ListMFADeviceTagsResponse)
-> Generic ListMFADeviceTagsResponse
forall x.
Rep ListMFADeviceTagsResponse x -> ListMFADeviceTagsResponse
forall x.
ListMFADeviceTagsResponse -> Rep ListMFADeviceTagsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListMFADeviceTagsResponse x -> ListMFADeviceTagsResponse
$cfrom :: forall x.
ListMFADeviceTagsResponse -> Rep ListMFADeviceTagsResponse x
Prelude.Generic)
newListMFADeviceTagsResponse ::
Prelude.Int ->
ListMFADeviceTagsResponse
newListMFADeviceTagsResponse :: Int -> ListMFADeviceTagsResponse
newListMFADeviceTagsResponse Int
pHttpStatus_ =
ListMFADeviceTagsResponse' :: Maybe Text
-> Maybe Bool -> Int -> [Tag] -> ListMFADeviceTagsResponse
ListMFADeviceTagsResponse'
{ $sel:marker:ListMFADeviceTagsResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListMFADeviceTagsResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListMFADeviceTagsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:tags:ListMFADeviceTagsResponse' :: [Tag]
tags = [Tag]
forall a. Monoid a => a
Prelude.mempty
}
listMFADeviceTagsResponse_marker :: Lens.Lens' ListMFADeviceTagsResponse (Prelude.Maybe Prelude.Text)
listMFADeviceTagsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListMFADeviceTagsResponse -> f ListMFADeviceTagsResponse
listMFADeviceTagsResponse_marker = (ListMFADeviceTagsResponse -> Maybe Text)
-> (ListMFADeviceTagsResponse
-> Maybe Text -> ListMFADeviceTagsResponse)
-> Lens
ListMFADeviceTagsResponse
ListMFADeviceTagsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMFADeviceTagsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListMFADeviceTagsResponse' :: ListMFADeviceTagsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListMFADeviceTagsResponse
s@ListMFADeviceTagsResponse' {} Maybe Text
a -> ListMFADeviceTagsResponse
s {$sel:marker:ListMFADeviceTagsResponse' :: Maybe Text
marker = Maybe Text
a} :: ListMFADeviceTagsResponse)
listMFADeviceTagsResponse_isTruncated :: Lens.Lens' ListMFADeviceTagsResponse (Prelude.Maybe Prelude.Bool)
listMFADeviceTagsResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListMFADeviceTagsResponse -> f ListMFADeviceTagsResponse
listMFADeviceTagsResponse_isTruncated = (ListMFADeviceTagsResponse -> Maybe Bool)
-> (ListMFADeviceTagsResponse
-> Maybe Bool -> ListMFADeviceTagsResponse)
-> Lens
ListMFADeviceTagsResponse
ListMFADeviceTagsResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMFADeviceTagsResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListMFADeviceTagsResponse' :: ListMFADeviceTagsResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListMFADeviceTagsResponse
s@ListMFADeviceTagsResponse' {} Maybe Bool
a -> ListMFADeviceTagsResponse
s {$sel:isTruncated:ListMFADeviceTagsResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListMFADeviceTagsResponse)
listMFADeviceTagsResponse_httpStatus :: Lens.Lens' ListMFADeviceTagsResponse Prelude.Int
listMFADeviceTagsResponse_httpStatus :: (Int -> f Int)
-> ListMFADeviceTagsResponse -> f ListMFADeviceTagsResponse
listMFADeviceTagsResponse_httpStatus = (ListMFADeviceTagsResponse -> Int)
-> (ListMFADeviceTagsResponse -> Int -> ListMFADeviceTagsResponse)
-> Lens ListMFADeviceTagsResponse ListMFADeviceTagsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMFADeviceTagsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListMFADeviceTagsResponse' :: ListMFADeviceTagsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListMFADeviceTagsResponse
s@ListMFADeviceTagsResponse' {} Int
a -> ListMFADeviceTagsResponse
s {$sel:httpStatus:ListMFADeviceTagsResponse' :: Int
httpStatus = Int
a} :: ListMFADeviceTagsResponse)
listMFADeviceTagsResponse_tags :: Lens.Lens' ListMFADeviceTagsResponse [Tag]
listMFADeviceTagsResponse_tags :: ([Tag] -> f [Tag])
-> ListMFADeviceTagsResponse -> f ListMFADeviceTagsResponse
listMFADeviceTagsResponse_tags = (ListMFADeviceTagsResponse -> [Tag])
-> (ListMFADeviceTagsResponse
-> [Tag] -> ListMFADeviceTagsResponse)
-> Lens
ListMFADeviceTagsResponse ListMFADeviceTagsResponse [Tag] [Tag]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMFADeviceTagsResponse' {[Tag]
tags :: [Tag]
$sel:tags:ListMFADeviceTagsResponse' :: ListMFADeviceTagsResponse -> [Tag]
tags} -> [Tag]
tags) (\s :: ListMFADeviceTagsResponse
s@ListMFADeviceTagsResponse' {} [Tag]
a -> ListMFADeviceTagsResponse
s {$sel:tags:ListMFADeviceTagsResponse' :: [Tag]
tags = [Tag]
a} :: ListMFADeviceTagsResponse) (([Tag] -> f [Tag])
-> ListMFADeviceTagsResponse -> f ListMFADeviceTagsResponse)
-> (([Tag] -> f [Tag]) -> [Tag] -> f [Tag])
-> ([Tag] -> f [Tag])
-> ListMFADeviceTagsResponse
-> f ListMFADeviceTagsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Tag] -> f [Tag]) -> [Tag] -> f [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListMFADeviceTagsResponse