{-# 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.FMS.ListComplianceStatus
(
ListComplianceStatus (..),
newListComplianceStatus,
listComplianceStatus_nextToken,
listComplianceStatus_maxResults,
listComplianceStatus_policyId,
ListComplianceStatusResponse (..),
newListComplianceStatusResponse,
listComplianceStatusResponse_nextToken,
listComplianceStatusResponse_policyComplianceStatusList,
listComplianceStatusResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.FMS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListComplianceStatus = ListComplianceStatus'
{
ListComplianceStatus -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListComplianceStatus -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListComplianceStatus -> Text
policyId :: Prelude.Text
}
deriving (ListComplianceStatus -> ListComplianceStatus -> Bool
(ListComplianceStatus -> ListComplianceStatus -> Bool)
-> (ListComplianceStatus -> ListComplianceStatus -> Bool)
-> Eq ListComplianceStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListComplianceStatus -> ListComplianceStatus -> Bool
$c/= :: ListComplianceStatus -> ListComplianceStatus -> Bool
== :: ListComplianceStatus -> ListComplianceStatus -> Bool
$c== :: ListComplianceStatus -> ListComplianceStatus -> Bool
Prelude.Eq, ReadPrec [ListComplianceStatus]
ReadPrec ListComplianceStatus
Int -> ReadS ListComplianceStatus
ReadS [ListComplianceStatus]
(Int -> ReadS ListComplianceStatus)
-> ReadS [ListComplianceStatus]
-> ReadPrec ListComplianceStatus
-> ReadPrec [ListComplianceStatus]
-> Read ListComplianceStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListComplianceStatus]
$creadListPrec :: ReadPrec [ListComplianceStatus]
readPrec :: ReadPrec ListComplianceStatus
$creadPrec :: ReadPrec ListComplianceStatus
readList :: ReadS [ListComplianceStatus]
$creadList :: ReadS [ListComplianceStatus]
readsPrec :: Int -> ReadS ListComplianceStatus
$creadsPrec :: Int -> ReadS ListComplianceStatus
Prelude.Read, Int -> ListComplianceStatus -> ShowS
[ListComplianceStatus] -> ShowS
ListComplianceStatus -> String
(Int -> ListComplianceStatus -> ShowS)
-> (ListComplianceStatus -> String)
-> ([ListComplianceStatus] -> ShowS)
-> Show ListComplianceStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListComplianceStatus] -> ShowS
$cshowList :: [ListComplianceStatus] -> ShowS
show :: ListComplianceStatus -> String
$cshow :: ListComplianceStatus -> String
showsPrec :: Int -> ListComplianceStatus -> ShowS
$cshowsPrec :: Int -> ListComplianceStatus -> ShowS
Prelude.Show, (forall x. ListComplianceStatus -> Rep ListComplianceStatus x)
-> (forall x. Rep ListComplianceStatus x -> ListComplianceStatus)
-> Generic ListComplianceStatus
forall x. Rep ListComplianceStatus x -> ListComplianceStatus
forall x. ListComplianceStatus -> Rep ListComplianceStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListComplianceStatus x -> ListComplianceStatus
$cfrom :: forall x. ListComplianceStatus -> Rep ListComplianceStatus x
Prelude.Generic)
newListComplianceStatus ::
Prelude.Text ->
ListComplianceStatus
newListComplianceStatus :: Text -> ListComplianceStatus
newListComplianceStatus Text
pPolicyId_ =
ListComplianceStatus' :: Maybe Text -> Maybe Natural -> Text -> ListComplianceStatus
ListComplianceStatus'
{ $sel:nextToken:ListComplianceStatus' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListComplianceStatus' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:policyId:ListComplianceStatus' :: Text
policyId = Text
pPolicyId_
}
listComplianceStatus_nextToken :: Lens.Lens' ListComplianceStatus (Prelude.Maybe Prelude.Text)
listComplianceStatus_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListComplianceStatus -> f ListComplianceStatus
listComplianceStatus_nextToken = (ListComplianceStatus -> Maybe Text)
-> (ListComplianceStatus -> Maybe Text -> ListComplianceStatus)
-> Lens
ListComplianceStatus ListComplianceStatus (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceStatus' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListComplianceStatus' :: ListComplianceStatus -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListComplianceStatus
s@ListComplianceStatus' {} Maybe Text
a -> ListComplianceStatus
s {$sel:nextToken:ListComplianceStatus' :: Maybe Text
nextToken = Maybe Text
a} :: ListComplianceStatus)
listComplianceStatus_maxResults :: Lens.Lens' ListComplianceStatus (Prelude.Maybe Prelude.Natural)
listComplianceStatus_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListComplianceStatus -> f ListComplianceStatus
listComplianceStatus_maxResults = (ListComplianceStatus -> Maybe Natural)
-> (ListComplianceStatus -> Maybe Natural -> ListComplianceStatus)
-> Lens
ListComplianceStatus
ListComplianceStatus
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceStatus' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListComplianceStatus' :: ListComplianceStatus -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListComplianceStatus
s@ListComplianceStatus' {} Maybe Natural
a -> ListComplianceStatus
s {$sel:maxResults:ListComplianceStatus' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListComplianceStatus)
listComplianceStatus_policyId :: Lens.Lens' ListComplianceStatus Prelude.Text
listComplianceStatus_policyId :: (Text -> f Text) -> ListComplianceStatus -> f ListComplianceStatus
listComplianceStatus_policyId = (ListComplianceStatus -> Text)
-> (ListComplianceStatus -> Text -> ListComplianceStatus)
-> Lens ListComplianceStatus ListComplianceStatus Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceStatus' {Text
policyId :: Text
$sel:policyId:ListComplianceStatus' :: ListComplianceStatus -> Text
policyId} -> Text
policyId) (\s :: ListComplianceStatus
s@ListComplianceStatus' {} Text
a -> ListComplianceStatus
s {$sel:policyId:ListComplianceStatus' :: Text
policyId = Text
a} :: ListComplianceStatus)
instance Core.AWSPager ListComplianceStatus where
page :: ListComplianceStatus
-> AWSResponse ListComplianceStatus -> Maybe ListComplianceStatus
page ListComplianceStatus
rq AWSResponse ListComplianceStatus
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListComplianceStatus
ListComplianceStatusResponse
rs
ListComplianceStatusResponse
-> Getting (First Text) ListComplianceStatusResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListComplianceStatusResponse
-> Const (First Text) ListComplianceStatusResponse
Lens' ListComplianceStatusResponse (Maybe Text)
listComplianceStatusResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListComplianceStatusResponse
-> Const (First Text) ListComplianceStatusResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListComplianceStatusResponse 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 ListComplianceStatus
forall a. Maybe a
Prelude.Nothing
| Maybe [PolicyComplianceStatus] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListComplianceStatus
ListComplianceStatusResponse
rs
ListComplianceStatusResponse
-> Getting
(First [PolicyComplianceStatus])
ListComplianceStatusResponse
[PolicyComplianceStatus]
-> Maybe [PolicyComplianceStatus]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [PolicyComplianceStatus]
-> Const
(First [PolicyComplianceStatus]) (Maybe [PolicyComplianceStatus]))
-> ListComplianceStatusResponse
-> Const
(First [PolicyComplianceStatus]) ListComplianceStatusResponse
Lens' ListComplianceStatusResponse (Maybe [PolicyComplianceStatus])
listComplianceStatusResponse_policyComplianceStatusList
((Maybe [PolicyComplianceStatus]
-> Const
(First [PolicyComplianceStatus]) (Maybe [PolicyComplianceStatus]))
-> ListComplianceStatusResponse
-> Const
(First [PolicyComplianceStatus]) ListComplianceStatusResponse)
-> (([PolicyComplianceStatus]
-> Const (First [PolicyComplianceStatus]) [PolicyComplianceStatus])
-> Maybe [PolicyComplianceStatus]
-> Const
(First [PolicyComplianceStatus]) (Maybe [PolicyComplianceStatus]))
-> Getting
(First [PolicyComplianceStatus])
ListComplianceStatusResponse
[PolicyComplianceStatus]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([PolicyComplianceStatus]
-> Const (First [PolicyComplianceStatus]) [PolicyComplianceStatus])
-> Maybe [PolicyComplianceStatus]
-> Const
(First [PolicyComplianceStatus]) (Maybe [PolicyComplianceStatus])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListComplianceStatus
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListComplianceStatus -> Maybe ListComplianceStatus
forall a. a -> Maybe a
Prelude.Just (ListComplianceStatus -> Maybe ListComplianceStatus)
-> ListComplianceStatus -> Maybe ListComplianceStatus
forall a b. (a -> b) -> a -> b
Prelude.$
ListComplianceStatus
rq
ListComplianceStatus
-> (ListComplianceStatus -> ListComplianceStatus)
-> ListComplianceStatus
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListComplianceStatus -> Identity ListComplianceStatus
Lens
ListComplianceStatus ListComplianceStatus (Maybe Text) (Maybe Text)
listComplianceStatus_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListComplianceStatus -> Identity ListComplianceStatus)
-> Maybe Text -> ListComplianceStatus -> ListComplianceStatus
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListComplianceStatus
ListComplianceStatusResponse
rs
ListComplianceStatusResponse
-> Getting (First Text) ListComplianceStatusResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListComplianceStatusResponse
-> Const (First Text) ListComplianceStatusResponse
Lens' ListComplianceStatusResponse (Maybe Text)
listComplianceStatusResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListComplianceStatusResponse
-> Const (First Text) ListComplianceStatusResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListComplianceStatusResponse 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 ListComplianceStatus where
type
AWSResponse ListComplianceStatus =
ListComplianceStatusResponse
request :: ListComplianceStatus -> Request ListComplianceStatus
request = Service -> ListComplianceStatus -> Request ListComplianceStatus
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListComplianceStatus
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListComplianceStatus)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListComplianceStatus))
-> Logger
-> Service
-> Proxy ListComplianceStatus
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListComplianceStatus)))
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 Text
-> Maybe [PolicyComplianceStatus]
-> Int
-> ListComplianceStatusResponse
ListComplianceStatusResponse'
(Maybe Text
-> Maybe [PolicyComplianceStatus]
-> Int
-> ListComplianceStatusResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [PolicyComplianceStatus]
-> Int -> ListComplianceStatusResponse)
forall (f :: * -> *) a b. Functor 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 [PolicyComplianceStatus]
-> Int -> ListComplianceStatusResponse)
-> Either String (Maybe [PolicyComplianceStatus])
-> Either String (Int -> ListComplianceStatusResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [PolicyComplianceStatus]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PolicyComplianceStatusList"
Either String (Maybe (Maybe [PolicyComplianceStatus]))
-> Maybe [PolicyComplianceStatus]
-> Either String (Maybe [PolicyComplianceStatus])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PolicyComplianceStatus]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListComplianceStatusResponse)
-> Either String Int -> Either String ListComplianceStatusResponse
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 ListComplianceStatus
instance Prelude.NFData ListComplianceStatus
instance Core.ToHeaders ListComplianceStatus where
toHeaders :: ListComplianceStatus -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListComplianceStatus -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSFMS_20180101.ListComplianceStatus" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListComplianceStatus where
toJSON :: ListComplianceStatus -> Value
toJSON ListComplianceStatus' {Maybe Natural
Maybe Text
Text
policyId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:policyId:ListComplianceStatus' :: ListComplianceStatus -> Text
$sel:maxResults:ListComplianceStatus' :: ListComplianceStatus -> Maybe Natural
$sel:nextToken:ListComplianceStatus' :: ListComplianceStatus -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PolicyId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
policyId)
]
)
instance Core.ToPath ListComplianceStatus where
toPath :: ListComplianceStatus -> ByteString
toPath = ByteString -> ListComplianceStatus -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListComplianceStatus where
toQuery :: ListComplianceStatus -> QueryString
toQuery = QueryString -> ListComplianceStatus -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListComplianceStatusResponse = ListComplianceStatusResponse'
{
ListComplianceStatusResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListComplianceStatusResponse -> Maybe [PolicyComplianceStatus]
policyComplianceStatusList :: Prelude.Maybe [PolicyComplianceStatus],
ListComplianceStatusResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListComplianceStatusResponse
-> ListComplianceStatusResponse -> Bool
(ListComplianceStatusResponse
-> ListComplianceStatusResponse -> Bool)
-> (ListComplianceStatusResponse
-> ListComplianceStatusResponse -> Bool)
-> Eq ListComplianceStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListComplianceStatusResponse
-> ListComplianceStatusResponse -> Bool
$c/= :: ListComplianceStatusResponse
-> ListComplianceStatusResponse -> Bool
== :: ListComplianceStatusResponse
-> ListComplianceStatusResponse -> Bool
$c== :: ListComplianceStatusResponse
-> ListComplianceStatusResponse -> Bool
Prelude.Eq, ReadPrec [ListComplianceStatusResponse]
ReadPrec ListComplianceStatusResponse
Int -> ReadS ListComplianceStatusResponse
ReadS [ListComplianceStatusResponse]
(Int -> ReadS ListComplianceStatusResponse)
-> ReadS [ListComplianceStatusResponse]
-> ReadPrec ListComplianceStatusResponse
-> ReadPrec [ListComplianceStatusResponse]
-> Read ListComplianceStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListComplianceStatusResponse]
$creadListPrec :: ReadPrec [ListComplianceStatusResponse]
readPrec :: ReadPrec ListComplianceStatusResponse
$creadPrec :: ReadPrec ListComplianceStatusResponse
readList :: ReadS [ListComplianceStatusResponse]
$creadList :: ReadS [ListComplianceStatusResponse]
readsPrec :: Int -> ReadS ListComplianceStatusResponse
$creadsPrec :: Int -> ReadS ListComplianceStatusResponse
Prelude.Read, Int -> ListComplianceStatusResponse -> ShowS
[ListComplianceStatusResponse] -> ShowS
ListComplianceStatusResponse -> String
(Int -> ListComplianceStatusResponse -> ShowS)
-> (ListComplianceStatusResponse -> String)
-> ([ListComplianceStatusResponse] -> ShowS)
-> Show ListComplianceStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListComplianceStatusResponse] -> ShowS
$cshowList :: [ListComplianceStatusResponse] -> ShowS
show :: ListComplianceStatusResponse -> String
$cshow :: ListComplianceStatusResponse -> String
showsPrec :: Int -> ListComplianceStatusResponse -> ShowS
$cshowsPrec :: Int -> ListComplianceStatusResponse -> ShowS
Prelude.Show, (forall x.
ListComplianceStatusResponse -> Rep ListComplianceStatusResponse x)
-> (forall x.
Rep ListComplianceStatusResponse x -> ListComplianceStatusResponse)
-> Generic ListComplianceStatusResponse
forall x.
Rep ListComplianceStatusResponse x -> ListComplianceStatusResponse
forall x.
ListComplianceStatusResponse -> Rep ListComplianceStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListComplianceStatusResponse x -> ListComplianceStatusResponse
$cfrom :: forall x.
ListComplianceStatusResponse -> Rep ListComplianceStatusResponse x
Prelude.Generic)
newListComplianceStatusResponse ::
Prelude.Int ->
ListComplianceStatusResponse
newListComplianceStatusResponse :: Int -> ListComplianceStatusResponse
newListComplianceStatusResponse Int
pHttpStatus_ =
ListComplianceStatusResponse' :: Maybe Text
-> Maybe [PolicyComplianceStatus]
-> Int
-> ListComplianceStatusResponse
ListComplianceStatusResponse'
{ $sel:nextToken:ListComplianceStatusResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:policyComplianceStatusList:ListComplianceStatusResponse' :: Maybe [PolicyComplianceStatus]
policyComplianceStatusList = Maybe [PolicyComplianceStatus]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListComplianceStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listComplianceStatusResponse_nextToken :: Lens.Lens' ListComplianceStatusResponse (Prelude.Maybe Prelude.Text)
listComplianceStatusResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListComplianceStatusResponse -> f ListComplianceStatusResponse
listComplianceStatusResponse_nextToken = (ListComplianceStatusResponse -> Maybe Text)
-> (ListComplianceStatusResponse
-> Maybe Text -> ListComplianceStatusResponse)
-> Lens' ListComplianceStatusResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceStatusResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListComplianceStatusResponse' :: ListComplianceStatusResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListComplianceStatusResponse
s@ListComplianceStatusResponse' {} Maybe Text
a -> ListComplianceStatusResponse
s {$sel:nextToken:ListComplianceStatusResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListComplianceStatusResponse)
listComplianceStatusResponse_policyComplianceStatusList :: Lens.Lens' ListComplianceStatusResponse (Prelude.Maybe [PolicyComplianceStatus])
listComplianceStatusResponse_policyComplianceStatusList :: (Maybe [PolicyComplianceStatus]
-> f (Maybe [PolicyComplianceStatus]))
-> ListComplianceStatusResponse -> f ListComplianceStatusResponse
listComplianceStatusResponse_policyComplianceStatusList = (ListComplianceStatusResponse -> Maybe [PolicyComplianceStatus])
-> (ListComplianceStatusResponse
-> Maybe [PolicyComplianceStatus] -> ListComplianceStatusResponse)
-> Lens'
ListComplianceStatusResponse (Maybe [PolicyComplianceStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceStatusResponse' {Maybe [PolicyComplianceStatus]
policyComplianceStatusList :: Maybe [PolicyComplianceStatus]
$sel:policyComplianceStatusList:ListComplianceStatusResponse' :: ListComplianceStatusResponse -> Maybe [PolicyComplianceStatus]
policyComplianceStatusList} -> Maybe [PolicyComplianceStatus]
policyComplianceStatusList) (\s :: ListComplianceStatusResponse
s@ListComplianceStatusResponse' {} Maybe [PolicyComplianceStatus]
a -> ListComplianceStatusResponse
s {$sel:policyComplianceStatusList:ListComplianceStatusResponse' :: Maybe [PolicyComplianceStatus]
policyComplianceStatusList = Maybe [PolicyComplianceStatus]
a} :: ListComplianceStatusResponse) ((Maybe [PolicyComplianceStatus]
-> f (Maybe [PolicyComplianceStatus]))
-> ListComplianceStatusResponse -> f ListComplianceStatusResponse)
-> ((Maybe [PolicyComplianceStatus]
-> f (Maybe [PolicyComplianceStatus]))
-> Maybe [PolicyComplianceStatus]
-> f (Maybe [PolicyComplianceStatus]))
-> (Maybe [PolicyComplianceStatus]
-> f (Maybe [PolicyComplianceStatus]))
-> ListComplianceStatusResponse
-> f ListComplianceStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PolicyComplianceStatus]
[PolicyComplianceStatus]
[PolicyComplianceStatus]
[PolicyComplianceStatus]
-> Iso
(Maybe [PolicyComplianceStatus])
(Maybe [PolicyComplianceStatus])
(Maybe [PolicyComplianceStatus])
(Maybe [PolicyComplianceStatus])
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
[PolicyComplianceStatus]
[PolicyComplianceStatus]
[PolicyComplianceStatus]
[PolicyComplianceStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listComplianceStatusResponse_httpStatus :: Lens.Lens' ListComplianceStatusResponse Prelude.Int
listComplianceStatusResponse_httpStatus :: (Int -> f Int)
-> ListComplianceStatusResponse -> f ListComplianceStatusResponse
listComplianceStatusResponse_httpStatus = (ListComplianceStatusResponse -> Int)
-> (ListComplianceStatusResponse
-> Int -> ListComplianceStatusResponse)
-> Lens
ListComplianceStatusResponse ListComplianceStatusResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceStatusResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListComplianceStatusResponse' :: ListComplianceStatusResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListComplianceStatusResponse
s@ListComplianceStatusResponse' {} Int
a -> ListComplianceStatusResponse
s {$sel:httpStatus:ListComplianceStatusResponse' :: Int
httpStatus = Int
a} :: ListComplianceStatusResponse)
instance Prelude.NFData ListComplianceStatusResponse