{-# 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.Config.DescribeOrganizationConformancePacks
(
DescribeOrganizationConformancePacks (..),
newDescribeOrganizationConformancePacks,
describeOrganizationConformancePacks_nextToken,
describeOrganizationConformancePacks_limit,
describeOrganizationConformancePacks_organizationConformancePackNames,
DescribeOrganizationConformancePacksResponse (..),
newDescribeOrganizationConformancePacksResponse,
describeOrganizationConformancePacksResponse_organizationConformancePacks,
describeOrganizationConformancePacksResponse_nextToken,
describeOrganizationConformancePacksResponse_httpStatus,
)
where
import Amazonka.Config.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 DescribeOrganizationConformancePacks = DescribeOrganizationConformancePacks'
{
DescribeOrganizationConformancePacks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeOrganizationConformancePacks -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
DescribeOrganizationConformancePacks -> Maybe [Text]
organizationConformancePackNames :: Prelude.Maybe [Prelude.Text]
}
deriving (DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks -> Bool
(DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks -> Bool)
-> (DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks -> Bool)
-> Eq DescribeOrganizationConformancePacks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks -> Bool
$c/= :: DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks -> Bool
== :: DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks -> Bool
$c== :: DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks -> Bool
Prelude.Eq, ReadPrec [DescribeOrganizationConformancePacks]
ReadPrec DescribeOrganizationConformancePacks
Int -> ReadS DescribeOrganizationConformancePacks
ReadS [DescribeOrganizationConformancePacks]
(Int -> ReadS DescribeOrganizationConformancePacks)
-> ReadS [DescribeOrganizationConformancePacks]
-> ReadPrec DescribeOrganizationConformancePacks
-> ReadPrec [DescribeOrganizationConformancePacks]
-> Read DescribeOrganizationConformancePacks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOrganizationConformancePacks]
$creadListPrec :: ReadPrec [DescribeOrganizationConformancePacks]
readPrec :: ReadPrec DescribeOrganizationConformancePacks
$creadPrec :: ReadPrec DescribeOrganizationConformancePacks
readList :: ReadS [DescribeOrganizationConformancePacks]
$creadList :: ReadS [DescribeOrganizationConformancePacks]
readsPrec :: Int -> ReadS DescribeOrganizationConformancePacks
$creadsPrec :: Int -> ReadS DescribeOrganizationConformancePacks
Prelude.Read, Int -> DescribeOrganizationConformancePacks -> ShowS
[DescribeOrganizationConformancePacks] -> ShowS
DescribeOrganizationConformancePacks -> String
(Int -> DescribeOrganizationConformancePacks -> ShowS)
-> (DescribeOrganizationConformancePacks -> String)
-> ([DescribeOrganizationConformancePacks] -> ShowS)
-> Show DescribeOrganizationConformancePacks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOrganizationConformancePacks] -> ShowS
$cshowList :: [DescribeOrganizationConformancePacks] -> ShowS
show :: DescribeOrganizationConformancePacks -> String
$cshow :: DescribeOrganizationConformancePacks -> String
showsPrec :: Int -> DescribeOrganizationConformancePacks -> ShowS
$cshowsPrec :: Int -> DescribeOrganizationConformancePacks -> ShowS
Prelude.Show, (forall x.
DescribeOrganizationConformancePacks
-> Rep DescribeOrganizationConformancePacks x)
-> (forall x.
Rep DescribeOrganizationConformancePacks x
-> DescribeOrganizationConformancePacks)
-> Generic DescribeOrganizationConformancePacks
forall x.
Rep DescribeOrganizationConformancePacks x
-> DescribeOrganizationConformancePacks
forall x.
DescribeOrganizationConformancePacks
-> Rep DescribeOrganizationConformancePacks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOrganizationConformancePacks x
-> DescribeOrganizationConformancePacks
$cfrom :: forall x.
DescribeOrganizationConformancePacks
-> Rep DescribeOrganizationConformancePacks x
Prelude.Generic)
newDescribeOrganizationConformancePacks ::
DescribeOrganizationConformancePacks
newDescribeOrganizationConformancePacks :: DescribeOrganizationConformancePacks
newDescribeOrganizationConformancePacks =
DescribeOrganizationConformancePacks' :: Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> DescribeOrganizationConformancePacks
DescribeOrganizationConformancePacks'
{ $sel:nextToken:DescribeOrganizationConformancePacks' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribeOrganizationConformancePacks' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:organizationConformancePackNames:DescribeOrganizationConformancePacks' :: Maybe [Text]
organizationConformancePackNames =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing
}
describeOrganizationConformancePacks_nextToken :: Lens.Lens' DescribeOrganizationConformancePacks (Prelude.Maybe Prelude.Text)
describeOrganizationConformancePacks_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeOrganizationConformancePacks
-> f DescribeOrganizationConformancePacks
describeOrganizationConformancePacks_nextToken = (DescribeOrganizationConformancePacks -> Maybe Text)
-> (DescribeOrganizationConformancePacks
-> Maybe Text -> DescribeOrganizationConformancePacks)
-> Lens
DescribeOrganizationConformancePacks
DescribeOrganizationConformancePacks
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrganizationConformancePacks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeOrganizationConformancePacks' :: DescribeOrganizationConformancePacks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeOrganizationConformancePacks
s@DescribeOrganizationConformancePacks' {} Maybe Text
a -> DescribeOrganizationConformancePacks
s {$sel:nextToken:DescribeOrganizationConformancePacks' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeOrganizationConformancePacks)
describeOrganizationConformancePacks_limit :: Lens.Lens' DescribeOrganizationConformancePacks (Prelude.Maybe Prelude.Natural)
describeOrganizationConformancePacks_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribeOrganizationConformancePacks
-> f DescribeOrganizationConformancePacks
describeOrganizationConformancePacks_limit = (DescribeOrganizationConformancePacks -> Maybe Natural)
-> (DescribeOrganizationConformancePacks
-> Maybe Natural -> DescribeOrganizationConformancePacks)
-> Lens
DescribeOrganizationConformancePacks
DescribeOrganizationConformancePacks
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrganizationConformancePacks' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeOrganizationConformancePacks' :: DescribeOrganizationConformancePacks -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeOrganizationConformancePacks
s@DescribeOrganizationConformancePacks' {} Maybe Natural
a -> DescribeOrganizationConformancePacks
s {$sel:limit:DescribeOrganizationConformancePacks' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeOrganizationConformancePacks)
describeOrganizationConformancePacks_organizationConformancePackNames :: Lens.Lens' DescribeOrganizationConformancePacks (Prelude.Maybe [Prelude.Text])
describeOrganizationConformancePacks_organizationConformancePackNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeOrganizationConformancePacks
-> f DescribeOrganizationConformancePacks
describeOrganizationConformancePacks_organizationConformancePackNames = (DescribeOrganizationConformancePacks -> Maybe [Text])
-> (DescribeOrganizationConformancePacks
-> Maybe [Text] -> DescribeOrganizationConformancePacks)
-> Lens
DescribeOrganizationConformancePacks
DescribeOrganizationConformancePacks
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrganizationConformancePacks' {Maybe [Text]
organizationConformancePackNames :: Maybe [Text]
$sel:organizationConformancePackNames:DescribeOrganizationConformancePacks' :: DescribeOrganizationConformancePacks -> Maybe [Text]
organizationConformancePackNames} -> Maybe [Text]
organizationConformancePackNames) (\s :: DescribeOrganizationConformancePacks
s@DescribeOrganizationConformancePacks' {} Maybe [Text]
a -> DescribeOrganizationConformancePacks
s {$sel:organizationConformancePackNames:DescribeOrganizationConformancePacks' :: Maybe [Text]
organizationConformancePackNames = Maybe [Text]
a} :: DescribeOrganizationConformancePacks) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeOrganizationConformancePacks
-> f DescribeOrganizationConformancePacks)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeOrganizationConformancePacks
-> f DescribeOrganizationConformancePacks
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSPager
DescribeOrganizationConformancePacks
where
page :: DescribeOrganizationConformancePacks
-> AWSResponse DescribeOrganizationConformancePacks
-> Maybe DescribeOrganizationConformancePacks
page DescribeOrganizationConformancePacks
rq AWSResponse DescribeOrganizationConformancePacks
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeOrganizationConformancePacks
DescribeOrganizationConformancePacksResponse
rs
DescribeOrganizationConformancePacksResponse
-> Getting
(First Text) DescribeOrganizationConformancePacksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrganizationConformancePacksResponse
-> Const (First Text) DescribeOrganizationConformancePacksResponse
Lens' DescribeOrganizationConformancePacksResponse (Maybe Text)
describeOrganizationConformancePacksResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrganizationConformancePacksResponse
-> Const (First Text) DescribeOrganizationConformancePacksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeOrganizationConformancePacksResponse 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 DescribeOrganizationConformancePacks
forall a. Maybe a
Prelude.Nothing
| Maybe [OrganizationConformancePack] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeOrganizationConformancePacks
DescribeOrganizationConformancePacksResponse
rs
DescribeOrganizationConformancePacksResponse
-> Getting
(First [OrganizationConformancePack])
DescribeOrganizationConformancePacksResponse
[OrganizationConformancePack]
-> Maybe [OrganizationConformancePack]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [OrganizationConformancePack]
-> Const
(First [OrganizationConformancePack])
(Maybe [OrganizationConformancePack]))
-> DescribeOrganizationConformancePacksResponse
-> Const
(First [OrganizationConformancePack])
DescribeOrganizationConformancePacksResponse
Lens'
DescribeOrganizationConformancePacksResponse
(Maybe [OrganizationConformancePack])
describeOrganizationConformancePacksResponse_organizationConformancePacks
((Maybe [OrganizationConformancePack]
-> Const
(First [OrganizationConformancePack])
(Maybe [OrganizationConformancePack]))
-> DescribeOrganizationConformancePacksResponse
-> Const
(First [OrganizationConformancePack])
DescribeOrganizationConformancePacksResponse)
-> (([OrganizationConformancePack]
-> Const
(First [OrganizationConformancePack])
[OrganizationConformancePack])
-> Maybe [OrganizationConformancePack]
-> Const
(First [OrganizationConformancePack])
(Maybe [OrganizationConformancePack]))
-> Getting
(First [OrganizationConformancePack])
DescribeOrganizationConformancePacksResponse
[OrganizationConformancePack]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([OrganizationConformancePack]
-> Const
(First [OrganizationConformancePack])
[OrganizationConformancePack])
-> Maybe [OrganizationConformancePack]
-> Const
(First [OrganizationConformancePack])
(Maybe [OrganizationConformancePack])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeOrganizationConformancePacks
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeOrganizationConformancePacks
-> Maybe DescribeOrganizationConformancePacks
forall a. a -> Maybe a
Prelude.Just (DescribeOrganizationConformancePacks
-> Maybe DescribeOrganizationConformancePacks)
-> DescribeOrganizationConformancePacks
-> Maybe DescribeOrganizationConformancePacks
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeOrganizationConformancePacks
rq
DescribeOrganizationConformancePacks
-> (DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks)
-> DescribeOrganizationConformancePacks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeOrganizationConformancePacks
-> Identity DescribeOrganizationConformancePacks
Lens
DescribeOrganizationConformancePacks
DescribeOrganizationConformancePacks
(Maybe Text)
(Maybe Text)
describeOrganizationConformancePacks_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeOrganizationConformancePacks
-> Identity DescribeOrganizationConformancePacks)
-> Maybe Text
-> DescribeOrganizationConformancePacks
-> DescribeOrganizationConformancePacks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeOrganizationConformancePacks
DescribeOrganizationConformancePacksResponse
rs
DescribeOrganizationConformancePacksResponse
-> Getting
(First Text) DescribeOrganizationConformancePacksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrganizationConformancePacksResponse
-> Const (First Text) DescribeOrganizationConformancePacksResponse
Lens' DescribeOrganizationConformancePacksResponse (Maybe Text)
describeOrganizationConformancePacksResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrganizationConformancePacksResponse
-> Const (First Text) DescribeOrganizationConformancePacksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeOrganizationConformancePacksResponse 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
DescribeOrganizationConformancePacks
where
type
AWSResponse DescribeOrganizationConformancePacks =
DescribeOrganizationConformancePacksResponse
request :: DescribeOrganizationConformancePacks
-> Request DescribeOrganizationConformancePacks
request = Service
-> DescribeOrganizationConformancePacks
-> Request DescribeOrganizationConformancePacks
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeOrganizationConformancePacks
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeOrganizationConformancePacks)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse DescribeOrganizationConformancePacks))
-> Logger
-> Service
-> Proxy DescribeOrganizationConformancePacks
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeOrganizationConformancePacks)))
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 [OrganizationConformancePack]
-> Maybe Text
-> Int
-> DescribeOrganizationConformancePacksResponse
DescribeOrganizationConformancePacksResponse'
(Maybe [OrganizationConformancePack]
-> Maybe Text
-> Int
-> DescribeOrganizationConformancePacksResponse)
-> Either String (Maybe [OrganizationConformancePack])
-> Either
String
(Maybe Text -> Int -> DescribeOrganizationConformancePacksResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [OrganizationConformancePack]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OrganizationConformancePacks"
Either String (Maybe (Maybe [OrganizationConformancePack]))
-> Maybe [OrganizationConformancePack]
-> Either String (Maybe [OrganizationConformancePack])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [OrganizationConformancePack]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text -> Int -> DescribeOrganizationConformancePacksResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> DescribeOrganizationConformancePacksResponse)
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 -> DescribeOrganizationConformancePacksResponse)
-> Either String Int
-> Either String DescribeOrganizationConformancePacksResponse
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
DescribeOrganizationConformancePacks
instance
Prelude.NFData
DescribeOrganizationConformancePacks
instance
Core.ToHeaders
DescribeOrganizationConformancePacks
where
toHeaders :: DescribeOrganizationConformancePacks -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeOrganizationConformancePacks -> 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
"StarlingDoveService.DescribeOrganizationConformancePacks" ::
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
DescribeOrganizationConformancePacks
where
toJSON :: DescribeOrganizationConformancePacks -> Value
toJSON DescribeOrganizationConformancePacks' {Maybe Natural
Maybe [Text]
Maybe Text
organizationConformancePackNames :: Maybe [Text]
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:organizationConformancePackNames:DescribeOrganizationConformancePacks' :: DescribeOrganizationConformancePacks -> Maybe [Text]
$sel:limit:DescribeOrganizationConformancePacks' :: DescribeOrganizationConformancePacks -> Maybe Natural
$sel:nextToken:DescribeOrganizationConformancePacks' :: DescribeOrganizationConformancePacks -> 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
"Limit" 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
limit,
(Text
"OrganizationConformancePackNames" 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]
organizationConformancePackNames
]
)
instance
Core.ToPath
DescribeOrganizationConformancePacks
where
toPath :: DescribeOrganizationConformancePacks -> ByteString
toPath = ByteString -> DescribeOrganizationConformancePacks -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeOrganizationConformancePacks
where
toQuery :: DescribeOrganizationConformancePacks -> QueryString
toQuery = QueryString -> DescribeOrganizationConformancePacks -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeOrganizationConformancePacksResponse = DescribeOrganizationConformancePacksResponse'
{
DescribeOrganizationConformancePacksResponse
-> Maybe [OrganizationConformancePack]
organizationConformancePacks :: Prelude.Maybe [OrganizationConformancePack],
DescribeOrganizationConformancePacksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeOrganizationConformancePacksResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeOrganizationConformancePacksResponse
-> DescribeOrganizationConformancePacksResponse -> Bool
(DescribeOrganizationConformancePacksResponse
-> DescribeOrganizationConformancePacksResponse -> Bool)
-> (DescribeOrganizationConformancePacksResponse
-> DescribeOrganizationConformancePacksResponse -> Bool)
-> Eq DescribeOrganizationConformancePacksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOrganizationConformancePacksResponse
-> DescribeOrganizationConformancePacksResponse -> Bool
$c/= :: DescribeOrganizationConformancePacksResponse
-> DescribeOrganizationConformancePacksResponse -> Bool
== :: DescribeOrganizationConformancePacksResponse
-> DescribeOrganizationConformancePacksResponse -> Bool
$c== :: DescribeOrganizationConformancePacksResponse
-> DescribeOrganizationConformancePacksResponse -> Bool
Prelude.Eq, ReadPrec [DescribeOrganizationConformancePacksResponse]
ReadPrec DescribeOrganizationConformancePacksResponse
Int -> ReadS DescribeOrganizationConformancePacksResponse
ReadS [DescribeOrganizationConformancePacksResponse]
(Int -> ReadS DescribeOrganizationConformancePacksResponse)
-> ReadS [DescribeOrganizationConformancePacksResponse]
-> ReadPrec DescribeOrganizationConformancePacksResponse
-> ReadPrec [DescribeOrganizationConformancePacksResponse]
-> Read DescribeOrganizationConformancePacksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOrganizationConformancePacksResponse]
$creadListPrec :: ReadPrec [DescribeOrganizationConformancePacksResponse]
readPrec :: ReadPrec DescribeOrganizationConformancePacksResponse
$creadPrec :: ReadPrec DescribeOrganizationConformancePacksResponse
readList :: ReadS [DescribeOrganizationConformancePacksResponse]
$creadList :: ReadS [DescribeOrganizationConformancePacksResponse]
readsPrec :: Int -> ReadS DescribeOrganizationConformancePacksResponse
$creadsPrec :: Int -> ReadS DescribeOrganizationConformancePacksResponse
Prelude.Read, Int -> DescribeOrganizationConformancePacksResponse -> ShowS
[DescribeOrganizationConformancePacksResponse] -> ShowS
DescribeOrganizationConformancePacksResponse -> String
(Int -> DescribeOrganizationConformancePacksResponse -> ShowS)
-> (DescribeOrganizationConformancePacksResponse -> String)
-> ([DescribeOrganizationConformancePacksResponse] -> ShowS)
-> Show DescribeOrganizationConformancePacksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOrganizationConformancePacksResponse] -> ShowS
$cshowList :: [DescribeOrganizationConformancePacksResponse] -> ShowS
show :: DescribeOrganizationConformancePacksResponse -> String
$cshow :: DescribeOrganizationConformancePacksResponse -> String
showsPrec :: Int -> DescribeOrganizationConformancePacksResponse -> ShowS
$cshowsPrec :: Int -> DescribeOrganizationConformancePacksResponse -> ShowS
Prelude.Show, (forall x.
DescribeOrganizationConformancePacksResponse
-> Rep DescribeOrganizationConformancePacksResponse x)
-> (forall x.
Rep DescribeOrganizationConformancePacksResponse x
-> DescribeOrganizationConformancePacksResponse)
-> Generic DescribeOrganizationConformancePacksResponse
forall x.
Rep DescribeOrganizationConformancePacksResponse x
-> DescribeOrganizationConformancePacksResponse
forall x.
DescribeOrganizationConformancePacksResponse
-> Rep DescribeOrganizationConformancePacksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOrganizationConformancePacksResponse x
-> DescribeOrganizationConformancePacksResponse
$cfrom :: forall x.
DescribeOrganizationConformancePacksResponse
-> Rep DescribeOrganizationConformancePacksResponse x
Prelude.Generic)
newDescribeOrganizationConformancePacksResponse ::
Prelude.Int ->
DescribeOrganizationConformancePacksResponse
newDescribeOrganizationConformancePacksResponse :: Int -> DescribeOrganizationConformancePacksResponse
newDescribeOrganizationConformancePacksResponse
Int
pHttpStatus_ =
DescribeOrganizationConformancePacksResponse' :: Maybe [OrganizationConformancePack]
-> Maybe Text
-> Int
-> DescribeOrganizationConformancePacksResponse
DescribeOrganizationConformancePacksResponse'
{ $sel:organizationConformancePacks:DescribeOrganizationConformancePacksResponse' :: Maybe [OrganizationConformancePack]
organizationConformancePacks =
Maybe [OrganizationConformancePack]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeOrganizationConformancePacksResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeOrganizationConformancePacksResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeOrganizationConformancePacksResponse_organizationConformancePacks :: Lens.Lens' DescribeOrganizationConformancePacksResponse (Prelude.Maybe [OrganizationConformancePack])
describeOrganizationConformancePacksResponse_organizationConformancePacks :: (Maybe [OrganizationConformancePack]
-> f (Maybe [OrganizationConformancePack]))
-> DescribeOrganizationConformancePacksResponse
-> f DescribeOrganizationConformancePacksResponse
describeOrganizationConformancePacksResponse_organizationConformancePacks = (DescribeOrganizationConformancePacksResponse
-> Maybe [OrganizationConformancePack])
-> (DescribeOrganizationConformancePacksResponse
-> Maybe [OrganizationConformancePack]
-> DescribeOrganizationConformancePacksResponse)
-> Lens'
DescribeOrganizationConformancePacksResponse
(Maybe [OrganizationConformancePack])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrganizationConformancePacksResponse' {Maybe [OrganizationConformancePack]
organizationConformancePacks :: Maybe [OrganizationConformancePack]
$sel:organizationConformancePacks:DescribeOrganizationConformancePacksResponse' :: DescribeOrganizationConformancePacksResponse
-> Maybe [OrganizationConformancePack]
organizationConformancePacks} -> Maybe [OrganizationConformancePack]
organizationConformancePacks) (\s :: DescribeOrganizationConformancePacksResponse
s@DescribeOrganizationConformancePacksResponse' {} Maybe [OrganizationConformancePack]
a -> DescribeOrganizationConformancePacksResponse
s {$sel:organizationConformancePacks:DescribeOrganizationConformancePacksResponse' :: Maybe [OrganizationConformancePack]
organizationConformancePacks = Maybe [OrganizationConformancePack]
a} :: DescribeOrganizationConformancePacksResponse) ((Maybe [OrganizationConformancePack]
-> f (Maybe [OrganizationConformancePack]))
-> DescribeOrganizationConformancePacksResponse
-> f DescribeOrganizationConformancePacksResponse)
-> ((Maybe [OrganizationConformancePack]
-> f (Maybe [OrganizationConformancePack]))
-> Maybe [OrganizationConformancePack]
-> f (Maybe [OrganizationConformancePack]))
-> (Maybe [OrganizationConformancePack]
-> f (Maybe [OrganizationConformancePack]))
-> DescribeOrganizationConformancePacksResponse
-> f DescribeOrganizationConformancePacksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OrganizationConformancePack]
[OrganizationConformancePack]
[OrganizationConformancePack]
[OrganizationConformancePack]
-> Iso
(Maybe [OrganizationConformancePack])
(Maybe [OrganizationConformancePack])
(Maybe [OrganizationConformancePack])
(Maybe [OrganizationConformancePack])
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
[OrganizationConformancePack]
[OrganizationConformancePack]
[OrganizationConformancePack]
[OrganizationConformancePack]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeOrganizationConformancePacksResponse_nextToken :: Lens.Lens' DescribeOrganizationConformancePacksResponse (Prelude.Maybe Prelude.Text)
describeOrganizationConformancePacksResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeOrganizationConformancePacksResponse
-> f DescribeOrganizationConformancePacksResponse
describeOrganizationConformancePacksResponse_nextToken = (DescribeOrganizationConformancePacksResponse -> Maybe Text)
-> (DescribeOrganizationConformancePacksResponse
-> Maybe Text -> DescribeOrganizationConformancePacksResponse)
-> Lens' DescribeOrganizationConformancePacksResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrganizationConformancePacksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeOrganizationConformancePacksResponse' :: DescribeOrganizationConformancePacksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeOrganizationConformancePacksResponse
s@DescribeOrganizationConformancePacksResponse' {} Maybe Text
a -> DescribeOrganizationConformancePacksResponse
s {$sel:nextToken:DescribeOrganizationConformancePacksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeOrganizationConformancePacksResponse)
describeOrganizationConformancePacksResponse_httpStatus :: Lens.Lens' DescribeOrganizationConformancePacksResponse Prelude.Int
describeOrganizationConformancePacksResponse_httpStatus :: (Int -> f Int)
-> DescribeOrganizationConformancePacksResponse
-> f DescribeOrganizationConformancePacksResponse
describeOrganizationConformancePacksResponse_httpStatus = (DescribeOrganizationConformancePacksResponse -> Int)
-> (DescribeOrganizationConformancePacksResponse
-> Int -> DescribeOrganizationConformancePacksResponse)
-> Lens
DescribeOrganizationConformancePacksResponse
DescribeOrganizationConformancePacksResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrganizationConformancePacksResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeOrganizationConformancePacksResponse' :: DescribeOrganizationConformancePacksResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeOrganizationConformancePacksResponse
s@DescribeOrganizationConformancePacksResponse' {} Int
a -> DescribeOrganizationConformancePacksResponse
s {$sel:httpStatus:DescribeOrganizationConformancePacksResponse' :: Int
httpStatus = Int
a} :: DescribeOrganizationConformancePacksResponse)
instance
Prelude.NFData
DescribeOrganizationConformancePacksResponse