CfnDetectorModel
- class aws_cdk.aws_iotevents.CfnDetectorModel(scope, id, *, detector_model_definition, role_arn, detector_model_description=None, detector_model_name=None, evaluation_method=None, key=None, tags=None)
- Bases: - CfnResource- A CloudFormation - AWS::IoTEvents::DetectorModel.- The AWS::IoTEvents::DetectorModel resource creates a detector model. You create a detector model (a model of your equipment or process) using states . For each state, you define conditional (Boolean) logic that evaluates the incoming inputs to detect significant events. When an event is detected, it can change the state or trigger custom-built or predefined actions using other AWS services. You can define additional events that trigger actions when entering or exiting a state and, optionally, when a condition is met. For more information, see How to Use AWS IoT Events in the AWS IoT Events Developer Guide . .. epigraph: - When you successfully update a detector model (using the AWS IoT Events console, AWS IoT Events API or CLI commands, or AWS CloudFormation ) all detector instances created by the model are reset to their initial states. (The detector's ``state`` , and the values of any variables and timers are reset.) When you successfully update a detector model (using the AWS IoT Events console, AWS IoT Events API or CLI commands, or AWS CloudFormation ) the version number of the detector model is incremented. (A detector model with version number 1 before the update has version number 2 after the update succeeds.) If you attempt to update a detector model using AWS CloudFormation and the update does not succeed, the system may, in some cases, restore the original detector model. When this occurs, the detector model's version is incremented twice (for example, from version 1 to version 3) and the detector instances are reset. Also, be aware that if you attempt to update several detector models at once using AWS CloudFormation , some updates may succeed and others fail. In this case, the effects on each detector model's detector instances and version number depend on whether the update succeeded or failed, with the results as stated. - CloudformationResource:
- AWS::IoTEvents::DetectorModel 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents cfn_detector_model = iotevents.CfnDetectorModel(self, "MyCfnDetectorModel", detector_model_definition=iotevents.CfnDetectorModel.DetectorModelDefinitionProperty( initial_state_name="initialStateName", states=[iotevents.CfnDetectorModel.StateProperty( state_name="stateName", # the properties below are optional on_enter=iotevents.CfnDetectorModel.OnEnterProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )] ), on_exit=iotevents.CfnDetectorModel.OnExitProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )] ), on_input=iotevents.CfnDetectorModel.OnInputProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )], transition_events=[iotevents.CfnDetectorModel.TransitionEventProperty( condition="condition", event_name="eventName", next_state="nextState", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )] )] ) )] ), role_arn="roleArn", # the properties below are optional detector_model_description="detectorModelDescription", detector_model_name="detectorModelName", evaluation_method="evaluationMethod", key="key", tags=[CfnTag( key="key", value="value" )] ) - Create a new - AWS::IoTEvents::DetectorModel.- Parameters:
- scope ( - Construct) –- scope in which this resource is defined. 
 
- id ( - str) –- scoped id of the resource. 
 
- detector_model_definition ( - Union[- IResolvable,- DetectorModelDefinitionProperty,- Dict[- str,- Any]]) – Information that defines how a detector operates.
- role_arn ( - str) – The ARN of the role that grants permission to AWS IoT Events to perform its operations.
- detector_model_description ( - Optional[- str]) – A brief description of the detector model.
- detector_model_name ( - Optional[- str]) – The name of the detector model.
- evaluation_method ( - Optional[- str]) – Information about the order in which events are evaluated and how actions are executed.
- key ( - Optional[- str]) – The value used to identify a detector instance. When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information. This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value.
- tags ( - Optional[- Sequence[- Union[- CfnTag,- Dict[- str,- Any]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag .
 
 - Methods - add_deletion_override(path)
- Syntactic sugar for - addOverride(path, undefined).- Parameters:
- path ( - str) – The path of the value to delete.
- Return type:
- None
 
 - add_depends_on(target)
- Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. - This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope. - Parameters:
- target ( - CfnResource)
- Return type:
- None
 
 - add_metadata(key, value)
- Add a value to the CloudFormation Resource Metadata. - Parameters:
- key ( - str)
- value ( - Any)
 
- See:
- Return type:
- None
 - Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly. 
 - add_override(path, value)
- Adds an override to the synthesized CloudFormation resource. - To add a property override, either use - addPropertyOverrideor prefix- pathwith “Properties.” (i.e.- Properties.TopicName).- If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path. - To include a literal - .in the property name, prefix with a- \. In most programming languages you will need to write this as- "\\."because the- \itself will need to be escaped.- For example: - cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"]) cfn_resource.add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE") - would add the overrides Example: - "Properties": { "GlobalSecondaryIndexes": [ { "Projection": { "NonKeyAttributes": [ "myattribute" ] ... } ... }, { "ProjectionType": "INCLUDE" ... }, ] ... } - The - valueargument to- addOverridewill not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.- Parameters:
- path ( - str) –- The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed. 
 
- value ( - Any) –- The value. Could be primitive or complex. 
 
 
- Return type:
- None
 
 - add_property_deletion_override(property_path)
- Adds an override that deletes the value of a property from the resource definition. - Parameters:
- property_path ( - str) – The path to the property.
- Return type:
- None
 
 - add_property_override(property_path, value)
- Adds an override to a resource property. - Syntactic sugar for - addOverride("Properties.<...>", value).- Parameters:
- property_path ( - str) – The path of the property.
- value ( - Any) – The value.
 
- Return type:
- None
 
 - apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)
- Sets the deletion policy of the resource based on the removal policy specified. - The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced. - The resource can be deleted ( - RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (- RemovalPolicy.RETAIN).- Parameters:
- policy ( - Optional[- RemovalPolicy])
- apply_to_update_replace_policy ( - Optional[- bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true
- default ( - Optional[- RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource’s documentation.
 
- Return type:
- None
 
 - get_att(attribute_name)
- Returns a token for an runtime attribute of this resource. - Ideally, use generated attribute accessors (e.g. - resource.arn), but this can be used for future compatibility in case there is no generated attribute.- Parameters:
- attribute_name ( - str) – The name of the attribute.
- Return type:
 
 - get_metadata(key)
- Retrieve a value value from the CloudFormation Resource Metadata. - Parameters:
- key ( - str)
- See:
- Return type:
- Any
 - Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly. 
 - inspect(inspector)
- Examines the CloudFormation resource and discloses attributes. - Parameters:
- inspector ( - TreeInspector) –- tree inspector to collect and process attributes. 
 
- Return type:
- None
 
 - override_logical_id(new_logical_id)
- Overrides the auto-generated logical ID with a specific ID. - Parameters:
- new_logical_id ( - str) – The new logical ID to use for this stack element.
- Return type:
- None
 
 - to_string()
- Returns a string representation of this construct. - Return type:
- str
- Returns:
- a string representation of this resource 
 
 - Attributes - CFN_RESOURCE_TYPE_NAME = 'AWS::IoTEvents::DetectorModel'
 - cfn_options
- Options for this resource, such as condition, update policy etc. 
 - cfn_resource_type
- AWS resource type. 
 - creation_stack
- return: - the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered. 
 - detector_model_definition
- Information that defines how a detector operates. 
 - detector_model_description
- A brief description of the detector model. 
 - detector_model_name
- The name of the detector model. 
 - evaluation_method
- Information about the order in which events are evaluated and how actions are executed. 
 - key
- The value used to identify a detector instance. - When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information. - This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value. 
 - logical_id
- The logical ID for this CloudFormation stack element. - The logical ID of the element is calculated from the path of the resource node in the construct tree. - To override this value, use - overrideLogicalId(newLogicalId).- Returns:
 - the logical ID as a stringified token. This value will only get resolved during synthesis. 
 - node
- The construct tree node associated with this construct. 
 - ref
- Return a string that will be resolved to a CloudFormation - { Ref }for this element.- If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through - Lazy.any({ produce: resource.ref }).
 - role_arn
- The ARN of the role that grants permission to AWS IoT Events to perform its operations. 
 - stack
- The stack in which this element is defined. - CfnElements must be defined within a stack scope (directly or indirectly). 
 - Static Methods - classmethod is_cfn_element(x)
- Returns - trueif a construct is a stack element (i.e. part of the synthesized cloudformation template).- Uses duck-typing instead of - instanceofto allow stack elements from different versions of this library to be included in the same stack.- Parameters:
- x ( - Any)
- Return type:
- bool
- Returns:
- The construct as a stack element or undefined if it is not a stack element. 
 
 - classmethod is_cfn_resource(construct)
- Check whether the given construct is a CfnResource. - Parameters:
- construct ( - IConstruct)
- Return type:
- bool
 
 - classmethod is_construct(x)
- Return whether the given object is a Construct. - Parameters:
- x ( - Any)
- Return type:
- bool
 
 
ActionProperty
- class CfnDetectorModel.ActionProperty(*, clear_timer=None, dynamo_db=None, dynamo_d_bv2=None, firehose=None, iot_events=None, iot_site_wise=None, iot_topic_publish=None, lambda_=None, reset_timer=None, set_timer=None, set_variable=None, sns=None, sqs=None)
- Bases: - object- An action to be performed when the - conditionis TRUE.- Parameters:
- clear_timer ( - Union[- IResolvable,- ClearTimerProperty,- Dict[- str,- Any],- None]) – Information needed to clear the timer.
- dynamo_db ( - Union[- IResolvable,- DynamoDBProperty,- Dict[- str,- Any],- None]) – 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 .
- dynamo_d_bv2 ( - Union[- IResolvable,- DynamoDBv2Property,- Dict[- str,- Any],- None]) –- 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 . 
- firehose ( - Union[- IResolvable,- FirehoseProperty,- Dict[- str,- Any],- None]) – Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
- iot_events ( - Union[- IResolvable,- IotEventsProperty,- Dict[- str,- Any],- None]) – Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.
- iot_site_wise ( - Union[- IResolvable,- IotSiteWiseProperty,- Dict[- str,- Any],- None]) – Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .
- iot_topic_publish ( - Union[- IResolvable,- IotTopicPublishProperty,- Dict[- str,- Any],- None]) – Publishes an MQTT message with the given topic to the AWS IoT message broker.
- lambda – Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action. 
- reset_timer ( - Union[- IResolvable,- ResetTimerProperty,- Dict[- str,- Any],- None]) – Information needed to reset the timer.
- set_timer ( - Union[- IResolvable,- SetTimerProperty,- Dict[- str,- Any],- None]) – Information needed to set the timer.
- set_variable ( - Union[- IResolvable,- SetVariableProperty,- Dict[- str,- Any],- None]) – Sets a variable to a specified value.
- sns ( - Union[- IResolvable,- SnsProperty,- Dict[- str,- Any],- None]) – Sends an Amazon SNS message.
- sqs ( - Union[- IResolvable,- SqsProperty,- Dict[- str,- Any],- None]) – Sends an Amazon SNS message.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents action_property = iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) ) - Attributes - clear_timer
- Information needed to clear the timer. 
 - dynamo_d_bv2
- 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 . 
 - dynamo_db
- 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 . 
 - firehose
- Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream. 
 - iot_events
- Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action. 
 - iot_site_wise
- Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise . 
 - iot_topic_publish
- Publishes an MQTT message with the given topic to the AWS IoT message broker. 
 - lambda_
- Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action. 
 - reset_timer
- Information needed to reset the timer. 
 - set_timer
- Information needed to set the timer. 
 - set_variable
- Sets a variable to a specified value. 
 - sns
- Sends an Amazon SNS message. 
 - sqs
- Sends an Amazon SNS message. 
 
AssetPropertyTimestampProperty
- class CfnDetectorModel.AssetPropertyTimestampProperty(*, time_in_seconds, offset_in_nanos=None)
- Bases: - object- A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference . - You must use expressions for all parameters in - AssetPropertyTimestamp. The expressions accept literals, operators, functions, references, and substitution templates.- Examples - For literal values, the expressions must contain single quotes. For example, the value for the - timeInSecondsparameter can be- '1586400675'.- For references, you must specify either variables or input values. For example, the value for the - offsetInNanosparameter can be- $variable.time.
- For a substitution template, you must use - ${}, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
 - In the following example, the value for the - timeInSecondsparameter uses a substitution template.- '${$input.TemperatureInput.sensorData.timestamp / 1000}'- For more information, see Expressions in the AWS IoT Events Developer Guide . - Parameters:
- time_in_seconds ( - str) – The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.
- offset_in_nanos ( - Optional[- str]) – The nanosecond offset converted from- timeInSeconds. The valid range is between 0-999999999.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents asset_property_timestamp_property = iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) - Attributes - offset_in_nanos
- The nanosecond offset converted from - timeInSeconds.- The valid range is between 0-999999999. 
 - time_in_seconds
- The timestamp, in seconds, in the Unix epoch format. - The valid range is between 1-31556889864403199. 
 
AssetPropertyValueProperty
- class CfnDetectorModel.AssetPropertyValueProperty(*, value, quality=None, timestamp=None)
- Bases: - object- A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference . - You must use expressions for all parameters in - AssetPropertyValue. The expressions accept literals, operators, functions, references, and substitution templates.- Examples - For literal values, the expressions must contain single quotes. For example, the value for the - qualityparameter can be- 'GOOD'.- For references, you must specify either variables or input values. For example, the value for the - qualityparameter can be- $input.TemperatureInput.sensorData.quality.
 - For more information, see Expressions in the AWS IoT Events Developer Guide . - Parameters:
- value ( - Union[- IResolvable,- AssetPropertyVariantProperty,- Dict[- str,- Any]]) – The value to send to an asset property.
- quality ( - Optional[- str]) – The quality of the asset property value. The value must be- 'GOOD',- 'BAD', or- 'UNCERTAIN'.
- timestamp ( - Union[- IResolvable,- AssetPropertyTimestampProperty,- Dict[- str,- Any],- None]) – The timestamp associated with the asset property value. The default is the current event time.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents asset_property_value_property = iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ) - Attributes - quality
- The quality of the asset property value. - The value must be - 'GOOD',- 'BAD', or- 'UNCERTAIN'.
 - timestamp
- The timestamp associated with the asset property value. - The default is the current event time. 
 - value
- The value to send to an asset property. 
 
AssetPropertyVariantProperty
- class CfnDetectorModel.AssetPropertyVariantProperty(*, boolean_value=None, double_value=None, integer_value=None, string_value=None)
- Bases: - object- A structure that contains an asset property value. - For more information, see Variant in the AWS IoT SiteWise API Reference . - You must use expressions for all parameters in - AssetPropertyVariant. The expressions accept literals, operators, functions, references, and substitution templates.- Examples - For literal values, the expressions must contain single quotes. For example, the value for the - integerValueparameter can be- '100'.- For references, you must specify either variables or parameters. For example, the value for the - booleanValueparameter can be- $variable.offline.
- For a substitution template, you must use - ${}, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
 - In the following example, the value for the - doubleValueparameter uses a substitution template.- '${$input.TemperatureInput.sensorData.temperature * 6 / 5 + 32}'- For more information, see Expressions in the AWS IoT Events Developer Guide . - You must specify one of the following value types, depending on the - dataTypeof the specified asset property. For more information, see AssetProperty in the AWS IoT SiteWise API Reference .- Parameters:
- boolean_value ( - Optional[- str]) – The asset property value is a Boolean value that must be- 'TRUE'or- 'FALSE'. You must use an expression, and the evaluated result should be a Boolean value.
- double_value ( - Optional[- str]) – The asset property value is a double. You must use an expression, and the evaluated result should be a double.
- integer_value ( - Optional[- str]) – The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
- string_value ( - Optional[- str]) – The asset property value is a string. You must use an expression, and the evaluated result should be a string.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents asset_property_variant_property = iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ) - Attributes - boolean_value
- The asset property value is a Boolean value that must be - 'TRUE'or- 'FALSE'.- You must use an expression, and the evaluated result should be a Boolean value. 
 - double_value
- The asset property value is a double. - You must use an expression, and the evaluated result should be a double. 
 - integer_value
- The asset property value is an integer. - You must use an expression, and the evaluated result should be an integer. 
 - string_value
- The asset property value is a string. - You must use an expression, and the evaluated result should be a string. 
 
ClearTimerProperty
- class CfnDetectorModel.ClearTimerProperty(*, timer_name)
- Bases: - object- Information needed to clear the timer. - Parameters:
- timer_name ( - str) – The name of the timer to clear.
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents clear_timer_property = iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ) - Attributes - timer_name
- The name of the timer to clear. 
 
DetectorModelDefinitionProperty
- class CfnDetectorModel.DetectorModelDefinitionProperty(*, initial_state_name, states)
- Bases: - object- Information that defines how a detector operates. - Parameters:
- initial_state_name ( - str) – The state that is entered at the creation of each detector (instance).
- states ( - Union[- IResolvable,- Sequence[- Union[- IResolvable,- StateProperty,- Dict[- str,- Any]]]]) – Information about the states of the detector.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents detector_model_definition_property = iotevents.CfnDetectorModel.DetectorModelDefinitionProperty( initial_state_name="initialStateName", states=[iotevents.CfnDetectorModel.StateProperty( state_name="stateName", # the properties below are optional on_enter=iotevents.CfnDetectorModel.OnEnterProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )] ), on_exit=iotevents.CfnDetectorModel.OnExitProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )] ), on_input=iotevents.CfnDetectorModel.OnInputProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )], transition_events=[iotevents.CfnDetectorModel.TransitionEventProperty( condition="condition", event_name="eventName", next_state="nextState", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )] )] ) )] ) - Attributes - initial_state_name
- The state that is entered at the creation of each detector (instance). 
 - states
- Information about the states of the detector. 
 
DynamoDBProperty
- class CfnDetectorModel.DynamoDBProperty(*, hash_key_field, hash_key_value, table_name, hash_key_type=None, operation=None, payload=None, payload_field=None, range_key_field=None, range_key_type=None, range_key_value=None)
- Bases: - object- Defines an action to write to the Amazon DynamoDB table that you created. - The standard action payload contains all 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. - You must use expressions for all parameters in - DynamoDBAction. The expressions accept literals, operators, functions, references, and substitution templates.- Examples - For literal values, the expressions must contain single quotes. For example, the value for the - hashKeyTypeparameter can be- 'STRING'.- For references, you must specify either variables or input values. For example, the value for the - hashKeyFieldparameter can be- $input.GreenhouseInput.name.
- For a substitution template, you must use - ${}, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
 - In the following example, the value for the - hashKeyValueparameter uses a substitution template.- '${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'- For a string concatenation, you must use - +. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
 - In the following example, the value for the - tableNameparameter uses a string concatenation.- 'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date- For more information, see Expressions in the AWS IoT Events Developer Guide . - If the defined payload type is a string, - DynamoDBActionwrites non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the- payloadFieldparameter is- <payload-field>_raw.- Parameters:
- hash_key_field ( - str) – The name of the hash key (also called the partition key). The- hashKeyFieldvalue must match the partition key of the target DynamoDB table.
- hash_key_value ( - str) – The value of the hash key (also called the partition key).
- table_name ( - str) – The name of the DynamoDB table. The- tableNamevalue must match the table name of the target DynamoDB table.
- hash_key_type ( - Optional[- str]) – The data type for the hash key (also called the partition key). You can specify the following values:. -- 'STRING'- The hash key is a string. -- 'NUMBER'- The hash key is a number. If you don’t specify- hashKeyType, the default value is- 'STRING'.
- operation ( - Optional[- str]) – The type of operation to perform. You can specify the following values:. -- 'INSERT'- Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. -- 'UPDATE'- Update an existing item of the DynamoDB table with new data. This item’s partition key must match the specified hash key. If you specified a range key, the range key must match the item’s sort key. -- 'DELETE'- Delete an existing item of the DynamoDB table. This item’s partition key must match the specified hash key. If you specified a range key, the range key must match the item’s sort key. If you don’t specify this parameter, AWS IoT Events triggers the- 'INSERT'operation.
- payload ( - Union[- IResolvable,- PayloadProperty,- Dict[- str,- Any],- None]) – Information needed to configure the payload. 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.
- payload_field ( - Optional[- str]) – The name of the DynamoDB column that receives the action payload. If you don’t specify this parameter, the name of the DynamoDB column is- payload.
- range_key_field ( - Optional[- str]) – The name of the range key (also called the sort key). The- rangeKeyFieldvalue must match the sort key of the target DynamoDB table.
- range_key_type ( - Optional[- str]) – The data type for the range key (also called the sort key), You can specify the following values:. -- 'STRING'- The range key is a string. -- 'NUMBER'- The range key is number. If you don’t specify- rangeKeyField, the default value is- 'STRING'.
- range_key_value ( - Optional[- str]) – The value of the range key (also called the sort key).
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents dynamo_dBProperty = iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ) - Attributes - hash_key_field
- The name of the hash key (also called the partition key). - The - hashKeyFieldvalue must match the partition key of the target DynamoDB table.
 - hash_key_type
- . - 'STRING'- The hash key is a string.
- 'NUMBER'- The hash key is a number.
 - If you don’t specify - hashKeyType, the default value is- 'STRING'.- Link:
- Type:
- The data type for the hash key (also called the partition key). You can specify the following values 
 
 - hash_key_value
- The value of the hash key (also called the partition key). 
 - operation
- . - 'INSERT'- Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key.
- 'UPDATE'- Update an existing item of the DynamoDB table with new data. This item’s partition key must match the specified hash key. If you specified a range key, the range key must match the item’s sort key.
- 'DELETE'- Delete an existing item of the DynamoDB table. This item’s partition key must match the specified hash key. If you specified a range key, the range key must match the item’s sort key.
 - If you don’t specify this parameter, AWS IoT Events triggers the - 'INSERT'operation.- Link:
- Type:
- The type of operation to perform. You can specify the following values 
 
 - payload
- Information needed to configure the payload. - 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.
 - payload_field
- The name of the DynamoDB column that receives the action payload. - If you don’t specify this parameter, the name of the DynamoDB column is - payload.
 - range_key_field
- The name of the range key (also called the sort key). - The - rangeKeyFieldvalue must match the sort key of the target DynamoDB table.
 - range_key_type
- . - 'STRING'- The range key is a string.
- 'NUMBER'- The range key is number.
 - If you don’t specify - rangeKeyField, the default value is- 'STRING'.- Link:
- Type:
- The data type for the range key (also called the sort key), You can specify the following values 
 
 - range_key_value
- The value of the range key (also called the sort key). 
 - table_name
- The name of the DynamoDB table. - The - tableNamevalue must match the table name of the target DynamoDB table.
 
DynamoDBv2Property
- class CfnDetectorModel.DynamoDBv2Property(*, table_name, payload=None)
- Bases: - object- Defines an action to write to the Amazon DynamoDB table that you created. - The default action payload contains all 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. - You must use expressions for all parameters in - DynamoDBv2Action. The expressions accept literals, operators, functions, references, and substitution templates.- Examples - For literal values, the expressions must contain single quotes. For example, the value for the - tableNameparameter can be- 'GreenhouseTemperatureTable'.- For references, you must specify either variables or input values. For example, the value for the - tableNameparameter can be- $variable.ddbtableName.
- For a substitution template, you must use - ${}, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
 - In the following example, the value for the - contentExpressionparameter in- Payloaduses a substitution template.- '{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'- For a string concatenation, you must use - +. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
 - In the following example, the value for the - tableNameparameter uses a string concatenation.- 'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date- For more information, see Expressions in the AWS IoT Events Developer Guide . - The value for the - typeparameter in- Payloadmust be- JSON.- Parameters:
- table_name ( - str) – The name of the DynamoDB table.
- payload ( - Union[- IResolvable,- PayloadProperty,- Dict[- str,- Any],- None]) – Information needed to configure the payload. 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.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents dynamo_dBv2_property = iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ) - Attributes - payload
- Information needed to configure the payload. - 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.
 - table_name
- The name of the DynamoDB table. 
 
EventProperty
- class CfnDetectorModel.EventProperty(*, event_name, actions=None, condition=None)
- Bases: - object- Specifies the - actionsto be performed when the- conditionevaluates to TRUE.- Parameters:
- event_name ( - str) – The name of the event.
- actions ( - Union[- IResolvable,- Sequence[- Union[- ActionProperty,- Dict[- str,- Any],- IResolvable]],- None]) – The actions to be performed.
- condition ( - Optional[- str]) – Optional. The Boolean expression that, when TRUE, causes the- actionsto be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents event_property = iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" ) - Attributes - actions
- The actions to be performed. 
 - condition
- Optional. - The Boolean expression that, when TRUE, causes the - actionsto be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).
 - event_name
- The name of the event. 
 
FirehoseProperty
- class CfnDetectorModel.FirehoseProperty(*, delivery_stream_name, payload=None, separator=None)
- Bases: - object- Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream. - Parameters:
- delivery_stream_name ( - str) – The name of the Kinesis Data Firehose delivery stream where the data is written.
- payload ( - Union[- IResolvable,- PayloadProperty,- Dict[- str,- Any],- None]) – You can configure the action payload when you send a message to an Amazon Kinesis Data Firehose delivery stream.
- separator ( - Optional[- str]) – A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: ‘n’ (newline), ‘t’ (tab), ‘rn’ (Windows newline), ‘,’ (comma).
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents firehose_property = iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ) - Attributes - delivery_stream_name
- The name of the Kinesis Data Firehose delivery stream where the data is written. 
 - payload
- You can configure the action payload when you send a message to an Amazon Kinesis Data Firehose delivery stream. 
 - separator
- A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. - Valid values are: ‘n’ (newline), ‘t’ (tab), ‘rn’ (Windows newline), ‘,’ (comma). 
 
IotEventsProperty
- class CfnDetectorModel.IotEventsProperty(*, input_name, payload=None)
- Bases: - object- Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action. - Parameters:
- input_name ( - str) – The name of the AWS IoT Events input where the data is sent.
- payload ( - Union[- IResolvable,- PayloadProperty,- Dict[- str,- Any],- None]) – You can configure the action payload when you send a message to an AWS IoT Events input.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents iot_events_property = iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ) - Attributes - input_name
- The name of the AWS IoT Events input where the data is sent. 
 - payload
- You can configure the action payload when you send a message to an AWS IoT Events input. 
 
IotSiteWiseProperty
- class CfnDetectorModel.IotSiteWiseProperty(*, property_value, asset_id=None, entry_id=None, property_alias=None, property_id=None)
- Bases: - object- Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise . - You must use expressions for all parameters in - IotSiteWiseAction. The expressions accept literals, operators, functions, references, and substitutions templates.- Examples - For literal values, the expressions must contain single quotes. For example, the value for the - propertyAliasparameter can be- '/company/windfarm/3/turbine/7/temperature'.- For references, you must specify either variables or input values. For example, the value for the - assetIdparameter can be- $input.TurbineInput.assetId1.
- For a substitution template, you must use - ${}, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
 - In the following example, the value for the - propertyAliasparameter uses a substitution template.- 'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'- You must specify either - propertyAliasor both- assetIdand- propertyIdto identify the target asset property in AWS IoT SiteWise .- For more information, see Expressions in the AWS IoT Events Developer Guide . - Parameters:
- property_value ( - Union[- IResolvable,- AssetPropertyValueProperty,- Dict[- str,- Any]]) – The value to send to the asset property. This value contains timestamp, quality, and value (TQV) information.
- asset_id ( - Optional[- str]) – The ID of the asset that has the specified property.
- entry_id ( - Optional[- str]) – A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier.
- property_alias ( - Optional[- str]) – The alias of the asset property.
- property_id ( - Optional[- str]) – The ID of the asset property.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents iot_site_wise_property = iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ) - Attributes - asset_id
- The ID of the asset that has the specified property. 
 - entry_id
- A unique identifier for this entry. - You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. 
 - property_alias
- The alias of the asset property. 
 - property_id
- The ID of the asset property. 
 - property_value
- The value to send to the asset property. - This value contains timestamp, quality, and value (TQV) information. 
 
IotTopicPublishProperty
- class CfnDetectorModel.IotTopicPublishProperty(*, mqtt_topic, payload=None)
- Bases: - object- Information required to publish the MQTT message through the AWS IoT message broker. - Parameters:
- mqtt_topic ( - str) – The MQTT topic of the message. You can use a string expression that includes variables (- $variable.<variable-name>) and input values (- $input.<input-name>.<path-to-datum>) as the topic string.
- payload ( - Union[- IResolvable,- PayloadProperty,- Dict[- str,- Any],- None]) – You can configure the action payload when you publish a message to an AWS IoT Core topic.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents iot_topic_publish_property = iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ) - Attributes - mqtt_topic
- The MQTT topic of the message. - You can use a string expression that includes variables ( - $variable.<variable-name>) and input values (- $input.<input-name>.<path-to-datum>) as the topic string.
 - payload
- You can configure the action payload when you publish a message to an AWS IoT Core topic. 
 
LambdaProperty
- class CfnDetectorModel.LambdaProperty(*, function_arn, payload=None)
- Bases: - object- Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action. - Parameters:
- function_arn ( - str) – The ARN of the Lambda function that is executed.
- payload ( - Union[- IResolvable,- PayloadProperty,- Dict[- str,- Any],- None]) – You can configure the action payload when you send a message to a Lambda function.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents lambda_property = iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ) - Attributes - function_arn
- The ARN of the Lambda function that is executed. 
 - payload
- You can configure the action payload when you send a message to a Lambda function. 
 
OnEnterProperty
- class CfnDetectorModel.OnEnterProperty(*, events=None)
- Bases: - object- When entering this state, perform these - actionsif the- conditionis TRUE.- Parameters:
- events ( - Union[- IResolvable,- Sequence[- Union[- IResolvable,- EventProperty,- Dict[- str,- Any]]],- None]) – Specifies the actions that are performed when the state is entered and the- conditionis- TRUE.
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents on_enter_property = iotevents.CfnDetectorModel.OnEnterProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )] ) - Attributes - events
- Specifies the actions that are performed when the state is entered and the - conditionis- TRUE.
 
