Interface CfnDetectorModelPropsMixin.StateProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDetectorModelPropsMixin.StateProperty.Jsii$Proxy
- Enclosing class:
CfnDetectorModelPropsMixin
@Stability(Stable)
public static interface CfnDetectorModelPropsMixin.StateProperty
extends software.amazon.jsii.JsiiSerializable
Information that defines a state of a detector.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.iotevents.*;
StateProperty stateProperty = StateProperty.builder()
.onEnter(OnEnterProperty.builder()
.events(List.of(EventProperty.builder()
.actions(List.of(ActionProperty.builder()
.clearTimer(ClearTimerProperty.builder()
.timerName("timerName")
.build())
.dynamoDb(DynamoDBProperty.builder()
.hashKeyField("hashKeyField")
.hashKeyType("hashKeyType")
.hashKeyValue("hashKeyValue")
.operation("operation")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.payloadField("payloadField")
.rangeKeyField("rangeKeyField")
.rangeKeyType("rangeKeyType")
.rangeKeyValue("rangeKeyValue")
.tableName("tableName")
.build())
.dynamoDBv2(DynamoDBv2Property.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.tableName("tableName")
.build())
.firehose(FirehoseProperty.builder()
.deliveryStreamName("deliveryStreamName")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.separator("separator")
.build())
.iotEvents(IotEventsProperty.builder()
.inputName("inputName")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.iotSiteWise(IotSiteWiseProperty.builder()
.assetId("assetId")
.entryId("entryId")
.propertyAlias("propertyAlias")
.propertyId("propertyId")
.propertyValue(AssetPropertyValueProperty.builder()
.quality("quality")
.timestamp(AssetPropertyTimestampProperty.builder()
.offsetInNanos("offsetInNanos")
.timeInSeconds("timeInSeconds")
.build())
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
.build())
.build())
.iotTopicPublish(IotTopicPublishProperty.builder()
.mqttTopic("mqttTopic")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.lambda(LambdaProperty.builder()
.functionArn("functionArn")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.resetTimer(ResetTimerProperty.builder()
.timerName("timerName")
.build())
.setTimer(SetTimerProperty.builder()
.durationExpression("durationExpression")
.seconds(123)
.timerName("timerName")
.build())
.setVariable(SetVariableProperty.builder()
.value("value")
.variableName("variableName")
.build())
.sns(SnsProperty.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.targetArn("targetArn")
.build())
.sqs(SqsProperty.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.queueUrl("queueUrl")
.useBase64(false)
.build())
.build()))
.condition("condition")
.eventName("eventName")
.build()))
.build())
.onExit(OnExitProperty.builder()
.events(List.of(EventProperty.builder()
.actions(List.of(ActionProperty.builder()
.clearTimer(ClearTimerProperty.builder()
.timerName("timerName")
.build())
.dynamoDb(DynamoDBProperty.builder()
.hashKeyField("hashKeyField")
.hashKeyType("hashKeyType")
.hashKeyValue("hashKeyValue")
.operation("operation")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.payloadField("payloadField")
.rangeKeyField("rangeKeyField")
.rangeKeyType("rangeKeyType")
.rangeKeyValue("rangeKeyValue")
.tableName("tableName")
.build())
.dynamoDBv2(DynamoDBv2Property.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.tableName("tableName")
.build())
.firehose(FirehoseProperty.builder()
.deliveryStreamName("deliveryStreamName")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.separator("separator")
.build())
.iotEvents(IotEventsProperty.builder()
.inputName("inputName")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.iotSiteWise(IotSiteWiseProperty.builder()
.assetId("assetId")
.entryId("entryId")
.propertyAlias("propertyAlias")
.propertyId("propertyId")
.propertyValue(AssetPropertyValueProperty.builder()
.quality("quality")
.timestamp(AssetPropertyTimestampProperty.builder()
.offsetInNanos("offsetInNanos")
.timeInSeconds("timeInSeconds")
.build())
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
.build())
.build())
.iotTopicPublish(IotTopicPublishProperty.builder()
.mqttTopic("mqttTopic")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.lambda(LambdaProperty.builder()
.functionArn("functionArn")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.resetTimer(ResetTimerProperty.builder()
.timerName("timerName")
.build())
.setTimer(SetTimerProperty.builder()
.durationExpression("durationExpression")
.seconds(123)
.timerName("timerName")
.build())
.setVariable(SetVariableProperty.builder()
.value("value")
.variableName("variableName")
.build())
.sns(SnsProperty.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.targetArn("targetArn")
.build())
.sqs(SqsProperty.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.queueUrl("queueUrl")
.useBase64(false)
.build())
.build()))
.condition("condition")
.eventName("eventName")
.build()))
.build())
.onInput(OnInputProperty.builder()
.events(List.of(EventProperty.builder()
.actions(List.of(ActionProperty.builder()
.clearTimer(ClearTimerProperty.builder()
.timerName("timerName")
.build())
.dynamoDb(DynamoDBProperty.builder()
.hashKeyField("hashKeyField")
.hashKeyType("hashKeyType")
.hashKeyValue("hashKeyValue")
.operation("operation")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.payloadField("payloadField")
.rangeKeyField("rangeKeyField")
.rangeKeyType("rangeKeyType")
.rangeKeyValue("rangeKeyValue")
.tableName("tableName")
.build())
.dynamoDBv2(DynamoDBv2Property.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.tableName("tableName")
.build())
.firehose(FirehoseProperty.builder()
.deliveryStreamName("deliveryStreamName")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.separator("separator")
.build())
.iotEvents(IotEventsProperty.builder()
.inputName("inputName")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.iotSiteWise(IotSiteWiseProperty.builder()
.assetId("assetId")
.entryId("entryId")
.propertyAlias("propertyAlias")
.propertyId("propertyId")
.propertyValue(AssetPropertyValueProperty.builder()
.quality("quality")
.timestamp(AssetPropertyTimestampProperty.builder()
.offsetInNanos("offsetInNanos")
.timeInSeconds("timeInSeconds")
.build())
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
.build())
.build())
.iotTopicPublish(IotTopicPublishProperty.builder()
.mqttTopic("mqttTopic")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.lambda(LambdaProperty.builder()
.functionArn("functionArn")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.resetTimer(ResetTimerProperty.builder()
.timerName("timerName")
.build())
.setTimer(SetTimerProperty.builder()
.durationExpression("durationExpression")
.seconds(123)
.timerName("timerName")
.build())
.setVariable(SetVariableProperty.builder()
.value("value")
.variableName("variableName")
.build())
.sns(SnsProperty.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.targetArn("targetArn")
.build())
.sqs(SqsProperty.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.queueUrl("queueUrl")
.useBase64(false)
.build())
.build()))
.condition("condition")
.eventName("eventName")
.build()))
.transitionEvents(List.of(TransitionEventProperty.builder()
.actions(List.of(ActionProperty.builder()
.clearTimer(ClearTimerProperty.builder()
.timerName("timerName")
.build())
.dynamoDb(DynamoDBProperty.builder()
.hashKeyField("hashKeyField")
.hashKeyType("hashKeyType")
.hashKeyValue("hashKeyValue")
.operation("operation")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.payloadField("payloadField")
.rangeKeyField("rangeKeyField")
.rangeKeyType("rangeKeyType")
.rangeKeyValue("rangeKeyValue")
.tableName("tableName")
.build())
.dynamoDBv2(DynamoDBv2Property.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.tableName("tableName")
.build())
.firehose(FirehoseProperty.builder()
.deliveryStreamName("deliveryStreamName")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.separator("separator")
.build())
.iotEvents(IotEventsProperty.builder()
.inputName("inputName")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.iotSiteWise(IotSiteWiseProperty.builder()
.assetId("assetId")
.entryId("entryId")
.propertyAlias("propertyAlias")
.propertyId("propertyId")
.propertyValue(AssetPropertyValueProperty.builder()
.quality("quality")
.timestamp(AssetPropertyTimestampProperty.builder()
.offsetInNanos("offsetInNanos")
.timeInSeconds("timeInSeconds")
.build())
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
.build())
.build())
.iotTopicPublish(IotTopicPublishProperty.builder()
.mqttTopic("mqttTopic")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.lambda(LambdaProperty.builder()
.functionArn("functionArn")
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build())
.resetTimer(ResetTimerProperty.builder()
.timerName("timerName")
.build())
.setTimer(SetTimerProperty.builder()
.durationExpression("durationExpression")
.seconds(123)
.timerName("timerName")
.build())
.setVariable(SetVariableProperty.builder()
.value("value")
.variableName("variableName")
.build())
.sns(SnsProperty.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.targetArn("targetArn")
.build())
.sqs(SqsProperty.builder()
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.queueUrl("queueUrl")
.useBase64(false)
.build())
.build()))
.condition("condition")
.eventName("eventName")
.nextState("nextState")
.build()))
.build())
.stateName("stateName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDetectorModelPropsMixin.StatePropertystatic final classAn implementation forCfnDetectorModelPropsMixin.StateProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectWhen entering this state, perform theseactionsif theconditionis TRUE.default ObjectWhen exiting this state, perform theseactionsif the specifiedconditionisTRUE.default ObjectWhen an input is received and theconditionis TRUE, perform the specifiedactions.default StringThe name of the state.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOnEnter
When entering this state, perform theseactionsif theconditionis TRUE.Returns union: either
IResolvableorCfnDetectorModelPropsMixin.OnEnterProperty- See Also:
-
getOnExit
When exiting this state, perform theseactionsif the specifiedconditionisTRUE.Returns union: either
IResolvableorCfnDetectorModelPropsMixin.OnExitProperty- See Also:
-
getOnInput
When an input is received and theconditionis TRUE, perform the specifiedactions.Returns union: either
IResolvableorCfnDetectorModelPropsMixin.OnInputProperty- See Also:
-
getStateName
The name of the state.- See Also:
-
builder
-