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