@Stability(value=Stable)
public static interface CfnAlarmModel.PayloadProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.iotevents.*;
PayloadProperty payloadProperty = PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAlarmModel.PayloadProperty.Builder
A builder for
CfnAlarmModel.PayloadProperty |
static class |
CfnAlarmModel.PayloadProperty.Jsii$Proxy
An implementation for
CfnAlarmModel.PayloadProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAlarmModel.PayloadProperty.Builder |
builder() |
String |
getContentExpression()
The content of the payload.
|
String |
getType()
The value of the payload type can be either `STRING` or `JSON` .
|
@Stability(value=Stable) @NotNull String getContentExpression()
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.
@Stability(value=Stable) @NotNull String getType()
@Stability(value=Stable) static CfnAlarmModel.PayloadProperty.Builder builder()
Copyright © 2022. All rights reserved.