OnExitProperty
- class CfnDetectorModel.OnExitProperty(*, events=None)
- Bases: - object- When exiting this state, perform these - actionsif the specified- conditionis- TRUE.- Parameters:
- events ( - Union[- IResolvable,- Sequence[- Union[- IResolvable,- EventProperty,- Dict[- str,- Any]]],- None]) – Specifies the- actionsthat are performed when the state is exited and the- conditionis- TRUE.
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents on_exit_property = iotevents.CfnDetectorModel.OnExitProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )] ) - Attributes - events
- Specifies the - actionsthat are performed when the state is exited and the- conditionis- TRUE.
 
OnInputProperty
- class CfnDetectorModel.OnInputProperty(*, events=None, transition_events=None)
- Bases: - object- Specifies the actions performed when the - conditionevaluates to TRUE.- Parameters:
- events ( - Union[- IResolvable,- Sequence[- Union[- IResolvable,- EventProperty,- Dict[- str,- Any]]],- None]) – Specifies the actions performed when the- conditionevaluates to TRUE.
- transition_events ( - Union[- IResolvable,- Sequence[- Union[- IResolvable,- TransitionEventProperty,- Dict[- str,- Any]]],- None]) – Specifies the actions performed, and the next state entered, when a- conditionevaluates to TRUE.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents on_input_property = iotevents.CfnDetectorModel.OnInputProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )], transition_events=[iotevents.CfnDetectorModel.TransitionEventProperty( condition="condition", event_name="eventName", next_state="nextState", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )] )] ) - Attributes - events
- Specifies the actions performed when the - conditionevaluates to TRUE.
 - transition_events
- Specifies the actions performed, and the next state entered, when a - conditionevaluates to TRUE.
 
PayloadProperty
- class CfnDetectorModel.PayloadProperty(*, content_expression, type)
- Bases: - object- Information needed to configure the payload. - 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.- Parameters:
- content_expression ( - str) – The content of the payload. 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 ( - str) – The value of the payload type can be either- STRINGor- JSON.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents payload_property = iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) - Attributes - content_expression
- The content of the payload. - 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 - STRINGor- JSON.
 
ResetTimerProperty
- class CfnDetectorModel.ResetTimerProperty(*, timer_name)
- Bases: - object- Information required to reset the timer. - The timer is reset to the previously evaluated result of the duration. The duration expression isn’t reevaluated when you reset the timer. - Parameters:
- timer_name ( - str) – The name of the timer to reset.
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents reset_timer_property = iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ) - Attributes - timer_name
- The name of the timer to reset. 
 
SetTimerProperty
- class CfnDetectorModel.SetTimerProperty(*, timer_name, duration_expression=None, seconds=None)
- Bases: - object- Information needed to set the timer. - Parameters:
- timer_name ( - str) – The name of the timer.
- duration_expression ( - Optional[- str]) – The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (- $variable.<variable-name>), and input values (- $input.<input-name>.<path-to-datum>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.
- seconds ( - Union[- int,- float,- None]) – The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents set_timer_property = iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ) - Attributes - duration_expression
- The duration of the timer, in seconds. - You can use a string expression that includes numbers, variables ( - $variable.<variable-name>), and input values (- $input.<input-name>.<path-to-datum>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.
 - seconds
- The number of seconds until the timer expires. - The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds. 
 
SetVariableProperty
- class CfnDetectorModel.SetVariableProperty(*, value, variable_name)
- Bases: - object- Information about the variable and its new value. - Parameters:
- value ( - str) – The new value of the variable.
- variable_name ( - str) – The name of the variable.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents set_variable_property = iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ) - Attributes - value
- The new value of the variable. 
 - variable_name
