Experimental
@aws-cdk/aws-iot-actions-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
SqsQueueActionProps Struct
Configuration properties of an action for SQS.
Example
ts
import * as sqs from 'aws-cdk-lib/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
The IAM role that allows access to AWS service.
Default: a new role will be created
useBase64optionalbooleanuse_base64optionalbooluseBase64optionalBooleanUseBase64optionalboolUseBase64optional*bool= false#Specifies whether to use Base64 encoding.