interface SqsQueueActionProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoT.Actions.SqsQueueActionProps |
Java | software.amazon.awscdk.services.iot.actions.SqsQueueActionProps |
Python | aws_cdk.aws_iot_actions.SqsQueueActionProps |
TypeScript (source) | @aws-cdk/aws-iot-actions » SqsQueueActionProps |
Configuration properties of an action for SQS.
Example
import * as sqs from '@aws-cdk/aws-sqs';
const queue = new sqs.Queue(this, 'MyQueue');
const topicRule = new iot.TopicRule(this, 'TopicRule', {
sql: iot.IotSql.fromStringAsVer20160323(
"SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'",
),
actions: [
new actions.SqsQueueAction(queue, {
useBase64: true, // optional property, default is 'false'
}),
],
});
Properties
Name | Type | Description |
---|---|---|
role? | IRole | The IAM role that allows access to AWS service. |
use | boolean | Specifies whether to use Base64 encoding. |
role?
Type:
IRole
(optional, default: a new role will be created)
The IAM role that allows access to AWS service.
useBase64?
Type:
boolean
(optional, default: false)
Specifies whether to use Base64 encoding.