{-# 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.ListAccessKeys
(
ListAccessKeys (..),
newListAccessKeys,
listAccessKeys_userName,
listAccessKeys_marker,
listAccessKeys_maxItems,
ListAccessKeysResponse (..),
newListAccessKeysResponse,
listAccessKeysResponse_marker,
listAccessKeysResponse_isTruncated,
listAccessKeysResponse_httpStatus,
listAccessKeysResponse_accessKeyMetadata,
)
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 ListAccessKeys = ListAccessKeys'
{
ListAccessKeys -> Maybe Text
userName :: Prelude.Maybe Prelude.Text,
ListAccessKeys -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAccessKeys -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural
}
deriving (ListAccessKeys -> ListAccessKeys -> Bool
(ListAccessKeys -> ListAccessKeys -> Bool)
-> (ListAccessKeys -> ListAccessKeys -> Bool) -> Eq ListAccessKeys
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAccessKeys -> ListAccessKeys -> Bool
$c/= :: ListAccessKeys -> ListAccessKeys -> Bool
== :: ListAccessKeys -> ListAccessKeys -> Bool
$c== :: ListAccessKeys -> ListAccessKeys -> Bool
Prelude.Eq, ReadPrec [ListAccessKeys]
ReadPrec ListAccessKeys
Int -> ReadS ListAccessKeys
ReadS [ListAccessKeys]
(Int -> ReadS ListAccessKeys)
-> ReadS [ListAccessKeys]
-> ReadPrec ListAccessKeys
-> ReadPrec [ListAccessKeys]
-> Read ListAccessKeys
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAccessKeys]
$creadListPrec :: ReadPrec [ListAccessKeys]
readPrec :: ReadPrec ListAccessKeys
$creadPrec :: ReadPrec ListAccessKeys
readList :: ReadS [ListAccessKeys]
$creadList :: ReadS [ListAccessKeys]
readsPrec :: Int -> ReadS ListAccessKeys
$creadsPrec :: Int -> ReadS ListAccessKeys
Prelude.Read, Int -> ListAccessKeys -> ShowS
[ListAccessKeys] -> ShowS
ListAccessKeys -> String
(Int -> ListAccessKeys -> ShowS)
-> (ListAccessKeys -> String)
-> ([ListAccessKeys] -> ShowS)
-> Show ListAccessKeys
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAccessKeys] -> ShowS
$cshowList :: [ListAccessKeys] -> ShowS
show :: ListAccessKeys -> String
$cshow :: ListAccessKeys -> String
showsPrec :: Int -> ListAccessKeys -> ShowS
$cshowsPrec :: Int -> ListAccessKeys -> ShowS
Prelude.Show, (forall x. ListAccessKeys -> Rep ListAccessKeys x)
-> (forall x. Rep ListAccessKeys x -> ListAccessKeys)
-> Generic ListAccessKeys
forall x. Rep ListAccessKeys x -> ListAccessKeys
forall x. ListAccessKeys -> Rep ListAccessKeys x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAccessKeys x -> ListAccessKeys
$cfrom :: forall x. ListAccessKeys -> Rep ListAccessKeys x
Prelude.Generic)
newListAccessKeys ::
ListAccessKeys
newListAccessKeys :: ListAccessKeys
newListAccessKeys =
ListAccessKeys' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListAccessKeys
ListAccessKeys'
{ $sel:userName:ListAccessKeys' :: Maybe Text
userName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListAccessKeys' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListAccessKeys' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listAccessKeys_userName :: Lens.Lens' ListAccessKeys (Prelude.Maybe Prelude.Text)
listAccessKeys_userName :: (Maybe Text -> f (Maybe Text))
-> ListAccessKeys -> f ListAccessKeys
listAccessKeys_userName = (ListAccessKeys -> Maybe Text)
-> (ListAccessKeys -> Maybe Text -> ListAccessKeys)
-> Lens ListAccessKeys ListAccessKeys (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccessKeys' {Maybe Text
userName :: Maybe Text
$sel:userName:ListAccessKeys' :: ListAccessKeys -> Maybe Text
userName} -> Maybe Text
userName) (\s :: ListAccessKeys
s@ListAccessKeys' {} Maybe Text
a -> ListAccessKeys
s {$sel:userName:ListAccessKeys' :: Maybe Text
userName = Maybe Text
a} :: ListAccessKeys)
listAccessKeys_marker :: Lens.Lens' ListAccessKeys (Prelude.Maybe Prelude.Text)
listAccessKeys_marker :: (Maybe Text -> f (Maybe Text))
-> ListAccessKeys -> f ListAccessKeys
listAccessKeys_marker = (ListAccessKeys -> Maybe Text)
-> (ListAccessKeys -> Maybe Text -> ListAccessKeys)
-> Lens ListAccessKeys ListAccessKeys (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccessKeys' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAccessKeys' :: ListAccessKeys -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAccessKeys
s@ListAccessKeys' {} Maybe Text
a -> ListAccessKeys
s {$sel:marker:ListAccessKeys' :: Maybe Text
marker = Maybe Text
a} :: ListAccessKeys)
listAccessKeys_maxItems :: Lens.Lens' ListAccessKeys (Prelude.Maybe Prelude.Natural)
listAccessKeys_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> ListAccessKeys -> f ListAccessKeys
listAccessKeys_maxItems = (ListAccessKeys -> Maybe Natural)
-> (ListAccessKeys -> Maybe Natural -> ListAccessKeys)
-> Lens
ListAccessKeys ListAccessKeys (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccessKeys' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListAccessKeys' :: ListAccessKeys -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListAccessKeys
s@ListAccessKeys' {} Maybe Natural
a -> ListAccessKeys
s {$sel:maxItems:ListAccessKeys' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListAccessKeys)
instance Core.AWSPager ListAccessKeys where
page :: ListAccessKeys
-> AWSResponse ListAccessKeys -> Maybe ListAccessKeys
page ListAccessKeys
rq AWSResponse ListAccessKeys
rs
| Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAccessKeys
ListAccessKeysResponse
rs
ListAccessKeysResponse
-> Getting (First Bool) ListAccessKeysResponse Bool -> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListAccessKeysResponse
-> Const (First Bool) ListAccessKeysResponse
Lens' ListAccessKeysResponse (Maybe Bool)
listAccessKeysResponse_isTruncated
((Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListAccessKeysResponse
-> Const (First Bool) ListAccessKeysResponse)
-> ((Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) ListAccessKeysResponse Bool
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListAccessKeys
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListAccessKeys
ListAccessKeysResponse
rs
ListAccessKeysResponse
-> Getting (First Text) ListAccessKeysResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAccessKeysResponse
-> Const (First Text) ListAccessKeysResponse
Lens' ListAccessKeysResponse (Maybe Text)
listAccessKeysResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAccessKeysResponse
-> Const (First Text) ListAccessKeysResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAccessKeysResponse 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 ListAccessKeys
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListAccessKeys -> Maybe ListAccessKeys
forall a. a -> Maybe a
Prelude.Just (ListAccessKeys -> Maybe ListAccessKeys)
-> ListAccessKeys -> Maybe ListAccessKeys
forall a b. (a -> b) -> a -> b
Prelude.$
ListAccessKeys
rq
ListAccessKeys
-> (ListAccessKeys -> ListAccessKeys) -> ListAccessKeys
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAccessKeys -> Identity ListAccessKeys
Lens ListAccessKeys ListAccessKeys (Maybe Text) (Maybe Text)
listAccessKeys_marker
((Maybe Text -> Identity (Maybe Text))
-> ListAccessKeys -> Identity ListAccessKeys)
-> Maybe Text -> ListAccessKeys -> ListAccessKeys
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAccessKeys
ListAccessKeysResponse
rs
ListAccessKeysResponse
-> Getting (First Text) ListAccessKeysResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAccessKeysResponse
-> Const (First Text) ListAccessKeysResponse
Lens' ListAccessKeysResponse (Maybe Text)
listAccessKeysResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAccessKeysResponse
-> Const (First Text) ListAccessKeysResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAccessKeysResponse 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 ListAccessKeys where
type
AWSResponse ListAccessKeys =
ListAccessKeysResponse
request :: ListAccessKeys -> Request ListAccessKeys
request = Service -> ListAccessKeys -> Request ListAccessKeys
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ListAccessKeys
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAccessKeys)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListAccessKeys))
-> Logger
-> Service
-> Proxy ListAccessKeys
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAccessKeys)))
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
"ListAccessKeysResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe Bool
-> Int
-> [AccessKeyMetadata]
-> ListAccessKeysResponse
ListAccessKeysResponse'
(Maybe Text
-> Maybe Bool
-> Int
-> [AccessKeyMetadata]
-> ListAccessKeysResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Int -> [AccessKeyMetadata] -> ListAccessKeysResponse)
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 -> [AccessKeyMetadata] -> ListAccessKeysResponse)
-> Either String (Maybe Bool)
-> Either
String (Int -> [AccessKeyMetadata] -> ListAccessKeysResponse)
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 -> [AccessKeyMetadata] -> ListAccessKeysResponse)
-> Either String Int
-> Either String ([AccessKeyMetadata] -> ListAccessKeysResponse)
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 ([AccessKeyMetadata] -> ListAccessKeysResponse)
-> Either String [AccessKeyMetadata]
-> Either String ListAccessKeysResponse
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
"AccessKeyMetadata"
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 [AccessKeyMetadata])
-> Either String [AccessKeyMetadata]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [AccessKeyMetadata]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member"
)
)
instance Prelude.Hashable ListAccessKeys
instance Prelude.NFData ListAccessKeys
instance Core.ToHeaders ListAccessKeys where
toHeaders :: ListAccessKeys -> ResponseHeaders
toHeaders = ResponseHeaders -> ListAccessKeys -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListAccessKeys where
toPath :: ListAccessKeys -> ByteString
toPath = ByteString -> ListAccessKeys -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListAccessKeys where
toQuery :: ListAccessKeys -> QueryString
toQuery ListAccessKeys' {Maybe Natural
Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
userName :: Maybe Text
$sel:maxItems:ListAccessKeys' :: ListAccessKeys -> Maybe Natural
$sel:marker:ListAccessKeys' :: ListAccessKeys -> Maybe Text
$sel:userName:ListAccessKeys' :: ListAccessKeys -> 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
"ListAccessKeys" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"UserName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
userName,
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
]
data ListAccessKeysResponse = ListAccessKeysResponse'
{
ListAccessKeysResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAccessKeysResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListAccessKeysResponse -> Int
httpStatus :: Prelude.Int,
ListAccessKeysResponse -> [AccessKeyMetadata]
accessKeyMetadata :: [AccessKeyMetadata]
}
deriving (ListAccessKeysResponse -> ListAccessKeysResponse -> Bool
(ListAccessKeysResponse -> ListAccessKeysResponse -> Bool)
-> (ListAccessKeysResponse -> ListAccessKeysResponse -> Bool)
-> Eq ListAccessKeysResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAccessKeysResponse -> ListAccessKeysResponse -> Bool
$c/= :: ListAccessKeysResponse -> ListAccessKeysResponse -> Bool
== :: ListAccessKeysResponse -> ListAccessKeysResponse -> Bool
$c== :: ListAccessKeysResponse -> ListAccessKeysResponse -> Bool
Prelude.Eq, ReadPrec [ListAccessKeysResponse]
ReadPrec ListAccessKeysResponse
Int -> ReadS ListAccessKeysResponse
ReadS [ListAccessKeysResponse]
(Int -> ReadS ListAccessKeysResponse)
-> ReadS [ListAccessKeysResponse]
-> ReadPrec ListAccessKeysResponse
-> ReadPrec [ListAccessKeysResponse]
-> Read ListAccessKeysResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAccessKeysResponse]
$creadListPrec :: ReadPrec [ListAccessKeysResponse]
readPrec :: ReadPrec ListAccessKeysResponse
$creadPrec :: ReadPrec ListAccessKeysResponse
readList :: ReadS [ListAccessKeysResponse]
$creadList :: ReadS [ListAccessKeysResponse]
readsPrec :: Int -> ReadS ListAccessKeysResponse
$creadsPrec :: Int -> ReadS ListAccessKeysResponse
Prelude.Read, Int -> ListAccessKeysResponse -> ShowS
[ListAccessKeysResponse] -> ShowS
ListAccessKeysResponse -> String
(Int -> ListAccessKeysResponse -> ShowS)
-> (ListAccessKeysResponse -> String)
-> ([ListAccessKeysResponse] -> ShowS)
-> Show ListAccessKeysResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAccessKeysResponse] -> ShowS
$cshowList :: [ListAccessKeysResponse] -> ShowS
show :: ListAccessKeysResponse -> String
$cshow :: ListAccessKeysResponse -> String
showsPrec :: Int -> ListAccessKeysResponse -> ShowS
$cshowsPrec :: Int -> ListAccessKeysResponse -> ShowS
Prelude.Show, (forall x. ListAccessKeysResponse -> Rep ListAccessKeysResponse x)
-> (forall x.
Rep ListAccessKeysResponse x -> ListAccessKeysResponse)
-> Generic ListAccessKeysResponse
forall x. Rep ListAccessKeysResponse x -> ListAccessKeysResponse
forall x. ListAccessKeysResponse -> Rep ListAccessKeysResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAccessKeysResponse x -> ListAccessKeysResponse
$cfrom :: forall x. ListAccessKeysResponse -> Rep ListAccessKeysResponse x
Prelude.Generic)
newListAccessKeysResponse ::
Prelude.Int ->
ListAccessKeysResponse
newListAccessKeysResponse :: Int -> ListAccessKeysResponse
newListAccessKeysResponse Int
pHttpStatus_ =
ListAccessKeysResponse' :: Maybe Text
-> Maybe Bool
-> Int
-> [AccessKeyMetadata]
-> ListAccessKeysResponse
ListAccessKeysResponse'
{ $sel:marker:ListAccessKeysResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListAccessKeysResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAccessKeysResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:accessKeyMetadata:ListAccessKeysResponse' :: [AccessKeyMetadata]
accessKeyMetadata = [AccessKeyMetadata]
forall a. Monoid a => a
Prelude.mempty
}
listAccessKeysResponse_marker :: Lens.Lens' ListAccessKeysResponse (Prelude.Maybe Prelude.Text)
listAccessKeysResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListAccessKeysResponse -> f ListAccessKeysResponse
listAccessKeysResponse_marker = (ListAccessKeysResponse -> Maybe Text)
-> (ListAccessKeysResponse -> Maybe Text -> ListAccessKeysResponse)
-> Lens' ListAccessKeysResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccessKeysResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAccessKeysResponse' :: ListAccessKeysResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAccessKeysResponse
s@ListAccessKeysResponse' {} Maybe Text
a -> ListAccessKeysResponse
s {$sel:marker:ListAccessKeysResponse' :: Maybe Text
marker = Maybe Text
a} :: ListAccessKeysResponse)
listAccessKeysResponse_isTruncated :: Lens.Lens' ListAccessKeysResponse (Prelude.Maybe Prelude.Bool)
listAccessKeysResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListAccessKeysResponse -> f ListAccessKeysResponse
listAccessKeysResponse_isTruncated = (ListAccessKeysResponse -> Maybe Bool)
-> (ListAccessKeysResponse -> Maybe Bool -> ListAccessKeysResponse)
-> Lens' ListAccessKeysResponse (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccessKeysResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListAccessKeysResponse' :: ListAccessKeysResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListAccessKeysResponse
s@ListAccessKeysResponse' {} Maybe Bool
a -> ListAccessKeysResponse
s {$sel:isTruncated:ListAccessKeysResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListAccessKeysResponse)
listAccessKeysResponse_httpStatus :: Lens.Lens' ListAccessKeysResponse Prelude.Int
listAccessKeysResponse_httpStatus :: (Int -> f Int)
-> ListAccessKeysResponse -> f ListAccessKeysResponse
listAccessKeysResponse_httpStatus = (ListAccessKeysResponse -> Int)
-> (ListAccessKeysResponse -> Int -> ListAccessKeysResponse)
-> Lens ListAccessKeysResponse ListAccessKeysResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccessKeysResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAccessKeysResponse' :: ListAccessKeysResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAccessKeysResponse
s@ListAccessKeysResponse' {} Int
a -> ListAccessKeysResponse
s {$sel:httpStatus:ListAccessKeysResponse' :: Int
httpStatus = Int
a} :: ListAccessKeysResponse)
listAccessKeysResponse_accessKeyMetadata :: Lens.Lens' ListAccessKeysResponse [AccessKeyMetadata]
listAccessKeysResponse_accessKeyMetadata :: ([AccessKeyMetadata] -> f [AccessKeyMetadata])
-> ListAccessKeysResponse -> f ListAccessKeysResponse
listAccessKeysResponse_accessKeyMetadata = (ListAccessKeysResponse -> [AccessKeyMetadata])
-> (ListAccessKeysResponse
-> [AccessKeyMetadata] -> ListAccessKeysResponse)
-> Lens
ListAccessKeysResponse
ListAccessKeysResponse
[AccessKeyMetadata]
[AccessKeyMetadata]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAccessKeysResponse' {[AccessKeyMetadata]
accessKeyMetadata :: [AccessKeyMetadata]
$sel:accessKeyMetadata:ListAccessKeysResponse' :: ListAccessKeysResponse -> [AccessKeyMetadata]
accessKeyMetadata} -> [AccessKeyMetadata]
accessKeyMetadata) (\s :: ListAccessKeysResponse
s@ListAccessKeysResponse' {} [AccessKeyMetadata]
a -> ListAccessKeysResponse
s {$sel:accessKeyMetadata:ListAccessKeysResponse' :: [AccessKeyMetadata]
accessKeyMetadata = [AccessKeyMetadata]
a} :: ListAccessKeysResponse) (([AccessKeyMetadata] -> f [AccessKeyMetadata])
-> ListAccessKeysResponse -> f ListAccessKeysResponse)
-> (([AccessKeyMetadata] -> f [AccessKeyMetadata])
-> [AccessKeyMetadata] -> f [AccessKeyMetadata])
-> ([AccessKeyMetadata] -> f [AccessKeyMetadata])
-> ListAccessKeysResponse
-> f ListAccessKeysResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AccessKeyMetadata] -> f [AccessKeyMetadata])
-> [AccessKeyMetadata] -> f [AccessKeyMetadata]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListAccessKeysResponse