Saravanan666/pypi-org huggingface dataset:
Package: aws-cdk.aws-identitystore
AWS::IdentityStore Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_identitystoreasidentitystoreThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for IdentityStore construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::IdentityStore resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::IdentityStore.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-imagebuilder
AWS::ImageBuilder Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_imagebuilderasimagebuilderThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for ImageBuilder construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::ImageBuilder resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::ImageBuilder.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-inspector
Amazon Inspector Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_inspectorasinspectorThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for Inspector construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::Inspector resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::Inspector.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-inspectorv2
AWS::InspectorV2 Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_inspectorv2asinspectorThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for InspectorV2 construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::InspectorV2 resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::InspectorV2.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-internetmonitor
AWS::InternetMonitor Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_internetmonitorasinternetmonitorThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for InternetMonitor construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::InternetMonitor resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::InternetMonitor.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-iot
AWS IoT Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.AWS IoT Core lets you connect billions of IoT devices and route trillions of
messages to AWS services without managing infrastructure.InstallationInstall the module:$npmi@aws-cdk/aws-iotImport it into your code:importaws_cdk.aws_iotasiotimportaws_cdk.aws_iot_actionsasactionsTopicRuleCreate a topic rule that give your devices the ability to interact with AWS services.
You can create a topic rule with an action that invoke the Lambda action as following:func=lambda_.Function(self,"MyFunction",runtime=lambda_.Runtime.NODEJS_14_X,handler="index.handler",code=lambda_.Code.from_inline("""exports.handler = (event) => {console.log("It is test for lambda action of AWS IoT Rule.", event);};"""))iot.TopicRule(self,"TopicRule",topic_rule_name="MyTopicRule",# optionaldescription="invokes the lambda function",# optionalsql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),actions=[actions.LambdaFunctionAction(func)])Or, you can add an action after constructing theTopicRuleinstance as following:# func: lambda.Functiontopic_rule=iot.TopicRule(self,"TopicRule",sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"))topic_rule.add_action(actions.LambdaFunctionAction(func))You can also supplyerrorActionas following,
and the IoT Rule will trigger it if a rule's action is unable to perform:importaws_cdk.aws_logsaslogslog_group=logs.LogGroup(self,"MyLogGroup")iot.TopicRule(self,"TopicRule",sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),error_action=actions.CloudWatchLogsAction(log_group))If you wanna make the topic rule disable, add propertyenabled: falseas following:iot.TopicRule(self,"TopicRule",sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),enabled=False)See also@aws-cdk/aws-iot-actionsfor other actions.
Package: aws-cdk.aws-iot1click
AWS IoT 1-Click Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_iot1clickasiot1clickThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for IoT1Click construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::IoT1Click resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::IoT1Click.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-iot-alpha
AWS IoT Construct Library---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 theSemantic Versioningmodel 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.TopicRuleCreate a topic rule that give your devices the ability to interact with AWS services.
You can create a topic rule with an action that invoke the Lambda action as following:func=lambda_.Function(self,"MyFunction",runtime=lambda_.Runtime.NODEJS_LATEST,handler="index.handler",code=lambda_.Code.from_inline("""exports.handler = (event) => {console.log("It is test for lambda action of AWS IoT Rule.", event);};"""))iot.TopicRule(self,"TopicRule",topic_rule_name="MyTopicRule",# optionaldescription="invokes the lambda function",# optionalsql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),actions=[actions.LambdaFunctionAction(func)])Or, you can add an action after constructing theTopicRuleinstance as following:# func: lambda.Functiontopic_rule=iot.TopicRule(self,"TopicRule",sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"))topic_rule.add_action(actions.LambdaFunctionAction(func))You can also supplyerrorActionas following,
and the IoT Rule will trigger it if a rule's action is unable to perform:importaws_cdk.aws_logsaslogslog_group=logs.LogGroup(self,"MyLogGroup")iot.TopicRule(self,"TopicRule",sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),error_action=actions.CloudWatchLogsAction(log_group))If you wanna make the topic rule disable, add propertyenabled: falseas following:iot.TopicRule(self,"TopicRule",sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),enabled=False)See also@aws-cdk/aws-iot-actions-alphafor other actions.
Package: aws-cdk.aws-iotanalytics
AWS IoT Analytics Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_iotanalyticsasiotanalyticsThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for IoTAnalytics construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::IoTAnalytics resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::IoTAnalytics.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-iotcoredeviceadvisor
AWS::IoTCoreDeviceAdvisor Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_iotcoredeviceadvisorasiotcoredeviceadvisorThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for IoTCoreDeviceAdvisor construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::IoTCoreDeviceAdvisor resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::IoTCoreDeviceAdvisor.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-iotevents
AWS::IoTEvents Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.AWS IoT Events enables you to monitor your equipment or device fleets for
failures or changes in operation, and to trigger actions when such events
occur.InstallationInstall the module:$npmi@aws-cdk/aws-ioteventsImport it into your code:importaws_cdk.aws_ioteventsasioteventsDetectorModelThe following example creates an AWS IoT Events detector model to your stack.
The detector model need a reference to at least one AWS IoT Events input.
AWS IoT Events inputs enable the detector to get MQTT payload values from IoT Core rules.You can define built-in actions to use a timer or set a variable, or send data to other AWS resources.
See also@aws-cdk/aws-iotevents-actionsfor other actions.importaws_cdk.aws_ioteventsasioteventsimportaws_cdk.aws_iotevents_actionsasactionsimportaws_cdk.aws_lambdaaslambda_# func: lambda.IFunctioninput=iotevents.Input(self,"MyInput",input_name="my_input",# optionalattribute_json_paths=["payload.deviceId","payload.temperature"])warm_state=iotevents.State(state_name="warm",on_enter=[iotevents.Event(event_name="test-enter-event",condition=iotevents.Expression.current_input(input),actions=[actions.LambdaInvokeAction(func)])],on_input=[iotevents.Event(# optionalevent_name="test-input-event",actions=[actions.LambdaInvokeAction(func)])],on_exit=[iotevents.Event(# optionalevent_name="test-exit-event",actions=[actions.LambdaInvokeAction(func)])])cold_state=iotevents.State(state_name="cold")# transit to coldState when temperature is less than 15warm_state.transition_to(cold_state,event_name="to_coldState",# optional property, default by combining the names of the Stateswhen=iotevents.Expression.lt(iotevents.Expression.input_attribute(input,"payload.temperature"),iotevents.Expression.from_string("15")),executing=[actions.LambdaInvokeAction(func)])# transit to warmState when temperature is greater than or equal to 15cold_state.transition_to(warm_state,when=iotevents.Expression.gte(iotevents.Expression.input_attribute(input,"payload.temperature"),iotevents.Expression.from_string("15")))iotevents.DetectorModel(self,"MyDetectorModel",detector_model_name="test-detector-model",# optionaldescription="test-detector-model-description",# optional property, default is noneevaluation_method=iotevents.EventEvaluation.SERIAL,# optional property, default is iotevents.EventEvaluation.BATCHdetector_key="payload.deviceId",# optional property, default is none and single detector instance will be created and all inputs will be routed to itinitial_state=warm_state)To grant permissions to put messages in the input,
you can use thegrantWrite()method:importaws_cdk.aws_iamasiamimportaws_cdk.aws_ioteventsasiotevents# grantable: iam.IGrantableinput=iotevents.Input.from_input_name(self,"MyInput","my_input")input.grant_write(grantable)
Package: aws-cdk.aws-iotevents-actions
Actions for AWS::IoTEvents Detector Model---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.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 toStatedefined in@aws-cdk/aws-ioteventsYou 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 instanseInvoke a Lambda functionSet variable to detector instanseThe code snippet below creates an Action that set variable to detector instanse
when it is triggered.# Example automatically generated from non-compiling source. May contain errors.importaws_cdk.aws_ioteventsasioteventsimportaws_cdk.aws_iotevents_actionsasactions# input: iotevents.IInputstate=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 functionThe code snippet below creates an Action that invoke a Lambda function
when it is triggered.importaws_cdk.aws_ioteventsasioteventsimportaws_cdk.aws_iotevents_actionsasactionsimportaws_cdk.aws_lambdaaslambda_# input: iotevents.IInput# func: lambda.IFunctionstate=iotevents.State(state_name="MyState",on_enter=[iotevents.Event(event_name="test-event",condition=iotevents.Expression.current_input(input),actions=[actions.LambdaInvokeAction(func)])])
Package: aws-cdk.aws-iotevents-alpha
AWS::IoTEvents Construct Library---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 theSemantic Versioningmodel 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 Events enables you to monitor your equipment or device fleets for
failures or changes in operation, and to trigger actions when such events
occur.DetectorModelThe following example creates an AWS IoT Events detector model to your stack.
The detector model need a reference to at least one AWS IoT Events input.
AWS IoT Events inputs enable the detector to get MQTT payload values from IoT Core rules.You can define built-in actions to use a timer or set a variable, or send data to other AWS resources.
See also@aws-cdk/aws-iotevents-actions-alphafor other actions.importaws_cdk.aws_iotevents_alphaasioteventsimportaws_cdk.aws_iotevents_actions_alphaasactionsimportaws_cdk.aws_lambdaaslambda_# func: lambda.IFunctioninput=iotevents.Input(self,"MyInput",input_name="my_input",# optionalattribute_json_paths=["payload.deviceId","payload.temperature"])warm_state=iotevents.State(state_name="warm",on_enter=[iotevents.Event(event_name="test-enter-event",condition=iotevents.Expression.current_input(input),actions=[actions.LambdaInvokeAction(func)])],on_input=[iotevents.Event(# optionalevent_name="test-input-event",actions=[actions.LambdaInvokeAction(func)])],on_exit=[iotevents.Event(# optionalevent_name="test-exit-event",actions=[actions.LambdaInvokeAction(func)])])cold_state=iotevents.State(state_name="cold")# transit to coldState when temperature is less than 15warm_state.transition_to(cold_state,event_name="to_coldState",# optional property, default by combining the names of the Stateswhen=iotevents.Expression.lt(iotevents.Expression.input_attribute(input,"payload.temperature"),iotevents.Expression.from_string("15")),executing=[actions.LambdaInvokeAction(func)])# transit to warmState when temperature is greater than or equal to 15cold_state.transition_to(warm_state,when=iotevents.Expression.gte(iotevents.Expression.input_attribute(input,"payload.temperature"),iotevents.Expression.from_string("15")))iotevents.DetectorModel(self,"MyDetectorModel",detector_model_name="test-detector-model",# optionaldescription="test-detector-model-description",# optional property, default is noneevaluation_method=iotevents.EventEvaluation.SERIAL,# optional property, default is iotevents.EventEvaluation.BATCHdetector_key="payload.deviceId",# optional property, default is none and single detector instance will be created and all inputs will be routed to itinitial_state=warm_state)To grant permissions to put messages in the input,
you can use thegrantWrite()method:importaws_cdk.aws_iamasiamimportaws_cdk.aws_iotevents_alphaasiotevents# grantable: iam.IGrantableinput=iotevents.Input.from_input_name(self,"MyInput","my_input")input.grant_write(grantable)
Package: aws-cdk.aws-iotfleethub
AWS::IoTFleetHub Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_iotfleethubasiotfleethubThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for IoTFleetHub construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::IoTFleetHub resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::IoTFleetHub.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)
Package: aws-cdk.aws-iotfleetwise
AWS::IoTFleetWise Construct Library---AWS CDK v1 has reached End-of-Support on 2023-06-01.
This package is no longer being updated, and users should migrate to AWS CDK v2.For more information on how to migrate, see theMigrating to AWS CDK v2guide.This module is part of theAWS Cloud Development Kitproject.importaws_cdk.aws_iotfleetwiseasiotfleetwiseThere are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:SearchConstruct Hub for IoTFleetWise construct librariesUse the automatically generatedL1constructs, in the same way you would usethe CloudFormation AWS::IoTFleetWise resourcesdirectly.There are no hand-written (L2) constructs for this service yet.
However, you can still use the automatically generatedL1constructs, and use this service exactly as you would using CloudFormation directly.For more information on the resources and properties available for this service, see theCloudFormation documentation for AWS::IoTFleetWise.(Read theCDK Contributing Guideand submit an RFC if you are interested in contributing to this construct library.)