amazonka-cloudformation-1.5.0: Amazon CloudFormation SDK.

Copyright(c) 2013-2017 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.CloudFormation.SignalResource

Contents

Description

Sends a signal to the specified resource with a success or failure status. You can use the SignalResource API in conjunction with a creation policy or update policy. AWS CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource API is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.

Synopsis

Creating a Request

signalResource Source #

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

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

  • sigStackName - The stack name or unique stack ID that includes the resource that you want to signal.
  • sigLogicalResourceId - The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.
  • sigUniqueId - A unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.
  • sigStatus - The status of the signal, which is either success or failure. A failure signal causes AWS CloudFormation to immediately fail the stack creation or update.

data SignalResource Source #

The input for the SignalResource action.

See: signalResource smart constructor.

Instances

Eq SignalResource Source # 
Data SignalResource Source # 

Methods

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

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

toConstr :: SignalResource -> Constr #

dataTypeOf :: SignalResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SignalResource Source # 
Show SignalResource Source # 
Generic SignalResource Source # 

Associated Types

type Rep SignalResource :: * -> * #

Hashable SignalResource Source # 
NFData SignalResource Source # 

Methods

rnf :: SignalResource -> () #

AWSRequest SignalResource Source # 
ToQuery SignalResource Source # 
ToPath SignalResource Source # 
ToHeaders SignalResource Source # 
type Rep SignalResource Source # 
type Rep SignalResource = D1 (MetaData "SignalResource" "Network.AWS.CloudFormation.SignalResource" "amazonka-cloudformation-1.5.0-KJ8fU86x75V4EoPee9jClQ" False) (C1 (MetaCons "SignalResource'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_sigStackName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_sigLogicalResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_sigUniqueId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_sigStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceSignalStatus)))))
type Rs SignalResource Source # 

Request Lenses

sigStackName :: Lens' SignalResource Text Source #

The stack name or unique stack ID that includes the resource that you want to signal.

sigLogicalResourceId :: Lens' SignalResource Text Source #

The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.

sigUniqueId :: Lens' SignalResource Text Source #

A unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.

sigStatus :: Lens' SignalResource ResourceSignalStatus Source #

The status of the signal, which is either success or failure. A failure signal causes AWS CloudFormation to immediately fail the stack creation or update.

Destructuring the Response

signalResourceResponse :: SignalResourceResponse Source #

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

data SignalResourceResponse Source #

See: signalResourceResponse smart constructor.

Instances

Eq SignalResourceResponse Source # 
Data SignalResourceResponse Source # 

Methods

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

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

toConstr :: SignalResourceResponse -> Constr #

dataTypeOf :: SignalResourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SignalResourceResponse Source # 
Show SignalResourceResponse Source # 
Generic SignalResourceResponse Source # 
NFData SignalResourceResponse Source # 

Methods

rnf :: SignalResourceResponse -> () #

type Rep SignalResourceResponse Source # 
type Rep SignalResourceResponse = D1 (MetaData "SignalResourceResponse" "Network.AWS.CloudFormation.SignalResource" "amazonka-cloudformation-1.5.0-KJ8fU86x75V4EoPee9jClQ" False) (C1 (MetaCons "SignalResourceResponse'" PrefixI False) U1)