{-# 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.KMS.ListAliases
(
ListAliases (..),
newListAliases,
listAliases_keyId,
listAliases_marker,
listAliases_limit,
ListAliasesResponse (..),
newListAliasesResponse,
listAliasesResponse_truncated,
listAliasesResponse_aliases,
listAliasesResponse_nextMarker,
listAliasesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KMS.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 ListAliases = ListAliases'
{
ListAliases -> Maybe Text
keyId :: Prelude.Maybe Prelude.Text,
ListAliases -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAliases -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (ListAliases -> ListAliases -> Bool
(ListAliases -> ListAliases -> Bool)
-> (ListAliases -> ListAliases -> Bool) -> Eq ListAliases
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAliases -> ListAliases -> Bool
$c/= :: ListAliases -> ListAliases -> Bool
== :: ListAliases -> ListAliases -> Bool
$c== :: ListAliases -> ListAliases -> Bool
Prelude.Eq, ReadPrec [ListAliases]
ReadPrec ListAliases
Int -> ReadS ListAliases
ReadS [ListAliases]
(Int -> ReadS ListAliases)
-> ReadS [ListAliases]
-> ReadPrec ListAliases
-> ReadPrec [ListAliases]
-> Read ListAliases
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAliases]
$creadListPrec :: ReadPrec [ListAliases]
readPrec :: ReadPrec ListAliases
$creadPrec :: ReadPrec ListAliases
readList :: ReadS [ListAliases]
$creadList :: ReadS [ListAliases]
readsPrec :: Int -> ReadS ListAliases
$creadsPrec :: Int -> ReadS ListAliases
Prelude.Read, Int -> ListAliases -> ShowS
[ListAliases] -> ShowS
ListAliases -> String
(Int -> ListAliases -> ShowS)
-> (ListAliases -> String)
-> ([ListAliases] -> ShowS)
-> Show ListAliases
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAliases] -> ShowS
$cshowList :: [ListAliases] -> ShowS
show :: ListAliases -> String
$cshow :: ListAliases -> String
showsPrec :: Int -> ListAliases -> ShowS
$cshowsPrec :: Int -> ListAliases -> ShowS
Prelude.Show, (forall x. ListAliases -> Rep ListAliases x)
-> (forall x. Rep ListAliases x -> ListAliases)
-> Generic ListAliases
forall x. Rep ListAliases x -> ListAliases
forall x. ListAliases -> Rep ListAliases x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAliases x -> ListAliases
$cfrom :: forall x. ListAliases -> Rep ListAliases x
Prelude.Generic)
newListAliases ::
ListAliases
newListAliases :: ListAliases
newListAliases =
ListAliases' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListAliases
ListAliases'
{ $sel:keyId:ListAliases' :: Maybe Text
keyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListAliases' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListAliases' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listAliases_keyId :: Lens.Lens' ListAliases (Prelude.Maybe Prelude.Text)
listAliases_keyId :: (Maybe Text -> f (Maybe Text)) -> ListAliases -> f ListAliases
listAliases_keyId = (ListAliases -> Maybe Text)
-> (ListAliases -> Maybe Text -> ListAliases)
-> Lens ListAliases ListAliases (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAliases' {Maybe Text
keyId :: Maybe Text
$sel:keyId:ListAliases' :: ListAliases -> Maybe Text
keyId} -> Maybe Text
keyId) (\s :: ListAliases
s@ListAliases' {} Maybe Text
a -> ListAliases
s {$sel:keyId:ListAliases' :: Maybe Text
keyId = Maybe Text
a} :: ListAliases)
listAliases_marker :: Lens.Lens' ListAliases (Prelude.Maybe Prelude.Text)
listAliases_marker :: (Maybe Text -> f (Maybe Text)) -> ListAliases -> f ListAliases
listAliases_marker = (ListAliases -> Maybe Text)
-> (ListAliases -> Maybe Text -> ListAliases)
-> Lens ListAliases ListAliases (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAliases' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAliases' :: ListAliases -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAliases
s@ListAliases' {} Maybe Text
a -> ListAliases
s {$sel:marker:ListAliases' :: Maybe Text
marker = Maybe Text
a} :: ListAliases)
listAliases_limit :: Lens.Lens' ListAliases (Prelude.Maybe Prelude.Natural)
listAliases_limit :: (Maybe Natural -> f (Maybe Natural))
-> ListAliases -> f ListAliases
listAliases_limit = (ListAliases -> Maybe Natural)
-> (ListAliases -> Maybe Natural -> ListAliases)
-> Lens ListAliases ListAliases (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAliases' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListAliases' :: ListAliases -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListAliases
s@ListAliases' {} Maybe Natural
a -> ListAliases
s {$sel:limit:ListAliases' :: Maybe Natural
limit = Maybe Natural
a} :: ListAliases)
instance Core.AWSPager ListAliases where
page :: ListAliases -> AWSResponse ListAliases -> Maybe ListAliases
page ListAliases
rq AWSResponse ListAliases
rs
| Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAliases
ListAliasesResponse
rs
ListAliasesResponse
-> Getting (First Bool) ListAliasesResponse Bool -> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListAliasesResponse -> Const (First Bool) ListAliasesResponse
Lens' ListAliasesResponse (Maybe Bool)
listAliasesResponse_truncated ((Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListAliasesResponse -> Const (First Bool) ListAliasesResponse)
-> ((Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) ListAliasesResponse 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 ListAliases
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListAliases
ListAliasesResponse
rs
ListAliasesResponse
-> Getting (First Text) ListAliasesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAliasesResponse -> Const (First Text) ListAliasesResponse
Lens' ListAliasesResponse (Maybe Text)
listAliasesResponse_nextMarker ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAliasesResponse -> Const (First Text) ListAliasesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAliasesResponse 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 ListAliases
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListAliases -> Maybe ListAliases
forall a. a -> Maybe a
Prelude.Just (ListAliases -> Maybe ListAliases)
-> ListAliases -> Maybe ListAliases
forall a b. (a -> b) -> a -> b
Prelude.$
ListAliases
rq
ListAliases -> (ListAliases -> ListAliases) -> ListAliases
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAliases -> Identity ListAliases
Lens ListAliases ListAliases (Maybe Text) (Maybe Text)
listAliases_marker
((Maybe Text -> Identity (Maybe Text))
-> ListAliases -> Identity ListAliases)
-> Maybe Text -> ListAliases -> ListAliases
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAliases
ListAliasesResponse
rs
ListAliasesResponse
-> Getting (First Text) ListAliasesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAliasesResponse -> Const (First Text) ListAliasesResponse
Lens' ListAliasesResponse (Maybe Text)
listAliasesResponse_nextMarker ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAliasesResponse -> Const (First Text) ListAliasesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAliasesResponse 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 ListAliases where
type AWSResponse ListAliases = ListAliasesResponse
request :: ListAliases -> Request ListAliases
request = Service -> ListAliases -> Request ListAliases
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListAliases
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAliases)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAliases))
-> Logger
-> Service
-> Proxy ListAliases
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAliases)))
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 Bool
-> Maybe [AliasListEntry]
-> Maybe Text
-> Int
-> ListAliasesResponse
ListAliasesResponse'
(Maybe Bool
-> Maybe [AliasListEntry]
-> Maybe Text
-> Int
-> ListAliasesResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe [AliasListEntry]
-> Maybe Text -> Int -> ListAliasesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Truncated")
Either
String
(Maybe [AliasListEntry]
-> Maybe Text -> Int -> ListAliasesResponse)
-> Either String (Maybe [AliasListEntry])
-> Either String (Maybe Text -> Int -> ListAliasesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [AliasListEntry]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Aliases" Either String (Maybe (Maybe [AliasListEntry]))
-> Maybe [AliasListEntry] -> Either String (Maybe [AliasListEntry])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AliasListEntry]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListAliasesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListAliasesResponse)
forall (f :: * -> *) a b. Applicative f => 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
"NextMarker")
Either String (Int -> ListAliasesResponse)
-> Either String Int -> Either String ListAliasesResponse
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 ListAliases
instance Prelude.NFData ListAliases
instance Core.ToHeaders ListAliases where
toHeaders :: ListAliases -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListAliases -> 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
"TrentService.ListAliases" :: 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 ListAliases where
toJSON :: ListAliases -> Value
toJSON ListAliases' {Maybe Natural
Maybe Text
limit :: Maybe Natural
marker :: Maybe Text
keyId :: Maybe Text
$sel:limit:ListAliases' :: ListAliases -> Maybe Natural
$sel:marker:ListAliases' :: ListAliases -> Maybe Text
$sel:keyId:ListAliases' :: ListAliases -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"KeyId" 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
keyId,
(Text
"Marker" 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
marker,
(Text
"Limit" 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
limit
]
)
instance Core.ToPath ListAliases where
toPath :: ListAliases -> ByteString
toPath = ByteString -> ListAliases -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListAliases where
toQuery :: ListAliases -> QueryString
toQuery = QueryString -> ListAliases -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListAliasesResponse = ListAliasesResponse'
{
ListAliasesResponse -> Maybe Bool
truncated :: Prelude.Maybe Prelude.Bool,
ListAliasesResponse -> Maybe [AliasListEntry]
aliases :: Prelude.Maybe [AliasListEntry],
ListAliasesResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListAliasesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAliasesResponse -> ListAliasesResponse -> Bool
(ListAliasesResponse -> ListAliasesResponse -> Bool)
-> (ListAliasesResponse -> ListAliasesResponse -> Bool)
-> Eq ListAliasesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAliasesResponse -> ListAliasesResponse -> Bool
$c/= :: ListAliasesResponse -> ListAliasesResponse -> Bool
== :: ListAliasesResponse -> ListAliasesResponse -> Bool
$c== :: ListAliasesResponse -> ListAliasesResponse -> Bool
Prelude.Eq, ReadPrec [ListAliasesResponse]
ReadPrec ListAliasesResponse
Int -> ReadS ListAliasesResponse
ReadS [ListAliasesResponse]
(Int -> ReadS ListAliasesResponse)
-> ReadS [ListAliasesResponse]
-> ReadPrec ListAliasesResponse
-> ReadPrec [ListAliasesResponse]
-> Read ListAliasesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAliasesResponse]
$creadListPrec :: ReadPrec [ListAliasesResponse]
readPrec :: ReadPrec ListAliasesResponse
$creadPrec :: ReadPrec ListAliasesResponse
readList :: ReadS [ListAliasesResponse]
$creadList :: ReadS [ListAliasesResponse]
readsPrec :: Int -> ReadS ListAliasesResponse
$creadsPrec :: Int -> ReadS ListAliasesResponse
Prelude.Read, Int -> ListAliasesResponse -> ShowS
[ListAliasesResponse] -> ShowS
ListAliasesResponse -> String
(Int -> ListAliasesResponse -> ShowS)
-> (ListAliasesResponse -> String)
-> ([ListAliasesResponse] -> ShowS)
-> Show ListAliasesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAliasesResponse] -> ShowS
$cshowList :: [ListAliasesResponse] -> ShowS
show :: ListAliasesResponse -> String
$cshow :: ListAliasesResponse -> String
showsPrec :: Int -> ListAliasesResponse -> ShowS
$cshowsPrec :: Int -> ListAliasesResponse -> ShowS
Prelude.Show, (forall x. ListAliasesResponse -> Rep ListAliasesResponse x)
-> (forall x. Rep ListAliasesResponse x -> ListAliasesResponse)
-> Generic ListAliasesResponse
forall x. Rep ListAliasesResponse x -> ListAliasesResponse
forall x. ListAliasesResponse -> Rep ListAliasesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAliasesResponse x -> ListAliasesResponse
$cfrom :: forall x. ListAliasesResponse -> Rep ListAliasesResponse x
Prelude.Generic)
newListAliasesResponse ::
Prelude.Int ->
ListAliasesResponse
newListAliasesResponse :: Int -> ListAliasesResponse
newListAliasesResponse Int
pHttpStatus_ =
ListAliasesResponse' :: Maybe Bool
-> Maybe [AliasListEntry]
-> Maybe Text
-> Int
-> ListAliasesResponse
ListAliasesResponse'
{ $sel:truncated:ListAliasesResponse' :: Maybe Bool
truncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:aliases:ListAliasesResponse' :: Maybe [AliasListEntry]
aliases = Maybe [AliasListEntry]
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:ListAliasesResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAliasesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAliasesResponse_truncated :: Lens.Lens' ListAliasesResponse (Prelude.Maybe Prelude.Bool)
listAliasesResponse_truncated :: (Maybe Bool -> f (Maybe Bool))
-> ListAliasesResponse -> f ListAliasesResponse
listAliasesResponse_truncated = (ListAliasesResponse -> Maybe Bool)
-> (ListAliasesResponse -> Maybe Bool -> ListAliasesResponse)
-> Lens' ListAliasesResponse (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAliasesResponse' {Maybe Bool
truncated :: Maybe Bool
$sel:truncated:ListAliasesResponse' :: ListAliasesResponse -> Maybe Bool
truncated} -> Maybe Bool
truncated) (\s :: ListAliasesResponse
s@ListAliasesResponse' {} Maybe Bool
a -> ListAliasesResponse
s {$sel:truncated:ListAliasesResponse' :: Maybe Bool
truncated = Maybe Bool
a} :: ListAliasesResponse)
listAliasesResponse_aliases :: Lens.Lens' ListAliasesResponse (Prelude.Maybe [AliasListEntry])
listAliasesResponse_aliases :: (Maybe [AliasListEntry] -> f (Maybe [AliasListEntry]))
-> ListAliasesResponse -> f ListAliasesResponse
listAliasesResponse_aliases = (ListAliasesResponse -> Maybe [AliasListEntry])
-> (ListAliasesResponse
-> Maybe [AliasListEntry] -> ListAliasesResponse)
-> Lens
ListAliasesResponse
ListAliasesResponse
(Maybe [AliasListEntry])
(Maybe [AliasListEntry])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAliasesResponse' {Maybe [AliasListEntry]
aliases :: Maybe [AliasListEntry]
$sel:aliases:ListAliasesResponse' :: ListAliasesResponse -> Maybe [AliasListEntry]
aliases} -> Maybe [AliasListEntry]
aliases) (\s :: ListAliasesResponse
s@ListAliasesResponse' {} Maybe [AliasListEntry]
a -> ListAliasesResponse
s {$sel:aliases:ListAliasesResponse' :: Maybe [AliasListEntry]
aliases = Maybe [AliasListEntry]
a} :: ListAliasesResponse) ((Maybe [AliasListEntry] -> f (Maybe [AliasListEntry]))
-> ListAliasesResponse -> f ListAliasesResponse)
-> ((Maybe [AliasListEntry] -> f (Maybe [AliasListEntry]))
-> Maybe [AliasListEntry] -> f (Maybe [AliasListEntry]))
-> (Maybe [AliasListEntry] -> f (Maybe [AliasListEntry]))
-> ListAliasesResponse
-> f ListAliasesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AliasListEntry] [AliasListEntry] [AliasListEntry] [AliasListEntry]
-> Iso
(Maybe [AliasListEntry])
(Maybe [AliasListEntry])
(Maybe [AliasListEntry])
(Maybe [AliasListEntry])
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
[AliasListEntry] [AliasListEntry] [AliasListEntry] [AliasListEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAliasesResponse_nextMarker :: Lens.Lens' ListAliasesResponse (Prelude.Maybe Prelude.Text)
listAliasesResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListAliasesResponse -> f ListAliasesResponse
listAliasesResponse_nextMarker = (ListAliasesResponse -> Maybe Text)
-> (ListAliasesResponse -> Maybe Text -> ListAliasesResponse)
-> Lens' ListAliasesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAliasesResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListAliasesResponse' :: ListAliasesResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListAliasesResponse
s@ListAliasesResponse' {} Maybe Text
a -> ListAliasesResponse
s {$sel:nextMarker:ListAliasesResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListAliasesResponse)
listAliasesResponse_httpStatus :: Lens.Lens' ListAliasesResponse Prelude.Int
listAliasesResponse_httpStatus :: (Int -> f Int) -> ListAliasesResponse -> f ListAliasesResponse
listAliasesResponse_httpStatus = (ListAliasesResponse -> Int)
-> (ListAliasesResponse -> Int -> ListAliasesResponse)
-> Lens ListAliasesResponse ListAliasesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAliasesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAliasesResponse' :: ListAliasesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAliasesResponse
s@ListAliasesResponse' {} Int
a -> ListAliasesResponse
s {$sel:httpStatus:ListAliasesResponse' :: Int
httpStatus = Int
a} :: ListAliasesResponse)
instance Prelude.NFData ListAliasesResponse