Interface CfnAlarmModel.AlarmActionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAlarmModel.AlarmActionProperty.Jsii$Proxy
Enclosing class:
CfnAlarmModel

@Stability(Stable) public static interface CfnAlarmModel.AlarmActionProperty extends software.amazon.jsii.JsiiSerializable
Specifies one of the following actions to receive notifications when the alarm state changes.

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.*;
 AlarmActionProperty alarmActionProperty = AlarmActionProperty.builder()
         .dynamoDb(DynamoDBProperty.builder()
                 .hashKeyField("hashKeyField")
                 .hashKeyValue("hashKeyValue")
                 .tableName("tableName")
                 // the properties below are optional
                 .hashKeyType("hashKeyType")
                 .operation("operation")
                 .payload(PayloadProperty.builder()
                         .contentExpression("contentExpression")
                         .type("type")
                         .build())
                 .payloadField("payloadField")
                 .rangeKeyField("rangeKeyField")
                 .rangeKeyType("rangeKeyType")
                 .rangeKeyValue("rangeKeyValue")
                 .build())
         .dynamoDBv2(DynamoDBv2Property.builder()
                 .tableName("tableName")
                 // the properties below are optional
                 .payload(PayloadProperty.builder()
                         .contentExpression("contentExpression")
                         .type("type")
                         .build())
                 .build())
         .firehose(FirehoseProperty.builder()
                 .deliveryStreamName("deliveryStreamName")
                 // the properties below are optional
                 .payload(PayloadProperty.builder()
                         .contentExpression("contentExpression")
                         .type("type")
                         .build())
                 .separator("separator")
                 .build())
         .iotEvents(IotEventsProperty.builder()
                 .inputName("inputName")
                 // the properties below are optional
                 .payload(PayloadProperty.builder()
                         .contentExpression("contentExpression")
                         .type("type")
                         .build())
                 .build())
         .iotSiteWise(IotSiteWiseProperty.builder()
                 .assetId("assetId")
                 .entryId("entryId")
                 .propertyAlias("propertyAlias")
                 .propertyId("propertyId")
                 .propertyValue(AssetPropertyValueProperty.builder()
                         .value(AssetPropertyVariantProperty.builder()
                                 .booleanValue("booleanValue")
                                 .doubleValue("doubleValue")
                                 .integerValue("integerValue")
                                 .stringValue("stringValue")
                                 .build())
                         // the properties below are optional
                         .quality("quality")
                         .timestamp(AssetPropertyTimestampProperty.builder()
                                 .timeInSeconds("timeInSeconds")
                                 // the properties below are optional
                                 .offsetInNanos("offsetInNanos")
                                 .build())
                         .build())
                 .build())
         .iotTopicPublish(IotTopicPublishProperty.builder()
                 .mqttTopic("mqttTopic")
                 // the properties below are optional
                 .payload(PayloadProperty.builder()
                         .contentExpression("contentExpression")
                         .type("type")
                         .build())
                 .build())
         .lambda(LambdaProperty.builder()
                 .functionArn("functionArn")
                 // the properties below are optional
                 .payload(PayloadProperty.builder()
                         .contentExpression("contentExpression")
                         .type("type")
                         .build())
                 .build())
         .sns(SnsProperty.builder()
                 .targetArn("targetArn")
                 // the properties below are optional
                 .payload(PayloadProperty.builder()
                         .contentExpression("contentExpression")
                         .type("type")
                         .build())
                 .build())
         .sqs(SqsProperty.builder()
                 .queueUrl("queueUrl")
                 // the properties below are optional
                 .payload(PayloadProperty.builder()
                         .contentExpression("contentExpression")
                         .type("type")
                         .build())
                 .useBase64(false)
                 .build())
         .build();
 

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    static final class 
    An implementation for CfnAlarmModel.AlarmActionProperty
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default Object
    Defines an action to write to the Amazon DynamoDB table that you created.
    default Object
    Defines an action to write to the Amazon DynamoDB table that you created.
    default Object
    Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
    default Object
    Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.
    default Object
    Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise .
    default Object
    Information required to publish the MQTT message through the AWS IoT message broker.
    default Object
    Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
    default Object
    Information required to publish the Amazon SNS message.
    default Object
    Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson