{-# 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.DeprecateActivityType
(
DeprecateActivityType (..),
newDeprecateActivityType,
deprecateActivityType_domain,
deprecateActivityType_activityType,
DeprecateActivityTypeResponse (..),
newDeprecateActivityTypeResponse,
)
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 DeprecateActivityType = DeprecateActivityType'
{
DeprecateActivityType -> Text
domain :: Prelude.Text,
DeprecateActivityType -> ActivityType
activityType :: ActivityType
}
deriving (DeprecateActivityType -> DeprecateActivityType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeprecateActivityType -> DeprecateActivityType -> Bool
$c/= :: DeprecateActivityType -> DeprecateActivityType -> Bool
== :: DeprecateActivityType -> DeprecateActivityType -> Bool
$c== :: DeprecateActivityType -> DeprecateActivityType -> Bool
Prelude.Eq, ReadPrec [DeprecateActivityType]
ReadPrec DeprecateActivityType
Int -> ReadS DeprecateActivityType
ReadS [DeprecateActivityType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeprecateActivityType]
$creadListPrec :: ReadPrec [DeprecateActivityType]
readPrec :: ReadPrec DeprecateActivityType
$creadPrec :: ReadPrec DeprecateActivityType
readList :: ReadS [DeprecateActivityType]
$creadList :: ReadS [DeprecateActivityType]
readsPrec :: Int -> ReadS DeprecateActivityType
$creadsPrec :: Int -> ReadS DeprecateActivityType
Prelude.Read, Int -> DeprecateActivityType -> ShowS
[DeprecateActivityType] -> ShowS
DeprecateActivityType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeprecateActivityType] -> ShowS
$cshowList :: [DeprecateActivityType] -> ShowS
show :: DeprecateActivityType -> String
$cshow :: DeprecateActivityType -> String
showsPrec :: Int -> DeprecateActivityType -> ShowS
$cshowsPrec :: Int -> DeprecateActivityType -> ShowS
Prelude.Show, forall x. Rep DeprecateActivityType x -> DeprecateActivityType
forall x. DeprecateActivityType -> Rep DeprecateActivityType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeprecateActivityType x -> DeprecateActivityType
$cfrom :: forall x. DeprecateActivityType -> Rep DeprecateActivityType x
Prelude.Generic)
newDeprecateActivityType ::
Prelude.Text ->
ActivityType ->
DeprecateActivityType
newDeprecateActivityType :: Text -> ActivityType -> DeprecateActivityType
newDeprecateActivityType Text
pDomain_ ActivityType
pActivityType_ =
DeprecateActivityType'
{ $sel:domain:DeprecateActivityType' :: Text
domain = Text
pDomain_,
$sel:activityType:DeprecateActivityType' :: ActivityType
activityType = ActivityType
pActivityType_
}
deprecateActivityType_domain :: Lens.Lens' DeprecateActivityType Prelude.Text
deprecateActivityType_domain :: Lens' DeprecateActivityType Text
deprecateActivityType_domain = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeprecateActivityType' {Text
domain :: Text
$sel:domain:DeprecateActivityType' :: DeprecateActivityType -> Text
domain} -> Text
domain) (\s :: DeprecateActivityType
s@DeprecateActivityType' {} Text
a -> DeprecateActivityType
s {$sel:domain:DeprecateActivityType' :: Text
domain = Text
a} :: DeprecateActivityType)
deprecateActivityType_activityType :: Lens.Lens' DeprecateActivityType ActivityType
deprecateActivityType_activityType :: Lens' DeprecateActivityType ActivityType
deprecateActivityType_activityType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeprecateActivityType' {ActivityType
activityType :: ActivityType
$sel:activityType:DeprecateActivityType' :: DeprecateActivityType -> ActivityType
activityType} -> ActivityType
activityType) (\s :: DeprecateActivityType
s@DeprecateActivityType' {} ActivityType
a -> DeprecateActivityType
s {$sel:activityType:DeprecateActivityType' :: ActivityType
activityType = ActivityType
a} :: DeprecateActivityType)
instance Core.AWSRequest DeprecateActivityType where
type
AWSResponse DeprecateActivityType =
DeprecateActivityTypeResponse
request :: (Service -> Service)
-> DeprecateActivityType -> Request DeprecateActivityType
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 DeprecateActivityType
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeprecateActivityType)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull DeprecateActivityTypeResponse
DeprecateActivityTypeResponse'
instance Prelude.Hashable DeprecateActivityType where
hashWithSalt :: Int -> DeprecateActivityType -> Int
hashWithSalt Int
_salt DeprecateActivityType' {Text
ActivityType
activityType :: ActivityType
domain :: Text
$sel:activityType:DeprecateActivityType' :: DeprecateActivityType -> ActivityType
$sel:domain:DeprecateActivityType' :: DeprecateActivityType -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
domain
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ActivityType
activityType
instance Prelude.NFData DeprecateActivityType where
rnf :: DeprecateActivityType -> ()
rnf DeprecateActivityType' {Text
ActivityType
activityType :: ActivityType
domain :: Text
$sel:activityType:DeprecateActivityType' :: DeprecateActivityType -> ActivityType
$sel:domain:DeprecateActivityType' :: DeprecateActivityType -> 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 ActivityType
activityType
instance Data.ToHeaders DeprecateActivityType where
toHeaders :: DeprecateActivityType -> [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.DeprecateActivityType" ::
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 DeprecateActivityType where
toJSON :: DeprecateActivityType -> Value
toJSON DeprecateActivityType' {Text
ActivityType
activityType :: ActivityType
domain :: Text
$sel:activityType:DeprecateActivityType' :: DeprecateActivityType -> ActivityType
$sel:domain:DeprecateActivityType' :: DeprecateActivityType -> 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
"activityType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ActivityType
activityType)
]
)
instance Data.ToPath DeprecateActivityType where
toPath :: DeprecateActivityType -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DeprecateActivityType where
toQuery :: DeprecateActivityType -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeprecateActivityTypeResponse = DeprecateActivityTypeResponse'
{
}
deriving (DeprecateActivityTypeResponse
-> DeprecateActivityTypeResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeprecateActivityTypeResponse
-> DeprecateActivityTypeResponse -> Bool
$c/= :: DeprecateActivityTypeResponse
-> DeprecateActivityTypeResponse -> Bool
== :: DeprecateActivityTypeResponse
-> DeprecateActivityTypeResponse -> Bool
$c== :: DeprecateActivityTypeResponse
-> DeprecateActivityTypeResponse -> Bool
Prelude.Eq, ReadPrec [DeprecateActivityTypeResponse]
ReadPrec DeprecateActivityTypeResponse
Int -> ReadS DeprecateActivityTypeResponse
ReadS [DeprecateActivityTypeResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeprecateActivityTypeResponse]
$creadListPrec :: ReadPrec [DeprecateActivityTypeResponse]
readPrec :: ReadPrec DeprecateActivityTypeResponse
$creadPrec :: ReadPrec DeprecateActivityTypeResponse
readList :: ReadS [DeprecateActivityTypeResponse]
$creadList :: ReadS [DeprecateActivityTypeResponse]
readsPrec :: Int -> ReadS DeprecateActivityTypeResponse
$creadsPrec :: Int -> ReadS DeprecateActivityTypeResponse
Prelude.Read, Int -> DeprecateActivityTypeResponse -> ShowS
[DeprecateActivityTypeResponse] -> ShowS
DeprecateActivityTypeResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeprecateActivityTypeResponse] -> ShowS
$cshowList :: [DeprecateActivityTypeResponse] -> ShowS
show :: DeprecateActivityTypeResponse -> String
$cshow :: DeprecateActivityTypeResponse -> String
showsPrec :: Int -> DeprecateActivityTypeResponse -> ShowS
$cshowsPrec :: Int -> DeprecateActivityTypeResponse -> ShowS
Prelude.Show, forall x.
Rep DeprecateActivityTypeResponse x
-> DeprecateActivityTypeResponse
forall x.
DeprecateActivityTypeResponse
-> Rep DeprecateActivityTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeprecateActivityTypeResponse x
-> DeprecateActivityTypeResponse
$cfrom :: forall x.
DeprecateActivityTypeResponse
-> Rep DeprecateActivityTypeResponse x
Prelude.Generic)
newDeprecateActivityTypeResponse ::
DeprecateActivityTypeResponse
newDeprecateActivityTypeResponse :: DeprecateActivityTypeResponse
newDeprecateActivityTypeResponse =
DeprecateActivityTypeResponse
DeprecateActivityTypeResponse'
instance Prelude.NFData DeprecateActivityTypeResponse where
rnf :: DeprecateActivityTypeResponse -> ()
rnf DeprecateActivityTypeResponse
_ = ()