{-# 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.Glue.CancelDataQualityRulesetEvaluationRun
(
CancelDataQualityRulesetEvaluationRun (..),
newCancelDataQualityRulesetEvaluationRun,
cancelDataQualityRulesetEvaluationRun_runId,
CancelDataQualityRulesetEvaluationRunResponse (..),
newCancelDataQualityRulesetEvaluationRunResponse,
cancelDataQualityRulesetEvaluationRunResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Glue.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CancelDataQualityRulesetEvaluationRun = CancelDataQualityRulesetEvaluationRun'
{
CancelDataQualityRulesetEvaluationRun -> Text
runId :: Prelude.Text
}
deriving (CancelDataQualityRulesetEvaluationRun
-> CancelDataQualityRulesetEvaluationRun -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CancelDataQualityRulesetEvaluationRun
-> CancelDataQualityRulesetEvaluationRun -> Bool
$c/= :: CancelDataQualityRulesetEvaluationRun
-> CancelDataQualityRulesetEvaluationRun -> Bool
== :: CancelDataQualityRulesetEvaluationRun
-> CancelDataQualityRulesetEvaluationRun -> Bool
$c== :: CancelDataQualityRulesetEvaluationRun
-> CancelDataQualityRulesetEvaluationRun -> Bool
Prelude.Eq, ReadPrec [CancelDataQualityRulesetEvaluationRun]
ReadPrec CancelDataQualityRulesetEvaluationRun
Int -> ReadS CancelDataQualityRulesetEvaluationRun
ReadS [CancelDataQualityRulesetEvaluationRun]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CancelDataQualityRulesetEvaluationRun]
$creadListPrec :: ReadPrec [CancelDataQualityRulesetEvaluationRun]
readPrec :: ReadPrec CancelDataQualityRulesetEvaluationRun
$creadPrec :: ReadPrec CancelDataQualityRulesetEvaluationRun
readList :: ReadS [CancelDataQualityRulesetEvaluationRun]
$creadList :: ReadS [CancelDataQualityRulesetEvaluationRun]
readsPrec :: Int -> ReadS CancelDataQualityRulesetEvaluationRun
$creadsPrec :: Int -> ReadS CancelDataQualityRulesetEvaluationRun
Prelude.Read, Int -> CancelDataQualityRulesetEvaluationRun -> ShowS
[CancelDataQualityRulesetEvaluationRun] -> ShowS
CancelDataQualityRulesetEvaluationRun -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CancelDataQualityRulesetEvaluationRun] -> ShowS
$cshowList :: [CancelDataQualityRulesetEvaluationRun] -> ShowS
show :: CancelDataQualityRulesetEvaluationRun -> String
$cshow :: CancelDataQualityRulesetEvaluationRun -> String
showsPrec :: Int -> CancelDataQualityRulesetEvaluationRun -> ShowS
$cshowsPrec :: Int -> CancelDataQualityRulesetEvaluationRun -> ShowS
Prelude.Show, forall x.
Rep CancelDataQualityRulesetEvaluationRun x
-> CancelDataQualityRulesetEvaluationRun
forall x.
CancelDataQualityRulesetEvaluationRun
-> Rep CancelDataQualityRulesetEvaluationRun x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CancelDataQualityRulesetEvaluationRun x
-> CancelDataQualityRulesetEvaluationRun
$cfrom :: forall x.
CancelDataQualityRulesetEvaluationRun
-> Rep CancelDataQualityRulesetEvaluationRun x
Prelude.Generic)
newCancelDataQualityRulesetEvaluationRun ::
Prelude.Text ->
CancelDataQualityRulesetEvaluationRun
newCancelDataQualityRulesetEvaluationRun :: Text -> CancelDataQualityRulesetEvaluationRun
newCancelDataQualityRulesetEvaluationRun Text
pRunId_ =
CancelDataQualityRulesetEvaluationRun'
{ $sel:runId:CancelDataQualityRulesetEvaluationRun' :: Text
runId =
Text
pRunId_
}
cancelDataQualityRulesetEvaluationRun_runId :: Lens.Lens' CancelDataQualityRulesetEvaluationRun Prelude.Text
cancelDataQualityRulesetEvaluationRun_runId :: Lens' CancelDataQualityRulesetEvaluationRun Text
cancelDataQualityRulesetEvaluationRun_runId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelDataQualityRulesetEvaluationRun' {Text
runId :: Text
$sel:runId:CancelDataQualityRulesetEvaluationRun' :: CancelDataQualityRulesetEvaluationRun -> Text
runId} -> Text
runId) (\s :: CancelDataQualityRulesetEvaluationRun
s@CancelDataQualityRulesetEvaluationRun' {} Text
a -> CancelDataQualityRulesetEvaluationRun
s {$sel:runId:CancelDataQualityRulesetEvaluationRun' :: Text
runId = Text
a} :: CancelDataQualityRulesetEvaluationRun)
instance
Core.AWSRequest
CancelDataQualityRulesetEvaluationRun
where
type
AWSResponse
CancelDataQualityRulesetEvaluationRun =
CancelDataQualityRulesetEvaluationRunResponse
request :: (Service -> Service)
-> CancelDataQualityRulesetEvaluationRun
-> Request CancelDataQualityRulesetEvaluationRun
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 CancelDataQualityRulesetEvaluationRun
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse CancelDataQualityRulesetEvaluationRun)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> CancelDataQualityRulesetEvaluationRunResponse
CancelDataQualityRulesetEvaluationRunResponse'
forall (f :: * -> *) a b. Functor 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))
)
instance
Prelude.Hashable
CancelDataQualityRulesetEvaluationRun
where
hashWithSalt :: Int -> CancelDataQualityRulesetEvaluationRun -> Int
hashWithSalt
Int
_salt
CancelDataQualityRulesetEvaluationRun' {Text
runId :: Text
$sel:runId:CancelDataQualityRulesetEvaluationRun' :: CancelDataQualityRulesetEvaluationRun -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
runId
instance
Prelude.NFData
CancelDataQualityRulesetEvaluationRun
where
rnf :: CancelDataQualityRulesetEvaluationRun -> ()
rnf CancelDataQualityRulesetEvaluationRun' {Text
runId :: Text
$sel:runId:CancelDataQualityRulesetEvaluationRun' :: CancelDataQualityRulesetEvaluationRun -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
runId
instance
Data.ToHeaders
CancelDataQualityRulesetEvaluationRun
where
toHeaders :: CancelDataQualityRulesetEvaluationRun -> 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
"AWSGlue.CancelDataQualityRulesetEvaluationRun" ::
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
CancelDataQualityRulesetEvaluationRun
where
toJSON :: CancelDataQualityRulesetEvaluationRun -> Value
toJSON CancelDataQualityRulesetEvaluationRun' {Text
runId :: Text
$sel:runId:CancelDataQualityRulesetEvaluationRun' :: CancelDataQualityRulesetEvaluationRun -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"RunId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
runId)]
)
instance
Data.ToPath
CancelDataQualityRulesetEvaluationRun
where
toPath :: CancelDataQualityRulesetEvaluationRun -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
CancelDataQualityRulesetEvaluationRun
where
toQuery :: CancelDataQualityRulesetEvaluationRun -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CancelDataQualityRulesetEvaluationRunResponse = CancelDataQualityRulesetEvaluationRunResponse'
{
CancelDataQualityRulesetEvaluationRunResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CancelDataQualityRulesetEvaluationRunResponse
-> CancelDataQualityRulesetEvaluationRunResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CancelDataQualityRulesetEvaluationRunResponse
-> CancelDataQualityRulesetEvaluationRunResponse -> Bool
$c/= :: CancelDataQualityRulesetEvaluationRunResponse
-> CancelDataQualityRulesetEvaluationRunResponse -> Bool
== :: CancelDataQualityRulesetEvaluationRunResponse
-> CancelDataQualityRulesetEvaluationRunResponse -> Bool
$c== :: CancelDataQualityRulesetEvaluationRunResponse
-> CancelDataQualityRulesetEvaluationRunResponse -> Bool
Prelude.Eq, ReadPrec [CancelDataQualityRulesetEvaluationRunResponse]
ReadPrec CancelDataQualityRulesetEvaluationRunResponse
Int -> ReadS CancelDataQualityRulesetEvaluationRunResponse
ReadS [CancelDataQualityRulesetEvaluationRunResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CancelDataQualityRulesetEvaluationRunResponse]
$creadListPrec :: ReadPrec [CancelDataQualityRulesetEvaluationRunResponse]
readPrec :: ReadPrec CancelDataQualityRulesetEvaluationRunResponse
$creadPrec :: ReadPrec CancelDataQualityRulesetEvaluationRunResponse
readList :: ReadS [CancelDataQualityRulesetEvaluationRunResponse]
$creadList :: ReadS [CancelDataQualityRulesetEvaluationRunResponse]
readsPrec :: Int -> ReadS CancelDataQualityRulesetEvaluationRunResponse
$creadsPrec :: Int -> ReadS CancelDataQualityRulesetEvaluationRunResponse
Prelude.Read, Int -> CancelDataQualityRulesetEvaluationRunResponse -> ShowS
[CancelDataQualityRulesetEvaluationRunResponse] -> ShowS
CancelDataQualityRulesetEvaluationRunResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CancelDataQualityRulesetEvaluationRunResponse] -> ShowS
$cshowList :: [CancelDataQualityRulesetEvaluationRunResponse] -> ShowS
show :: CancelDataQualityRulesetEvaluationRunResponse -> String
$cshow :: CancelDataQualityRulesetEvaluationRunResponse -> String
showsPrec :: Int -> CancelDataQualityRulesetEvaluationRunResponse -> ShowS
$cshowsPrec :: Int -> CancelDataQualityRulesetEvaluationRunResponse -> ShowS
Prelude.Show, forall x.
Rep CancelDataQualityRulesetEvaluationRunResponse x
-> CancelDataQualityRulesetEvaluationRunResponse
forall x.
CancelDataQualityRulesetEvaluationRunResponse
-> Rep CancelDataQualityRulesetEvaluationRunResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CancelDataQualityRulesetEvaluationRunResponse x
-> CancelDataQualityRulesetEvaluationRunResponse
$cfrom :: forall x.
CancelDataQualityRulesetEvaluationRunResponse
-> Rep CancelDataQualityRulesetEvaluationRunResponse x
Prelude.Generic)
newCancelDataQualityRulesetEvaluationRunResponse ::
Prelude.Int ->
CancelDataQualityRulesetEvaluationRunResponse
newCancelDataQualityRulesetEvaluationRunResponse :: Int -> CancelDataQualityRulesetEvaluationRunResponse
newCancelDataQualityRulesetEvaluationRunResponse
Int
pHttpStatus_ =
CancelDataQualityRulesetEvaluationRunResponse'
{ $sel:httpStatus:CancelDataQualityRulesetEvaluationRunResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
cancelDataQualityRulesetEvaluationRunResponse_httpStatus :: Lens.Lens' CancelDataQualityRulesetEvaluationRunResponse Prelude.Int
cancelDataQualityRulesetEvaluationRunResponse_httpStatus :: Lens' CancelDataQualityRulesetEvaluationRunResponse Int
cancelDataQualityRulesetEvaluationRunResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelDataQualityRulesetEvaluationRunResponse' {Int
httpStatus :: Int
$sel:httpStatus:CancelDataQualityRulesetEvaluationRunResponse' :: CancelDataQualityRulesetEvaluationRunResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CancelDataQualityRulesetEvaluationRunResponse
s@CancelDataQualityRulesetEvaluationRunResponse' {} Int
a -> CancelDataQualityRulesetEvaluationRunResponse
s {$sel:httpStatus:CancelDataQualityRulesetEvaluationRunResponse' :: Int
httpStatus = Int
a} :: CancelDataQualityRulesetEvaluationRunResponse)
instance
Prelude.NFData
CancelDataQualityRulesetEvaluationRunResponse
where
rnf :: CancelDataQualityRulesetEvaluationRunResponse -> ()
rnf
CancelDataQualityRulesetEvaluationRunResponse' {Int
httpStatus :: Int
$sel:httpStatus:CancelDataQualityRulesetEvaluationRunResponse' :: CancelDataQualityRulesetEvaluationRunResponse -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus