Class CfnAlarmModel.PayloadProperty
Information needed to configure the payload.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoTEvents
Assembly: Amazon.CDK.AWS.IoTEvents.dll
Syntax (csharp)
public class PayloadProperty : Object, CfnAlarmModel.IPayloadProperty
Syntax (vb)
Public Class PayloadProperty
Inherits Object
Implements CfnAlarmModel.IPayloadProperty
Remarks
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
.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTEvents;
var payloadProperty = new PayloadProperty {
ContentExpression = "contentExpression",
Type = "type"
};
Synopsis
Constructors
PayloadProperty() |
Properties
ContentExpression | The content of the payload. |
Type | The value of the payload type can be either |
Constructors
PayloadProperty()
public PayloadProperty()
Properties
ContentExpression
The content of the payload.
public string ContentExpression { get; set; }
Property Value
System.String
Remarks
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
The value of the payload type can be either STRING
or JSON
.
public string Type { get; set; }
Property Value
System.String