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

Amazonka.CloudFormation.SignalResource

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. 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

data SignalResource Source #

The input for the SignalResource action.

See: newSignalResource smart constructor.

Constructors

SignalResource' 

Fields

  • stackName :: Text

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

  • logicalResourceId :: Text

    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.

  • uniqueId :: Text

    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.

  • status :: ResourceSignalStatus

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

Instances

Instances details
Eq SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Read SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Show SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Generic SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Associated Types

type Rep SignalResource :: Type -> Type #

NFData SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Methods

rnf :: SignalResource -> () #

Hashable SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

AWSRequest SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Associated Types

type AWSResponse SignalResource #

ToHeaders SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

ToPath SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

ToQuery SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

type Rep SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

type Rep SignalResource = D1 ('MetaData "SignalResource" "Amazonka.CloudFormation.SignalResource" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" 'False) (C1 ('MetaCons "SignalResource'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "stackName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "logicalResourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "uniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceSignalStatus))))
type AWSResponse SignalResource Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

newSignalResource Source #

Create a value of SignalResource with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:stackName:SignalResource', signalResource_stackName - The stack name or unique stack ID that includes the resource that you want to signal.

$sel:logicalResourceId:SignalResource', signalResource_logicalResourceId - 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.

$sel:uniqueId:SignalResource', signalResource_uniqueId - 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.

$sel:status:SignalResource', signalResource_status - The status of the signal, which is either success or failure. A failure signal causes CloudFormation to immediately fail the stack creation or update.

Request Lenses

signalResource_stackName :: Lens' SignalResource Text Source #

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

signalResource_logicalResourceId :: 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.

signalResource_uniqueId :: 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.

signalResource_status :: Lens' SignalResource ResourceSignalStatus Source #

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

Destructuring the Response

data SignalResourceResponse Source #

See: newSignalResourceResponse smart constructor.

Instances

Instances details
Eq SignalResourceResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Read SignalResourceResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Show SignalResourceResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Generic SignalResourceResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Associated Types

type Rep SignalResourceResponse :: Type -> Type #

NFData SignalResourceResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

Methods

rnf :: SignalResourceResponse -> () #

type Rep SignalResourceResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SignalResource

type Rep SignalResourceResponse = D1 ('MetaData "SignalResourceResponse" "Amazonka.CloudFormation.SignalResource" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" 'False) (C1 ('MetaCons "SignalResourceResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSignalResourceResponse :: SignalResourceResponse Source #

Create a value of SignalResourceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.