معرفی شرکت ها


aws-cdk.aws-iotevents-actions-1.178.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Receipt Detector Model actions for AWS IoT Events
ویژگی مقدار
سیستم عامل OS Independent
نام فایل aws-cdk.aws-iotevents-actions-1.178.0
نام aws-cdk.aws-iotevents-actions
نسخه کتابخانه 1.178.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Amazon Web Services
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/aws/aws-cdk
آدرس اینترنتی https://pypi.org/project/aws-cdk.aws-iotevents-actions/
مجوز Apache-2.0
# Actions for AWS::IoTEvents Detector Model <!--BEGIN STABILITY BANNER-->--- ![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge) > 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](https://semver.org/) 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. --- <!--END STABILITY BANNER--> This library contains integration classes to specify actions of state events of Detector Model in `@aws-cdk/aws-iotevents`. Instances of these classes should be passed to `State` defined in `@aws-cdk/aws-iotevents` You can define built-in actions to use a timer or set a variable, or send data to other AWS resources. This library contains integration classes to use a timer or set a variable, or send data to other AWS resources. AWS IoT Events can trigger actions when it detects a specified event or transition event. Currently supported are: * Set variable to detector instanse * Invoke a Lambda function ## Set variable to detector instanse The code snippet below creates an Action that set variable to detector instanse when it is triggered. ```python # Example automatically generated from non-compiling source. May contain errors. import aws_cdk.aws_iotevents as iotevents import aws_cdk.aws_iotevents_actions as actions # input: iotevents.IInput state = iotevents.State( state_name="MyState", on_enter=[iotevents.Event( event_name="test-event", condition=iotevents.Expression.current_input(input), actions=[actions, [ actions.SetVariableAction("MyVariable", iotevents.Expression.input_attribute(input, "payload.temperature")) ] ] )] ) ``` ## Invoke a Lambda function The code snippet below creates an Action that invoke a Lambda function when it is triggered. ```python import aws_cdk.aws_iotevents as iotevents import aws_cdk.aws_iotevents_actions as actions import aws_cdk.aws_lambda as lambda_ # input: iotevents.IInput # func: lambda.IFunction state = iotevents.State( state_name="MyState", on_enter=[iotevents.Event( event_name="test-event", condition=iotevents.Expression.current_input(input), actions=[actions.LambdaInvokeAction(func)] )] ) ```


نیازمندی

مقدار نام
==1.178.0 aws-cdk.aws-iam
==1.178.0 aws-cdk.aws-iotevents
==1.178.0 aws-cdk.aws-lambda
==1.178.0 aws-cdk.core
<4.0.0,>=3.3.69 constructs
<2.0.0,>=1.69.0 jsii
>=0.0.3 publication
~=2.13.3 typeguard


زبان مورد نیاز

مقدار نام
~=3.7 Python


نحوه نصب


نصب پکیج whl aws-cdk.aws-iotevents-actions-1.178.0:

    pip install aws-cdk.aws-iotevents-actions-1.178.0.whl


نصب پکیج tar.gz aws-cdk.aws-iotevents-actions-1.178.0:

    pip install aws-cdk.aws-iotevents-actions-1.178.0.tar.gz