Interface CfnDetectorModel.ActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDetectorModel.ActionProperty.Jsii$Proxy
- Enclosing class:
CfnDetectorModel
condition is TRUE.
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.*;
ActionProperty actionProperty = ActionProperty.builder()
.clearTimer(ClearTimerProperty.builder()
.timerName("timerName")
.build())
.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()
.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())
// the properties below are optional
.assetId("assetId")
.entryId("entryId")
.propertyAlias("propertyAlias")
.propertyId("propertyId")
.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())
.resetTimer(ResetTimerProperty.builder()
.timerName("timerName")
.build())
.setTimer(SetTimerProperty.builder()
.timerName("timerName")
// the properties below are optional
.durationExpression("durationExpression")
.seconds(123)
.build())
.setVariable(SetVariableProperty.builder()
.value("value")
.variableName("variableName")
.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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDetectorModel.ActionPropertystatic final classAn implementation forCfnDetectorModel.ActionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectInformation needed to clear the timer.default ObjectWrites to the DynamoDB table that you created.default ObjectWrites to the DynamoDB table that you created.default ObjectSends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.default ObjectSends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.default ObjectSends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .default ObjectPublishes an MQTT message with the given topic to the AWS IoT message broker.default ObjectCalls a Lambda function, passing in information about the detector model instance and the event that triggered the action.default ObjectInformation needed to reset the timer.default ObjectInformation needed to set the timer.default ObjectSets a variable to a specified value.default ObjectgetSns()Sends an Amazon SNS message.default ObjectgetSqs()Sends an Amazon SNS message.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClearTimer
Information needed to clear the timer.Returns union: either
IResolvableorCfnDetectorModel.ClearTimerProperty- See Also:
-
getDynamoDb
Writes to the DynamoDB table that you created.The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload . One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide .
Returns union: either
IResolvableorCfnDetectorModel.DynamoDBProperty- See Also:
-
getDynamoDBv2
Writes to the DynamoDB table that you created.The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload . A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide .
Returns union: either
IResolvableorCfnDetectorModel.DynamoDBv2Property- See Also:
-
getFirehose
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.Returns union: either
IResolvableorCfnDetectorModel.FirehoseProperty- See Also:
-
getIotEvents
Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.Returns union: either
IResolvableorCfnDetectorModel.IotEventsProperty- See Also:
-
getIotSiteWise
Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .Returns union: either
IResolvableorCfnDetectorModel.IotSiteWiseProperty- See Also:
-
getIotTopicPublish
Publishes an MQTT message with the given topic to the AWS IoT message broker.Returns union: either
IResolvableorCfnDetectorModel.IotTopicPublishProperty- See Also:
-
getLambda
Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.Returns union: either
IResolvableorCfnDetectorModel.LambdaProperty- See Also:
-
getResetTimer
Information needed to reset the timer.Returns union: either
IResolvableorCfnDetectorModel.ResetTimerProperty- See Also:
-
getSetTimer
Information needed to set the timer.Returns union: either
IResolvableorCfnDetectorModel.SetTimerProperty- See Also:
-
getSetVariable
Sets a variable to a specified value.Returns union: either
IResolvableorCfnDetectorModel.SetVariableProperty- See Also:
-
getSns
Sends an Amazon SNS message.Returns union: either
IResolvableorCfnDetectorModel.SnsProperty- See Also:
-
getSqs
Sends an Amazon SNS message.Returns union: either
IResolvableorCfnDetectorModel.SqsProperty- See Also:
-
builder
-