amazonka-swf-1.4.5: Amazon Simple Workflow Service SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SWF.DeprecateActivityType

Contents

Description

Deprecates the specified activity type . After an activity type has been deprecated, you cannot create new tasks of that activity type. Tasks of this type that were scheduled before the type was deprecated will continue to run.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

  • Use a Resource element with the domain name to limit the action to only specified domains. * Use an Action element to allow or deny permission to call this action. * Constrain the following parameters by using a Condition element with the appropriate keys. * activityType.name : String constraint. The key is swf:activityType.name . * activityType.version : String constraint. The key is swf:activityType.version .

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .

Synopsis

Creating a Request

deprecateActivityType #

Creates a value of DeprecateActivityType with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • depDomain - The name of the domain in which the activity type is registered.
  • depActivityType - The activity type to deprecate.

data DeprecateActivityType #

See: deprecateActivityType smart constructor.

Instances

Eq DeprecateActivityType # 
Data DeprecateActivityType # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeprecateActivityType -> c DeprecateActivityType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeprecateActivityType #

toConstr :: DeprecateActivityType -> Constr #

dataTypeOf :: DeprecateActivityType -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeprecateActivityType) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeprecateActivityType) #

gmapT :: (forall b. Data b => b -> b) -> DeprecateActivityType -> DeprecateActivityType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeprecateActivityType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeprecateActivityType -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeprecateActivityType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeprecateActivityType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeprecateActivityType -> m DeprecateActivityType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeprecateActivityType -> m DeprecateActivityType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeprecateActivityType -> m DeprecateActivityType #

Read DeprecateActivityType # 
Show DeprecateActivityType # 
Generic DeprecateActivityType # 
Hashable DeprecateActivityType # 
ToJSON DeprecateActivityType # 
NFData DeprecateActivityType # 

Methods

rnf :: DeprecateActivityType -> () #

AWSRequest DeprecateActivityType # 
ToQuery DeprecateActivityType # 
ToPath DeprecateActivityType # 
ToHeaders DeprecateActivityType # 
type Rep DeprecateActivityType # 
type Rep DeprecateActivityType = D1 (MetaData "DeprecateActivityType" "Network.AWS.SWF.DeprecateActivityType" "amazonka-swf-1.4.5-5efQTs2LdqG6LIeqZlvIEl" False) (C1 (MetaCons "DeprecateActivityType'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_depDomain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_depActivityType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ActivityType))))
type Rs DeprecateActivityType # 

Request Lenses

depDomain :: Lens' DeprecateActivityType Text #

The name of the domain in which the activity type is registered.

depActivityType :: Lens' DeprecateActivityType ActivityType #

The activity type to deprecate.

Destructuring the Response

deprecateActivityTypeResponse :: DeprecateActivityTypeResponse #

Creates a value of DeprecateActivityTypeResponse with the minimum fields required to make a request.

data DeprecateActivityTypeResponse #

See: deprecateActivityTypeResponse smart constructor.

Instances

Eq DeprecateActivityTypeResponse # 
Data DeprecateActivityTypeResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeprecateActivityTypeResponse -> c DeprecateActivityTypeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeprecateActivityTypeResponse #

toConstr :: DeprecateActivityTypeResponse -> Constr #

dataTypeOf :: DeprecateActivityTypeResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeprecateActivityTypeResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeprecateActivityTypeResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeprecateActivityTypeResponse -> DeprecateActivityTypeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeprecateActivityTypeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeprecateActivityTypeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeprecateActivityTypeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeprecateActivityTypeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeprecateActivityTypeResponse -> m DeprecateActivityTypeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeprecateActivityTypeResponse -> m DeprecateActivityTypeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeprecateActivityTypeResponse -> m DeprecateActivityTypeResponse #

Read DeprecateActivityTypeResponse # 
Show DeprecateActivityTypeResponse # 
Generic DeprecateActivityTypeResponse # 
NFData DeprecateActivityTypeResponse # 
type Rep DeprecateActivityTypeResponse # 
type Rep DeprecateActivityTypeResponse = D1 (MetaData "DeprecateActivityTypeResponse" "Network.AWS.SWF.DeprecateActivityType" "amazonka-swf-1.4.5-5efQTs2LdqG6LIeqZlvIEl" False) (C1 (MetaCons "DeprecateActivityTypeResponse'" PrefixI False) U1)