Skip to content

(iot): L2 support for TopicRule #16602

@yamatatsu

Description

@yamatatsu

Currently there's only L1 resources in CfnTopicRule of aws-iot.
Let's create L2 construct support.

Use Case

It is to use AWS IoT Rule.

Proposed Solution

There is pseudocode as following:

const topicRule = new TopicRule(stack, 'MyTopicRule', {
  topicRulePayload: {
    sql: "SELECT topic(2) as device_id, temperature FROM 'device/+/data'",
  },
});
topicRule.addAction(new HttpAction('http://example.com'));
topicRule.addAction(new CloudwatchLogsAction());
topicRule.addAction(new RepublishAction('republished-topic'));

Other

Associate with #6835

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-iotRelated to AWS IoTeffort/largeLarge work item – several weeks of effortfeature-requestA feature should be added or improved.feature/coverage-gapGaps in CloudFormation coverage by L2 constructsin-progressThis issue is being actively worked on.p1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions