@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Action extends Object implements Serializable, Cloneable, StructuredPojo
Describes the actions associated with a rule.
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
Action |
clone() |
boolean |
equals(Object obj) |
CloudwatchAlarmAction |
getCloudwatchAlarm()
Change the state of a CloudWatch alarm.
|
CloudwatchLogsAction |
getCloudwatchLogs()
Send data to CloudWatch Logs.
|
CloudwatchMetricAction |
getCloudwatchMetric()
Capture a CloudWatch metric.
|
DynamoDBAction |
getDynamoDB()
Write to a DynamoDB table.
|
DynamoDBv2Action |
getDynamoDBv2()
Write to a DynamoDB table.
|
ElasticsearchAction |
getElasticsearch()
Write data to an Amazon OpenSearch Service domain.
|
FirehoseAction |
getFirehose()
Write to an Amazon Kinesis Firehose stream.
|
HttpAction |
getHttp()
Send data to an HTTPS endpoint.
|
IotAnalyticsAction |
getIotAnalytics()
Sends message data to an IoT Analytics channel.
|
IotEventsAction |
getIotEvents()
Sends an input to an IoT Events detector.
|
IotSiteWiseAction |
getIotSiteWise()
Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.
|
KafkaAction |
getKafka()
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
|
KinesisAction |
getKinesis()
Write data to an Amazon Kinesis stream.
|
LambdaAction |
getLambda()
Invoke a Lambda function.
|
LocationAction |
getLocation()
The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location
tracker resource.
|
OpenSearchAction |
getOpenSearch()
Write data to an Amazon OpenSearch Service domain.
|
RepublishAction |
getRepublish()
Publish to another MQTT topic.
|
S3Action |
getS3()
Write to an Amazon S3 bucket.
|
SalesforceAction |
getSalesforce()
Send a message to a Salesforce IoT Cloud Input Stream.
|
SnsAction |
getSns()
Publish to an Amazon SNS topic.
|
SqsAction |
getSqs()
Publish to an Amazon SQS queue.
|
StepFunctionsAction |
getStepFunctions()
Starts execution of a Step Functions state machine.
|
TimestreamAction |
getTimestream()
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCloudwatchAlarm(CloudwatchAlarmAction cloudwatchAlarm)
Change the state of a CloudWatch alarm.
|
void |
setCloudwatchLogs(CloudwatchLogsAction cloudwatchLogs)
Send data to CloudWatch Logs.
|
void |
setCloudwatchMetric(CloudwatchMetricAction cloudwatchMetric)
Capture a CloudWatch metric.
|
void |
setDynamoDB(DynamoDBAction dynamoDB)
Write to a DynamoDB table.
|
void |
setDynamoDBv2(DynamoDBv2Action dynamoDBv2)
Write to a DynamoDB table.
|
void |
setElasticsearch(ElasticsearchAction elasticsearch)
Write data to an Amazon OpenSearch Service domain.
|
void |
setFirehose(FirehoseAction firehose)
Write to an Amazon Kinesis Firehose stream.
|
void |
setHttp(HttpAction http)
Send data to an HTTPS endpoint.
|
void |
setIotAnalytics(IotAnalyticsAction iotAnalytics)
Sends message data to an IoT Analytics channel.
|
void |
setIotEvents(IotEventsAction iotEvents)
Sends an input to an IoT Events detector.
|
void |
setIotSiteWise(IotSiteWiseAction iotSiteWise)
Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.
|
void |
setKafka(KafkaAction kafka)
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
|
void |
setKinesis(KinesisAction kinesis)
Write data to an Amazon Kinesis stream.
|
void |
setLambda(LambdaAction lambda)
Invoke a Lambda function.
|
void |
setLocation(LocationAction location)
The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location
tracker resource.
|
void |
setOpenSearch(OpenSearchAction openSearch)
Write data to an Amazon OpenSearch Service domain.
|
void |
setRepublish(RepublishAction republish)
Publish to another MQTT topic.
|
void |
setS3(S3Action s3)
Write to an Amazon S3 bucket.
|
void |
setSalesforce(SalesforceAction salesforce)
Send a message to a Salesforce IoT Cloud Input Stream.
|
void |
setSns(SnsAction sns)
Publish to an Amazon SNS topic.
|
void |
setSqs(SqsAction sqs)
Publish to an Amazon SQS queue.
|
void |
setStepFunctions(StepFunctionsAction stepFunctions)
Starts execution of a Step Functions state machine.
|
void |
setTimestream(TimestreamAction timestream)
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table.
|
String |
toString()
Returns a string representation of this object.
|
Action |
withCloudwatchAlarm(CloudwatchAlarmAction cloudwatchAlarm)
Change the state of a CloudWatch alarm.
|
Action |
withCloudwatchLogs(CloudwatchLogsAction cloudwatchLogs)
Send data to CloudWatch Logs.
|
Action |
withCloudwatchMetric(CloudwatchMetricAction cloudwatchMetric)
Capture a CloudWatch metric.
|
Action |
withDynamoDB(DynamoDBAction dynamoDB)
Write to a DynamoDB table.
|
Action |
withDynamoDBv2(DynamoDBv2Action dynamoDBv2)
Write to a DynamoDB table.
|
Action |
withElasticsearch(ElasticsearchAction elasticsearch)
Write data to an Amazon OpenSearch Service domain.
|
Action |
withFirehose(FirehoseAction firehose)
Write to an Amazon Kinesis Firehose stream.
|
Action |
withHttp(HttpAction http)
Send data to an HTTPS endpoint.
|
Action |
withIotAnalytics(IotAnalyticsAction iotAnalytics)
Sends message data to an IoT Analytics channel.
|
Action |
withIotEvents(IotEventsAction iotEvents)
Sends an input to an IoT Events detector.
|
Action |
withIotSiteWise(IotSiteWiseAction iotSiteWise)
Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.
|
Action |
withKafka(KafkaAction kafka)
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
|
Action |
withKinesis(KinesisAction kinesis)
Write data to an Amazon Kinesis stream.
|
Action |
withLambda(LambdaAction lambda)
Invoke a Lambda function.
|
Action |
withLocation(LocationAction location)
The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location
tracker resource.
|
Action |
withOpenSearch(OpenSearchAction openSearch)
Write data to an Amazon OpenSearch Service domain.
|
Action |
withRepublish(RepublishAction republish)
Publish to another MQTT topic.
|
Action |
withS3(S3Action s3)
Write to an Amazon S3 bucket.
|
Action |
withSalesforce(SalesforceAction salesforce)
Send a message to a Salesforce IoT Cloud Input Stream.
|
Action |
withSns(SnsAction sns)
Publish to an Amazon SNS topic.
|
Action |
withSqs(SqsAction sqs)
Publish to an Amazon SQS queue.
|
Action |
withStepFunctions(StepFunctionsAction stepFunctions)
Starts execution of a Step Functions state machine.
|
Action |
withTimestream(TimestreamAction timestream)
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table.
|
public void setDynamoDB(DynamoDBAction dynamoDB)
Write to a DynamoDB table.
dynamoDB
- Write to a DynamoDB table.public DynamoDBAction getDynamoDB()
Write to a DynamoDB table.
public Action withDynamoDB(DynamoDBAction dynamoDB)
Write to a DynamoDB table.
dynamoDB
- Write to a DynamoDB table.public void setDynamoDBv2(DynamoDBv2Action 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.
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.public DynamoDBv2Action getDynamoDBv2()
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.
public Action withDynamoDBv2(DynamoDBv2Action 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.
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.public void setLambda(LambdaAction lambda)
Invoke a Lambda function.
lambda
- Invoke a Lambda function.public LambdaAction getLambda()
Invoke a Lambda function.
public Action withLambda(LambdaAction lambda)
Invoke a Lambda function.
lambda
- Invoke a Lambda function.public void setSns(SnsAction sns)
Publish to an Amazon SNS topic.
sns
- Publish to an Amazon SNS topic.public SnsAction getSns()
Publish to an Amazon SNS topic.
public Action withSns(SnsAction sns)
Publish to an Amazon SNS topic.
sns
- Publish to an Amazon SNS topic.public void setSqs(SqsAction sqs)
Publish to an Amazon SQS queue.
sqs
- Publish to an Amazon SQS queue.public SqsAction getSqs()
Publish to an Amazon SQS queue.
public Action withSqs(SqsAction sqs)
Publish to an Amazon SQS queue.
sqs
- Publish to an Amazon SQS queue.public void setKinesis(KinesisAction kinesis)
Write data to an Amazon Kinesis stream.
kinesis
- Write data to an Amazon Kinesis stream.public KinesisAction getKinesis()
Write data to an Amazon Kinesis stream.
public Action withKinesis(KinesisAction kinesis)
Write data to an Amazon Kinesis stream.
kinesis
- Write data to an Amazon Kinesis stream.public void setRepublish(RepublishAction republish)
Publish to another MQTT topic.
republish
- Publish to another MQTT topic.public RepublishAction getRepublish()
Publish to another MQTT topic.
public Action withRepublish(RepublishAction republish)
Publish to another MQTT topic.
republish
- Publish to another MQTT topic.public void setS3(S3Action s3)
Write to an Amazon S3 bucket.
s3
- Write to an Amazon S3 bucket.public S3Action getS3()
Write to an Amazon S3 bucket.
public Action withS3(S3Action s3)
Write to an Amazon S3 bucket.
s3
- Write to an Amazon S3 bucket.public void setFirehose(FirehoseAction firehose)
Write to an Amazon Kinesis Firehose stream.
firehose
- Write to an Amazon Kinesis Firehose stream.public FirehoseAction getFirehose()
Write to an Amazon Kinesis Firehose stream.
public Action withFirehose(FirehoseAction firehose)
Write to an Amazon Kinesis Firehose stream.
firehose
- Write to an Amazon Kinesis Firehose stream.public void setCloudwatchMetric(CloudwatchMetricAction cloudwatchMetric)
Capture a CloudWatch metric.
cloudwatchMetric
- Capture a CloudWatch metric.public CloudwatchMetricAction getCloudwatchMetric()
Capture a CloudWatch metric.
public Action withCloudwatchMetric(CloudwatchMetricAction cloudwatchMetric)
Capture a CloudWatch metric.
cloudwatchMetric
- Capture a CloudWatch metric.public void setCloudwatchAlarm(CloudwatchAlarmAction cloudwatchAlarm)
Change the state of a CloudWatch alarm.
cloudwatchAlarm
- Change the state of a CloudWatch alarm.public CloudwatchAlarmAction getCloudwatchAlarm()
Change the state of a CloudWatch alarm.
public Action withCloudwatchAlarm(CloudwatchAlarmAction cloudwatchAlarm)
Change the state of a CloudWatch alarm.
cloudwatchAlarm
- Change the state of a CloudWatch alarm.public void setCloudwatchLogs(CloudwatchLogsAction cloudwatchLogs)
Send data to CloudWatch Logs.
cloudwatchLogs
- Send data to CloudWatch Logs.public CloudwatchLogsAction getCloudwatchLogs()
Send data to CloudWatch Logs.
public Action withCloudwatchLogs(CloudwatchLogsAction cloudwatchLogs)
Send data to CloudWatch Logs.
cloudwatchLogs
- Send data to CloudWatch Logs.public void setElasticsearch(ElasticsearchAction 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 the OpenSearch
rule action instead. For more information, see
OpenSearchAction.
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 the OpenSearch
rule action instead. For more
information, see OpenSearchAction.
public ElasticsearchAction getElasticsearch()
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 the OpenSearch
rule action instead. For more information, see
OpenSearchAction.
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 the OpenSearch
rule action instead. For
more information, see OpenSearchAction.
public Action withElasticsearch(ElasticsearchAction 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 the OpenSearch
rule action instead. For more information, see
OpenSearchAction.
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 the OpenSearch
rule action instead. For more
information, see OpenSearchAction.
public void setSalesforce(SalesforceAction salesforce)
Send a message to a Salesforce IoT Cloud Input Stream.
salesforce
- Send a message to a Salesforce IoT Cloud Input Stream.public SalesforceAction getSalesforce()
Send a message to a Salesforce IoT Cloud Input Stream.
public Action withSalesforce(SalesforceAction salesforce)
Send a message to a Salesforce IoT Cloud Input Stream.
salesforce
- Send a message to a Salesforce IoT Cloud Input Stream.public void setIotAnalytics(IotAnalyticsAction iotAnalytics)
Sends message data to an IoT Analytics channel.
iotAnalytics
- Sends message data to an IoT Analytics channel.public IotAnalyticsAction getIotAnalytics()
Sends message data to an IoT Analytics channel.
public Action withIotAnalytics(IotAnalyticsAction iotAnalytics)
Sends message data to an IoT Analytics channel.
iotAnalytics
- Sends message data to an IoT Analytics channel.public void setIotEvents(IotEventsAction iotEvents)
Sends an input to an IoT Events detector.
iotEvents
- Sends an input to an IoT Events detector.public IotEventsAction getIotEvents()
Sends an input to an IoT Events detector.
public Action withIotEvents(IotEventsAction iotEvents)
Sends an input to an IoT Events detector.
iotEvents
- Sends an input to an IoT Events detector.public void setIotSiteWise(IotSiteWiseAction iotSiteWise)
Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.
iotSiteWise
- Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.public IotSiteWiseAction getIotSiteWise()
Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.
public Action withIotSiteWise(IotSiteWiseAction iotSiteWise)
Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.
iotSiteWise
- Sends data from the MQTT message that triggered the rule to IoT SiteWise asset properties.public void setStepFunctions(StepFunctionsAction stepFunctions)
Starts execution of a Step Functions state machine.
stepFunctions
- Starts execution of a Step Functions state machine.public StepFunctionsAction getStepFunctions()
Starts execution of a Step Functions state machine.
public Action withStepFunctions(StepFunctionsAction stepFunctions)
Starts execution of a Step Functions state machine.
stepFunctions
- Starts execution of a Step Functions state machine.public void setTimestream(TimestreamAction timestream)
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the Timestream topic rule action documentation.
timestream
- The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream
table. For more information, see the Timestream
topic rule action documentation.public TimestreamAction getTimestream()
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the Timestream topic rule action documentation.
public Action withTimestream(TimestreamAction timestream)
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the Timestream topic rule action documentation.
timestream
- The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream
table. For more information, see the Timestream
topic rule action documentation.public void setHttp(HttpAction http)
Send data to an HTTPS endpoint.
http
- Send data to an HTTPS endpoint.public HttpAction getHttp()
Send data to an HTTPS endpoint.
public Action withHttp(HttpAction http)
Send data to an HTTPS endpoint.
http
- Send data to an HTTPS endpoint.public void setKafka(KafkaAction kafka)
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
kafka
- Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka
cluster.public KafkaAction getKafka()
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
public Action withKafka(KafkaAction kafka)
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
kafka
- Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka
cluster.public void setOpenSearch(OpenSearchAction openSearch)
Write data to an Amazon OpenSearch Service domain.
openSearch
- Write data to an Amazon OpenSearch Service domain.public OpenSearchAction getOpenSearch()
Write data to an Amazon OpenSearch Service domain.
public Action withOpenSearch(OpenSearchAction openSearch)
Write data to an Amazon OpenSearch Service domain.
openSearch
- Write data to an Amazon OpenSearch Service domain.public void setLocation(LocationAction location)
The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
location
- The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon
Location tracker resource.public LocationAction getLocation()
The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
public Action withLocation(LocationAction location)
The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
location
- The Amazon Location Service rule action sends device location updates from an MQTT message to an Amazon
Location tracker resource.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.