{-# 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.AuditManager.GetChangeLogs
(
GetChangeLogs (..),
newGetChangeLogs,
getChangeLogs_controlSetId,
getChangeLogs_nextToken,
getChangeLogs_controlId,
getChangeLogs_maxResults,
getChangeLogs_assessmentId,
GetChangeLogsResponse (..),
newGetChangeLogsResponse,
getChangeLogsResponse_changeLogs,
getChangeLogsResponse_nextToken,
getChangeLogsResponse_httpStatus,
)
where
import Amazonka.AuditManager.Types
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
data GetChangeLogs = GetChangeLogs'
{
GetChangeLogs -> Maybe Text
controlSetId :: Prelude.Maybe Prelude.Text,
GetChangeLogs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetChangeLogs -> Maybe Text
controlId :: Prelude.Maybe Prelude.Text,
GetChangeLogs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetChangeLogs -> Text
assessmentId :: Prelude.Text
}
deriving (GetChangeLogs -> GetChangeLogs -> Bool
(GetChangeLogs -> GetChangeLogs -> Bool)
-> (GetChangeLogs -> GetChangeLogs -> Bool) -> Eq GetChangeLogs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetChangeLogs -> GetChangeLogs -> Bool
$c/= :: GetChangeLogs -> GetChangeLogs -> Bool
== :: GetChangeLogs -> GetChangeLogs -> Bool
$c== :: GetChangeLogs -> GetChangeLogs -> Bool
Prelude.Eq, ReadPrec [GetChangeLogs]
ReadPrec GetChangeLogs
Int -> ReadS GetChangeLogs
ReadS [GetChangeLogs]
(Int -> ReadS GetChangeLogs)
-> ReadS [GetChangeLogs]
-> ReadPrec GetChangeLogs
-> ReadPrec [GetChangeLogs]
-> Read GetChangeLogs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetChangeLogs]
$creadListPrec :: ReadPrec [GetChangeLogs]
readPrec :: ReadPrec GetChangeLogs
$creadPrec :: ReadPrec GetChangeLogs
readList :: ReadS [GetChangeLogs]
$creadList :: ReadS [GetChangeLogs]
readsPrec :: Int -> ReadS GetChangeLogs
$creadsPrec :: Int -> ReadS GetChangeLogs
Prelude.Read, Int -> GetChangeLogs -> ShowS
[GetChangeLogs] -> ShowS
GetChangeLogs -> String
(Int -> GetChangeLogs -> ShowS)
-> (GetChangeLogs -> String)
-> ([GetChangeLogs] -> ShowS)
-> Show GetChangeLogs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetChangeLogs] -> ShowS
$cshowList :: [GetChangeLogs] -> ShowS
show :: GetChangeLogs -> String
$cshow :: GetChangeLogs -> String
showsPrec :: Int -> GetChangeLogs -> ShowS
$cshowsPrec :: Int -> GetChangeLogs -> ShowS
Prelude.Show, (forall x. GetChangeLogs -> Rep GetChangeLogs x)
-> (forall x. Rep GetChangeLogs x -> GetChangeLogs)
-> Generic GetChangeLogs
forall x. Rep GetChangeLogs x -> GetChangeLogs
forall x. GetChangeLogs -> Rep GetChangeLogs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetChangeLogs x -> GetChangeLogs
$cfrom :: forall x. GetChangeLogs -> Rep GetChangeLogs x
Prelude.Generic)
newGetChangeLogs ::
Prelude.Text ->
GetChangeLogs
newGetChangeLogs :: Text -> GetChangeLogs
newGetChangeLogs Text
pAssessmentId_ =
GetChangeLogs' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Text
-> GetChangeLogs
GetChangeLogs'
{ $sel:controlSetId:GetChangeLogs' :: Maybe Text
controlSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetChangeLogs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:controlId:GetChangeLogs' :: Maybe Text
controlId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetChangeLogs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:assessmentId:GetChangeLogs' :: Text
assessmentId = Text
pAssessmentId_
}
getChangeLogs_controlSetId :: Lens.Lens' GetChangeLogs (Prelude.Maybe Prelude.Text)
getChangeLogs_controlSetId :: (Maybe Text -> f (Maybe Text)) -> GetChangeLogs -> f GetChangeLogs
getChangeLogs_controlSetId = (GetChangeLogs -> Maybe Text)
-> (GetChangeLogs -> Maybe Text -> GetChangeLogs)
-> Lens GetChangeLogs GetChangeLogs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetChangeLogs' {Maybe Text
controlSetId :: Maybe Text
$sel:controlSetId:GetChangeLogs' :: GetChangeLogs -> Maybe Text
controlSetId} -> Maybe Text
controlSetId) (\s :: GetChangeLogs
s@GetChangeLogs' {} Maybe Text
a -> GetChangeLogs
s {$sel:controlSetId:GetChangeLogs' :: Maybe Text
controlSetId = Maybe Text
a} :: GetChangeLogs)
getChangeLogs_nextToken :: Lens.Lens' GetChangeLogs (Prelude.Maybe Prelude.Text)
getChangeLogs_nextToken :: (Maybe Text -> f (Maybe Text)) -> GetChangeLogs -> f GetChangeLogs
getChangeLogs_nextToken = (GetChangeLogs -> Maybe Text)
-> (GetChangeLogs -> Maybe Text -> GetChangeLogs)
-> Lens GetChangeLogs GetChangeLogs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetChangeLogs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetChangeLogs' :: GetChangeLogs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetChangeLogs
s@GetChangeLogs' {} Maybe Text
a -> GetChangeLogs
s {$sel:nextToken:GetChangeLogs' :: Maybe Text
nextToken = Maybe Text
a} :: GetChangeLogs)
getChangeLogs_controlId :: Lens.Lens' GetChangeLogs (Prelude.Maybe Prelude.Text)
getChangeLogs_controlId :: (Maybe Text -> f (Maybe Text)) -> GetChangeLogs -> f GetChangeLogs
getChangeLogs_controlId = (GetChangeLogs -> Maybe Text)
-> (GetChangeLogs -> Maybe Text -> GetChangeLogs)
-> Lens GetChangeLogs GetChangeLogs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetChangeLogs' {Maybe Text
controlId :: Maybe Text
$sel:controlId:GetChangeLogs' :: GetChangeLogs -> Maybe Text
controlId} -> Maybe Text
controlId) (\s :: GetChangeLogs
s@GetChangeLogs' {} Maybe Text
a -> GetChangeLogs
s {$sel:controlId:GetChangeLogs' :: Maybe Text
controlId = Maybe Text
a} :: GetChangeLogs)
getChangeLogs_maxResults :: Lens.Lens' GetChangeLogs (Prelude.Maybe Prelude.Natural)
getChangeLogs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetChangeLogs -> f GetChangeLogs
getChangeLogs_maxResults = (GetChangeLogs -> Maybe Natural)
-> (GetChangeLogs -> Maybe Natural -> GetChangeLogs)
-> Lens GetChangeLogs GetChangeLogs (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetChangeLogs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetChangeLogs' :: GetChangeLogs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetChangeLogs
s@GetChangeLogs' {} Maybe Natural
a -> GetChangeLogs
s {$sel:maxResults:GetChangeLogs' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetChangeLogs)
getChangeLogs_assessmentId :: Lens.Lens' GetChangeLogs Prelude.Text
getChangeLogs_assessmentId :: (Text -> f Text) -> GetChangeLogs -> f GetChangeLogs
getChangeLogs_assessmentId = (GetChangeLogs -> Text)
-> (GetChangeLogs -> Text -> GetChangeLogs)
-> Lens GetChangeLogs GetChangeLogs Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetChangeLogs' {Text
assessmentId :: Text
$sel:assessmentId:GetChangeLogs' :: GetChangeLogs -> Text
assessmentId} -> Text
assessmentId) (\s :: GetChangeLogs
s@GetChangeLogs' {} Text
a -> GetChangeLogs
s {$sel:assessmentId:GetChangeLogs' :: Text
assessmentId = Text
a} :: GetChangeLogs)
instance Core.AWSRequest GetChangeLogs where
type
AWSResponse GetChangeLogs =
GetChangeLogsResponse
request :: GetChangeLogs -> Request GetChangeLogs
request = Service -> GetChangeLogs -> Request GetChangeLogs
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetChangeLogs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetChangeLogs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetChangeLogs))
-> Logger
-> Service
-> Proxy GetChangeLogs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetChangeLogs)))
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 [ChangeLog] -> Maybe Text -> Int -> GetChangeLogsResponse
GetChangeLogsResponse'
(Maybe [ChangeLog] -> Maybe Text -> Int -> GetChangeLogsResponse)
-> Either String (Maybe [ChangeLog])
-> Either String (Maybe Text -> Int -> GetChangeLogsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [ChangeLog]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"changeLogs" Either String (Maybe (Maybe [ChangeLog]))
-> Maybe [ChangeLog] -> Either String (Maybe [ChangeLog])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ChangeLog]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> GetChangeLogsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetChangeLogsResponse)
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 (Int -> GetChangeLogsResponse)
-> Either String Int -> Either String GetChangeLogsResponse
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 GetChangeLogs
instance Prelude.NFData GetChangeLogs
instance Core.ToHeaders GetChangeLogs where
toHeaders :: GetChangeLogs -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetChangeLogs -> 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 GetChangeLogs where
toPath :: GetChangeLogs -> ByteString
toPath GetChangeLogs' {Maybe Natural
Maybe Text
Text
assessmentId :: Text
maxResults :: Maybe Natural
controlId :: Maybe Text
nextToken :: Maybe Text
controlSetId :: Maybe Text
$sel:assessmentId:GetChangeLogs' :: GetChangeLogs -> Text
$sel:maxResults:GetChangeLogs' :: GetChangeLogs -> Maybe Natural
$sel:controlId:GetChangeLogs' :: GetChangeLogs -> Maybe Text
$sel:nextToken:GetChangeLogs' :: GetChangeLogs -> Maybe Text
$sel:controlSetId:GetChangeLogs' :: GetChangeLogs -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/assessments/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
assessmentId,
ByteString
"/changelogs"
]
instance Core.ToQuery GetChangeLogs where
toQuery :: GetChangeLogs -> QueryString
toQuery GetChangeLogs' {Maybe Natural
Maybe Text
Text
assessmentId :: Text
maxResults :: Maybe Natural
controlId :: Maybe Text
nextToken :: Maybe Text
controlSetId :: Maybe Text
$sel:assessmentId:GetChangeLogs' :: GetChangeLogs -> Text
$sel:maxResults:GetChangeLogs' :: GetChangeLogs -> Maybe Natural
$sel:controlId:GetChangeLogs' :: GetChangeLogs -> Maybe Text
$sel:nextToken:GetChangeLogs' :: GetChangeLogs -> Maybe Text
$sel:controlSetId:GetChangeLogs' :: GetChangeLogs -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"controlSetId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
controlSetId,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"controlId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
controlId,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data GetChangeLogsResponse = GetChangeLogsResponse'
{
GetChangeLogsResponse -> Maybe [ChangeLog]
changeLogs :: Prelude.Maybe [ChangeLog],
GetChangeLogsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetChangeLogsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetChangeLogsResponse -> GetChangeLogsResponse -> Bool
(GetChangeLogsResponse -> GetChangeLogsResponse -> Bool)
-> (GetChangeLogsResponse -> GetChangeLogsResponse -> Bool)
-> Eq GetChangeLogsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetChangeLogsResponse -> GetChangeLogsResponse -> Bool
$c/= :: GetChangeLogsResponse -> GetChangeLogsResponse -> Bool
== :: GetChangeLogsResponse -> GetChangeLogsResponse -> Bool
$c== :: GetChangeLogsResponse -> GetChangeLogsResponse -> Bool
Prelude.Eq, ReadPrec [GetChangeLogsResponse]
ReadPrec GetChangeLogsResponse
Int -> ReadS GetChangeLogsResponse
ReadS [GetChangeLogsResponse]
(Int -> ReadS GetChangeLogsResponse)
-> ReadS [GetChangeLogsResponse]
-> ReadPrec GetChangeLogsResponse
-> ReadPrec [GetChangeLogsResponse]
-> Read GetChangeLogsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetChangeLogsResponse]
$creadListPrec :: ReadPrec [GetChangeLogsResponse]
readPrec :: ReadPrec GetChangeLogsResponse
$creadPrec :: ReadPrec GetChangeLogsResponse
readList :: ReadS [GetChangeLogsResponse]
$creadList :: ReadS [GetChangeLogsResponse]
readsPrec :: Int -> ReadS GetChangeLogsResponse
$creadsPrec :: Int -> ReadS GetChangeLogsResponse
Prelude.Read, Int -> GetChangeLogsResponse -> ShowS
[GetChangeLogsResponse] -> ShowS
GetChangeLogsResponse -> String
(Int -> GetChangeLogsResponse -> ShowS)
-> (GetChangeLogsResponse -> String)
-> ([GetChangeLogsResponse] -> ShowS)
-> Show GetChangeLogsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetChangeLogsResponse] -> ShowS
$cshowList :: [GetChangeLogsResponse] -> ShowS
show :: GetChangeLogsResponse -> String
$cshow :: GetChangeLogsResponse -> String
showsPrec :: Int -> GetChangeLogsResponse -> ShowS
$cshowsPrec :: Int -> GetChangeLogsResponse -> ShowS
Prelude.Show, (forall x. GetChangeLogsResponse -> Rep GetChangeLogsResponse x)
-> (forall x. Rep GetChangeLogsResponse x -> GetChangeLogsResponse)
-> Generic GetChangeLogsResponse
forall x. Rep GetChangeLogsResponse x -> GetChangeLogsResponse
forall x. GetChangeLogsResponse -> Rep GetChangeLogsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetChangeLogsResponse x -> GetChangeLogsResponse
$cfrom :: forall x. GetChangeLogsResponse -> Rep GetChangeLogsResponse x
Prelude.Generic)
newGetChangeLogsResponse ::
Prelude.Int ->
GetChangeLogsResponse
newGetChangeLogsResponse :: Int -> GetChangeLogsResponse
newGetChangeLogsResponse Int
pHttpStatus_ =
GetChangeLogsResponse' :: Maybe [ChangeLog] -> Maybe Text -> Int -> GetChangeLogsResponse
GetChangeLogsResponse'
{ $sel:changeLogs:GetChangeLogsResponse' :: Maybe [ChangeLog]
changeLogs =
Maybe [ChangeLog]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetChangeLogsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetChangeLogsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getChangeLogsResponse_changeLogs :: Lens.Lens' GetChangeLogsResponse (Prelude.Maybe [ChangeLog])
getChangeLogsResponse_changeLogs :: (Maybe [ChangeLog] -> f (Maybe [ChangeLog]))
-> GetChangeLogsResponse -> f GetChangeLogsResponse
getChangeLogsResponse_changeLogs = (GetChangeLogsResponse -> Maybe [ChangeLog])
-> (GetChangeLogsResponse
-> Maybe [ChangeLog] -> GetChangeLogsResponse)
-> Lens
GetChangeLogsResponse
GetChangeLogsResponse
(Maybe [ChangeLog])
(Maybe [ChangeLog])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetChangeLogsResponse' {Maybe [ChangeLog]
changeLogs :: Maybe [ChangeLog]
$sel:changeLogs:GetChangeLogsResponse' :: GetChangeLogsResponse -> Maybe [ChangeLog]
changeLogs} -> Maybe [ChangeLog]
changeLogs) (\s :: GetChangeLogsResponse
s@GetChangeLogsResponse' {} Maybe [ChangeLog]
a -> GetChangeLogsResponse
s {$sel:changeLogs:GetChangeLogsResponse' :: Maybe [ChangeLog]
changeLogs = Maybe [ChangeLog]
a} :: GetChangeLogsResponse) ((Maybe [ChangeLog] -> f (Maybe [ChangeLog]))
-> GetChangeLogsResponse -> f GetChangeLogsResponse)
-> ((Maybe [ChangeLog] -> f (Maybe [ChangeLog]))
-> Maybe [ChangeLog] -> f (Maybe [ChangeLog]))
-> (Maybe [ChangeLog] -> f (Maybe [ChangeLog]))
-> GetChangeLogsResponse
-> f GetChangeLogsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ChangeLog] [ChangeLog] [ChangeLog] [ChangeLog]
-> Iso
(Maybe [ChangeLog])
(Maybe [ChangeLog])
(Maybe [ChangeLog])
(Maybe [ChangeLog])
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 [ChangeLog] [ChangeLog] [ChangeLog] [ChangeLog]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getChangeLogsResponse_nextToken :: Lens.Lens' GetChangeLogsResponse (Prelude.Maybe Prelude.Text)
getChangeLogsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetChangeLogsResponse -> f GetChangeLogsResponse
getChangeLogsResponse_nextToken = (GetChangeLogsResponse -> Maybe Text)
-> (GetChangeLogsResponse -> Maybe Text -> GetChangeLogsResponse)
-> Lens
GetChangeLogsResponse
GetChangeLogsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetChangeLogsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetChangeLogsResponse' :: GetChangeLogsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetChangeLogsResponse
s@GetChangeLogsResponse' {} Maybe Text
a -> GetChangeLogsResponse
s {$sel:nextToken:GetChangeLogsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetChangeLogsResponse)
getChangeLogsResponse_httpStatus :: Lens.Lens' GetChangeLogsResponse Prelude.Int
getChangeLogsResponse_httpStatus :: (Int -> f Int) -> GetChangeLogsResponse -> f GetChangeLogsResponse
getChangeLogsResponse_httpStatus = (GetChangeLogsResponse -> Int)
-> (GetChangeLogsResponse -> Int -> GetChangeLogsResponse)
-> Lens GetChangeLogsResponse GetChangeLogsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetChangeLogsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetChangeLogsResponse' :: GetChangeLogsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetChangeLogsResponse
s@GetChangeLogsResponse' {} Int
a -> GetChangeLogsResponse
s {$sel:httpStatus:GetChangeLogsResponse' :: Int
httpStatus = Int
a} :: GetChangeLogsResponse)
instance Prelude.NFData GetChangeLogsResponse