{-# 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.Inspector.GetExclusionsPreview
(
GetExclusionsPreview (..),
newGetExclusionsPreview,
getExclusionsPreview_locale,
getExclusionsPreview_maxResults,
getExclusionsPreview_nextToken,
getExclusionsPreview_assessmentTemplateArn,
getExclusionsPreview_previewToken,
GetExclusionsPreviewResponse (..),
newGetExclusionsPreviewResponse,
getExclusionsPreviewResponse_exclusionPreviews,
getExclusionsPreviewResponse_nextToken,
getExclusionsPreviewResponse_httpStatus,
getExclusionsPreviewResponse_previewStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Inspector.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetExclusionsPreview = GetExclusionsPreview'
{
GetExclusionsPreview -> Maybe Locale
locale :: Prelude.Maybe Locale,
GetExclusionsPreview -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
GetExclusionsPreview -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetExclusionsPreview -> Text
assessmentTemplateArn :: Prelude.Text,
GetExclusionsPreview -> Text
previewToken :: Prelude.Text
}
deriving (GetExclusionsPreview -> GetExclusionsPreview -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetExclusionsPreview -> GetExclusionsPreview -> Bool
$c/= :: GetExclusionsPreview -> GetExclusionsPreview -> Bool
== :: GetExclusionsPreview -> GetExclusionsPreview -> Bool
$c== :: GetExclusionsPreview -> GetExclusionsPreview -> Bool
Prelude.Eq, ReadPrec [GetExclusionsPreview]
ReadPrec GetExclusionsPreview
Int -> ReadS GetExclusionsPreview
ReadS [GetExclusionsPreview]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetExclusionsPreview]
$creadListPrec :: ReadPrec [GetExclusionsPreview]
readPrec :: ReadPrec GetExclusionsPreview
$creadPrec :: ReadPrec GetExclusionsPreview
readList :: ReadS [GetExclusionsPreview]
$creadList :: ReadS [GetExclusionsPreview]
readsPrec :: Int -> ReadS GetExclusionsPreview
$creadsPrec :: Int -> ReadS GetExclusionsPreview
Prelude.Read, Int -> GetExclusionsPreview -> ShowS
[GetExclusionsPreview] -> ShowS
GetExclusionsPreview -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetExclusionsPreview] -> ShowS
$cshowList :: [GetExclusionsPreview] -> ShowS
show :: GetExclusionsPreview -> String
$cshow :: GetExclusionsPreview -> String
showsPrec :: Int -> GetExclusionsPreview -> ShowS
$cshowsPrec :: Int -> GetExclusionsPreview -> ShowS
Prelude.Show, forall x. Rep GetExclusionsPreview x -> GetExclusionsPreview
forall x. GetExclusionsPreview -> Rep GetExclusionsPreview x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetExclusionsPreview x -> GetExclusionsPreview
$cfrom :: forall x. GetExclusionsPreview -> Rep GetExclusionsPreview x
Prelude.Generic)
newGetExclusionsPreview ::
Prelude.Text ->
Prelude.Text ->
GetExclusionsPreview
newGetExclusionsPreview :: Text -> Text -> GetExclusionsPreview
newGetExclusionsPreview
Text
pAssessmentTemplateArn_
Text
pPreviewToken_ =
GetExclusionsPreview'
{ $sel:locale:GetExclusionsPreview' :: Maybe Locale
locale = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetExclusionsPreview' :: Maybe Int
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetExclusionsPreview' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:assessmentTemplateArn:GetExclusionsPreview' :: Text
assessmentTemplateArn = Text
pAssessmentTemplateArn_,
$sel:previewToken:GetExclusionsPreview' :: Text
previewToken = Text
pPreviewToken_
}
getExclusionsPreview_locale :: Lens.Lens' GetExclusionsPreview (Prelude.Maybe Locale)
getExclusionsPreview_locale :: Lens' GetExclusionsPreview (Maybe Locale)
getExclusionsPreview_locale = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreview' {Maybe Locale
locale :: Maybe Locale
$sel:locale:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Locale
locale} -> Maybe Locale
locale) (\s :: GetExclusionsPreview
s@GetExclusionsPreview' {} Maybe Locale
a -> GetExclusionsPreview
s {$sel:locale:GetExclusionsPreview' :: Maybe Locale
locale = Maybe Locale
a} :: GetExclusionsPreview)
getExclusionsPreview_maxResults :: Lens.Lens' GetExclusionsPreview (Prelude.Maybe Prelude.Int)
getExclusionsPreview_maxResults :: Lens' GetExclusionsPreview (Maybe Int)
getExclusionsPreview_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreview' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: GetExclusionsPreview
s@GetExclusionsPreview' {} Maybe Int
a -> GetExclusionsPreview
s {$sel:maxResults:GetExclusionsPreview' :: Maybe Int
maxResults = Maybe Int
a} :: GetExclusionsPreview)
getExclusionsPreview_nextToken :: Lens.Lens' GetExclusionsPreview (Prelude.Maybe Prelude.Text)
getExclusionsPreview_nextToken :: Lens' GetExclusionsPreview (Maybe Text)
getExclusionsPreview_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreview' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetExclusionsPreview
s@GetExclusionsPreview' {} Maybe Text
a -> GetExclusionsPreview
s {$sel:nextToken:GetExclusionsPreview' :: Maybe Text
nextToken = Maybe Text
a} :: GetExclusionsPreview)
getExclusionsPreview_assessmentTemplateArn :: Lens.Lens' GetExclusionsPreview Prelude.Text
getExclusionsPreview_assessmentTemplateArn :: Lens' GetExclusionsPreview Text
getExclusionsPreview_assessmentTemplateArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreview' {Text
assessmentTemplateArn :: Text
$sel:assessmentTemplateArn:GetExclusionsPreview' :: GetExclusionsPreview -> Text
assessmentTemplateArn} -> Text
assessmentTemplateArn) (\s :: GetExclusionsPreview
s@GetExclusionsPreview' {} Text
a -> GetExclusionsPreview
s {$sel:assessmentTemplateArn:GetExclusionsPreview' :: Text
assessmentTemplateArn = Text
a} :: GetExclusionsPreview)
getExclusionsPreview_previewToken :: Lens.Lens' GetExclusionsPreview Prelude.Text
getExclusionsPreview_previewToken :: Lens' GetExclusionsPreview Text
getExclusionsPreview_previewToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreview' {Text
previewToken :: Text
$sel:previewToken:GetExclusionsPreview' :: GetExclusionsPreview -> Text
previewToken} -> Text
previewToken) (\s :: GetExclusionsPreview
s@GetExclusionsPreview' {} Text
a -> GetExclusionsPreview
s {$sel:previewToken:GetExclusionsPreview' :: Text
previewToken = Text
a} :: GetExclusionsPreview)
instance Core.AWSRequest GetExclusionsPreview where
type
AWSResponse GetExclusionsPreview =
GetExclusionsPreviewResponse
request :: (Service -> Service)
-> GetExclusionsPreview -> Request GetExclusionsPreview
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetExclusionsPreview
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetExclusionsPreview)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [ExclusionPreview]
-> Maybe Text
-> Int
-> PreviewStatus
-> GetExclusionsPreviewResponse
GetExclusionsPreviewResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"exclusionPreviews"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"previewStatus")
)
instance Prelude.Hashable GetExclusionsPreview where
hashWithSalt :: Int -> GetExclusionsPreview -> Int
hashWithSalt Int
_salt GetExclusionsPreview' {Maybe Int
Maybe Text
Maybe Locale
Text
previewToken :: Text
assessmentTemplateArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
locale :: Maybe Locale
$sel:previewToken:GetExclusionsPreview' :: GetExclusionsPreview -> Text
$sel:assessmentTemplateArn:GetExclusionsPreview' :: GetExclusionsPreview -> Text
$sel:nextToken:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Text
$sel:maxResults:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Int
$sel:locale:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Locale
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Locale
locale
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
assessmentTemplateArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
previewToken
instance Prelude.NFData GetExclusionsPreview where
rnf :: GetExclusionsPreview -> ()
rnf GetExclusionsPreview' {Maybe Int
Maybe Text
Maybe Locale
Text
previewToken :: Text
assessmentTemplateArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
locale :: Maybe Locale
$sel:previewToken:GetExclusionsPreview' :: GetExclusionsPreview -> Text
$sel:assessmentTemplateArn:GetExclusionsPreview' :: GetExclusionsPreview -> Text
$sel:nextToken:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Text
$sel:maxResults:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Int
$sel:locale:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Locale
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Locale
locale
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
assessmentTemplateArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
previewToken
instance Data.ToHeaders GetExclusionsPreview where
toHeaders :: GetExclusionsPreview -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"InspectorService.GetExclusionsPreview" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON GetExclusionsPreview where
toJSON :: GetExclusionsPreview -> Value
toJSON GetExclusionsPreview' {Maybe Int
Maybe Text
Maybe Locale
Text
previewToken :: Text
assessmentTemplateArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
locale :: Maybe Locale
$sel:previewToken:GetExclusionsPreview' :: GetExclusionsPreview -> Text
$sel:assessmentTemplateArn:GetExclusionsPreview' :: GetExclusionsPreview -> Text
$sel:nextToken:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Text
$sel:maxResults:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Int
$sel:locale:GetExclusionsPreview' :: GetExclusionsPreview -> Maybe Locale
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"locale" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Locale
locale,
(Key
"maxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults,
(Key
"nextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
forall a. a -> Maybe a
Prelude.Just
( Key
"assessmentTemplateArn"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
assessmentTemplateArn
),
forall a. a -> Maybe a
Prelude.Just (Key
"previewToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
previewToken)
]
)
instance Data.ToPath GetExclusionsPreview where
toPath :: GetExclusionsPreview -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery GetExclusionsPreview where
toQuery :: GetExclusionsPreview -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data GetExclusionsPreviewResponse = GetExclusionsPreviewResponse'
{
GetExclusionsPreviewResponse -> Maybe [ExclusionPreview]
exclusionPreviews :: Prelude.Maybe [ExclusionPreview],
GetExclusionsPreviewResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetExclusionsPreviewResponse -> Int
httpStatus :: Prelude.Int,
GetExclusionsPreviewResponse -> PreviewStatus
previewStatus :: PreviewStatus
}
deriving (GetExclusionsPreviewResponse
-> GetExclusionsPreviewResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetExclusionsPreviewResponse
-> GetExclusionsPreviewResponse -> Bool
$c/= :: GetExclusionsPreviewResponse
-> GetExclusionsPreviewResponse -> Bool
== :: GetExclusionsPreviewResponse
-> GetExclusionsPreviewResponse -> Bool
$c== :: GetExclusionsPreviewResponse
-> GetExclusionsPreviewResponse -> Bool
Prelude.Eq, ReadPrec [GetExclusionsPreviewResponse]
ReadPrec GetExclusionsPreviewResponse
Int -> ReadS GetExclusionsPreviewResponse
ReadS [GetExclusionsPreviewResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetExclusionsPreviewResponse]
$creadListPrec :: ReadPrec [GetExclusionsPreviewResponse]
readPrec :: ReadPrec GetExclusionsPreviewResponse
$creadPrec :: ReadPrec GetExclusionsPreviewResponse
readList :: ReadS [GetExclusionsPreviewResponse]
$creadList :: ReadS [GetExclusionsPreviewResponse]
readsPrec :: Int -> ReadS GetExclusionsPreviewResponse
$creadsPrec :: Int -> ReadS GetExclusionsPreviewResponse
Prelude.Read, Int -> GetExclusionsPreviewResponse -> ShowS
[GetExclusionsPreviewResponse] -> ShowS
GetExclusionsPreviewResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetExclusionsPreviewResponse] -> ShowS
$cshowList :: [GetExclusionsPreviewResponse] -> ShowS
show :: GetExclusionsPreviewResponse -> String
$cshow :: GetExclusionsPreviewResponse -> String
showsPrec :: Int -> GetExclusionsPreviewResponse -> ShowS
$cshowsPrec :: Int -> GetExclusionsPreviewResponse -> ShowS
Prelude.Show, forall x.
Rep GetExclusionsPreviewResponse x -> GetExclusionsPreviewResponse
forall x.
GetExclusionsPreviewResponse -> Rep GetExclusionsPreviewResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetExclusionsPreviewResponse x -> GetExclusionsPreviewResponse
$cfrom :: forall x.
GetExclusionsPreviewResponse -> Rep GetExclusionsPreviewResponse x
Prelude.Generic)
newGetExclusionsPreviewResponse ::
Prelude.Int ->
PreviewStatus ->
GetExclusionsPreviewResponse
newGetExclusionsPreviewResponse :: Int -> PreviewStatus -> GetExclusionsPreviewResponse
newGetExclusionsPreviewResponse
Int
pHttpStatus_
PreviewStatus
pPreviewStatus_ =
GetExclusionsPreviewResponse'
{ $sel:exclusionPreviews:GetExclusionsPreviewResponse' :: Maybe [ExclusionPreview]
exclusionPreviews =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetExclusionsPreviewResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetExclusionsPreviewResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:previewStatus:GetExclusionsPreviewResponse' :: PreviewStatus
previewStatus = PreviewStatus
pPreviewStatus_
}
getExclusionsPreviewResponse_exclusionPreviews :: Lens.Lens' GetExclusionsPreviewResponse (Prelude.Maybe [ExclusionPreview])
getExclusionsPreviewResponse_exclusionPreviews :: Lens' GetExclusionsPreviewResponse (Maybe [ExclusionPreview])
getExclusionsPreviewResponse_exclusionPreviews = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreviewResponse' {Maybe [ExclusionPreview]
exclusionPreviews :: Maybe [ExclusionPreview]
$sel:exclusionPreviews:GetExclusionsPreviewResponse' :: GetExclusionsPreviewResponse -> Maybe [ExclusionPreview]
exclusionPreviews} -> Maybe [ExclusionPreview]
exclusionPreviews) (\s :: GetExclusionsPreviewResponse
s@GetExclusionsPreviewResponse' {} Maybe [ExclusionPreview]
a -> GetExclusionsPreviewResponse
s {$sel:exclusionPreviews:GetExclusionsPreviewResponse' :: Maybe [ExclusionPreview]
exclusionPreviews = Maybe [ExclusionPreview]
a} :: GetExclusionsPreviewResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getExclusionsPreviewResponse_nextToken :: Lens.Lens' GetExclusionsPreviewResponse (Prelude.Maybe Prelude.Text)
getExclusionsPreviewResponse_nextToken :: Lens' GetExclusionsPreviewResponse (Maybe Text)
getExclusionsPreviewResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreviewResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetExclusionsPreviewResponse' :: GetExclusionsPreviewResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetExclusionsPreviewResponse
s@GetExclusionsPreviewResponse' {} Maybe Text
a -> GetExclusionsPreviewResponse
s {$sel:nextToken:GetExclusionsPreviewResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetExclusionsPreviewResponse)
getExclusionsPreviewResponse_httpStatus :: Lens.Lens' GetExclusionsPreviewResponse Prelude.Int
getExclusionsPreviewResponse_httpStatus :: Lens' GetExclusionsPreviewResponse Int
getExclusionsPreviewResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreviewResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetExclusionsPreviewResponse' :: GetExclusionsPreviewResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetExclusionsPreviewResponse
s@GetExclusionsPreviewResponse' {} Int
a -> GetExclusionsPreviewResponse
s {$sel:httpStatus:GetExclusionsPreviewResponse' :: Int
httpStatus = Int
a} :: GetExclusionsPreviewResponse)
getExclusionsPreviewResponse_previewStatus :: Lens.Lens' GetExclusionsPreviewResponse PreviewStatus
getExclusionsPreviewResponse_previewStatus :: Lens' GetExclusionsPreviewResponse PreviewStatus
getExclusionsPreviewResponse_previewStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExclusionsPreviewResponse' {PreviewStatus
previewStatus :: PreviewStatus
$sel:previewStatus:GetExclusionsPreviewResponse' :: GetExclusionsPreviewResponse -> PreviewStatus
previewStatus} -> PreviewStatus
previewStatus) (\s :: GetExclusionsPreviewResponse
s@GetExclusionsPreviewResponse' {} PreviewStatus
a -> GetExclusionsPreviewResponse
s {$sel:previewStatus:GetExclusionsPreviewResponse' :: PreviewStatus
previewStatus = PreviewStatus
a} :: GetExclusionsPreviewResponse)
instance Prelude.NFData GetExclusionsPreviewResponse where
rnf :: GetExclusionsPreviewResponse -> ()
rnf GetExclusionsPreviewResponse' {Int
Maybe [ExclusionPreview]
Maybe Text
PreviewStatus
previewStatus :: PreviewStatus
httpStatus :: Int
nextToken :: Maybe Text
exclusionPreviews :: Maybe [ExclusionPreview]
$sel:previewStatus:GetExclusionsPreviewResponse' :: GetExclusionsPreviewResponse -> PreviewStatus
$sel:httpStatus:GetExclusionsPreviewResponse' :: GetExclusionsPreviewResponse -> Int
$sel:nextToken:GetExclusionsPreviewResponse' :: GetExclusionsPreviewResponse -> Maybe Text
$sel:exclusionPreviews:GetExclusionsPreviewResponse' :: GetExclusionsPreviewResponse -> Maybe [ExclusionPreview]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [ExclusionPreview]
exclusionPreviews
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf PreviewStatus
previewStatus