| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoTEvents.Types.Payload
Description
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.
Constructors
| Payload' | |
Fields
| |
Instances
| FromJSON Payload Source # | |
| ToJSON Payload Source # | |
Defined in Amazonka.IoTEvents.Types.Payload | |
| Generic Payload Source # | |
| Read Payload Source # | |
| Show Payload Source # | |
| NFData Payload Source # | |
Defined in Amazonka.IoTEvents.Types.Payload | |
| Eq Payload Source # | |
| Hashable Payload Source # | |
Defined in Amazonka.IoTEvents.Types.Payload | |
| type Rep Payload Source # | |
Defined in Amazonka.IoTEvents.Types.Payload type Rep Payload = D1 ('MetaData "Payload" "Amazonka.IoTEvents.Types.Payload" "amazonka-iotevents-2.0-6xKaLx5KciSK3LEs0FyRYn" 'False) (C1 ('MetaCons "Payload'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PayloadType))) | |
Arguments
| :: Text | |
| -> PayloadType | |
| -> Payload |
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.