- The name of the variable. 
 
SnsProperty
- class CfnDetectorModel.SnsProperty(*, target_arn, payload=None)
- Bases: - object- Information required to publish the Amazon SNS message. - Parameters:
- target_arn ( - str) – The ARN of the Amazon SNS target where the message is sent.
- payload ( - Union[- IResolvable,- PayloadProperty,- Dict[- str,- Any],- None]) – You can configure the action payload when you send a message as an Amazon SNS push notification.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents sns_property = iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ) - Attributes - payload
- You can configure the action payload when you send a message as an Amazon SNS push notification. 
 - target_arn
- The ARN of the Amazon SNS target where the message is sent. 
 
SqsProperty
- class CfnDetectorModel.SqsProperty(*, queue_url, payload=None, use_base64=None)
- Bases: - object- Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue. - Parameters:
- queue_url ( - str) – The URL of the SQS queue where the data is written.
- payload ( - Union[- IResolvable,- PayloadProperty,- Dict[- str,- Any],- None]) – You can configure the action payload when you send a message to an Amazon SQS queue.
- use_base64 ( - Union[- bool,- IResolvable,- None]) – Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents sqs_property = iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) - Attributes - payload
- You can configure the action payload when you send a message to an Amazon SQS queue. 
 - queue_url
- The URL of the SQS queue where the data is written. 
 - use_base64
- Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. - Otherwise, set this to FALSE. 
 
StateProperty
- class CfnDetectorModel.StateProperty(*, state_name, on_enter=None, on_exit=None, on_input=None)
- Bases: - object- Information that defines a state of a detector. - Parameters:
- state_name ( - str) – The name of the state.
- on_enter ( - Union[- IResolvable,- OnEnterProperty,- Dict[- str,- Any],- None]) – When entering this state, perform these- actionsif the- conditionis TRUE.
- on_exit ( - Union[- IResolvable,- OnExitProperty,- Dict[- str,- Any],- None]) – When exiting this state, perform these- actionsif the specified- conditionis- TRUE.
- on_input ( - Union[- IResolvable,- OnInputProperty,- Dict[- str,- Any],- None]) – When an input is received and the- conditionis TRUE, perform the specified- actions.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents state_property = iotevents.CfnDetectorModel.StateProperty( state_name="stateName", # the properties below are optional on_enter=iotevents.CfnDetectorModel.OnEnterProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )] ), on_exit=iotevents.CfnDetectorModel.OnExitProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )] ), on_input=iotevents.CfnDetectorModel.OnInputProperty( events=[iotevents.CfnDetectorModel.EventProperty( event_name="eventName", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )], condition="condition" )], transition_events=[iotevents.CfnDetectorModel.TransitionEventProperty( condition="condition", event_name="eventName", next_state="nextState", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )] )] ) ) - Attributes - on_enter
- When entering this state, perform these - actionsif the- conditionis TRUE.
 - on_exit
- When exiting this state, perform these - actionsif the specified- conditionis- TRUE.
 - on_input
- When an input is received and the - conditionis TRUE, perform the specified- actions.
 - state_name
- The name of the state. 
 
TransitionEventProperty
- class CfnDetectorModel.TransitionEventProperty(*, condition, event_name, next_state, actions=None)
- Bases: - object- Specifies the actions performed and the next state entered when a - conditionevaluates to TRUE.- Parameters:
- condition ( - str) – Required. A Boolean expression that when TRUE causes the actions to be performed and the- nextStateto be entered.
- event_name ( - str) – The name of the transition event.
- next_state ( - str) – The next state to enter.
- actions ( - Union[- IResolvable,- Sequence[- Union[- ActionProperty,- Dict[- str,- Any],- IResolvable]],- None]) – The actions to be performed.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iotevents as iotevents transition_event_property = iotevents.CfnDetectorModel.TransitionEventProperty( condition="condition", event_name="eventName", next_state="nextState", # the properties below are optional actions=[iotevents.CfnDetectorModel.ActionProperty( clear_timer=iotevents.CfnDetectorModel.ClearTimerProperty( timer_name="timerName" ), dynamo_db=iotevents.CfnDetectorModel.DynamoDBProperty( hash_key_field="hashKeyField", hash_key_value="hashKeyValue", table_name="tableName", # the properties below are optional hash_key_type="hashKeyType", operation="operation", payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue" ), dynamo_dBv2=iotevents.CfnDetectorModel.DynamoDBv2Property( table_name="tableName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), firehose=iotevents.CfnDetectorModel.FirehoseProperty( delivery_stream_name="deliveryStreamName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), separator="separator" ), iot_events=iotevents.CfnDetectorModel.IotEventsProperty( input_name="inputName", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), iot_site_wise=iotevents.CfnDetectorModel.IotSiteWiseProperty( property_value=iotevents.CfnDetectorModel.AssetPropertyValueProperty( value=iotevents.CfnDetectorModel.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ), # the properties below are optional quality="quality", timestamp=iotevents.CfnDetectorModel.AssetPropertyTimestampProperty( time_in_seconds="timeInSeconds", # the properties below are optional offset_in_nanos="offsetInNanos" ) ), # the properties below are optional asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId" ), iot_topic_publish=iotevents.CfnDetectorModel.IotTopicPublishProperty( mqtt_topic="mqttTopic", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), lambda_=iotevents.CfnDetectorModel.LambdaProperty( function_arn="functionArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), reset_timer=iotevents.CfnDetectorModel.ResetTimerProperty( timer_name="timerName" ), set_timer=iotevents.CfnDetectorModel.SetTimerProperty( timer_name="timerName", # the properties below are optional duration_expression="durationExpression", seconds=123 ), set_variable=iotevents.CfnDetectorModel.SetVariableProperty( value="value", variable_name="variableName" ), sns=iotevents.CfnDetectorModel.SnsProperty( target_arn="targetArn", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ) ), sqs=iotevents.CfnDetectorModel.SqsProperty( queue_url="queueUrl", # the properties below are optional payload=iotevents.CfnDetectorModel.PayloadProperty( content_expression="contentExpression", type="type" ), use_base64=False ) )] ) - Attributes - actions
- The actions to be performed. 
 - condition
- Required. - A Boolean expression that when TRUE causes the actions to be performed and the - nextStateto be entered.
 - event_name
- The name of the transition event.