amazonka-ecs-1.6.1: Amazon EC2 Container Service SDK.

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

Network.AWS.ECS.DeregisterTaskDefinition

Contents

Description

Deregisters the specified task definition by family and revision. Upon deregistration, the task definition is marked as INACTIVE . Existing tasks and services that reference an INACTIVE task definition continue to run without disruption. Existing services that reference an INACTIVE task definition can still scale up or down by modifying the service's desired count.

You cannot use an INACTIVE task definition to run new tasks or create new services, and you cannot update an existing service to reference an INACTIVE task definition (although there may be up to a 10-minute window following deregistration where these restrictions have not yet taken effect).

Synopsis

Creating a Request

deregisterTaskDefinition #

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

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

  • derTaskDefinition - The family and revision (family:revision ) or full Amazon Resource Name (ARN) of the task definition to deregister. You must specify a revision .

data DeregisterTaskDefinition #

See: deregisterTaskDefinition smart constructor.

Instances
Eq DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Data DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Methods

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

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

toConstr :: DeregisterTaskDefinition -> Constr #

dataTypeOf :: DeregisterTaskDefinition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Show DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Generic DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Associated Types

type Rep DeregisterTaskDefinition :: Type -> Type #

Hashable DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

ToJSON DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

AWSRequest DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Associated Types

type Rs DeregisterTaskDefinition :: Type #

ToHeaders DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

ToPath DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

ToQuery DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

NFData DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

type Rep DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

type Rep DeregisterTaskDefinition = D1 (MetaData "DeregisterTaskDefinition" "Network.AWS.ECS.DeregisterTaskDefinition" "amazonka-ecs-1.6.1-L1UdJla9EUcK0wHkUmqs0y" True) (C1 (MetaCons "DeregisterTaskDefinition'" PrefixI True) (S1 (MetaSel (Just "_derTaskDefinition") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeregisterTaskDefinition # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Request Lenses

derTaskDefinition :: Lens' DeregisterTaskDefinition Text #

The family and revision (family:revision ) or full Amazon Resource Name (ARN) of the task definition to deregister. You must specify a revision .

Destructuring the Response

deregisterTaskDefinitionResponse #

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

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

data DeregisterTaskDefinitionResponse #

See: deregisterTaskDefinitionResponse smart constructor.

Instances
Eq DeregisterTaskDefinitionResponse # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Data DeregisterTaskDefinitionResponse # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Methods

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

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

toConstr :: DeregisterTaskDefinitionResponse -> Constr #

dataTypeOf :: DeregisterTaskDefinitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeregisterTaskDefinitionResponse # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Show DeregisterTaskDefinitionResponse # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Generic DeregisterTaskDefinitionResponse # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

Associated Types

type Rep DeregisterTaskDefinitionResponse :: Type -> Type #

NFData DeregisterTaskDefinitionResponse # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

type Rep DeregisterTaskDefinitionResponse # 
Instance details

Defined in Network.AWS.ECS.DeregisterTaskDefinition

type Rep DeregisterTaskDefinitionResponse = D1 (MetaData "DeregisterTaskDefinitionResponse" "Network.AWS.ECS.DeregisterTaskDefinition" "amazonka-ecs-1.6.1-L1UdJla9EUcK0wHkUmqs0y" False) (C1 (MetaCons "DeregisterTaskDefinitionResponse'" PrefixI True) (S1 (MetaSel (Just "_dtdrsTaskDefinition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TaskDefinition)) :*: S1 (MetaSel (Just "_dtdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dtdrsTaskDefinition :: Lens' DeregisterTaskDefinitionResponse (Maybe TaskDefinition) #

The full description of the deregistered task.