{-# 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.SecurityHub.GetEnabledStandards
(
GetEnabledStandards (..),
newGetEnabledStandards,
getEnabledStandards_nextToken,
getEnabledStandards_standardsSubscriptionArns,
getEnabledStandards_maxResults,
GetEnabledStandardsResponse (..),
newGetEnabledStandardsResponse,
getEnabledStandardsResponse_nextToken,
getEnabledStandardsResponse_standardsSubscriptions,
getEnabledStandardsResponse_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.SecurityHub.Types
data GetEnabledStandards = GetEnabledStandards'
{
GetEnabledStandards -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetEnabledStandards -> Maybe (NonEmpty Text)
standardsSubscriptionArns :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
GetEnabledStandards -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (GetEnabledStandards -> GetEnabledStandards -> Bool
(GetEnabledStandards -> GetEnabledStandards -> Bool)
-> (GetEnabledStandards -> GetEnabledStandards -> Bool)
-> Eq GetEnabledStandards
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEnabledStandards -> GetEnabledStandards -> Bool
$c/= :: GetEnabledStandards -> GetEnabledStandards -> Bool
== :: GetEnabledStandards -> GetEnabledStandards -> Bool
$c== :: GetEnabledStandards -> GetEnabledStandards -> Bool
Prelude.Eq, ReadPrec [GetEnabledStandards]
ReadPrec GetEnabledStandards
Int -> ReadS GetEnabledStandards
ReadS [GetEnabledStandards]
(Int -> ReadS GetEnabledStandards)
-> ReadS [GetEnabledStandards]
-> ReadPrec GetEnabledStandards
-> ReadPrec [GetEnabledStandards]
-> Read GetEnabledStandards
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEnabledStandards]
$creadListPrec :: ReadPrec [GetEnabledStandards]
readPrec :: ReadPrec GetEnabledStandards
$creadPrec :: ReadPrec GetEnabledStandards
readList :: ReadS [GetEnabledStandards]
$creadList :: ReadS [GetEnabledStandards]
readsPrec :: Int -> ReadS GetEnabledStandards
$creadsPrec :: Int -> ReadS GetEnabledStandards
Prelude.Read, Int -> GetEnabledStandards -> ShowS
[GetEnabledStandards] -> ShowS
GetEnabledStandards -> String
(Int -> GetEnabledStandards -> ShowS)
-> (GetEnabledStandards -> String)
-> ([GetEnabledStandards] -> ShowS)
-> Show GetEnabledStandards
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEnabledStandards] -> ShowS
$cshowList :: [GetEnabledStandards] -> ShowS
show :: GetEnabledStandards -> String
$cshow :: GetEnabledStandards -> String
showsPrec :: Int -> GetEnabledStandards -> ShowS
$cshowsPrec :: Int -> GetEnabledStandards -> ShowS
Prelude.Show, (forall x. GetEnabledStandards -> Rep GetEnabledStandards x)
-> (forall x. Rep GetEnabledStandards x -> GetEnabledStandards)
-> Generic GetEnabledStandards
forall x. Rep GetEnabledStandards x -> GetEnabledStandards
forall x. GetEnabledStandards -> Rep GetEnabledStandards x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetEnabledStandards x -> GetEnabledStandards
$cfrom :: forall x. GetEnabledStandards -> Rep GetEnabledStandards x
Prelude.Generic)
newGetEnabledStandards ::
GetEnabledStandards
newGetEnabledStandards :: GetEnabledStandards
newGetEnabledStandards =
GetEnabledStandards' :: Maybe Text
-> Maybe (NonEmpty Text) -> Maybe Natural -> GetEnabledStandards
GetEnabledStandards'
{ $sel:nextToken:GetEnabledStandards' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:standardsSubscriptionArns:GetEnabledStandards' :: Maybe (NonEmpty Text)
standardsSubscriptionArns = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetEnabledStandards' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
getEnabledStandards_nextToken :: Lens.Lens' GetEnabledStandards (Prelude.Maybe Prelude.Text)
getEnabledStandards_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetEnabledStandards -> f GetEnabledStandards
getEnabledStandards_nextToken = (GetEnabledStandards -> Maybe Text)
-> (GetEnabledStandards -> Maybe Text -> GetEnabledStandards)
-> Lens
GetEnabledStandards GetEnabledStandards (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEnabledStandards' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetEnabledStandards' :: GetEnabledStandards -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetEnabledStandards
s@GetEnabledStandards' {} Maybe Text
a -> GetEnabledStandards
s {$sel:nextToken:GetEnabledStandards' :: Maybe Text
nextToken = Maybe Text
a} :: GetEnabledStandards)
getEnabledStandards_standardsSubscriptionArns :: Lens.Lens' GetEnabledStandards (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
getEnabledStandards_standardsSubscriptionArns :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> GetEnabledStandards -> f GetEnabledStandards
getEnabledStandards_standardsSubscriptionArns = (GetEnabledStandards -> Maybe (NonEmpty Text))
-> (GetEnabledStandards
-> Maybe (NonEmpty Text) -> GetEnabledStandards)
-> Lens
GetEnabledStandards
GetEnabledStandards
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEnabledStandards' {Maybe (NonEmpty Text)
standardsSubscriptionArns :: Maybe (NonEmpty Text)
$sel:standardsSubscriptionArns:GetEnabledStandards' :: GetEnabledStandards -> Maybe (NonEmpty Text)
standardsSubscriptionArns} -> Maybe (NonEmpty Text)
standardsSubscriptionArns) (\s :: GetEnabledStandards
s@GetEnabledStandards' {} Maybe (NonEmpty Text)
a -> GetEnabledStandards
s {$sel:standardsSubscriptionArns:GetEnabledStandards' :: Maybe (NonEmpty Text)
standardsSubscriptionArns = Maybe (NonEmpty Text)
a} :: GetEnabledStandards) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> GetEnabledStandards -> f GetEnabledStandards)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> GetEnabledStandards
-> f GetEnabledStandards
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getEnabledStandards_maxResults :: Lens.Lens' GetEnabledStandards (Prelude.Maybe Prelude.Natural)
getEnabledStandards_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetEnabledStandards -> f GetEnabledStandards
getEnabledStandards_maxResults = (GetEnabledStandards -> Maybe Natural)
-> (GetEnabledStandards -> Maybe Natural -> GetEnabledStandards)
-> Lens
GetEnabledStandards
GetEnabledStandards
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEnabledStandards' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetEnabledStandards' :: GetEnabledStandards -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetEnabledStandards
s@GetEnabledStandards' {} Maybe Natural
a -> GetEnabledStandards
s {$sel:maxResults:GetEnabledStandards' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetEnabledStandards)
instance Core.AWSPager GetEnabledStandards where
page :: GetEnabledStandards
-> AWSResponse GetEnabledStandards -> Maybe GetEnabledStandards
page GetEnabledStandards
rq AWSResponse GetEnabledStandards
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetEnabledStandards
GetEnabledStandardsResponse
rs
GetEnabledStandardsResponse
-> Getting (First Text) GetEnabledStandardsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetEnabledStandardsResponse
-> Const (First Text) GetEnabledStandardsResponse
Lens' GetEnabledStandardsResponse (Maybe Text)
getEnabledStandardsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetEnabledStandardsResponse
-> Const (First Text) GetEnabledStandardsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetEnabledStandardsResponse 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 GetEnabledStandards
forall a. Maybe a
Prelude.Nothing
| Maybe [StandardsSubscription] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetEnabledStandards
GetEnabledStandardsResponse
rs
GetEnabledStandardsResponse
-> Getting
(First [StandardsSubscription])
GetEnabledStandardsResponse
[StandardsSubscription]
-> Maybe [StandardsSubscription]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [StandardsSubscription]
-> Const
(First [StandardsSubscription]) (Maybe [StandardsSubscription]))
-> GetEnabledStandardsResponse
-> Const
(First [StandardsSubscription]) GetEnabledStandardsResponse
Lens' GetEnabledStandardsResponse (Maybe [StandardsSubscription])
getEnabledStandardsResponse_standardsSubscriptions
((Maybe [StandardsSubscription]
-> Const
(First [StandardsSubscription]) (Maybe [StandardsSubscription]))
-> GetEnabledStandardsResponse
-> Const
(First [StandardsSubscription]) GetEnabledStandardsResponse)
-> (([StandardsSubscription]
-> Const (First [StandardsSubscription]) [StandardsSubscription])
-> Maybe [StandardsSubscription]
-> Const
(First [StandardsSubscription]) (Maybe [StandardsSubscription]))
-> Getting
(First [StandardsSubscription])
GetEnabledStandardsResponse
[StandardsSubscription]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([StandardsSubscription]
-> Const (First [StandardsSubscription]) [StandardsSubscription])
-> Maybe [StandardsSubscription]
-> Const
(First [StandardsSubscription]) (Maybe [StandardsSubscription])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetEnabledStandards
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetEnabledStandards -> Maybe GetEnabledStandards
forall a. a -> Maybe a
Prelude.Just (GetEnabledStandards -> Maybe GetEnabledStandards)
-> GetEnabledStandards -> Maybe GetEnabledStandards
forall a b. (a -> b) -> a -> b
Prelude.$
GetEnabledStandards
rq
GetEnabledStandards
-> (GetEnabledStandards -> GetEnabledStandards)
-> GetEnabledStandards
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetEnabledStandards -> Identity GetEnabledStandards
Lens
GetEnabledStandards GetEnabledStandards (Maybe Text) (Maybe Text)
getEnabledStandards_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetEnabledStandards -> Identity GetEnabledStandards)
-> Maybe Text -> GetEnabledStandards -> GetEnabledStandards
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetEnabledStandards
GetEnabledStandardsResponse
rs
GetEnabledStandardsResponse
-> Getting (First Text) GetEnabledStandardsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetEnabledStandardsResponse
-> Const (First Text) GetEnabledStandardsResponse
Lens' GetEnabledStandardsResponse (Maybe Text)
getEnabledStandardsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetEnabledStandardsResponse
-> Const (First Text) GetEnabledStandardsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetEnabledStandardsResponse 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 GetEnabledStandards where
type
AWSResponse GetEnabledStandards =
GetEnabledStandardsResponse
request :: GetEnabledStandards -> Request GetEnabledStandards
request = Service -> GetEnabledStandards -> Request GetEnabledStandards
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetEnabledStandards
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetEnabledStandards)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetEnabledStandards))
-> Logger
-> Service
-> Proxy GetEnabledStandards
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetEnabledStandards)))
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 [StandardsSubscription]
-> Int
-> GetEnabledStandardsResponse
GetEnabledStandardsResponse'
(Maybe Text
-> Maybe [StandardsSubscription]
-> Int
-> GetEnabledStandardsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [StandardsSubscription]
-> Int -> GetEnabledStandardsResponse)
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 [StandardsSubscription]
-> Int -> GetEnabledStandardsResponse)
-> Either String (Maybe [StandardsSubscription])
-> Either String (Int -> GetEnabledStandardsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [StandardsSubscription]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StandardsSubscriptions"
Either String (Maybe (Maybe [StandardsSubscription]))
-> Maybe [StandardsSubscription]
-> Either String (Maybe [StandardsSubscription])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [StandardsSubscription]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> GetEnabledStandardsResponse)
-> Either String Int -> Either String GetEnabledStandardsResponse
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 GetEnabledStandards
instance Prelude.NFData GetEnabledStandards
instance Core.ToHeaders GetEnabledStandards where
toHeaders :: GetEnabledStandards -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetEnabledStandards -> 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.ToJSON GetEnabledStandards where
toJSON :: GetEnabledStandards -> Value
toJSON GetEnabledStandards' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
maxResults :: Maybe Natural
standardsSubscriptionArns :: Maybe (NonEmpty Text)
nextToken :: Maybe Text
$sel:maxResults:GetEnabledStandards' :: GetEnabledStandards -> Maybe Natural
$sel:standardsSubscriptionArns:GetEnabledStandards' :: GetEnabledStandards -> Maybe (NonEmpty Text)
$sel:nextToken:GetEnabledStandards' :: GetEnabledStandards -> 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
"StandardsSubscriptionArns" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
standardsSubscriptionArns,
(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
]
)
instance Core.ToPath GetEnabledStandards where
toPath :: GetEnabledStandards -> ByteString
toPath = ByteString -> GetEnabledStandards -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/standards/get"
instance Core.ToQuery GetEnabledStandards where
toQuery :: GetEnabledStandards -> QueryString
toQuery = QueryString -> GetEnabledStandards -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetEnabledStandardsResponse = GetEnabledStandardsResponse'
{
GetEnabledStandardsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetEnabledStandardsResponse -> Maybe [StandardsSubscription]
standardsSubscriptions :: Prelude.Maybe [StandardsSubscription],
GetEnabledStandardsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetEnabledStandardsResponse -> GetEnabledStandardsResponse -> Bool
(GetEnabledStandardsResponse
-> GetEnabledStandardsResponse -> Bool)
-> (GetEnabledStandardsResponse
-> GetEnabledStandardsResponse -> Bool)
-> Eq GetEnabledStandardsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEnabledStandardsResponse -> GetEnabledStandardsResponse -> Bool
$c/= :: GetEnabledStandardsResponse -> GetEnabledStandardsResponse -> Bool
== :: GetEnabledStandardsResponse -> GetEnabledStandardsResponse -> Bool
$c== :: GetEnabledStandardsResponse -> GetEnabledStandardsResponse -> Bool
Prelude.Eq, ReadPrec [GetEnabledStandardsResponse]
ReadPrec GetEnabledStandardsResponse
Int -> ReadS GetEnabledStandardsResponse
ReadS [GetEnabledStandardsResponse]
(Int -> ReadS GetEnabledStandardsResponse)
-> ReadS [GetEnabledStandardsResponse]
-> ReadPrec GetEnabledStandardsResponse
-> ReadPrec [GetEnabledStandardsResponse]
-> Read GetEnabledStandardsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEnabledStandardsResponse]
$creadListPrec :: ReadPrec [GetEnabledStandardsResponse]
readPrec :: ReadPrec GetEnabledStandardsResponse
$creadPrec :: ReadPrec GetEnabledStandardsResponse
readList :: ReadS [GetEnabledStandardsResponse]
$creadList :: ReadS [GetEnabledStandardsResponse]
readsPrec :: Int -> ReadS GetEnabledStandardsResponse
$creadsPrec :: Int -> ReadS GetEnabledStandardsResponse
Prelude.Read, Int -> GetEnabledStandardsResponse -> ShowS
[GetEnabledStandardsResponse] -> ShowS
GetEnabledStandardsResponse -> String
(Int -> GetEnabledStandardsResponse -> ShowS)
-> (GetEnabledStandardsResponse -> String)
-> ([GetEnabledStandardsResponse] -> ShowS)
-> Show GetEnabledStandardsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEnabledStandardsResponse] -> ShowS
$cshowList :: [GetEnabledStandardsResponse] -> ShowS
show :: GetEnabledStandardsResponse -> String
$cshow :: GetEnabledStandardsResponse -> String
showsPrec :: Int -> GetEnabledStandardsResponse -> ShowS
$cshowsPrec :: Int -> GetEnabledStandardsResponse -> ShowS
Prelude.Show, (forall x.
GetEnabledStandardsResponse -> Rep GetEnabledStandardsResponse x)
-> (forall x.
Rep GetEnabledStandardsResponse x -> GetEnabledStandardsResponse)
-> Generic GetEnabledStandardsResponse
forall x.
Rep GetEnabledStandardsResponse x -> GetEnabledStandardsResponse
forall x.
GetEnabledStandardsResponse -> Rep GetEnabledStandardsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetEnabledStandardsResponse x -> GetEnabledStandardsResponse
$cfrom :: forall x.
GetEnabledStandardsResponse -> Rep GetEnabledStandardsResponse x
Prelude.Generic)
newGetEnabledStandardsResponse ::
Prelude.Int ->
GetEnabledStandardsResponse
newGetEnabledStandardsResponse :: Int -> GetEnabledStandardsResponse
newGetEnabledStandardsResponse Int
pHttpStatus_ =
GetEnabledStandardsResponse' :: Maybe Text
-> Maybe [StandardsSubscription]
-> Int
-> GetEnabledStandardsResponse
GetEnabledStandardsResponse'
{ $sel:nextToken:GetEnabledStandardsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:standardsSubscriptions:GetEnabledStandardsResponse' :: Maybe [StandardsSubscription]
standardsSubscriptions = Maybe [StandardsSubscription]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetEnabledStandardsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getEnabledStandardsResponse_nextToken :: Lens.Lens' GetEnabledStandardsResponse (Prelude.Maybe Prelude.Text)
getEnabledStandardsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetEnabledStandardsResponse -> f GetEnabledStandardsResponse
getEnabledStandardsResponse_nextToken = (GetEnabledStandardsResponse -> Maybe Text)
-> (GetEnabledStandardsResponse
-> Maybe Text -> GetEnabledStandardsResponse)
-> Lens' GetEnabledStandardsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEnabledStandardsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetEnabledStandardsResponse' :: GetEnabledStandardsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetEnabledStandardsResponse
s@GetEnabledStandardsResponse' {} Maybe Text
a -> GetEnabledStandardsResponse
s {$sel:nextToken:GetEnabledStandardsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetEnabledStandardsResponse)
getEnabledStandardsResponse_standardsSubscriptions :: Lens.Lens' GetEnabledStandardsResponse (Prelude.Maybe [StandardsSubscription])
getEnabledStandardsResponse_standardsSubscriptions :: (Maybe [StandardsSubscription]
-> f (Maybe [StandardsSubscription]))
-> GetEnabledStandardsResponse -> f GetEnabledStandardsResponse
getEnabledStandardsResponse_standardsSubscriptions = (GetEnabledStandardsResponse -> Maybe [StandardsSubscription])
-> (GetEnabledStandardsResponse
-> Maybe [StandardsSubscription] -> GetEnabledStandardsResponse)
-> Lens'
GetEnabledStandardsResponse (Maybe [StandardsSubscription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEnabledStandardsResponse' {Maybe [StandardsSubscription]
standardsSubscriptions :: Maybe [StandardsSubscription]
$sel:standardsSubscriptions:GetEnabledStandardsResponse' :: GetEnabledStandardsResponse -> Maybe [StandardsSubscription]
standardsSubscriptions} -> Maybe [StandardsSubscription]
standardsSubscriptions) (\s :: GetEnabledStandardsResponse
s@GetEnabledStandardsResponse' {} Maybe [StandardsSubscription]
a -> GetEnabledStandardsResponse
s {$sel:standardsSubscriptions:GetEnabledStandardsResponse' :: Maybe [StandardsSubscription]
standardsSubscriptions = Maybe [StandardsSubscription]
a} :: GetEnabledStandardsResponse) ((Maybe [StandardsSubscription]
-> f (Maybe [StandardsSubscription]))
-> GetEnabledStandardsResponse -> f GetEnabledStandardsResponse)
-> ((Maybe [StandardsSubscription]
-> f (Maybe [StandardsSubscription]))
-> Maybe [StandardsSubscription]
-> f (Maybe [StandardsSubscription]))
-> (Maybe [StandardsSubscription]
-> f (Maybe [StandardsSubscription]))
-> GetEnabledStandardsResponse
-> f GetEnabledStandardsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[StandardsSubscription]
[StandardsSubscription]
[StandardsSubscription]
[StandardsSubscription]
-> Iso
(Maybe [StandardsSubscription])
(Maybe [StandardsSubscription])
(Maybe [StandardsSubscription])
(Maybe [StandardsSubscription])
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
[StandardsSubscription]
[StandardsSubscription]
[StandardsSubscription]
[StandardsSubscription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getEnabledStandardsResponse_httpStatus :: Lens.Lens' GetEnabledStandardsResponse Prelude.Int
getEnabledStandardsResponse_httpStatus :: (Int -> f Int)
-> GetEnabledStandardsResponse -> f GetEnabledStandardsResponse
getEnabledStandardsResponse_httpStatus = (GetEnabledStandardsResponse -> Int)
-> (GetEnabledStandardsResponse
-> Int -> GetEnabledStandardsResponse)
-> Lens
GetEnabledStandardsResponse GetEnabledStandardsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEnabledStandardsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetEnabledStandardsResponse' :: GetEnabledStandardsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetEnabledStandardsResponse
s@GetEnabledStandardsResponse' {} Int
a -> GetEnabledStandardsResponse
s {$sel:httpStatus:GetEnabledStandardsResponse' :: Int
httpStatus = Int
a} :: GetEnabledStandardsResponse)
instance Prelude.NFData GetEnabledStandardsResponse