SqsQueueActionProps

class aws_cdk.aws_iot_actions.SqsQueueActionProps(*, role=None, use_base64=None)

Bases: CommonActionProps

(experimental) Configuration properties of an action for SQS.

Parameters:
  • role (Optional[IRole]) – (experimental) The IAM role that allows access to AWS service. Default: a new role will be created

  • use_base64 (Optional[bool]) – (experimental) Specifies whether to use Base64 encoding. Default: false

Stability:

experimental

ExampleMetadata:

infused

Example:

import aws_cdk.aws_sqs as sqs


queue = sqs.Queue(self, "MyQueue")

topic_rule = iot.TopicRule(self, "TopicRule",
    sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'"),
    actions=[
        actions.SqsQueueAction(queue,
            use_base64=True
        )
    ]
)

Attributes

role

(experimental) The IAM role that allows access to AWS service.

Default:

a new role will be created

Stability:

experimental

use_base64

(experimental) Specifies whether to use Base64 encoding.

Default:

false

Stability:

experimental