JSPM

@aws-cdk/aws-iot-alpha

2.0.0-alpha.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3472
  • Score
    100M100P100Q132637F
  • License Apache-2.0

The CDK Construct Library for AWS::IoT

Package Exports

  • @aws-cdk/aws-iot-alpha

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-cdk/aws-iot-alpha) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

AWS IoT Construct Library


cfn-resources: Stable

All classes with the Cfn prefix in this module (CFN Resources) are always stable and safe to use.

cdk-constructs: Experimental

The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.


AWS IoT Core lets you connect billions of IoT devices and route trillions of messages to AWS services without managing infrastructure.

Installation

Install the module:

$ npm i @aws-cdk/aws-iot

Import it into your code:

import * as iot from '@aws-cdk/aws-iot';

TopicRule

The TopicRule construct defined Rules that give your devices the ability to interact with AWS services.

For example, to define a rule:

new iot.TopicRule(stack, 'MyTopicRule', {
  topicRuleName: 'MyRuleName', // optional property
  sql: iot.IotSql.fromStringAsVer20160323(
    "SELECT topic(2) as device_id, temperature FROM 'device/+/data'",
  ),
});