libZSservicesZSamazonka-ioteventsZSamazonka-iotevents
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.IoTEvents.Types.LambdaAction

Description

 
Synopsis

Documentation

data LambdaAction Source #

Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.

See: newLambdaAction smart constructor.

Constructors

LambdaAction' 

Fields

  • payload :: Maybe Payload

    You can configure the action payload when you send a message to a Lambda function.

  • functionArn :: Text

    The ARN of the Lambda function that is executed.

Instances

Instances details
Eq LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

Read LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

Show LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

Generic LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

Associated Types

type Rep LambdaAction :: Type -> Type #

NFData LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

Methods

rnf :: LambdaAction -> () #

Hashable LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

ToJSON LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

FromJSON LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

type Rep LambdaAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.LambdaAction

type Rep LambdaAction = D1 ('MetaData "LambdaAction" "Amazonka.IoTEvents.Types.LambdaAction" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "LambdaAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Payload)) :*: S1 ('MetaSel ('Just "functionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newLambdaAction Source #

Create a value of LambdaAction 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:payload:LambdaAction', lambdaAction_payload - You can configure the action payload when you send a message to a Lambda function.

$sel:functionArn:LambdaAction', lambdaAction_functionArn - The ARN of the Lambda function that is executed.

lambdaAction_payload :: Lens' LambdaAction (Maybe Payload) Source #

You can configure the action payload when you send a message to a Lambda function.

lambdaAction_functionArn :: Lens' LambdaAction Text Source #

The ARN of the Lambda function that is executed.