{-# 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.SWF.UndeprecateWorkflowType
(
UndeprecateWorkflowType (..),
newUndeprecateWorkflowType,
undeprecateWorkflowType_domain,
undeprecateWorkflowType_workflowType,
UndeprecateWorkflowTypeResponse (..),
newUndeprecateWorkflowTypeResponse,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SWF.Types
data UndeprecateWorkflowType = UndeprecateWorkflowType'
{
UndeprecateWorkflowType -> Text
domain :: Prelude.Text,
UndeprecateWorkflowType -> WorkflowType
workflowType :: WorkflowType
}
deriving (UndeprecateWorkflowType -> UndeprecateWorkflowType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UndeprecateWorkflowType -> UndeprecateWorkflowType -> Bool
$c/= :: UndeprecateWorkflowType -> UndeprecateWorkflowType -> Bool
== :: UndeprecateWorkflowType -> UndeprecateWorkflowType -> Bool
$c== :: UndeprecateWorkflowType -> UndeprecateWorkflowType -> Bool
Prelude.Eq, ReadPrec [UndeprecateWorkflowType]
ReadPrec UndeprecateWorkflowType
Int -> ReadS UndeprecateWorkflowType
ReadS [UndeprecateWorkflowType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UndeprecateWorkflowType]
$creadListPrec :: ReadPrec [UndeprecateWorkflowType]
readPrec :: ReadPrec UndeprecateWorkflowType
$creadPrec :: ReadPrec UndeprecateWorkflowType
readList :: ReadS [UndeprecateWorkflowType]
$creadList :: ReadS [UndeprecateWorkflowType]
readsPrec :: Int -> ReadS UndeprecateWorkflowType
$creadsPrec :: Int -> ReadS UndeprecateWorkflowType
Prelude.Read, Int -> UndeprecateWorkflowType -> ShowS
[UndeprecateWorkflowType] -> ShowS
UndeprecateWorkflowType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UndeprecateWorkflowType] -> ShowS
$cshowList :: [UndeprecateWorkflowType] -> ShowS
show :: UndeprecateWorkflowType -> String
$cshow :: UndeprecateWorkflowType -> String
showsPrec :: Int -> UndeprecateWorkflowType -> ShowS
$cshowsPrec :: Int -> UndeprecateWorkflowType -> ShowS
Prelude.Show, forall x. Rep UndeprecateWorkflowType x -> UndeprecateWorkflowType
forall x. UndeprecateWorkflowType -> Rep UndeprecateWorkflowType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UndeprecateWorkflowType x -> UndeprecateWorkflowType
$cfrom :: forall x. UndeprecateWorkflowType -> Rep UndeprecateWorkflowType x
Prelude.Generic)
newUndeprecateWorkflowType ::
Prelude.Text ->
WorkflowType ->
UndeprecateWorkflowType
newUndeprecateWorkflowType :: Text -> WorkflowType -> UndeprecateWorkflowType
newUndeprecateWorkflowType Text
pDomain_ WorkflowType
pWorkflowType_ =
UndeprecateWorkflowType'
{ $sel:domain:UndeprecateWorkflowType' :: Text
domain = Text
pDomain_,
$sel:workflowType:UndeprecateWorkflowType' :: WorkflowType
workflowType = WorkflowType
pWorkflowType_
}
undeprecateWorkflowType_domain :: Lens.Lens' UndeprecateWorkflowType Prelude.Text
undeprecateWorkflowType_domain :: Lens' UndeprecateWorkflowType Text
undeprecateWorkflowType_domain = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UndeprecateWorkflowType' {Text
domain :: Text
$sel:domain:UndeprecateWorkflowType' :: UndeprecateWorkflowType -> Text
domain} -> Text
domain) (\s :: UndeprecateWorkflowType
s@UndeprecateWorkflowType' {} Text
a -> UndeprecateWorkflowType
s {$sel:domain:UndeprecateWorkflowType' :: Text
domain = Text
a} :: UndeprecateWorkflowType)
undeprecateWorkflowType_workflowType :: Lens.Lens' UndeprecateWorkflowType WorkflowType
undeprecateWorkflowType_workflowType :: Lens' UndeprecateWorkflowType WorkflowType
undeprecateWorkflowType_workflowType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UndeprecateWorkflowType' {WorkflowType
workflowType :: WorkflowType
$sel:workflowType:UndeprecateWorkflowType' :: UndeprecateWorkflowType -> WorkflowType
workflowType} -> WorkflowType
workflowType) (\s :: UndeprecateWorkflowType
s@UndeprecateWorkflowType' {} WorkflowType
a -> UndeprecateWorkflowType
s {$sel:workflowType:UndeprecateWorkflowType' :: WorkflowType
workflowType = WorkflowType
a} :: UndeprecateWorkflowType)
instance Core.AWSRequest UndeprecateWorkflowType where
type
AWSResponse UndeprecateWorkflowType =
UndeprecateWorkflowTypeResponse
request :: (Service -> Service)
-> UndeprecateWorkflowType -> Request UndeprecateWorkflowType
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 UndeprecateWorkflowType
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UndeprecateWorkflowType)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
UndeprecateWorkflowTypeResponse
UndeprecateWorkflowTypeResponse'
instance Prelude.Hashable UndeprecateWorkflowType where
hashWithSalt :: Int -> UndeprecateWorkflowType -> Int
hashWithSalt Int
_salt UndeprecateWorkflowType' {Text
WorkflowType
workflowType :: WorkflowType
domain :: Text
$sel:workflowType:UndeprecateWorkflowType' :: UndeprecateWorkflowType -> WorkflowType
$sel:domain:UndeprecateWorkflowType' :: UndeprecateWorkflowType -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
domain
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` WorkflowType
workflowType
instance Prelude.NFData UndeprecateWorkflowType where
rnf :: UndeprecateWorkflowType -> ()
rnf UndeprecateWorkflowType' {Text
WorkflowType
workflowType :: WorkflowType
domain :: Text
$sel:workflowType:UndeprecateWorkflowType' :: UndeprecateWorkflowType -> WorkflowType
$sel:domain:UndeprecateWorkflowType' :: UndeprecateWorkflowType -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
domain
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf WorkflowType
workflowType
instance Data.ToHeaders UndeprecateWorkflowType where
toHeaders :: UndeprecateWorkflowType -> [Header]
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 -> [Header]
Data.=# ( ByteString
"SimpleWorkflowService.UndeprecateWorkflowType" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UndeprecateWorkflowType where
toJSON :: UndeprecateWorkflowType -> Value
toJSON UndeprecateWorkflowType' {Text
WorkflowType
workflowType :: WorkflowType
domain :: Text
$sel:workflowType:UndeprecateWorkflowType' :: UndeprecateWorkflowType -> WorkflowType
$sel:domain:UndeprecateWorkflowType' :: UndeprecateWorkflowType -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just (Key
"domain" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
domain),
forall a. a -> Maybe a
Prelude.Just (Key
"workflowType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= WorkflowType
workflowType)
]
)
instance Data.ToPath UndeprecateWorkflowType where
toPath :: UndeprecateWorkflowType -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery UndeprecateWorkflowType where
toQuery :: UndeprecateWorkflowType -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UndeprecateWorkflowTypeResponse = UndeprecateWorkflowTypeResponse'
{
}
deriving (UndeprecateWorkflowTypeResponse
-> UndeprecateWorkflowTypeResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UndeprecateWorkflowTypeResponse
-> UndeprecateWorkflowTypeResponse -> Bool
$c/= :: UndeprecateWorkflowTypeResponse
-> UndeprecateWorkflowTypeResponse -> Bool
== :: UndeprecateWorkflowTypeResponse
-> UndeprecateWorkflowTypeResponse -> Bool
$c== :: UndeprecateWorkflowTypeResponse
-> UndeprecateWorkflowTypeResponse -> Bool
Prelude.Eq, ReadPrec [UndeprecateWorkflowTypeResponse]
ReadPrec UndeprecateWorkflowTypeResponse
Int -> ReadS UndeprecateWorkflowTypeResponse
ReadS [UndeprecateWorkflowTypeResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UndeprecateWorkflowTypeResponse]
$creadListPrec :: ReadPrec [UndeprecateWorkflowTypeResponse]
readPrec :: ReadPrec UndeprecateWorkflowTypeResponse
$creadPrec :: ReadPrec UndeprecateWorkflowTypeResponse
readList :: ReadS [UndeprecateWorkflowTypeResponse]
$creadList :: ReadS [UndeprecateWorkflowTypeResponse]
readsPrec :: Int -> ReadS UndeprecateWorkflowTypeResponse
$creadsPrec :: Int -> ReadS UndeprecateWorkflowTypeResponse
Prelude.Read, Int -> UndeprecateWorkflowTypeResponse -> ShowS
[UndeprecateWorkflowTypeResponse] -> ShowS
UndeprecateWorkflowTypeResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UndeprecateWorkflowTypeResponse] -> ShowS
$cshowList :: [UndeprecateWorkflowTypeResponse] -> ShowS
show :: UndeprecateWorkflowTypeResponse -> String
$cshow :: UndeprecateWorkflowTypeResponse -> String
showsPrec :: Int -> UndeprecateWorkflowTypeResponse -> ShowS
$cshowsPrec :: Int -> UndeprecateWorkflowTypeResponse -> ShowS
Prelude.Show, forall x.
Rep UndeprecateWorkflowTypeResponse x
-> UndeprecateWorkflowTypeResponse
forall x.
UndeprecateWorkflowTypeResponse
-> Rep UndeprecateWorkflowTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UndeprecateWorkflowTypeResponse x
-> UndeprecateWorkflowTypeResponse
$cfrom :: forall x.
UndeprecateWorkflowTypeResponse
-> Rep UndeprecateWorkflowTypeResponse x
Prelude.Generic)
newUndeprecateWorkflowTypeResponse ::
UndeprecateWorkflowTypeResponse
newUndeprecateWorkflowTypeResponse :: UndeprecateWorkflowTypeResponse
newUndeprecateWorkflowTypeResponse =
UndeprecateWorkflowTypeResponse
UndeprecateWorkflowTypeResponse'
instance
Prelude.NFData
UndeprecateWorkflowTypeResponse
where
rnf :: UndeprecateWorkflowTypeResponse -> ()
rnf UndeprecateWorkflowTypeResponse
_ = ()