{-# 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.Route53RecoveryReadiness.GetReadinessCheckStatus
(
GetReadinessCheckStatus (..),
newGetReadinessCheckStatus,
getReadinessCheckStatus_nextToken,
getReadinessCheckStatus_maxResults,
getReadinessCheckStatus_readinessCheckName,
GetReadinessCheckStatusResponse (..),
newGetReadinessCheckStatusResponse,
getReadinessCheckStatusResponse_readiness,
getReadinessCheckStatusResponse_resources,
getReadinessCheckStatusResponse_nextToken,
getReadinessCheckStatusResponse_messages,
getReadinessCheckStatusResponse_httpStatus,
)
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.Route53RecoveryReadiness.Types
data GetReadinessCheckStatus = GetReadinessCheckStatus'
{
GetReadinessCheckStatus -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetReadinessCheckStatus -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetReadinessCheckStatus -> Text
readinessCheckName :: Prelude.Text
}
deriving (GetReadinessCheckStatus -> GetReadinessCheckStatus -> Bool
(GetReadinessCheckStatus -> GetReadinessCheckStatus -> Bool)
-> (GetReadinessCheckStatus -> GetReadinessCheckStatus -> Bool)
-> Eq GetReadinessCheckStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetReadinessCheckStatus -> GetReadinessCheckStatus -> Bool
$c/= :: GetReadinessCheckStatus -> GetReadinessCheckStatus -> Bool
== :: GetReadinessCheckStatus -> GetReadinessCheckStatus -> Bool
$c== :: GetReadinessCheckStatus -> GetReadinessCheckStatus -> Bool
Prelude.Eq, ReadPrec [GetReadinessCheckStatus]
ReadPrec GetReadinessCheckStatus
Int -> ReadS GetReadinessCheckStatus
ReadS [GetReadinessCheckStatus]
(Int -> ReadS GetReadinessCheckStatus)
-> ReadS [GetReadinessCheckStatus]
-> ReadPrec GetReadinessCheckStatus
-> ReadPrec [GetReadinessCheckStatus]
-> Read GetReadinessCheckStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetReadinessCheckStatus]
$creadListPrec :: ReadPrec [GetReadinessCheckStatus]
readPrec :: ReadPrec GetReadinessCheckStatus
$creadPrec :: ReadPrec GetReadinessCheckStatus
readList :: ReadS [GetReadinessCheckStatus]
$creadList :: ReadS [GetReadinessCheckStatus]
readsPrec :: Int -> ReadS GetReadinessCheckStatus
$creadsPrec :: Int -> ReadS GetReadinessCheckStatus
Prelude.Read, Int -> GetReadinessCheckStatus -> ShowS
[GetReadinessCheckStatus] -> ShowS
GetReadinessCheckStatus -> String
(Int -> GetReadinessCheckStatus -> ShowS)
-> (GetReadinessCheckStatus -> String)
-> ([GetReadinessCheckStatus] -> ShowS)
-> Show GetReadinessCheckStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetReadinessCheckStatus] -> ShowS
$cshowList :: [GetReadinessCheckStatus] -> ShowS
show :: GetReadinessCheckStatus -> String
$cshow :: GetReadinessCheckStatus -> String
showsPrec :: Int -> GetReadinessCheckStatus -> ShowS
$cshowsPrec :: Int -> GetReadinessCheckStatus -> ShowS
Prelude.Show, (forall x.
GetReadinessCheckStatus -> Rep GetReadinessCheckStatus x)
-> (forall x.
Rep GetReadinessCheckStatus x -> GetReadinessCheckStatus)
-> Generic GetReadinessCheckStatus
forall x. Rep GetReadinessCheckStatus x -> GetReadinessCheckStatus
forall x. GetReadinessCheckStatus -> Rep GetReadinessCheckStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetReadinessCheckStatus x -> GetReadinessCheckStatus
$cfrom :: forall x. GetReadinessCheckStatus -> Rep GetReadinessCheckStatus x
Prelude.Generic)
newGetReadinessCheckStatus ::
Prelude.Text ->
GetReadinessCheckStatus
newGetReadinessCheckStatus :: Text -> GetReadinessCheckStatus
newGetReadinessCheckStatus Text
pReadinessCheckName_ =
GetReadinessCheckStatus' :: Maybe Text -> Maybe Natural -> Text -> GetReadinessCheckStatus
GetReadinessCheckStatus'
{ $sel:nextToken:GetReadinessCheckStatus' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetReadinessCheckStatus' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:readinessCheckName:GetReadinessCheckStatus' :: Text
readinessCheckName = Text
pReadinessCheckName_
}
getReadinessCheckStatus_nextToken :: Lens.Lens' GetReadinessCheckStatus (Prelude.Maybe Prelude.Text)
getReadinessCheckStatus_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetReadinessCheckStatus -> f GetReadinessCheckStatus
getReadinessCheckStatus_nextToken = (GetReadinessCheckStatus -> Maybe Text)
-> (GetReadinessCheckStatus
-> Maybe Text -> GetReadinessCheckStatus)
-> Lens
GetReadinessCheckStatus
GetReadinessCheckStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckStatus' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetReadinessCheckStatus
s@GetReadinessCheckStatus' {} Maybe Text
a -> GetReadinessCheckStatus
s {$sel:nextToken:GetReadinessCheckStatus' :: Maybe Text
nextToken = Maybe Text
a} :: GetReadinessCheckStatus)
getReadinessCheckStatus_maxResults :: Lens.Lens' GetReadinessCheckStatus (Prelude.Maybe Prelude.Natural)
getReadinessCheckStatus_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetReadinessCheckStatus -> f GetReadinessCheckStatus
getReadinessCheckStatus_maxResults = (GetReadinessCheckStatus -> Maybe Natural)
-> (GetReadinessCheckStatus
-> Maybe Natural -> GetReadinessCheckStatus)
-> Lens
GetReadinessCheckStatus
GetReadinessCheckStatus
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckStatus' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetReadinessCheckStatus
s@GetReadinessCheckStatus' {} Maybe Natural
a -> GetReadinessCheckStatus
s {$sel:maxResults:GetReadinessCheckStatus' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetReadinessCheckStatus)
getReadinessCheckStatus_readinessCheckName :: Lens.Lens' GetReadinessCheckStatus Prelude.Text
getReadinessCheckStatus_readinessCheckName :: (Text -> f Text)
-> GetReadinessCheckStatus -> f GetReadinessCheckStatus
getReadinessCheckStatus_readinessCheckName = (GetReadinessCheckStatus -> Text)
-> (GetReadinessCheckStatus -> Text -> GetReadinessCheckStatus)
-> Lens GetReadinessCheckStatus GetReadinessCheckStatus Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckStatus' {Text
readinessCheckName :: Text
$sel:readinessCheckName:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Text
readinessCheckName} -> Text
readinessCheckName) (\s :: GetReadinessCheckStatus
s@GetReadinessCheckStatus' {} Text
a -> GetReadinessCheckStatus
s {$sel:readinessCheckName:GetReadinessCheckStatus' :: Text
readinessCheckName = Text
a} :: GetReadinessCheckStatus)
instance Core.AWSPager GetReadinessCheckStatus where
page :: GetReadinessCheckStatus
-> AWSResponse GetReadinessCheckStatus
-> Maybe GetReadinessCheckStatus
page GetReadinessCheckStatus
rq AWSResponse GetReadinessCheckStatus
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetReadinessCheckStatus
GetReadinessCheckStatusResponse
rs
GetReadinessCheckStatusResponse
-> Getting (First Text) GetReadinessCheckStatusResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetReadinessCheckStatusResponse
-> Const (First Text) GetReadinessCheckStatusResponse
Lens' GetReadinessCheckStatusResponse (Maybe Text)
getReadinessCheckStatusResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetReadinessCheckStatusResponse
-> Const (First Text) GetReadinessCheckStatusResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetReadinessCheckStatusResponse 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 GetReadinessCheckStatus
forall a. Maybe a
Prelude.Nothing
| Maybe [ResourceResult] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetReadinessCheckStatus
GetReadinessCheckStatusResponse
rs
GetReadinessCheckStatusResponse
-> Getting
(First [ResourceResult])
GetReadinessCheckStatusResponse
[ResourceResult]
-> Maybe [ResourceResult]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ResourceResult]
-> Const (First [ResourceResult]) (Maybe [ResourceResult]))
-> GetReadinessCheckStatusResponse
-> Const (First [ResourceResult]) GetReadinessCheckStatusResponse
Lens' GetReadinessCheckStatusResponse (Maybe [ResourceResult])
getReadinessCheckStatusResponse_resources
((Maybe [ResourceResult]
-> Const (First [ResourceResult]) (Maybe [ResourceResult]))
-> GetReadinessCheckStatusResponse
-> Const (First [ResourceResult]) GetReadinessCheckStatusResponse)
-> (([ResourceResult]
-> Const (First [ResourceResult]) [ResourceResult])
-> Maybe [ResourceResult]
-> Const (First [ResourceResult]) (Maybe [ResourceResult]))
-> Getting
(First [ResourceResult])
GetReadinessCheckStatusResponse
[ResourceResult]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ResourceResult]
-> Const (First [ResourceResult]) [ResourceResult])
-> Maybe [ResourceResult]
-> Const (First [ResourceResult]) (Maybe [ResourceResult])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetReadinessCheckStatus
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetReadinessCheckStatus -> Maybe GetReadinessCheckStatus
forall a. a -> Maybe a
Prelude.Just (GetReadinessCheckStatus -> Maybe GetReadinessCheckStatus)
-> GetReadinessCheckStatus -> Maybe GetReadinessCheckStatus
forall a b. (a -> b) -> a -> b
Prelude.$
GetReadinessCheckStatus
rq
GetReadinessCheckStatus
-> (GetReadinessCheckStatus -> GetReadinessCheckStatus)
-> GetReadinessCheckStatus
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetReadinessCheckStatus -> Identity GetReadinessCheckStatus
Lens
GetReadinessCheckStatus
GetReadinessCheckStatus
(Maybe Text)
(Maybe Text)
getReadinessCheckStatus_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetReadinessCheckStatus -> Identity GetReadinessCheckStatus)
-> Maybe Text -> GetReadinessCheckStatus -> GetReadinessCheckStatus
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetReadinessCheckStatus
GetReadinessCheckStatusResponse
rs
GetReadinessCheckStatusResponse
-> Getting (First Text) GetReadinessCheckStatusResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetReadinessCheckStatusResponse
-> Const (First Text) GetReadinessCheckStatusResponse
Lens' GetReadinessCheckStatusResponse (Maybe Text)
getReadinessCheckStatusResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetReadinessCheckStatusResponse
-> Const (First Text) GetReadinessCheckStatusResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetReadinessCheckStatusResponse 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 GetReadinessCheckStatus where
type
AWSResponse GetReadinessCheckStatus =
GetReadinessCheckStatusResponse
request :: GetReadinessCheckStatus -> Request GetReadinessCheckStatus
request = Service
-> GetReadinessCheckStatus -> Request GetReadinessCheckStatus
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetReadinessCheckStatus
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetReadinessCheckStatus)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetReadinessCheckStatus))
-> Logger
-> Service
-> Proxy GetReadinessCheckStatus
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetReadinessCheckStatus)))
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 Readiness
-> Maybe [ResourceResult]
-> Maybe Text
-> Maybe [Message]
-> Int
-> GetReadinessCheckStatusResponse
GetReadinessCheckStatusResponse'
(Maybe Readiness
-> Maybe [ResourceResult]
-> Maybe Text
-> Maybe [Message]
-> Int
-> GetReadinessCheckStatusResponse)
-> Either String (Maybe Readiness)
-> Either
String
(Maybe [ResourceResult]
-> Maybe Text
-> Maybe [Message]
-> Int
-> GetReadinessCheckStatusResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Readiness)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"readiness")
Either
String
(Maybe [ResourceResult]
-> Maybe Text
-> Maybe [Message]
-> Int
-> GetReadinessCheckStatusResponse)
-> Either String (Maybe [ResourceResult])
-> Either
String
(Maybe Text
-> Maybe [Message] -> Int -> GetReadinessCheckStatusResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ResourceResult]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resources" Either String (Maybe (Maybe [ResourceResult]))
-> Maybe [ResourceResult] -> Either String (Maybe [ResourceResult])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ResourceResult]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe [Message] -> Int -> GetReadinessCheckStatusResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Message] -> Int -> GetReadinessCheckStatusResponse)
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
"nextToken")
Either
String (Maybe [Message] -> Int -> GetReadinessCheckStatusResponse)
-> Either String (Maybe [Message])
-> Either String (Int -> GetReadinessCheckStatusResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Message]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"messages" Either String (Maybe (Maybe [Message]))
-> Maybe [Message] -> Either String (Maybe [Message])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Message]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetReadinessCheckStatusResponse)
-> Either String Int
-> Either String GetReadinessCheckStatusResponse
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 GetReadinessCheckStatus
instance Prelude.NFData GetReadinessCheckStatus
instance Core.ToHeaders GetReadinessCheckStatus where
toHeaders :: GetReadinessCheckStatus -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetReadinessCheckStatus -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath GetReadinessCheckStatus where
toPath :: GetReadinessCheckStatus -> ByteString
toPath GetReadinessCheckStatus' {Maybe Natural
Maybe Text
Text
readinessCheckName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:readinessCheckName:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Text
$sel:maxResults:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Maybe Natural
$sel:nextToken:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/readinesschecks/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
readinessCheckName,
ByteString
"/status"
]
instance Core.ToQuery GetReadinessCheckStatus where
toQuery :: GetReadinessCheckStatus -> QueryString
toQuery GetReadinessCheckStatus' {Maybe Natural
Maybe Text
Text
readinessCheckName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:readinessCheckName:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Text
$sel:maxResults:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Maybe Natural
$sel:nextToken:GetReadinessCheckStatus' :: GetReadinessCheckStatus -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data GetReadinessCheckStatusResponse = GetReadinessCheckStatusResponse'
{
GetReadinessCheckStatusResponse -> Maybe Readiness
readiness :: Prelude.Maybe Readiness,
GetReadinessCheckStatusResponse -> Maybe [ResourceResult]
resources :: Prelude.Maybe [ResourceResult],
GetReadinessCheckStatusResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetReadinessCheckStatusResponse -> Maybe [Message]
messages :: Prelude.Maybe [Message],
GetReadinessCheckStatusResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetReadinessCheckStatusResponse
-> GetReadinessCheckStatusResponse -> Bool
(GetReadinessCheckStatusResponse
-> GetReadinessCheckStatusResponse -> Bool)
-> (GetReadinessCheckStatusResponse
-> GetReadinessCheckStatusResponse -> Bool)
-> Eq GetReadinessCheckStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetReadinessCheckStatusResponse
-> GetReadinessCheckStatusResponse -> Bool
$c/= :: GetReadinessCheckStatusResponse
-> GetReadinessCheckStatusResponse -> Bool
== :: GetReadinessCheckStatusResponse
-> GetReadinessCheckStatusResponse -> Bool
$c== :: GetReadinessCheckStatusResponse
-> GetReadinessCheckStatusResponse -> Bool
Prelude.Eq, ReadPrec [GetReadinessCheckStatusResponse]
ReadPrec GetReadinessCheckStatusResponse
Int -> ReadS GetReadinessCheckStatusResponse
ReadS [GetReadinessCheckStatusResponse]
(Int -> ReadS GetReadinessCheckStatusResponse)
-> ReadS [GetReadinessCheckStatusResponse]
-> ReadPrec GetReadinessCheckStatusResponse
-> ReadPrec [GetReadinessCheckStatusResponse]
-> Read GetReadinessCheckStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetReadinessCheckStatusResponse]
$creadListPrec :: ReadPrec [GetReadinessCheckStatusResponse]
readPrec :: ReadPrec GetReadinessCheckStatusResponse
$creadPrec :: ReadPrec GetReadinessCheckStatusResponse
readList :: ReadS [GetReadinessCheckStatusResponse]
$creadList :: ReadS [GetReadinessCheckStatusResponse]
readsPrec :: Int -> ReadS GetReadinessCheckStatusResponse
$creadsPrec :: Int -> ReadS GetReadinessCheckStatusResponse
Prelude.Read, Int -> GetReadinessCheckStatusResponse -> ShowS
[GetReadinessCheckStatusResponse] -> ShowS
GetReadinessCheckStatusResponse -> String
(Int -> GetReadinessCheckStatusResponse -> ShowS)
-> (GetReadinessCheckStatusResponse -> String)
-> ([GetReadinessCheckStatusResponse] -> ShowS)
-> Show GetReadinessCheckStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetReadinessCheckStatusResponse] -> ShowS
$cshowList :: [GetReadinessCheckStatusResponse] -> ShowS
show :: GetReadinessCheckStatusResponse -> String
$cshow :: GetReadinessCheckStatusResponse -> String
showsPrec :: Int -> GetReadinessCheckStatusResponse -> ShowS
$cshowsPrec :: Int -> GetReadinessCheckStatusResponse -> ShowS
Prelude.Show, (forall x.
GetReadinessCheckStatusResponse
-> Rep GetReadinessCheckStatusResponse x)
-> (forall x.
Rep GetReadinessCheckStatusResponse x
-> GetReadinessCheckStatusResponse)
-> Generic GetReadinessCheckStatusResponse
forall x.
Rep GetReadinessCheckStatusResponse x
-> GetReadinessCheckStatusResponse
forall x.
GetReadinessCheckStatusResponse
-> Rep GetReadinessCheckStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetReadinessCheckStatusResponse x
-> GetReadinessCheckStatusResponse
$cfrom :: forall x.
GetReadinessCheckStatusResponse
-> Rep GetReadinessCheckStatusResponse x
Prelude.Generic)
newGetReadinessCheckStatusResponse ::
Prelude.Int ->
GetReadinessCheckStatusResponse
newGetReadinessCheckStatusResponse :: Int -> GetReadinessCheckStatusResponse
newGetReadinessCheckStatusResponse Int
pHttpStatus_ =
GetReadinessCheckStatusResponse' :: Maybe Readiness
-> Maybe [ResourceResult]
-> Maybe Text
-> Maybe [Message]
-> Int
-> GetReadinessCheckStatusResponse
GetReadinessCheckStatusResponse'
{ $sel:readiness:GetReadinessCheckStatusResponse' :: Maybe Readiness
readiness =
Maybe Readiness
forall a. Maybe a
Prelude.Nothing,
$sel:resources:GetReadinessCheckStatusResponse' :: Maybe [ResourceResult]
resources = Maybe [ResourceResult]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetReadinessCheckStatusResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:messages:GetReadinessCheckStatusResponse' :: Maybe [Message]
messages = Maybe [Message]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetReadinessCheckStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getReadinessCheckStatusResponse_readiness :: Lens.Lens' GetReadinessCheckStatusResponse (Prelude.Maybe Readiness)
getReadinessCheckStatusResponse_readiness :: (Maybe Readiness -> f (Maybe Readiness))
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse
getReadinessCheckStatusResponse_readiness = (GetReadinessCheckStatusResponse -> Maybe Readiness)
-> (GetReadinessCheckStatusResponse
-> Maybe Readiness -> GetReadinessCheckStatusResponse)
-> Lens
GetReadinessCheckStatusResponse
GetReadinessCheckStatusResponse
(Maybe Readiness)
(Maybe Readiness)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckStatusResponse' {Maybe Readiness
readiness :: Maybe Readiness
$sel:readiness:GetReadinessCheckStatusResponse' :: GetReadinessCheckStatusResponse -> Maybe Readiness
readiness} -> Maybe Readiness
readiness) (\s :: GetReadinessCheckStatusResponse
s@GetReadinessCheckStatusResponse' {} Maybe Readiness
a -> GetReadinessCheckStatusResponse
s {$sel:readiness:GetReadinessCheckStatusResponse' :: Maybe Readiness
readiness = Maybe Readiness
a} :: GetReadinessCheckStatusResponse)
getReadinessCheckStatusResponse_resources :: Lens.Lens' GetReadinessCheckStatusResponse (Prelude.Maybe [ResourceResult])
getReadinessCheckStatusResponse_resources :: (Maybe [ResourceResult] -> f (Maybe [ResourceResult]))
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse
getReadinessCheckStatusResponse_resources = (GetReadinessCheckStatusResponse -> Maybe [ResourceResult])
-> (GetReadinessCheckStatusResponse
-> Maybe [ResourceResult] -> GetReadinessCheckStatusResponse)
-> Lens' GetReadinessCheckStatusResponse (Maybe [ResourceResult])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckStatusResponse' {Maybe [ResourceResult]
resources :: Maybe [ResourceResult]
$sel:resources:GetReadinessCheckStatusResponse' :: GetReadinessCheckStatusResponse -> Maybe [ResourceResult]
resources} -> Maybe [ResourceResult]
resources) (\s :: GetReadinessCheckStatusResponse
s@GetReadinessCheckStatusResponse' {} Maybe [ResourceResult]
a -> GetReadinessCheckStatusResponse
s {$sel:resources:GetReadinessCheckStatusResponse' :: Maybe [ResourceResult]
resources = Maybe [ResourceResult]
a} :: GetReadinessCheckStatusResponse) ((Maybe [ResourceResult] -> f (Maybe [ResourceResult]))
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse)
-> ((Maybe [ResourceResult] -> f (Maybe [ResourceResult]))
-> Maybe [ResourceResult] -> f (Maybe [ResourceResult]))
-> (Maybe [ResourceResult] -> f (Maybe [ResourceResult]))
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ResourceResult] [ResourceResult] [ResourceResult] [ResourceResult]
-> Iso
(Maybe [ResourceResult])
(Maybe [ResourceResult])
(Maybe [ResourceResult])
(Maybe [ResourceResult])
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
[ResourceResult] [ResourceResult] [ResourceResult] [ResourceResult]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getReadinessCheckStatusResponse_nextToken :: Lens.Lens' GetReadinessCheckStatusResponse (Prelude.Maybe Prelude.Text)
getReadinessCheckStatusResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse
getReadinessCheckStatusResponse_nextToken = (GetReadinessCheckStatusResponse -> Maybe Text)
-> (GetReadinessCheckStatusResponse
-> Maybe Text -> GetReadinessCheckStatusResponse)
-> Lens' GetReadinessCheckStatusResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckStatusResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetReadinessCheckStatusResponse' :: GetReadinessCheckStatusResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetReadinessCheckStatusResponse
s@GetReadinessCheckStatusResponse' {} Maybe Text
a -> GetReadinessCheckStatusResponse
s {$sel:nextToken:GetReadinessCheckStatusResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetReadinessCheckStatusResponse)
getReadinessCheckStatusResponse_messages :: Lens.Lens' GetReadinessCheckStatusResponse (Prelude.Maybe [Message])
getReadinessCheckStatusResponse_messages :: (Maybe [Message] -> f (Maybe [Message]))
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse
getReadinessCheckStatusResponse_messages = (GetReadinessCheckStatusResponse -> Maybe [Message])
-> (GetReadinessCheckStatusResponse
-> Maybe [Message] -> GetReadinessCheckStatusResponse)
-> Lens
GetReadinessCheckStatusResponse
GetReadinessCheckStatusResponse
(Maybe [Message])
(Maybe [Message])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckStatusResponse' {Maybe [Message]
messages :: Maybe [Message]
$sel:messages:GetReadinessCheckStatusResponse' :: GetReadinessCheckStatusResponse -> Maybe [Message]
messages} -> Maybe [Message]
messages) (\s :: GetReadinessCheckStatusResponse
s@GetReadinessCheckStatusResponse' {} Maybe [Message]
a -> GetReadinessCheckStatusResponse
s {$sel:messages:GetReadinessCheckStatusResponse' :: Maybe [Message]
messages = Maybe [Message]
a} :: GetReadinessCheckStatusResponse) ((Maybe [Message] -> f (Maybe [Message]))
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse)
-> ((Maybe [Message] -> f (Maybe [Message]))
-> Maybe [Message] -> f (Maybe [Message]))
-> (Maybe [Message] -> f (Maybe [Message]))
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Message] [Message] [Message] [Message]
-> Iso
(Maybe [Message])
(Maybe [Message])
(Maybe [Message])
(Maybe [Message])
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 [Message] [Message] [Message] [Message]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getReadinessCheckStatusResponse_httpStatus :: Lens.Lens' GetReadinessCheckStatusResponse Prelude.Int
getReadinessCheckStatusResponse_httpStatus :: (Int -> f Int)
-> GetReadinessCheckStatusResponse
-> f GetReadinessCheckStatusResponse
getReadinessCheckStatusResponse_httpStatus = (GetReadinessCheckStatusResponse -> Int)
-> (GetReadinessCheckStatusResponse
-> Int -> GetReadinessCheckStatusResponse)
-> Lens
GetReadinessCheckStatusResponse
GetReadinessCheckStatusResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckStatusResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetReadinessCheckStatusResponse' :: GetReadinessCheckStatusResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetReadinessCheckStatusResponse
s@GetReadinessCheckStatusResponse' {} Int
a -> GetReadinessCheckStatusResponse
s {$sel:httpStatus:GetReadinessCheckStatusResponse' :: Int
httpStatus = Int
a} :: GetReadinessCheckStatusResponse)
instance
Prelude.NFData
GetReadinessCheckStatusResponse