Skip to main content

CDK Constructs for AWS IoT to AWS Kinesis Data Stream.

Project description

aws-iot-kinesisstreams module

---

Stability: Experimental

All classes are under active development and subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model. 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.


Reference Documentation: https://docs.aws.amazon.com/solutions/latest/constructs/
Language Package
Python Logo Python aws_solutions_constructs.aws_iot_kinesisstreams
Typescript Logo Typescript @aws-solutions-constructs/aws-iot-kinesisstreams
Java Logo Java software.amazon.awsconstructs.services.iotkinesisstreams

This AWS Solutions Construct implements an AWS IoT MQTT topic rule to send data to an Amazon Kinesis Data Stream.

Here is a minimal deployable pattern definition in Typescript:

# Example automatically generated from non-compiling source. May contain errors.
# { IotToKinesisStreamsProps,
        IotToKinesisStreams } is of type object# from is of type object"@aws-solutions-constructs/aws-iot-kinesisstreams"

props = {
    "iot_topic_rule_props": {
        "topic_rule_payload": {
            "rule_disabled": False,
            "description": "Sends data to kinesis data stream",
            "sql": "SELECT * FROM 'solutions/construct'",
            "actions": []
        }
    }
}

IotToKinesisStreams(self, "test-iot-kinesisstream", props)

Initializer

new IotToKinesisStreams(scope: Construct, id: string, props: IotToKinesisStreamsProps);

Parameters

Pattern Construct Props

Name Type Description
iotTopicRuleProps iot.CfnTopicRuleProps User provided CfnTopicRuleProps to override the defaults
existingStreamObj? kinesis.Stream Existing instance of Kinesis Stream, providing both this and kinesisStreamProps will cause an error.
kinesisStreamProps? kinesis.StreamProps Optional user-provided props to override the default props for the Kinesis data stream, providing both this and existingStreamObj will cause an error
createCloudWatchAlarms boolean Whether to create recommended CloudWatch alarms for Kinesis Data Stream. Default value is set to true

Pattern Properties

Name Type Description
iotTopicRule iot.CfnTopicRule Returns an instance of iot.CfnTopicRule created by the construct
iotActionsRole iam.Role Returns an instance of the iam.Role created by the construct for IoT Rule
kinesisStream kinesis.Stream Returns an instance of the Kinesis stream created by the construct.
cloudwatchAlarms? cloudwatch.Alarm[] Returns an array of recommended CloudWatch Alarms created by the construct for Kinesis Data stream

Default settings

Out of the box implementation of the Construct without any override will set the following defaults:

Amazon IoT Rule

  • Configure least privilege access IAM role for Amazon IoT Rule

Amazon Kinesis Data Stream

  • Configure recommended CloudWatch Alarms for Amazon Kinesis Data Stream
  • Configure least privilege access IAM role for Amazon Kinesis Data Stream

Architecture

Architecture Diagram


© Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file aws-solutions-constructs.aws-iot-kinesisstreams-1.129.0.tar.gz.

File metadata

File hashes

Hashes for aws-solutions-constructs.aws-iot-kinesisstreams-1.129.0.tar.gz
Algorithm Hash digest
SHA256 4c7541dd454445339fd4e805ed5567cfdc17d727bf5cf0e25585dd3b5f20094e
MD5 325492731009b2caa1bf78b84577e8c6
BLAKE2b-256 620fac2ff49256583342290e3589df6bfaa4c3adddac966f62b92920a3dafb44

See more details on using hashes here.

File details

Details for the file aws_solutions_constructs.aws_iot_kinesisstreams-1.129.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_solutions_constructs.aws_iot_kinesisstreams-1.129.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf46768d04ed9009f515febd3075ac781dcd479baa28fe89b38de10c655e18d
MD5 f4823189c05423d2383ddf2650328809
BLAKE2b-256 5662f0f90c5ef8a0d8e7352c0932e8d456801b8e54d851b4c2539715e084f6d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page