Class CfnTopicRule.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.ActionProperty>
- Enclosing interface:
CfnTopicRule.ActionProperty
@Stability(Stable)
public static final class CfnTopicRule.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.ActionProperty>
A builder for
CfnTopicRule.ActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudwatchAlarm
(IResolvable cloudwatchAlarm) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchAlarm()
cloudwatchAlarm
(CfnTopicRule.CloudwatchAlarmActionProperty cloudwatchAlarm) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchAlarm()
cloudwatchLogs
(IResolvable cloudwatchLogs) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchLogs()
cloudwatchLogs
(CfnTopicRule.CloudwatchLogsActionProperty cloudwatchLogs) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchLogs()
cloudwatchMetric
(IResolvable cloudwatchMetric) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchMetric()
cloudwatchMetric
(CfnTopicRule.CloudwatchMetricActionProperty cloudwatchMetric) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchMetric()
dynamoDb
(IResolvable dynamoDb) Sets the value ofCfnTopicRule.ActionProperty.getDynamoDb()
dynamoDb
(CfnTopicRule.DynamoDBActionProperty dynamoDb) Sets the value ofCfnTopicRule.ActionProperty.getDynamoDb()
dynamoDBv2
(IResolvable dynamoDBv2) Sets the value ofCfnTopicRule.ActionProperty.getDynamoDBv2()
dynamoDBv2
(CfnTopicRule.DynamoDBv2ActionProperty dynamoDBv2) Sets the value ofCfnTopicRule.ActionProperty.getDynamoDBv2()
elasticsearch
(IResolvable elasticsearch) Sets the value ofCfnTopicRule.ActionProperty.getElasticsearch()
elasticsearch
(CfnTopicRule.ElasticsearchActionProperty elasticsearch) Sets the value ofCfnTopicRule.ActionProperty.getElasticsearch()
firehose
(IResolvable firehose) Sets the value ofCfnTopicRule.ActionProperty.getFirehose()
firehose
(CfnTopicRule.FirehoseActionProperty firehose) Sets the value ofCfnTopicRule.ActionProperty.getFirehose()
http
(IResolvable http) Sets the value ofCfnTopicRule.ActionProperty.getHttp()
Sets the value ofCfnTopicRule.ActionProperty.getHttp()
iotAnalytics
(IResolvable iotAnalytics) Sets the value ofCfnTopicRule.ActionProperty.getIotAnalytics()
iotAnalytics
(CfnTopicRule.IotAnalyticsActionProperty iotAnalytics) Sets the value ofCfnTopicRule.ActionProperty.getIotAnalytics()
iotEvents
(IResolvable iotEvents) Sets the value ofCfnTopicRule.ActionProperty.getIotEvents()
iotEvents
(CfnTopicRule.IotEventsActionProperty iotEvents) Sets the value ofCfnTopicRule.ActionProperty.getIotEvents()
iotSiteWise
(IResolvable iotSiteWise) Sets the value ofCfnTopicRule.ActionProperty.getIotSiteWise()
iotSiteWise
(CfnTopicRule.IotSiteWiseActionProperty iotSiteWise) Sets the value ofCfnTopicRule.ActionProperty.getIotSiteWise()
kafka
(IResolvable kafka) Sets the value ofCfnTopicRule.ActionProperty.getKafka()
Sets the value ofCfnTopicRule.ActionProperty.getKafka()
kinesis
(IResolvable kinesis) Sets the value ofCfnTopicRule.ActionProperty.getKinesis()
Sets the value ofCfnTopicRule.ActionProperty.getKinesis()
lambda
(IResolvable lambda) Sets the value ofCfnTopicRule.ActionProperty.getLambda()
Sets the value ofCfnTopicRule.ActionProperty.getLambda()
location
(IResolvable location) Sets the value ofCfnTopicRule.ActionProperty.getLocation()
location
(CfnTopicRule.LocationActionProperty location) Sets the value ofCfnTopicRule.ActionProperty.getLocation()
openSearch
(IResolvable openSearch) Sets the value ofCfnTopicRule.ActionProperty.getOpenSearch()
openSearch
(CfnTopicRule.OpenSearchActionProperty openSearch) Sets the value ofCfnTopicRule.ActionProperty.getOpenSearch()
republish
(IResolvable republish) Sets the value ofCfnTopicRule.ActionProperty.getRepublish()
republish
(CfnTopicRule.RepublishActionProperty republish) Sets the value ofCfnTopicRule.ActionProperty.getRepublish()
s3
(IResolvable s3) Sets the value ofCfnTopicRule.ActionProperty.getS3()
Sets the value ofCfnTopicRule.ActionProperty.getS3()
sns
(IResolvable sns) Sets the value ofCfnTopicRule.ActionProperty.getSns()
Sets the value ofCfnTopicRule.ActionProperty.getSns()
sqs
(IResolvable sqs) Sets the value ofCfnTopicRule.ActionProperty.getSqs()
Sets the value ofCfnTopicRule.ActionProperty.getSqs()
stepFunctions
(IResolvable stepFunctions) Sets the value ofCfnTopicRule.ActionProperty.getStepFunctions()
stepFunctions
(CfnTopicRule.StepFunctionsActionProperty stepFunctions) Sets the value ofCfnTopicRule.ActionProperty.getStepFunctions()
timestream
(IResolvable timestream) Sets the value ofCfnTopicRule.ActionProperty.getTimestream()
timestream
(CfnTopicRule.TimestreamActionProperty timestream) Sets the value ofCfnTopicRule.ActionProperty.getTimestream()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudwatchAlarm
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder cloudwatchAlarm(IResolvable cloudwatchAlarm) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchAlarm()
- Parameters:
cloudwatchAlarm
- Change the state of a CloudWatch alarm.- Returns:
this
-
cloudwatchAlarm
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder cloudwatchAlarm(CfnTopicRule.CloudwatchAlarmActionProperty cloudwatchAlarm) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchAlarm()
- Parameters:
cloudwatchAlarm
- Change the state of a CloudWatch alarm.- Returns:
this
-
cloudwatchLogs
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder cloudwatchLogs(IResolvable cloudwatchLogs) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchLogs()
- Parameters:
cloudwatchLogs
- Sends data to CloudWatch.- Returns:
this
-
cloudwatchLogs
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder cloudwatchLogs(CfnTopicRule.CloudwatchLogsActionProperty cloudwatchLogs) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchLogs()
- Parameters:
cloudwatchLogs
- Sends data to CloudWatch.- Returns:
this
-
cloudwatchMetric
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder cloudwatchMetric(IResolvable cloudwatchMetric) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchMetric()
- Parameters:
cloudwatchMetric
- Capture a CloudWatch metric.- Returns:
this
-
cloudwatchMetric
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder cloudwatchMetric(CfnTopicRule.CloudwatchMetricActionProperty cloudwatchMetric) Sets the value ofCfnTopicRule.ActionProperty.getCloudwatchMetric()
- Parameters:
cloudwatchMetric
- Capture a CloudWatch metric.- Returns:
this
-
dynamoDb
Sets the value ofCfnTopicRule.ActionProperty.getDynamoDb()
- Parameters:
dynamoDb
- Write to a DynamoDB table.- Returns:
this
-
dynamoDb
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder dynamoDb(CfnTopicRule.DynamoDBActionProperty dynamoDb) Sets the value ofCfnTopicRule.ActionProperty.getDynamoDb()
- Parameters:
dynamoDb
- Write to a DynamoDB table.- Returns:
this
-
dynamoDBv2
Sets the value ofCfnTopicRule.ActionProperty.getDynamoDBv2()
- Parameters:
dynamoDBv2
- Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.- Returns:
this
-
dynamoDBv2
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder dynamoDBv2(CfnTopicRule.DynamoDBv2ActionProperty dynamoDBv2) Sets the value ofCfnTopicRule.ActionProperty.getDynamoDBv2()
- Parameters:
dynamoDBv2
- Write to a DynamoDB table. This is a new version of the DynamoDB action. It allows you to write each attribute in an MQTT message payload into a separate DynamoDB column.- Returns:
this
-
elasticsearch
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder elasticsearch(IResolvable elasticsearch) Sets the value ofCfnTopicRule.ActionProperty.getElasticsearch()
- Parameters:
elasticsearch
- Write data to an Amazon OpenSearch Service domain.The
Elasticsearch
action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use theOpenSearch
rule action instead. For more information, see OpenSearchAction .- Returns:
this
-
elasticsearch
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder elasticsearch(CfnTopicRule.ElasticsearchActionProperty elasticsearch) Sets the value ofCfnTopicRule.ActionProperty.getElasticsearch()
- Parameters:
elasticsearch
- Write data to an Amazon OpenSearch Service domain.The
Elasticsearch
action can only be used by existing rule actions. To create a new rule action or to update an existing rule action, use theOpenSearch
rule action instead. For more information, see OpenSearchAction .- Returns:
this
-
firehose
Sets the value ofCfnTopicRule.ActionProperty.getFirehose()
- Parameters:
firehose
- Write to an Amazon Kinesis Firehose stream.- Returns:
this
-
firehose
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder firehose(CfnTopicRule.FirehoseActionProperty firehose) Sets the value ofCfnTopicRule.ActionProperty.getFirehose()
- Parameters:
firehose
- Write to an Amazon Kinesis Firehose stream.- Returns:
this
-
http
Sets the value ofCfnTopicRule.ActionProperty.getHttp()
- Parameters:
http
- Send data to an HTTPS endpoint.- Returns:
this
-
http
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder http(CfnTopicRule.HttpActionProperty http) Sets the value ofCfnTopicRule.ActionProperty.getHttp()
- Parameters:
http
- Send data to an HTTPS endpoint.- Returns:
this
-
iotAnalytics
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder iotAnalytics(IResolvable iotAnalytics) Sets the value ofCfnTopicRule.ActionProperty.getIotAnalytics()
- Parameters:
iotAnalytics
- Sends message data to an AWS IoT Analytics channel.- Returns:
this
-
iotAnalytics
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder iotAnalytics(CfnTopicRule.IotAnalyticsActionProperty iotAnalytics) Sets the value ofCfnTopicRule.ActionProperty.getIotAnalytics()
- Parameters:
iotAnalytics
- Sends message data to an AWS IoT Analytics channel.- Returns:
this
-
iotEvents
Sets the value ofCfnTopicRule.ActionProperty.getIotEvents()
- Parameters:
iotEvents
- Sends an input to an AWS IoT Events detector.- Returns:
this
-
iotEvents
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder iotEvents(CfnTopicRule.IotEventsActionProperty iotEvents) Sets the value ofCfnTopicRule.ActionProperty.getIotEvents()
- Parameters:
iotEvents
- Sends an input to an AWS IoT Events detector.- Returns:
this
-
iotSiteWise
Sets the value ofCfnTopicRule.ActionProperty.getIotSiteWise()
- Parameters:
iotSiteWise
- Sends data from the MQTT message that triggered the rule to AWS IoT SiteWise asset properties.- Returns:
this
-
iotSiteWise
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder iotSiteWise(CfnTopicRule.IotSiteWiseActionProperty iotSiteWise) Sets the value ofCfnTopicRule.ActionProperty.getIotSiteWise()
- Parameters:
iotSiteWise
- Sends data from the MQTT message that triggered the rule to AWS IoT SiteWise asset properties.- Returns:
this
-
kafka
Sets the value ofCfnTopicRule.ActionProperty.getKafka()
- Parameters:
kafka
- Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.- Returns:
this
-
kafka
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder kafka(CfnTopicRule.KafkaActionProperty kafka) Sets the value ofCfnTopicRule.ActionProperty.getKafka()
- Parameters:
kafka
- Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.- Returns:
this
-
kinesis
Sets the value ofCfnTopicRule.ActionProperty.getKinesis()
- Parameters:
kinesis
- Write data to an Amazon Kinesis stream.- Returns:
this
-
kinesis
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder kinesis(CfnTopicRule.KinesisActionProperty kinesis) Sets the value ofCfnTopicRule.ActionProperty.getKinesis()
- Parameters:
kinesis
- Write data to an Amazon Kinesis stream.- Returns:
this
-
lambda
Sets the value ofCfnTopicRule.ActionProperty.getLambda()
- Parameters:
lambda
- Invoke a Lambda function.- Returns:
this
-
lambda
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder lambda(CfnTopicRule.LambdaActionProperty lambda) Sets the value ofCfnTopicRule.ActionProperty.getLambda()
- Parameters:
lambda
- Invoke a Lambda function.- Returns:
this
-
location
Sets the value ofCfnTopicRule.ActionProperty.getLocation()
- Parameters:
location
- Sends device location data to Amazon Location Service .- Returns:
this
-
location
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder location(CfnTopicRule.LocationActionProperty location) Sets the value ofCfnTopicRule.ActionProperty.getLocation()
- Parameters:
location
- Sends device location data to Amazon Location Service .- Returns:
this
-
openSearch
Sets the value ofCfnTopicRule.ActionProperty.getOpenSearch()
- Parameters:
openSearch
- Write data to an Amazon OpenSearch Service domain.- Returns:
this
-
openSearch
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder openSearch(CfnTopicRule.OpenSearchActionProperty openSearch) Sets the value ofCfnTopicRule.ActionProperty.getOpenSearch()
- Parameters:
openSearch
- Write data to an Amazon OpenSearch Service domain.- Returns:
this
-
republish
Sets the value ofCfnTopicRule.ActionProperty.getRepublish()
- Parameters:
republish
- Publish to another MQTT topic.- Returns:
this
-
republish
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder republish(CfnTopicRule.RepublishActionProperty republish) Sets the value ofCfnTopicRule.ActionProperty.getRepublish()
- Parameters:
republish
- Publish to another MQTT topic.- Returns:
this
-
s3
Sets the value ofCfnTopicRule.ActionProperty.getS3()
- Parameters:
s3
- Write to an Amazon S3 bucket.- Returns:
this
-
s3
Sets the value ofCfnTopicRule.ActionProperty.getS3()
- Parameters:
s3
- Write to an Amazon S3 bucket.- Returns:
this
-
sns
Sets the value ofCfnTopicRule.ActionProperty.getSns()
- Parameters:
sns
- Publish to an Amazon SNS topic.- Returns:
this
-
sns
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder sns(CfnTopicRule.SnsActionProperty sns) Sets the value ofCfnTopicRule.ActionProperty.getSns()
- Parameters:
sns
- Publish to an Amazon SNS topic.- Returns:
this
-
sqs
Sets the value ofCfnTopicRule.ActionProperty.getSqs()
- Parameters:
sqs
- Publish to an Amazon SQS queue.- Returns:
this
-
sqs
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder sqs(CfnTopicRule.SqsActionProperty sqs) Sets the value ofCfnTopicRule.ActionProperty.getSqs()
- Parameters:
sqs
- Publish to an Amazon SQS queue.- Returns:
this
-
stepFunctions
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder stepFunctions(IResolvable stepFunctions) Sets the value ofCfnTopicRule.ActionProperty.getStepFunctions()
- Parameters:
stepFunctions
- Starts execution of a Step Functions state machine.- Returns:
this
-
stepFunctions
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder stepFunctions(CfnTopicRule.StepFunctionsActionProperty stepFunctions) Sets the value ofCfnTopicRule.ActionProperty.getStepFunctions()
- Parameters:
stepFunctions
- Starts execution of a Step Functions state machine.- Returns:
this
-
timestream
Sets the value ofCfnTopicRule.ActionProperty.getTimestream()
- Parameters:
timestream
- Writes attributes from an MQTT message.- Returns:
this
-
timestream
@Stability(Stable) public CfnTopicRule.ActionProperty.Builder timestream(CfnTopicRule.TimestreamActionProperty timestream) Sets the value ofCfnTopicRule.ActionProperty.getTimestream()
- Parameters:
timestream
- Writes attributes from an MQTT message.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.ActionProperty>
- Returns:
- a new instance of
CfnTopicRule.ActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-