{-# 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.GetArchitectureRecommendations
(
GetArchitectureRecommendations (..),
newGetArchitectureRecommendations,
getArchitectureRecommendations_nextToken,
getArchitectureRecommendations_maxResults,
getArchitectureRecommendations_recoveryGroupName,
GetArchitectureRecommendationsResponse (..),
newGetArchitectureRecommendationsResponse,
getArchitectureRecommendationsResponse_lastAuditTimestamp,
getArchitectureRecommendationsResponse_nextToken,
getArchitectureRecommendationsResponse_recommendations,
getArchitectureRecommendationsResponse_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 GetArchitectureRecommendations = GetArchitectureRecommendations'
{
GetArchitectureRecommendations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetArchitectureRecommendations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetArchitectureRecommendations -> Text
recoveryGroupName :: Prelude.Text
}
deriving (GetArchitectureRecommendations
-> GetArchitectureRecommendations -> Bool
(GetArchitectureRecommendations
-> GetArchitectureRecommendations -> Bool)
-> (GetArchitectureRecommendations
-> GetArchitectureRecommendations -> Bool)
-> Eq GetArchitectureRecommendations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetArchitectureRecommendations
-> GetArchitectureRecommendations -> Bool
$c/= :: GetArchitectureRecommendations
-> GetArchitectureRecommendations -> Bool
== :: GetArchitectureRecommendations
-> GetArchitectureRecommendations -> Bool
$c== :: GetArchitectureRecommendations
-> GetArchitectureRecommendations -> Bool
Prelude.Eq, ReadPrec [GetArchitectureRecommendations]
ReadPrec GetArchitectureRecommendations
Int -> ReadS GetArchitectureRecommendations
ReadS [GetArchitectureRecommendations]
(Int -> ReadS GetArchitectureRecommendations)
-> ReadS [GetArchitectureRecommendations]
-> ReadPrec GetArchitectureRecommendations
-> ReadPrec [GetArchitectureRecommendations]
-> Read GetArchitectureRecommendations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetArchitectureRecommendations]
$creadListPrec :: ReadPrec [GetArchitectureRecommendations]
readPrec :: ReadPrec GetArchitectureRecommendations
$creadPrec :: ReadPrec GetArchitectureRecommendations
readList :: ReadS [GetArchitectureRecommendations]
$creadList :: ReadS [GetArchitectureRecommendations]
readsPrec :: Int -> ReadS GetArchitectureRecommendations
$creadsPrec :: Int -> ReadS GetArchitectureRecommendations
Prelude.Read, Int -> GetArchitectureRecommendations -> ShowS
[GetArchitectureRecommendations] -> ShowS
GetArchitectureRecommendations -> String
(Int -> GetArchitectureRecommendations -> ShowS)
-> (GetArchitectureRecommendations -> String)
-> ([GetArchitectureRecommendations] -> ShowS)
-> Show GetArchitectureRecommendations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetArchitectureRecommendations] -> ShowS
$cshowList :: [GetArchitectureRecommendations] -> ShowS
show :: GetArchitectureRecommendations -> String
$cshow :: GetArchitectureRecommendations -> String
showsPrec :: Int -> GetArchitectureRecommendations -> ShowS
$cshowsPrec :: Int -> GetArchitectureRecommendations -> ShowS
Prelude.Show, (forall x.
GetArchitectureRecommendations
-> Rep GetArchitectureRecommendations x)
-> (forall x.
Rep GetArchitectureRecommendations x
-> GetArchitectureRecommendations)
-> Generic GetArchitectureRecommendations
forall x.
Rep GetArchitectureRecommendations x
-> GetArchitectureRecommendations
forall x.
GetArchitectureRecommendations
-> Rep GetArchitectureRecommendations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetArchitectureRecommendations x
-> GetArchitectureRecommendations
$cfrom :: forall x.
GetArchitectureRecommendations
-> Rep GetArchitectureRecommendations x
Prelude.Generic)
newGetArchitectureRecommendations ::
Prelude.Text ->
GetArchitectureRecommendations
newGetArchitectureRecommendations :: Text -> GetArchitectureRecommendations
newGetArchitectureRecommendations Text
pRecoveryGroupName_ =
GetArchitectureRecommendations' :: Maybe Text
-> Maybe Natural -> Text -> GetArchitectureRecommendations
GetArchitectureRecommendations'
{ $sel:nextToken:GetArchitectureRecommendations' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetArchitectureRecommendations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:recoveryGroupName:GetArchitectureRecommendations' :: Text
recoveryGroupName = Text
pRecoveryGroupName_
}
getArchitectureRecommendations_nextToken :: Lens.Lens' GetArchitectureRecommendations (Prelude.Maybe Prelude.Text)
getArchitectureRecommendations_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetArchitectureRecommendations
-> f GetArchitectureRecommendations
getArchitectureRecommendations_nextToken = (GetArchitectureRecommendations -> Maybe Text)
-> (GetArchitectureRecommendations
-> Maybe Text -> GetArchitectureRecommendations)
-> Lens
GetArchitectureRecommendations
GetArchitectureRecommendations
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetArchitectureRecommendations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetArchitectureRecommendations
s@GetArchitectureRecommendations' {} Maybe Text
a -> GetArchitectureRecommendations
s {$sel:nextToken:GetArchitectureRecommendations' :: Maybe Text
nextToken = Maybe Text
a} :: GetArchitectureRecommendations)
getArchitectureRecommendations_maxResults :: Lens.Lens' GetArchitectureRecommendations (Prelude.Maybe Prelude.Natural)
getArchitectureRecommendations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetArchitectureRecommendations
-> f GetArchitectureRecommendations
getArchitectureRecommendations_maxResults = (GetArchitectureRecommendations -> Maybe Natural)
-> (GetArchitectureRecommendations
-> Maybe Natural -> GetArchitectureRecommendations)
-> Lens
GetArchitectureRecommendations
GetArchitectureRecommendations
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetArchitectureRecommendations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetArchitectureRecommendations
s@GetArchitectureRecommendations' {} Maybe Natural
a -> GetArchitectureRecommendations
s {$sel:maxResults:GetArchitectureRecommendations' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetArchitectureRecommendations)
getArchitectureRecommendations_recoveryGroupName :: Lens.Lens' GetArchitectureRecommendations Prelude.Text
getArchitectureRecommendations_recoveryGroupName :: (Text -> f Text)
-> GetArchitectureRecommendations
-> f GetArchitectureRecommendations
getArchitectureRecommendations_recoveryGroupName = (GetArchitectureRecommendations -> Text)
-> (GetArchitectureRecommendations
-> Text -> GetArchitectureRecommendations)
-> Lens
GetArchitectureRecommendations
GetArchitectureRecommendations
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetArchitectureRecommendations' {Text
recoveryGroupName :: Text
$sel:recoveryGroupName:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> Text
recoveryGroupName} -> Text
recoveryGroupName) (\s :: GetArchitectureRecommendations
s@GetArchitectureRecommendations' {} Text
a -> GetArchitectureRecommendations
s {$sel:recoveryGroupName:GetArchitectureRecommendations' :: Text
recoveryGroupName = Text
a} :: GetArchitectureRecommendations)
instance
Core.AWSRequest
GetArchitectureRecommendations
where
type
AWSResponse GetArchitectureRecommendations =
GetArchitectureRecommendationsResponse
request :: GetArchitectureRecommendations
-> Request GetArchitectureRecommendations
request = Service
-> GetArchitectureRecommendations
-> Request GetArchitectureRecommendations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetArchitectureRecommendations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetArchitectureRecommendations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetArchitectureRecommendations))
-> Logger
-> Service
-> Proxy GetArchitectureRecommendations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetArchitectureRecommendations)))
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 POSIX
-> Maybe Text
-> Maybe [Recommendation]
-> Int
-> GetArchitectureRecommendationsResponse
GetArchitectureRecommendationsResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe [Recommendation]
-> Int
-> GetArchitectureRecommendationsResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe [Recommendation]
-> Int
-> GetArchitectureRecommendationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastAuditTimestamp")
Either
String
(Maybe Text
-> Maybe [Recommendation]
-> Int
-> GetArchitectureRecommendationsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Recommendation]
-> Int -> GetArchitectureRecommendationsResponse)
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 [Recommendation]
-> Int -> GetArchitectureRecommendationsResponse)
-> Either String (Maybe [Recommendation])
-> Either String (Int -> GetArchitectureRecommendationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Recommendation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"recommendations"
Either String (Maybe (Maybe [Recommendation]))
-> Maybe [Recommendation] -> Either String (Maybe [Recommendation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Recommendation]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> GetArchitectureRecommendationsResponse)
-> Either String Int
-> Either String GetArchitectureRecommendationsResponse
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
GetArchitectureRecommendations
instance
Prelude.NFData
GetArchitectureRecommendations
instance
Core.ToHeaders
GetArchitectureRecommendations
where
toHeaders :: GetArchitectureRecommendations -> ResponseHeaders
toHeaders =
ResponseHeaders
-> GetArchitectureRecommendations -> 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 GetArchitectureRecommendations where
toPath :: GetArchitectureRecommendations -> ByteString
toPath GetArchitectureRecommendations' {Maybe Natural
Maybe Text
Text
recoveryGroupName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:recoveryGroupName:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> Text
$sel:maxResults:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> Maybe Natural
$sel:nextToken:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/recoverygroups/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
recoveryGroupName,
ByteString
"/architectureRecommendations"
]
instance Core.ToQuery GetArchitectureRecommendations where
toQuery :: GetArchitectureRecommendations -> QueryString
toQuery GetArchitectureRecommendations' {Maybe Natural
Maybe Text
Text
recoveryGroupName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:recoveryGroupName:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> Text
$sel:maxResults:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> Maybe Natural
$sel:nextToken:GetArchitectureRecommendations' :: GetArchitectureRecommendations -> 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 GetArchitectureRecommendationsResponse = GetArchitectureRecommendationsResponse'
{
GetArchitectureRecommendationsResponse -> Maybe POSIX
lastAuditTimestamp :: Prelude.Maybe Core.POSIX,
GetArchitectureRecommendationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetArchitectureRecommendationsResponse -> Maybe [Recommendation]
recommendations :: Prelude.Maybe [Recommendation],
GetArchitectureRecommendationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetArchitectureRecommendationsResponse
-> GetArchitectureRecommendationsResponse -> Bool
(GetArchitectureRecommendationsResponse
-> GetArchitectureRecommendationsResponse -> Bool)
-> (GetArchitectureRecommendationsResponse
-> GetArchitectureRecommendationsResponse -> Bool)
-> Eq GetArchitectureRecommendationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetArchitectureRecommendationsResponse
-> GetArchitectureRecommendationsResponse -> Bool
$c/= :: GetArchitectureRecommendationsResponse
-> GetArchitectureRecommendationsResponse -> Bool
== :: GetArchitectureRecommendationsResponse
-> GetArchitectureRecommendationsResponse -> Bool
$c== :: GetArchitectureRecommendationsResponse
-> GetArchitectureRecommendationsResponse -> Bool
Prelude.Eq, ReadPrec [GetArchitectureRecommendationsResponse]
ReadPrec GetArchitectureRecommendationsResponse
Int -> ReadS GetArchitectureRecommendationsResponse
ReadS [GetArchitectureRecommendationsResponse]
(Int -> ReadS GetArchitectureRecommendationsResponse)
-> ReadS [GetArchitectureRecommendationsResponse]
-> ReadPrec GetArchitectureRecommendationsResponse
-> ReadPrec [GetArchitectureRecommendationsResponse]
-> Read GetArchitectureRecommendationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetArchitectureRecommendationsResponse]
$creadListPrec :: ReadPrec [GetArchitectureRecommendationsResponse]
readPrec :: ReadPrec GetArchitectureRecommendationsResponse
$creadPrec :: ReadPrec GetArchitectureRecommendationsResponse
readList :: ReadS [GetArchitectureRecommendationsResponse]
$creadList :: ReadS [GetArchitectureRecommendationsResponse]
readsPrec :: Int -> ReadS GetArchitectureRecommendationsResponse
$creadsPrec :: Int -> ReadS GetArchitectureRecommendationsResponse
Prelude.Read, Int -> GetArchitectureRecommendationsResponse -> ShowS
[GetArchitectureRecommendationsResponse] -> ShowS
GetArchitectureRecommendationsResponse -> String
(Int -> GetArchitectureRecommendationsResponse -> ShowS)
-> (GetArchitectureRecommendationsResponse -> String)
-> ([GetArchitectureRecommendationsResponse] -> ShowS)
-> Show GetArchitectureRecommendationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetArchitectureRecommendationsResponse] -> ShowS
$cshowList :: [GetArchitectureRecommendationsResponse] -> ShowS
show :: GetArchitectureRecommendationsResponse -> String
$cshow :: GetArchitectureRecommendationsResponse -> String
showsPrec :: Int -> GetArchitectureRecommendationsResponse -> ShowS
$cshowsPrec :: Int -> GetArchitectureRecommendationsResponse -> ShowS
Prelude.Show, (forall x.
GetArchitectureRecommendationsResponse
-> Rep GetArchitectureRecommendationsResponse x)
-> (forall x.
Rep GetArchitectureRecommendationsResponse x
-> GetArchitectureRecommendationsResponse)
-> Generic GetArchitectureRecommendationsResponse
forall x.
Rep GetArchitectureRecommendationsResponse x
-> GetArchitectureRecommendationsResponse
forall x.
GetArchitectureRecommendationsResponse
-> Rep GetArchitectureRecommendationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetArchitectureRecommendationsResponse x
-> GetArchitectureRecommendationsResponse
$cfrom :: forall x.
GetArchitectureRecommendationsResponse
-> Rep GetArchitectureRecommendationsResponse x
Prelude.Generic)
newGetArchitectureRecommendationsResponse ::
Prelude.Int ->
GetArchitectureRecommendationsResponse
newGetArchitectureRecommendationsResponse :: Int -> GetArchitectureRecommendationsResponse
newGetArchitectureRecommendationsResponse
Int
pHttpStatus_ =
GetArchitectureRecommendationsResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe [Recommendation]
-> Int
-> GetArchitectureRecommendationsResponse
GetArchitectureRecommendationsResponse'
{ $sel:lastAuditTimestamp:GetArchitectureRecommendationsResponse' :: Maybe POSIX
lastAuditTimestamp =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetArchitectureRecommendationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recommendations:GetArchitectureRecommendationsResponse' :: Maybe [Recommendation]
recommendations = Maybe [Recommendation]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetArchitectureRecommendationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getArchitectureRecommendationsResponse_lastAuditTimestamp :: Lens.Lens' GetArchitectureRecommendationsResponse (Prelude.Maybe Prelude.UTCTime)
getArchitectureRecommendationsResponse_lastAuditTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetArchitectureRecommendationsResponse
-> f GetArchitectureRecommendationsResponse
getArchitectureRecommendationsResponse_lastAuditTimestamp = (GetArchitectureRecommendationsResponse -> Maybe POSIX)
-> (GetArchitectureRecommendationsResponse
-> Maybe POSIX -> GetArchitectureRecommendationsResponse)
-> Lens
GetArchitectureRecommendationsResponse
GetArchitectureRecommendationsResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetArchitectureRecommendationsResponse' {Maybe POSIX
lastAuditTimestamp :: Maybe POSIX
$sel:lastAuditTimestamp:GetArchitectureRecommendationsResponse' :: GetArchitectureRecommendationsResponse -> Maybe POSIX
lastAuditTimestamp} -> Maybe POSIX
lastAuditTimestamp) (\s :: GetArchitectureRecommendationsResponse
s@GetArchitectureRecommendationsResponse' {} Maybe POSIX
a -> GetArchitectureRecommendationsResponse
s {$sel:lastAuditTimestamp:GetArchitectureRecommendationsResponse' :: Maybe POSIX
lastAuditTimestamp = Maybe POSIX
a} :: GetArchitectureRecommendationsResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetArchitectureRecommendationsResponse
-> f GetArchitectureRecommendationsResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetArchitectureRecommendationsResponse
-> f GetArchitectureRecommendationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getArchitectureRecommendationsResponse_nextToken :: Lens.Lens' GetArchitectureRecommendationsResponse (Prelude.Maybe Prelude.Text)
getArchitectureRecommendationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetArchitectureRecommendationsResponse
-> f GetArchitectureRecommendationsResponse
getArchitectureRecommendationsResponse_nextToken = (GetArchitectureRecommendationsResponse -> Maybe Text)
-> (GetArchitectureRecommendationsResponse
-> Maybe Text -> GetArchitectureRecommendationsResponse)
-> Lens
GetArchitectureRecommendationsResponse
GetArchitectureRecommendationsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetArchitectureRecommendationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetArchitectureRecommendationsResponse' :: GetArchitectureRecommendationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetArchitectureRecommendationsResponse
s@GetArchitectureRecommendationsResponse' {} Maybe Text
a -> GetArchitectureRecommendationsResponse
s {$sel:nextToken:GetArchitectureRecommendationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetArchitectureRecommendationsResponse)
getArchitectureRecommendationsResponse_recommendations :: Lens.Lens' GetArchitectureRecommendationsResponse (Prelude.Maybe [Recommendation])
getArchitectureRecommendationsResponse_recommendations :: (Maybe [Recommendation] -> f (Maybe [Recommendation]))
-> GetArchitectureRecommendationsResponse
-> f GetArchitectureRecommendationsResponse
getArchitectureRecommendationsResponse_recommendations = (GetArchitectureRecommendationsResponse -> Maybe [Recommendation])
-> (GetArchitectureRecommendationsResponse
-> Maybe [Recommendation]
-> GetArchitectureRecommendationsResponse)
-> Lens
GetArchitectureRecommendationsResponse
GetArchitectureRecommendationsResponse
(Maybe [Recommendation])
(Maybe [Recommendation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetArchitectureRecommendationsResponse' {Maybe [Recommendation]
recommendations :: Maybe [Recommendation]
$sel:recommendations:GetArchitectureRecommendationsResponse' :: GetArchitectureRecommendationsResponse -> Maybe [Recommendation]
recommendations} -> Maybe [Recommendation]
recommendations) (\s :: GetArchitectureRecommendationsResponse
s@GetArchitectureRecommendationsResponse' {} Maybe [Recommendation]
a -> GetArchitectureRecommendationsResponse
s {$sel:recommendations:GetArchitectureRecommendationsResponse' :: Maybe [Recommendation]
recommendations = Maybe [Recommendation]
a} :: GetArchitectureRecommendationsResponse) ((Maybe [Recommendation] -> f (Maybe [Recommendation]))
-> GetArchitectureRecommendationsResponse
-> f GetArchitectureRecommendationsResponse)
-> ((Maybe [Recommendation] -> f (Maybe [Recommendation]))
-> Maybe [Recommendation] -> f (Maybe [Recommendation]))
-> (Maybe [Recommendation] -> f (Maybe [Recommendation]))
-> GetArchitectureRecommendationsResponse
-> f GetArchitectureRecommendationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[Recommendation] [Recommendation] [Recommendation] [Recommendation]
-> Iso
(Maybe [Recommendation])
(Maybe [Recommendation])
(Maybe [Recommendation])
(Maybe [Recommendation])
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
[Recommendation] [Recommendation] [Recommendation] [Recommendation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getArchitectureRecommendationsResponse_httpStatus :: Lens.Lens' GetArchitectureRecommendationsResponse Prelude.Int
getArchitectureRecommendationsResponse_httpStatus :: (Int -> f Int)
-> GetArchitectureRecommendationsResponse
-> f GetArchitectureRecommendationsResponse
getArchitectureRecommendationsResponse_httpStatus = (GetArchitectureRecommendationsResponse -> Int)
-> (GetArchitectureRecommendationsResponse
-> Int -> GetArchitectureRecommendationsResponse)
-> Lens
GetArchitectureRecommendationsResponse
GetArchitectureRecommendationsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetArchitectureRecommendationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetArchitectureRecommendationsResponse' :: GetArchitectureRecommendationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetArchitectureRecommendationsResponse
s@GetArchitectureRecommendationsResponse' {} Int
a -> GetArchitectureRecommendationsResponse
s {$sel:httpStatus:GetArchitectureRecommendationsResponse' :: Int
httpStatus = Int
a} :: GetArchitectureRecommendationsResponse)
instance
Prelude.NFData
GetArchitectureRecommendationsResponse