CfnTopicRuleMixinProps
- class aws_cdk.mixins_preview.aws_iot.mixins.CfnTopicRuleMixinProps(*, rule_name=None, tags=None, topic_rule_payload=None)
Bases:
objectProperties for CfnTopicRulePropsMixin.
- Parameters:
rule_name (
Optional[str]) – The name of the rule.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – Metadata which can be used to manage the topic rule. .. epigraph:: For URI Request parameters use format: …key1=value1&key2=value2… For the CLI command-line parameter use format: –tags “key1=value1&key2=value2…” For the cli-input-json file use format: “tags”: “key1=value1&key2=value2…”topic_rule_payload (
Union[IResolvable,TopicRulePayloadProperty,Dict[str,Any],None]) – The rule payload.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-topicrule.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iot import mixins as iot_mixins cfn_topic_rule_mixin_props = iot_mixins.CfnTopicRuleMixinProps( rule_name="ruleName", tags=[CfnTag( key="key", value="value" )], topic_rule_payload=iot_mixins.CfnTopicRulePropsMixin.TopicRulePayloadProperty( actions=[iot_mixins.CfnTopicRulePropsMixin.ActionProperty( cloudwatch_alarm=iot_mixins.CfnTopicRulePropsMixin.CloudwatchAlarmActionProperty( alarm_name="alarmName", role_arn="roleArn", state_reason="stateReason", state_value="stateValue" ), cloudwatch_logs=iot_mixins.CfnTopicRulePropsMixin.CloudwatchLogsActionProperty( batch_mode=False, log_group_name="logGroupName", role_arn="roleArn" ), cloudwatch_metric=iot_mixins.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty( metric_name="metricName", metric_namespace="metricNamespace", metric_timestamp="metricTimestamp", metric_unit="metricUnit", metric_value="metricValue", role_arn="roleArn" ), dynamo_db=iot_mixins.CfnTopicRulePropsMixin.DynamoDBActionProperty( hash_key_field="hashKeyField", hash_key_type="hashKeyType", hash_key_value="hashKeyValue", payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue", role_arn="roleArn", table_name="tableName" ), dynamo_dBv2=iot_mixins.CfnTopicRulePropsMixin.DynamoDBv2ActionProperty( put_item=iot_mixins.CfnTopicRulePropsMixin.PutItemInputProperty( table_name="tableName" ), role_arn="roleArn" ), elasticsearch=iot_mixins.CfnTopicRulePropsMixin.ElasticsearchActionProperty( endpoint="endpoint", id="id", index="index", role_arn="roleArn", type="type" ), firehose=iot_mixins.CfnTopicRulePropsMixin.FirehoseActionProperty( batch_mode=False, delivery_stream_name="deliveryStreamName", role_arn="roleArn", separator="separator" ), http=iot_mixins.CfnTopicRulePropsMixin.HttpActionProperty( auth=iot_mixins.CfnTopicRulePropsMixin.HttpAuthorizationProperty( sigv4=iot_mixins.CfnTopicRulePropsMixin.SigV4AuthorizationProperty( role_arn="roleArn", service_name="serviceName", signing_region="signingRegion" ) ), confirmation_url="confirmationUrl", headers=[iot_mixins.CfnTopicRulePropsMixin.HttpActionHeaderProperty( key="key", value="value" )], url="url" ), iot_analytics=iot_mixins.CfnTopicRulePropsMixin.IotAnalyticsActionProperty( batch_mode=False, channel_name="channelName", role_arn="roleArn" ), iot_events=iot_mixins.CfnTopicRulePropsMixin.IotEventsActionProperty( batch_mode=False, input_name="inputName", message_id="messageId", role_arn="roleArn" ), iot_site_wise=iot_mixins.CfnTopicRulePropsMixin.IotSiteWiseActionProperty( put_asset_property_value_entries=[iot_mixins.CfnTopicRulePropsMixin.PutAssetPropertyValueEntryProperty( asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId", property_values=[iot_mixins.CfnTopicRulePropsMixin.AssetPropertyValueProperty( quality="quality", timestamp=iot_mixins.CfnTopicRulePropsMixin.AssetPropertyTimestampProperty( offset_in_nanos="offsetInNanos", time_in_seconds="timeInSeconds" ), value=iot_mixins.CfnTopicRulePropsMixin.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ) )] )], role_arn="roleArn" ), kafka=iot_mixins.CfnTopicRulePropsMixin.KafkaActionProperty( client_properties={ "client_properties_key": "clientProperties" }, destination_arn="destinationArn", headers=[iot_mixins.CfnTopicRulePropsMixin.KafkaActionHeaderProperty( key="key", value="value" )], key="key", partition="partition", topic="topic" ), kinesis=iot_mixins.CfnTopicRulePropsMixin.KinesisActionProperty( partition_key="partitionKey", role_arn="roleArn", stream_name="streamName" ), lambda_=iot_mixins.CfnTopicRulePropsMixin.LambdaActionProperty( function_arn="functionArn" ), location=iot_mixins.CfnTopicRulePropsMixin.LocationActionProperty( device_id="deviceId", latitude="latitude", longitude="longitude", role_arn="roleArn", timestamp=iot_mixins.CfnTopicRulePropsMixin.TimestampProperty( unit="unit", value="value" ), tracker_name="trackerName" ), open_search=iot_mixins.CfnTopicRulePropsMixin.OpenSearchActionProperty( endpoint="endpoint", id="id", index="index", role_arn="roleArn", type="type" ), republish=iot_mixins.CfnTopicRulePropsMixin.RepublishActionProperty( headers=iot_mixins.CfnTopicRulePropsMixin.RepublishActionHeadersProperty( content_type="contentType", correlation_data="correlationData", message_expiry="messageExpiry", payload_format_indicator="payloadFormatIndicator", response_topic="responseTopic", user_properties=[iot_mixins.CfnTopicRulePropsMixin.UserPropertyProperty( key="key", value="value" )] ), qos=123, role_arn="roleArn", topic="topic" ), s3=iot_mixins.CfnTopicRulePropsMixin.S3ActionProperty( bucket_name="bucketName", canned_acl="cannedAcl", key="key", role_arn="roleArn" ), sns=iot_mixins.CfnTopicRulePropsMixin.SnsActionProperty( message_format="messageFormat", role_arn="roleArn", target_arn="targetArn" ), sqs=iot_mixins.CfnTopicRulePropsMixin.SqsActionProperty( queue_url="queueUrl", role_arn="roleArn", use_base64=False ), step_functions=iot_mixins.CfnTopicRulePropsMixin.StepFunctionsActionProperty( execution_name_prefix="executionNamePrefix", role_arn="roleArn", state_machine_name="stateMachineName" ), timestream=iot_mixins.CfnTopicRulePropsMixin.TimestreamActionProperty( database_name="databaseName", dimensions=[iot_mixins.CfnTopicRulePropsMixin.TimestreamDimensionProperty( name="name", value="value" )], role_arn="roleArn", table_name="tableName", timestamp=iot_mixins.CfnTopicRulePropsMixin.TimestreamTimestampProperty( unit="unit", value="value" ) ) )], aws_iot_sql_version="awsIotSqlVersion", description="description", error_action=iot_mixins.CfnTopicRulePropsMixin.ActionProperty( cloudwatch_alarm=iot_mixins.CfnTopicRulePropsMixin.CloudwatchAlarmActionProperty( alarm_name="alarmName", role_arn="roleArn", state_reason="stateReason", state_value="stateValue" ), cloudwatch_logs=iot_mixins.CfnTopicRulePropsMixin.CloudwatchLogsActionProperty( batch_mode=False, log_group_name="logGroupName", role_arn="roleArn" ), cloudwatch_metric=iot_mixins.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty( metric_name="metricName", metric_namespace="metricNamespace", metric_timestamp="metricTimestamp", metric_unit="metricUnit", metric_value="metricValue", role_arn="roleArn" ), dynamo_db=iot_mixins.CfnTopicRulePropsMixin.DynamoDBActionProperty( hash_key_field="hashKeyField", hash_key_type="hashKeyType", hash_key_value="hashKeyValue", payload_field="payloadField", range_key_field="rangeKeyField", range_key_type="rangeKeyType", range_key_value="rangeKeyValue", role_arn="roleArn", table_name="tableName" ), dynamo_dBv2=iot_mixins.CfnTopicRulePropsMixin.DynamoDBv2ActionProperty( put_item=iot_mixins.CfnTopicRulePropsMixin.PutItemInputProperty( table_name="tableName" ), role_arn="roleArn" ), elasticsearch=iot_mixins.CfnTopicRulePropsMixin.ElasticsearchActionProperty( endpoint="endpoint", id="id", index="index", role_arn="roleArn", type="type" ), firehose=iot_mixins.CfnTopicRulePropsMixin.FirehoseActionProperty( batch_mode=False, delivery_stream_name="deliveryStreamName", role_arn="roleArn", separator="separator" ), http=iot_mixins.CfnTopicRulePropsMixin.HttpActionProperty( auth=iot_mixins.CfnTopicRulePropsMixin.HttpAuthorizationProperty( sigv4=iot_mixins.CfnTopicRulePropsMixin.SigV4AuthorizationProperty( role_arn="roleArn", service_name="serviceName", signing_region="signingRegion" ) ), confirmation_url="confirmationUrl", headers=[iot_mixins.CfnTopicRulePropsMixin.HttpActionHeaderProperty( key="key", value="value" )], url="url" ), iot_analytics=iot_mixins.CfnTopicRulePropsMixin.IotAnalyticsActionProperty( batch_mode=False, channel_name="channelName", role_arn="roleArn" ), iot_events=iot_mixins.CfnTopicRulePropsMixin.IotEventsActionProperty( batch_mode=False, input_name="inputName", message_id="messageId", role_arn="roleArn" ), iot_site_wise=iot_mixins.CfnTopicRulePropsMixin.IotSiteWiseActionProperty( put_asset_property_value_entries=[iot_mixins.CfnTopicRulePropsMixin.PutAssetPropertyValueEntryProperty( asset_id="assetId", entry_id="entryId", property_alias="propertyAlias", property_id="propertyId", property_values=[iot_mixins.CfnTopicRulePropsMixin.AssetPropertyValueProperty( quality="quality", timestamp=iot_mixins.CfnTopicRulePropsMixin.AssetPropertyTimestampProperty( offset_in_nanos="offsetInNanos", time_in_seconds="timeInSeconds" ), value=iot_mixins.CfnTopicRulePropsMixin.AssetPropertyVariantProperty( boolean_value="booleanValue", double_value="doubleValue", integer_value="integerValue", string_value="stringValue" ) )] )], role_arn="roleArn" ), kafka=iot_mixins.CfnTopicRulePropsMixin.KafkaActionProperty( client_properties={ "client_properties_key": "clientProperties" }, destination_arn="destinationArn", headers=[iot_mixins.CfnTopicRulePropsMixin.KafkaActionHeaderProperty( key="key", value="value" )], key="key", partition="partition", topic="topic" ), kinesis=iot_mixins.CfnTopicRulePropsMixin.KinesisActionProperty( partition_key="partitionKey", role_arn="roleArn", stream_name="streamName" ), lambda_=iot_mixins.CfnTopicRulePropsMixin.LambdaActionProperty( function_arn="functionArn" ), location=iot_mixins.CfnTopicRulePropsMixin.LocationActionProperty( device_id="deviceId", latitude="latitude", longitude="longitude", role_arn="roleArn", timestamp=iot_mixins.CfnTopicRulePropsMixin.TimestampProperty( unit="unit", value="value" ), tracker_name="trackerName" ), open_search=iot_mixins.CfnTopicRulePropsMixin.OpenSearchActionProperty( endpoint="endpoint", id="id", index="index", role_arn="roleArn", type="type" ), republish=iot_mixins.CfnTopicRulePropsMixin.RepublishActionProperty( headers=iot_mixins.CfnTopicRulePropsMixin.RepublishActionHeadersProperty( content_type="contentType", correlation_data="correlationData", message_expiry="messageExpiry", payload_format_indicator="payloadFormatIndicator", response_topic="responseTopic", user_properties=[iot_mixins.CfnTopicRulePropsMixin.UserPropertyProperty( key="key", value="value" )] ), qos=123, role_arn="roleArn", topic="topic" ), s3=iot_mixins.CfnTopicRulePropsMixin.S3ActionProperty( bucket_name="bucketName", canned_acl="cannedAcl", key="key", role_arn="roleArn" ), sns=iot_mixins.CfnTopicRulePropsMixin.SnsActionProperty( message_format="messageFormat", role_arn="roleArn", target_arn="targetArn" ), sqs=iot_mixins.CfnTopicRulePropsMixin.SqsActionProperty( queue_url="queueUrl", role_arn="roleArn", use_base64=False ), step_functions=iot_mixins.CfnTopicRulePropsMixin.StepFunctionsActionProperty( execution_name_prefix="executionNamePrefix", role_arn="roleArn", state_machine_name="stateMachineName" ), timestream=iot_mixins.CfnTopicRulePropsMixin.TimestreamActionProperty( database_name="databaseName", dimensions=[iot_mixins.CfnTopicRulePropsMixin.TimestreamDimensionProperty( name="name", value="value" )], role_arn="roleArn", table_name="tableName", timestamp=iot_mixins.CfnTopicRulePropsMixin.TimestreamTimestampProperty( unit="unit", value="value" ) ) ), rule_disabled=False, sql="sql" ) )
Attributes
- rule_name
The name of the rule.
- tags
Metadata which can be used to manage the topic rule.
For URI Request parameters use format: …key1=value1&key2=value2…
For the CLI command-line parameter use format: –tags “key1=value1&key2=value2…”
For the cli-input-json file use format: “tags”: “key1=value1&key2=value2…”
- topic_rule_payload
The rule payload.