ActionConfig

class aws_cdk.aws_iotevents_alpha.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_alpha as iotevents_alpha

action_config = iotevents_alpha.ActionConfig(
    configuration=ActionProperty(
        clear_timer=ClearTimerProperty(
            timer_name="timerName"
        ),
        dynamo_db=DynamoDBProperty(
            hash_key_field="hashKeyField",
            hash_key_value="hashKeyValue",
            table_name="tableName",

            # the properties below are optional
            hash_key_type="hashKeyType",
            operation="operation",
            payload=PayloadProperty(
                content_expression="contentExpression",
                type="type"
            ),
            payload_field="payloadField",
            range_key_field="rangeKeyField",
            range_key_type="rangeKeyType",
            range_key_value="rangeKeyValue"
        ),
        dynamo_dBv2=DynamoDBv2Property(
            table_name="tableName",

            # the properties below are optional
            payload=PayloadProperty(
                content_expression="contentExpression",
                type="type"
            )
        ),
        firehose=FirehoseProperty(
            delivery_stream_name="deliveryStreamName",

            # the properties below are optional
            payload=PayloadProperty(
                content_expression="contentExpression",
                type="type"
            ),
            separator="separator"
        ),
        iot_events=IotEventsProperty(
            input_name="inputName",

            # the properties below are optional
            payload=PayloadProperty(
                content_expression="contentExpression",
                type="type"
            )
        ),
        iot_site_wise=IotSiteWiseProperty(
            property_value=AssetPropertyValueProperty(
                value=AssetPropertyVariantProperty(
                    boolean_value="booleanValue",
                    double_value="doubleValue",
                    integer_value="integerValue",
                    string_value="stringValue"
                ),

                # the properties below are optional
                quality="quality",
                timestamp=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=IotTopicPublishProperty(
            mqtt_topic="mqttTopic",

            # the properties below are optional
            payload=PayloadProperty(
                content_expression="contentExpression",
                type="type"
            )
        ),
        lambda_=LambdaProperty(
            function_arn="functionArn",

            # the properties below are optional
            payload=PayloadProperty(
                content_expression="contentExpression",
                type="type"
            )
        ),
        reset_timer=ResetTimerProperty(
            timer_name="timerName"
        ),
        set_timer=SetTimerProperty(
            timer_name="timerName",

            # the properties below are optional
            duration_expression="durationExpression",
            seconds=123
        ),
        set_variable=SetVariableProperty(
            value="value",
            variable_name="variableName"
        ),
        sns=SnsProperty(
            target_arn="targetArn",

            # the properties below are optional
            payload=PayloadProperty(
                content_expression="contentExpression",
                type="type"
            )
        ),
        sqs=SqsProperty(
            queue_url="queueUrl",

            # the properties below are optional
            payload=PayloadProperty(
                content_expression="contentExpression",
                type="type"
            ),
            use_base64=False
        )
    )
)

Attributes

configuration

(experimental) The configuration for this action.

Stability:

experimental