Interface CfnTopicRuleMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTopicRuleMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:00.228Z")
@Stability(Stable)
public interface CfnTopicRuleMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnTopicRulePropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.iot.*;
CfnTopicRuleMixinProps cfnTopicRuleMixinProps = CfnTopicRuleMixinProps.builder()
.ruleName("ruleName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.topicRulePayload(TopicRulePayloadProperty.builder()
.actions(List.of(ActionProperty.builder()
.cloudwatchAlarm(CloudwatchAlarmActionProperty.builder()
.alarmName("alarmName")
.roleArn("roleArn")
.stateReason("stateReason")
.stateValue("stateValue")
.build())
.cloudwatchLogs(CloudwatchLogsActionProperty.builder()
.batchMode(false)
.logGroupName("logGroupName")
.roleArn("roleArn")
.build())
.cloudwatchMetric(CloudwatchMetricActionProperty.builder()
.metricName("metricName")
.metricNamespace("metricNamespace")
.metricTimestamp("metricTimestamp")
.metricUnit("metricUnit")
.metricValue("metricValue")
.roleArn("roleArn")
.build())
.dynamoDb(DynamoDBActionProperty.builder()
.hashKeyField("hashKeyField")
.hashKeyType("hashKeyType")
.hashKeyValue("hashKeyValue")
.payloadField("payloadField")
.rangeKeyField("rangeKeyField")
.rangeKeyType("rangeKeyType")
.rangeKeyValue("rangeKeyValue")
.roleArn("roleArn")
.tableName("tableName")
.build())
.dynamoDBv2(DynamoDBv2ActionProperty.builder()
.putItem(PutItemInputProperty.builder()
.tableName("tableName")
.build())
.roleArn("roleArn")
.build())
.elasticsearch(ElasticsearchActionProperty.builder()
.endpoint("endpoint")
.id("id")
.index("index")
.roleArn("roleArn")
.type("type")
.build())
.firehose(FirehoseActionProperty.builder()
.batchMode(false)
.deliveryStreamName("deliveryStreamName")
.roleArn("roleArn")
.separator("separator")
.build())
.http(HttpActionProperty.builder()
.auth(HttpAuthorizationProperty.builder()
.sigv4(SigV4AuthorizationProperty.builder()
.roleArn("roleArn")
.serviceName("serviceName")
.signingRegion("signingRegion")
.build())
.build())
.batchConfig(BatchConfigProperty.builder()
.maxBatchOpenMs(123)
.maxBatchSize(123)
.maxBatchSizeBytes(123)
.build())
.confirmationUrl("confirmationUrl")
.enableBatching(false)
.headers(List.of(HttpActionHeaderProperty.builder()
.key("key")
.value("value")
.build()))
.url("url")
.build())
.iotAnalytics(IotAnalyticsActionProperty.builder()
.batchMode(false)
.channelName("channelName")
.roleArn("roleArn")
.build())
.iotEvents(IotEventsActionProperty.builder()
.batchMode(false)
.inputName("inputName")
.messageId("messageId")
.roleArn("roleArn")
.build())
.iotSiteWise(IotSiteWiseActionProperty.builder()
.putAssetPropertyValueEntries(List.of(PutAssetPropertyValueEntryProperty.builder()
.assetId("assetId")
.entryId("entryId")
.propertyAlias("propertyAlias")
.propertyId("propertyId")
.propertyValues(List.of(AssetPropertyValueProperty.builder()
.quality("quality")
.timestamp(AssetPropertyTimestampProperty.builder()
.offsetInNanos("offsetInNanos")
.timeInSeconds("timeInSeconds")
.build())
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
.build()))
.build()))
.roleArn("roleArn")
.build())
.kafka(KafkaActionProperty.builder()
.clientProperties(Map.of(
"clientPropertiesKey", "clientProperties"))
.destinationArn("destinationArn")
.headers(List.of(KafkaActionHeaderProperty.builder()
.key("key")
.value("value")
.build()))
.key("key")
.partition("partition")
.topic("topic")
.build())
.kinesis(KinesisActionProperty.builder()
.partitionKey("partitionKey")
.roleArn("roleArn")
.streamName("streamName")
.build())
.lambda(LambdaActionProperty.builder()
.functionArn("functionArn")
.build())
.location(LocationActionProperty.builder()
.deviceId("deviceId")
.latitude("latitude")
.longitude("longitude")
.roleArn("roleArn")
.timestamp(TimestampProperty.builder()
.unit("unit")
.value("value")
.build())
.trackerName("trackerName")
.build())
.openSearch(OpenSearchActionProperty.builder()
.endpoint("endpoint")
.id("id")
.index("index")
.roleArn("roleArn")
.type("type")
.build())
.republish(RepublishActionProperty.builder()
.headers(RepublishActionHeadersProperty.builder()
.contentType("contentType")
.correlationData("correlationData")
.messageExpiry("messageExpiry")
.payloadFormatIndicator("payloadFormatIndicator")
.responseTopic("responseTopic")
.userProperties(List.of(UserPropertyProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.qos(123)
.roleArn("roleArn")
.topic("topic")
.build())
.s3(S3ActionProperty.builder()
.bucketName("bucketName")
.cannedAcl("cannedAcl")
.key("key")
.roleArn("roleArn")
.build())
.sns(SnsActionProperty.builder()
.messageFormat("messageFormat")
.roleArn("roleArn")
.targetArn("targetArn")
.build())
.sqs(SqsActionProperty.builder()
.queueUrl("queueUrl")
.roleArn("roleArn")
.useBase64(false)
.build())
.stepFunctions(StepFunctionsActionProperty.builder()
.executionNamePrefix("executionNamePrefix")
.roleArn("roleArn")
.stateMachineName("stateMachineName")
.build())
.timestream(TimestreamActionProperty.builder()
.databaseName("databaseName")
.dimensions(List.of(TimestreamDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.roleArn("roleArn")
.tableName("tableName")
.timestamp(TimestreamTimestampProperty.builder()
.unit("unit")
.value("value")
.build())
.build())
.build()))
.awsIotSqlVersion("awsIotSqlVersion")
.description("description")
.errorAction(ActionProperty.builder()
.cloudwatchAlarm(CloudwatchAlarmActionProperty.builder()
.alarmName("alarmName")
.roleArn("roleArn")
.stateReason("stateReason")
.stateValue("stateValue")
.build())
.cloudwatchLogs(CloudwatchLogsActionProperty.builder()
.batchMode(false)
.logGroupName("logGroupName")
.roleArn("roleArn")
.build())
.cloudwatchMetric(CloudwatchMetricActionProperty.builder()
.metricName("metricName")
.metricNamespace("metricNamespace")
.metricTimestamp("metricTimestamp")
.metricUnit("metricUnit")
.metricValue("metricValue")
.roleArn("roleArn")
.build())
.dynamoDb(DynamoDBActionProperty.builder()
.hashKeyField("hashKeyField")
.hashKeyType("hashKeyType")
.hashKeyValue("hashKeyValue")
.payloadField("payloadField")
.rangeKeyField("rangeKeyField")
.rangeKeyType("rangeKeyType")
.rangeKeyValue("rangeKeyValue")
.roleArn("roleArn")
.tableName("tableName")
.build())
.dynamoDBv2(DynamoDBv2ActionProperty.builder()
.putItem(PutItemInputProperty.builder()
.tableName("tableName")
.build())
.roleArn("roleArn")
.build())
.elasticsearch(ElasticsearchActionProperty.builder()
.endpoint("endpoint")
.id("id")
.index("index")
.roleArn("roleArn")
.type("type")
.build())
.firehose(FirehoseActionProperty.builder()
.batchMode(false)
.deliveryStreamName("deliveryStreamName")
.roleArn("roleArn")
.separator("separator")
.build())
.http(HttpActionProperty.builder()
.auth(HttpAuthorizationProperty.builder()
.sigv4(SigV4AuthorizationProperty.builder()
.roleArn("roleArn")
.serviceName("serviceName")
.signingRegion("signingRegion")
.build())
.build())
.batchConfig(BatchConfigProperty.builder()
.maxBatchOpenMs(123)
.maxBatchSize(123)
.maxBatchSizeBytes(123)
.build())
.confirmationUrl("confirmationUrl")
.enableBatching(false)
.headers(List.of(HttpActionHeaderProperty.builder()
.key("key")
.value("value")
.build()))
.url("url")
.build())
.iotAnalytics(IotAnalyticsActionProperty.builder()
.batchMode(false)
.channelName("channelName")
.roleArn("roleArn")
.build())
.iotEvents(IotEventsActionProperty.builder()
.batchMode(false)
.inputName("inputName")
.messageId("messageId")
.roleArn("roleArn")
.build())
.iotSiteWise(IotSiteWiseActionProperty.builder()
.putAssetPropertyValueEntries(List.of(PutAssetPropertyValueEntryProperty.builder()
.assetId("assetId")
.entryId("entryId")
.propertyAlias("propertyAlias")
.propertyId("propertyId")
.propertyValues(List.of(AssetPropertyValueProperty.builder()
.quality("quality")
.timestamp(AssetPropertyTimestampProperty.builder()
.offsetInNanos("offsetInNanos")
.timeInSeconds("timeInSeconds")
.build())
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
.build()))
.build()))
.roleArn("roleArn")
.build())
.kafka(KafkaActionProperty.builder()
.clientProperties(Map.of(
"clientPropertiesKey", "clientProperties"))
.destinationArn("destinationArn")
.headers(List.of(KafkaActionHeaderProperty.builder()
.key("key")
.value("value")
.build()))
.key("key")
.partition("partition")
.topic("topic")
.build())
.kinesis(KinesisActionProperty.builder()
.partitionKey("partitionKey")
.roleArn("roleArn")
.streamName("streamName")
.build())
.lambda(LambdaActionProperty.builder()
.functionArn("functionArn")
.build())
.location(LocationActionProperty.builder()
.deviceId("deviceId")
.latitude("latitude")
.longitude("longitude")
.roleArn("roleArn")
.timestamp(TimestampProperty.builder()
.unit("unit")
.value("value")
.build())
.trackerName("trackerName")
.build())
.openSearch(OpenSearchActionProperty.builder()
.endpoint("endpoint")
.id("id")
.index("index")
.roleArn("roleArn")
.type("type")
.build())
.republish(RepublishActionProperty.builder()
.headers(RepublishActionHeadersProperty.builder()
.contentType("contentType")
.correlationData("correlationData")
.messageExpiry("messageExpiry")
.payloadFormatIndicator("payloadFormatIndicator")
.responseTopic("responseTopic")
.userProperties(List.of(UserPropertyProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.qos(123)
.roleArn("roleArn")
.topic("topic")
.build())
.s3(S3ActionProperty.builder()
.bucketName("bucketName")
.cannedAcl("cannedAcl")
.key("key")
.roleArn("roleArn")
.build())
.sns(SnsActionProperty.builder()
.messageFormat("messageFormat")
.roleArn("roleArn")
.targetArn("targetArn")
.build())
.sqs(SqsActionProperty.builder()
.queueUrl("queueUrl")
.roleArn("roleArn")
.useBase64(false)
.build())
.stepFunctions(StepFunctionsActionProperty.builder()
.executionNamePrefix("executionNamePrefix")
.roleArn("roleArn")
.stateMachineName("stateMachineName")
.build())
.timestream(TimestreamActionProperty.builder()
.databaseName("databaseName")
.dimensions(List.of(TimestreamDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.roleArn("roleArn")
.tableName("tableName")
.timestamp(TimestreamTimestampProperty.builder()
.unit("unit")
.value("value")
.build())
.build())
.build())
.ruleDisabled(false)
.sql("sql")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTopicRuleMixinPropsstatic final classAn implementation forCfnTopicRuleMixinProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRuleName
The name of the rule.- See Also:
-
getTags
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..."
- See Also:
-
getTopicRulePayload
The rule payload.Returns union: either
IResolvableorCfnTopicRulePropsMixin.TopicRulePayloadProperty- See Also:
-
builder
- Returns:
- a
CfnTopicRuleMixinProps.BuilderofCfnTopicRuleMixinProps
-