interface PayloadProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoTEvents.Mixins.CfnAlarmModelPropsMixin.PayloadProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiotevents/mixins#CfnAlarmModelPropsMixin_PayloadProperty |
Java | software.amazon.awscdk.mixins.preview.services.iotevents.mixins.CfnAlarmModelPropsMixin.PayloadProperty |
Python | aws_cdk.mixins_preview.aws_iotevents.mixins.CfnAlarmModelPropsMixin.PayloadProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iotevents » mixins » CfnAlarmModelPropsMixin » PayloadProperty |
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 .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as iotevents_mixins } from '@aws-cdk/mixins-preview/aws-iotevents';
const payloadProperty: iotevents_mixins.CfnAlarmModelPropsMixin.PayloadProperty = {
contentExpression: 'contentExpression',
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| content | string | The content of the payload. |
| type? | string | The value of the payload type can be either STRING or JSON . |
contentExpression?
Type:
string
(optional)
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.
type?
Type:
string
(optional)
The value of the payload type can be either STRING or JSON .

.NET
Go
Java
Python
TypeScript