Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Payload = Payload' {}
- newPayload :: Text -> PayloadType -> Payload
- payload_contentExpression :: Lens' Payload Text
- payload_type :: Lens' Payload PayloadType
Documentation
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any
action. This action payload contains all attribute-value pairs that have
the information about the detector model instance and the event
triggered the action. To configure the action payload, you can use
contentExpression
.
See: newPayload
smart constructor.
Payload' | |
|
Instances
Eq Payload Source # | |
Read Payload Source # | |
Show Payload Source # | |
Generic Payload Source # | |
NFData Payload Source # | |
Defined in Amazonka.IoTEvents.Types.Payload | |
Hashable Payload Source # | |
Defined in Amazonka.IoTEvents.Types.Payload | |
ToJSON Payload Source # | |
Defined in Amazonka.IoTEvents.Types.Payload | |
FromJSON Payload Source # | |
type Rep Payload Source # | |
Defined in Amazonka.IoTEvents.Types.Payload type Rep Payload = D1 ('MetaData "Payload" "Amazonka.IoTEvents.Types.Payload" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "Payload'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PayloadType))) |
Create a value of Payload
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:contentExpression:Payload'
, payload_contentExpression
- The content of the payload. You can use a string expression that
includes quoted strings ('<string>'
), variables
($variable.<variable-name>
), input values
($input.<input-name>.<path-to-datum>
), string concatenations, and
quoted strings that contain ${}
as the content. The recommended
maximum size of a content expression is 1 KB.
$sel:type':Payload'
, payload_type
- The value of the payload type can be either STRING
or JSON
.
payload_contentExpression :: Lens' Payload Text Source #
The content of the payload. You can use a string expression that
includes quoted strings ('<string>'
), variables
($variable.<variable-name>
), input values
($input.<input-name>.<path-to-datum>
), string concatenations, and
quoted strings that contain ${}
as the content. The recommended
maximum size of a content expression is 1 KB.
payload_type :: Lens' Payload PayloadType Source #
The value of the payload type can be either STRING
or JSON
.