ActionConfig

class aws_cdk.aws_iotevents.ActionConfig(*, configuration)

Bases: object

(experimental) Properties for a AWS IoT Events action.

Parameters

configuration (Union[ActionProperty, Dict[str, Any]]) – (experimental) The configuration for this action.

Stability

experimental

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_config = iotevents.ActionConfig(
    configuration=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

configuration

(experimental) The configuration for this action.

Stability

experimental

Return type

ActionProperty