{-# 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.Route53.ListHealthChecks
(
ListHealthChecks (..),
newListHealthChecks,
listHealthChecks_marker,
listHealthChecks_maxItems,
ListHealthChecksResponse (..),
newListHealthChecksResponse,
listHealthChecksResponse_nextMarker,
listHealthChecksResponse_httpStatus,
listHealthChecksResponse_healthChecks,
listHealthChecksResponse_marker,
listHealthChecksResponse_isTruncated,
listHealthChecksResponse_maxItems,
)
where
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
import Amazonka.Route53.Types
data ListHealthChecks = ListHealthChecks'
{
ListHealthChecks -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListHealthChecks -> Maybe Text
maxItems :: Prelude.Maybe Prelude.Text
}
deriving (ListHealthChecks -> ListHealthChecks -> Bool
(ListHealthChecks -> ListHealthChecks -> Bool)
-> (ListHealthChecks -> ListHealthChecks -> Bool)
-> Eq ListHealthChecks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHealthChecks -> ListHealthChecks -> Bool
$c/= :: ListHealthChecks -> ListHealthChecks -> Bool
== :: ListHealthChecks -> ListHealthChecks -> Bool
$c== :: ListHealthChecks -> ListHealthChecks -> Bool
Prelude.Eq, ReadPrec [ListHealthChecks]
ReadPrec ListHealthChecks
Int -> ReadS ListHealthChecks
ReadS [ListHealthChecks]
(Int -> ReadS ListHealthChecks)
-> ReadS [ListHealthChecks]
-> ReadPrec ListHealthChecks
-> ReadPrec [ListHealthChecks]
-> Read ListHealthChecks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHealthChecks]
$creadListPrec :: ReadPrec [ListHealthChecks]
readPrec :: ReadPrec ListHealthChecks
$creadPrec :: ReadPrec ListHealthChecks
readList :: ReadS [ListHealthChecks]
$creadList :: ReadS [ListHealthChecks]
readsPrec :: Int -> ReadS ListHealthChecks
$creadsPrec :: Int -> ReadS ListHealthChecks
Prelude.Read, Int -> ListHealthChecks -> ShowS
[ListHealthChecks] -> ShowS
ListHealthChecks -> String
(Int -> ListHealthChecks -> ShowS)
-> (ListHealthChecks -> String)
-> ([ListHealthChecks] -> ShowS)
-> Show ListHealthChecks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHealthChecks] -> ShowS
$cshowList :: [ListHealthChecks] -> ShowS
show :: ListHealthChecks -> String
$cshow :: ListHealthChecks -> String
showsPrec :: Int -> ListHealthChecks -> ShowS
$cshowsPrec :: Int -> ListHealthChecks -> ShowS
Prelude.Show, (forall x. ListHealthChecks -> Rep ListHealthChecks x)
-> (forall x. Rep ListHealthChecks x -> ListHealthChecks)
-> Generic ListHealthChecks
forall x. Rep ListHealthChecks x -> ListHealthChecks
forall x. ListHealthChecks -> Rep ListHealthChecks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListHealthChecks x -> ListHealthChecks
$cfrom :: forall x. ListHealthChecks -> Rep ListHealthChecks x
Prelude.Generic)
newListHealthChecks ::
ListHealthChecks
newListHealthChecks :: ListHealthChecks
newListHealthChecks =
ListHealthChecks' :: Maybe Text -> Maybe Text -> ListHealthChecks
ListHealthChecks'
{ $sel:marker:ListHealthChecks' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListHealthChecks' :: Maybe Text
maxItems = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listHealthChecks_marker :: Lens.Lens' ListHealthChecks (Prelude.Maybe Prelude.Text)
listHealthChecks_marker :: (Maybe Text -> f (Maybe Text))
-> ListHealthChecks -> f ListHealthChecks
listHealthChecks_marker = (ListHealthChecks -> Maybe Text)
-> (ListHealthChecks -> Maybe Text -> ListHealthChecks)
-> Lens ListHealthChecks ListHealthChecks (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHealthChecks' {Maybe Text
marker :: Maybe Text
$sel:marker:ListHealthChecks' :: ListHealthChecks -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListHealthChecks
s@ListHealthChecks' {} Maybe Text
a -> ListHealthChecks
s {$sel:marker:ListHealthChecks' :: Maybe Text
marker = Maybe Text
a} :: ListHealthChecks)
listHealthChecks_maxItems :: Lens.Lens' ListHealthChecks (Prelude.Maybe Prelude.Text)
listHealthChecks_maxItems :: (Maybe Text -> f (Maybe Text))
-> ListHealthChecks -> f ListHealthChecks
listHealthChecks_maxItems = (ListHealthChecks -> Maybe Text)
-> (ListHealthChecks -> Maybe Text -> ListHealthChecks)
-> Lens ListHealthChecks ListHealthChecks (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHealthChecks' {Maybe Text
maxItems :: Maybe Text
$sel:maxItems:ListHealthChecks' :: ListHealthChecks -> Maybe Text
maxItems} -> Maybe Text
maxItems) (\s :: ListHealthChecks
s@ListHealthChecks' {} Maybe Text
a -> ListHealthChecks
s {$sel:maxItems:ListHealthChecks' :: Maybe Text
maxItems = Maybe Text
a} :: ListHealthChecks)
instance Core.AWSPager ListHealthChecks where
page :: ListHealthChecks
-> AWSResponse ListHealthChecks -> Maybe ListHealthChecks
page ListHealthChecks
rq AWSResponse ListHealthChecks
rs
| Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse ListHealthChecks
ListHealthChecksResponse
rs ListHealthChecksResponse
-> Getting Bool ListHealthChecksResponse Bool -> Bool
forall s a. s -> Getting a s a -> a
Lens.^. Getting Bool ListHealthChecksResponse Bool
Lens' ListHealthChecksResponse Bool
listHealthChecksResponse_isTruncated) =
Maybe ListHealthChecks
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListHealthChecks
ListHealthChecksResponse
rs
ListHealthChecksResponse
-> Getting (First Text) ListHealthChecksResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListHealthChecksResponse
-> Const (First Text) ListHealthChecksResponse
Lens' ListHealthChecksResponse (Maybe Text)
listHealthChecksResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListHealthChecksResponse
-> Const (First Text) ListHealthChecksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListHealthChecksResponse 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 ListHealthChecks
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListHealthChecks -> Maybe ListHealthChecks
forall a. a -> Maybe a
Prelude.Just (ListHealthChecks -> Maybe ListHealthChecks)
-> ListHealthChecks -> Maybe ListHealthChecks
forall a b. (a -> b) -> a -> b
Prelude.$
ListHealthChecks
rq
ListHealthChecks
-> (ListHealthChecks -> ListHealthChecks) -> ListHealthChecks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListHealthChecks -> Identity ListHealthChecks
Lens ListHealthChecks ListHealthChecks (Maybe Text) (Maybe Text)
listHealthChecks_marker
((Maybe Text -> Identity (Maybe Text))
-> ListHealthChecks -> Identity ListHealthChecks)
-> Maybe Text -> ListHealthChecks -> ListHealthChecks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListHealthChecks
ListHealthChecksResponse
rs
ListHealthChecksResponse
-> Getting (First Text) ListHealthChecksResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListHealthChecksResponse
-> Const (First Text) ListHealthChecksResponse
Lens' ListHealthChecksResponse (Maybe Text)
listHealthChecksResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListHealthChecksResponse
-> Const (First Text) ListHealthChecksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListHealthChecksResponse 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 ListHealthChecks where
type
AWSResponse ListHealthChecks =
ListHealthChecksResponse
request :: ListHealthChecks -> Request ListHealthChecks
request = Service -> ListHealthChecks -> Request ListHealthChecks
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListHealthChecks
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListHealthChecks)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListHealthChecks))
-> Logger
-> Service
-> Proxy ListHealthChecks
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListHealthChecks)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Int
-> [HealthCheck]
-> Text
-> Bool
-> Text
-> ListHealthChecksResponse
ListHealthChecksResponse'
(Maybe Text
-> Int
-> [HealthCheck]
-> Text
-> Bool
-> Text
-> ListHealthChecksResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [HealthCheck]
-> Text
-> Bool
-> Text
-> ListHealthChecksResponse)
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
"NextMarker")
Either
String
(Int
-> [HealthCheck]
-> Text
-> Bool
-> Text
-> ListHealthChecksResponse)
-> Either String Int
-> Either
String
([HealthCheck] -> Text -> Bool -> Text -> ListHealthChecksResponse)
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
([HealthCheck] -> Text -> Bool -> Text -> ListHealthChecksResponse)
-> Either String [HealthCheck]
-> Either String (Text -> Bool -> Text -> ListHealthChecksResponse)
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
"HealthChecks" 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 [HealthCheck])
-> Either String [HealthCheck]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [HealthCheck]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"HealthCheck"
)
Either String (Text -> Bool -> Text -> ListHealthChecksResponse)
-> Either String Text
-> Either String (Bool -> Text -> ListHealthChecksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"Marker")
Either String (Bool -> Text -> ListHealthChecksResponse)
-> Either String Bool
-> Either String (Text -> ListHealthChecksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Bool
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"IsTruncated")
Either String (Text -> ListHealthChecksResponse)
-> Either String Text -> Either String ListHealthChecksResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"MaxItems")
)
instance Prelude.Hashable ListHealthChecks
instance Prelude.NFData ListHealthChecks
instance Core.ToHeaders ListHealthChecks where
toHeaders :: ListHealthChecks -> ResponseHeaders
toHeaders = ResponseHeaders -> ListHealthChecks -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListHealthChecks where
toPath :: ListHealthChecks -> ByteString
toPath = ByteString -> ListHealthChecks -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2013-04-01/healthcheck"
instance Core.ToQuery ListHealthChecks where
toQuery :: ListHealthChecks -> QueryString
toQuery ListHealthChecks' {Maybe Text
maxItems :: Maybe Text
marker :: Maybe Text
$sel:maxItems:ListHealthChecks' :: ListHealthChecks -> Maybe Text
$sel:marker:ListHealthChecks' :: ListHealthChecks -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"maxitems" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
maxItems
]
data ListHealthChecksResponse = ListHealthChecksResponse'
{
ListHealthChecksResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListHealthChecksResponse -> Int
httpStatus :: Prelude.Int,
ListHealthChecksResponse -> [HealthCheck]
healthChecks :: [HealthCheck],
ListHealthChecksResponse -> Text
marker :: Prelude.Text,
ListHealthChecksResponse -> Bool
isTruncated :: Prelude.Bool,
ListHealthChecksResponse -> Text
maxItems :: Prelude.Text
}
deriving (ListHealthChecksResponse -> ListHealthChecksResponse -> Bool
(ListHealthChecksResponse -> ListHealthChecksResponse -> Bool)
-> (ListHealthChecksResponse -> ListHealthChecksResponse -> Bool)
-> Eq ListHealthChecksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHealthChecksResponse -> ListHealthChecksResponse -> Bool
$c/= :: ListHealthChecksResponse -> ListHealthChecksResponse -> Bool
== :: ListHealthChecksResponse -> ListHealthChecksResponse -> Bool
$c== :: ListHealthChecksResponse -> ListHealthChecksResponse -> Bool
Prelude.Eq, ReadPrec [ListHealthChecksResponse]
ReadPrec ListHealthChecksResponse
Int -> ReadS ListHealthChecksResponse
ReadS [ListHealthChecksResponse]
(Int -> ReadS ListHealthChecksResponse)
-> ReadS [ListHealthChecksResponse]
-> ReadPrec ListHealthChecksResponse
-> ReadPrec [ListHealthChecksResponse]
-> Read ListHealthChecksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHealthChecksResponse]
$creadListPrec :: ReadPrec [ListHealthChecksResponse]
readPrec :: ReadPrec ListHealthChecksResponse
$creadPrec :: ReadPrec ListHealthChecksResponse
readList :: ReadS [ListHealthChecksResponse]
$creadList :: ReadS [ListHealthChecksResponse]
readsPrec :: Int -> ReadS ListHealthChecksResponse
$creadsPrec :: Int -> ReadS ListHealthChecksResponse
Prelude.Read, Int -> ListHealthChecksResponse -> ShowS
[ListHealthChecksResponse] -> ShowS
ListHealthChecksResponse -> String
(Int -> ListHealthChecksResponse -> ShowS)
-> (ListHealthChecksResponse -> String)
-> ([ListHealthChecksResponse] -> ShowS)
-> Show ListHealthChecksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHealthChecksResponse] -> ShowS
$cshowList :: [ListHealthChecksResponse] -> ShowS
show :: ListHealthChecksResponse -> String
$cshow :: ListHealthChecksResponse -> String
showsPrec :: Int -> ListHealthChecksResponse -> ShowS
$cshowsPrec :: Int -> ListHealthChecksResponse -> ShowS
Prelude.Show, (forall x.
ListHealthChecksResponse -> Rep ListHealthChecksResponse x)
-> (forall x.
Rep ListHealthChecksResponse x -> ListHealthChecksResponse)
-> Generic ListHealthChecksResponse
forall x.
Rep ListHealthChecksResponse x -> ListHealthChecksResponse
forall x.
ListHealthChecksResponse -> Rep ListHealthChecksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListHealthChecksResponse x -> ListHealthChecksResponse
$cfrom :: forall x.
ListHealthChecksResponse -> Rep ListHealthChecksResponse x
Prelude.Generic)
newListHealthChecksResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Bool ->
Prelude.Text ->
ListHealthChecksResponse
newListHealthChecksResponse :: Int -> Text -> Bool -> Text -> ListHealthChecksResponse
newListHealthChecksResponse
Int
pHttpStatus_
Text
pMarker_
Bool
pIsTruncated_
Text
pMaxItems_ =
ListHealthChecksResponse' :: Maybe Text
-> Int
-> [HealthCheck]
-> Text
-> Bool
-> Text
-> ListHealthChecksResponse
ListHealthChecksResponse'
{ $sel:nextMarker:ListHealthChecksResponse' :: Maybe Text
nextMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListHealthChecksResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:healthChecks:ListHealthChecksResponse' :: [HealthCheck]
healthChecks = [HealthCheck]
forall a. Monoid a => a
Prelude.mempty,
$sel:marker:ListHealthChecksResponse' :: Text
marker = Text
pMarker_,
$sel:isTruncated:ListHealthChecksResponse' :: Bool
isTruncated = Bool
pIsTruncated_,
$sel:maxItems:ListHealthChecksResponse' :: Text
maxItems = Text
pMaxItems_
}
listHealthChecksResponse_nextMarker :: Lens.Lens' ListHealthChecksResponse (Prelude.Maybe Prelude.Text)
listHealthChecksResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListHealthChecksResponse -> f ListHealthChecksResponse
listHealthChecksResponse_nextMarker = (ListHealthChecksResponse -> Maybe Text)
-> (ListHealthChecksResponse
-> Maybe Text -> ListHealthChecksResponse)
-> Lens' ListHealthChecksResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHealthChecksResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListHealthChecksResponse' :: ListHealthChecksResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListHealthChecksResponse
s@ListHealthChecksResponse' {} Maybe Text
a -> ListHealthChecksResponse
s {$sel:nextMarker:ListHealthChecksResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListHealthChecksResponse)
listHealthChecksResponse_httpStatus :: Lens.Lens' ListHealthChecksResponse Prelude.Int
listHealthChecksResponse_httpStatus :: (Int -> f Int)
-> ListHealthChecksResponse -> f ListHealthChecksResponse
listHealthChecksResponse_httpStatus = (ListHealthChecksResponse -> Int)
-> (ListHealthChecksResponse -> Int -> ListHealthChecksResponse)
-> Lens ListHealthChecksResponse ListHealthChecksResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHealthChecksResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListHealthChecksResponse' :: ListHealthChecksResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListHealthChecksResponse
s@ListHealthChecksResponse' {} Int
a -> ListHealthChecksResponse
s {$sel:httpStatus:ListHealthChecksResponse' :: Int
httpStatus = Int
a} :: ListHealthChecksResponse)
listHealthChecksResponse_healthChecks :: Lens.Lens' ListHealthChecksResponse [HealthCheck]
listHealthChecksResponse_healthChecks :: ([HealthCheck] -> f [HealthCheck])
-> ListHealthChecksResponse -> f ListHealthChecksResponse
listHealthChecksResponse_healthChecks = (ListHealthChecksResponse -> [HealthCheck])
-> (ListHealthChecksResponse
-> [HealthCheck] -> ListHealthChecksResponse)
-> Lens
ListHealthChecksResponse
ListHealthChecksResponse
[HealthCheck]
[HealthCheck]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHealthChecksResponse' {[HealthCheck]
healthChecks :: [HealthCheck]
$sel:healthChecks:ListHealthChecksResponse' :: ListHealthChecksResponse -> [HealthCheck]
healthChecks} -> [HealthCheck]
healthChecks) (\s :: ListHealthChecksResponse
s@ListHealthChecksResponse' {} [HealthCheck]
a -> ListHealthChecksResponse
s {$sel:healthChecks:ListHealthChecksResponse' :: [HealthCheck]
healthChecks = [HealthCheck]
a} :: ListHealthChecksResponse) (([HealthCheck] -> f [HealthCheck])
-> ListHealthChecksResponse -> f ListHealthChecksResponse)
-> (([HealthCheck] -> f [HealthCheck])
-> [HealthCheck] -> f [HealthCheck])
-> ([HealthCheck] -> f [HealthCheck])
-> ListHealthChecksResponse
-> f ListHealthChecksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([HealthCheck] -> f [HealthCheck])
-> [HealthCheck] -> f [HealthCheck]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listHealthChecksResponse_marker :: Lens.Lens' ListHealthChecksResponse Prelude.Text
listHealthChecksResponse_marker :: (Text -> f Text)
-> ListHealthChecksResponse -> f ListHealthChecksResponse
listHealthChecksResponse_marker = (ListHealthChecksResponse -> Text)
-> (ListHealthChecksResponse -> Text -> ListHealthChecksResponse)
-> Lens ListHealthChecksResponse ListHealthChecksResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHealthChecksResponse' {Text
marker :: Text
$sel:marker:ListHealthChecksResponse' :: ListHealthChecksResponse -> Text
marker} -> Text
marker) (\s :: ListHealthChecksResponse
s@ListHealthChecksResponse' {} Text
a -> ListHealthChecksResponse
s {$sel:marker:ListHealthChecksResponse' :: Text
marker = Text
a} :: ListHealthChecksResponse)
listHealthChecksResponse_isTruncated :: Lens.Lens' ListHealthChecksResponse Prelude.Bool
listHealthChecksResponse_isTruncated :: (Bool -> f Bool)
-> ListHealthChecksResponse -> f ListHealthChecksResponse
listHealthChecksResponse_isTruncated = (ListHealthChecksResponse -> Bool)
-> (ListHealthChecksResponse -> Bool -> ListHealthChecksResponse)
-> Lens' ListHealthChecksResponse Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHealthChecksResponse' {Bool
isTruncated :: Bool
$sel:isTruncated:ListHealthChecksResponse' :: ListHealthChecksResponse -> Bool
isTruncated} -> Bool
isTruncated) (\s :: ListHealthChecksResponse
s@ListHealthChecksResponse' {} Bool
a -> ListHealthChecksResponse
s {$sel:isTruncated:ListHealthChecksResponse' :: Bool
isTruncated = Bool
a} :: ListHealthChecksResponse)
listHealthChecksResponse_maxItems :: Lens.Lens' ListHealthChecksResponse Prelude.Text
listHealthChecksResponse_maxItems :: (Text -> f Text)
-> ListHealthChecksResponse -> f ListHealthChecksResponse
listHealthChecksResponse_maxItems = (ListHealthChecksResponse -> Text)
-> (ListHealthChecksResponse -> Text -> ListHealthChecksResponse)
-> Lens ListHealthChecksResponse ListHealthChecksResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHealthChecksResponse' {Text
maxItems :: Text
$sel:maxItems:ListHealthChecksResponse' :: ListHealthChecksResponse -> Text
maxItems} -> Text
maxItems) (\s :: ListHealthChecksResponse
s@ListHealthChecksResponse' {} Text
a -> ListHealthChecksResponse
s {$sel:maxItems:ListHealthChecksResponse' :: Text
maxItems = Text
a} :: ListHealthChecksResponse)
instance Prelude.NFData ListHealthChecksResponse