libZSservicesZSamazonka-ioteventsZSamazonka-iotevents
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoTEvents.Lens

Description

 
Synopsis

Operations

ListInputs

listInputs_nextToken :: Lens' ListInputs (Maybe Text) Source #

The token that you can use to return the next set of results.

listInputs_maxResults :: Lens' ListInputs (Maybe Natural) Source #

The maximum number of results to be returned per request.

listInputsResponse_nextToken :: Lens' ListInputsResponse (Maybe Text) Source #

The token that you can use to return the next set of results, or null if there are no more results.

StartDetectorModelAnalysis

startDetectorModelAnalysisResponse_analysisId :: Lens' StartDetectorModelAnalysisResponse (Maybe Text) Source #

The ID that you can use to retrieve the analysis result.

PutLoggingOptions

putLoggingOptions_loggingOptions :: Lens' PutLoggingOptions LoggingOptions Source #

The new values of the AWS IoT Events logging options.

DescribeDetectorModelAnalysis

describeDetectorModelAnalysis_analysisId :: Lens' DescribeDetectorModelAnalysis Text Source #

The ID of the analysis result that you want to retrieve.

describeDetectorModelAnalysisResponse_status :: Lens' DescribeDetectorModelAnalysisResponse (Maybe AnalysisStatus) Source #

The status of the analysis activity. The status can be one of the following values:

  • RUNNING - AWS IoT Events is analyzing your detector model. This process can take several minutes to complete.
  • COMPLETE - AWS IoT Events finished analyzing your detector model.
  • FAILED - AWS IoT Events couldn't analyze your detector model. Try again later.

CreateInput

createInput_inputDescription :: Lens' CreateInput (Maybe Text) Source #

A brief description of the input.

createInput_tags :: Lens' CreateInput (Maybe [Tag]) Source #

Metadata that can be used to manage the input.

createInput_inputName :: Lens' CreateInput Text Source #

The name you want to give to the input.

ListTagsForResource

listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #

The list of tags assigned to the resource.

ListAlarmModels

listAlarmModels_nextToken :: Lens' ListAlarmModels (Maybe Text) Source #

The token that you can use to return the next set of results.

listAlarmModels_maxResults :: Lens' ListAlarmModels (Maybe Natural) Source #

The maximum number of results to be returned per request.

listAlarmModelsResponse_nextToken :: Lens' ListAlarmModelsResponse (Maybe Text) Source #

The token that you can use to return the next set of results, or null if there are no more results.

DeleteAlarmModel

UpdateAlarmModel

updateAlarmModel_severity :: Lens' UpdateAlarmModel (Maybe Natural) Source #

A non-negative integer that reflects the severity level of the alarm.

updateAlarmModel_alarmNotification :: Lens' UpdateAlarmModel (Maybe AlarmNotification) Source #

Contains information about one or more notification actions.

updateAlarmModel_alarmEventActions :: Lens' UpdateAlarmModel (Maybe AlarmEventActions) Source #

Contains information about one or more alarm actions.

updateAlarmModel_alarmCapabilities :: Lens' UpdateAlarmModel (Maybe AlarmCapabilities) Source #

Contains the configuration information of alarm state changes.

updateAlarmModel_roleArn :: Lens' UpdateAlarmModel Text Source #

The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

updateAlarmModel_alarmRule :: Lens' UpdateAlarmModel AlarmRule Source #

Defines when your alarm is invoked.

updateAlarmModelResponse_creationTime :: Lens' UpdateAlarmModelResponse (Maybe UTCTime) Source #

The time the alarm model was created, in the Unix epoch format.

updateAlarmModelResponse_status :: Lens' UpdateAlarmModelResponse (Maybe AlarmModelVersionStatus) Source #

The status of the alarm model. The status can be one of the following values:

  • ACTIVE - The alarm model is active and it's ready to evaluate data.
  • ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes.
  • INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model.
  • FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.

updateAlarmModelResponse_lastUpdateTime :: Lens' UpdateAlarmModelResponse (Maybe UTCTime) Source #

The time the alarm model was last updated, in the Unix epoch format.

updateAlarmModelResponse_alarmModelArn :: Lens' UpdateAlarmModelResponse (Maybe Text) Source #

The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

CreateAlarmModel

createAlarmModel_severity :: Lens' CreateAlarmModel (Maybe Natural) Source #

A non-negative integer that reflects the severity level of the alarm.

createAlarmModel_alarmNotification :: Lens' CreateAlarmModel (Maybe AlarmNotification) Source #

Contains information about one or more notification actions.

createAlarmModel_key :: Lens' CreateAlarmModel (Maybe Text) Source #

An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.

createAlarmModel_alarmModelDescription :: Lens' CreateAlarmModel (Maybe Text) Source #

A description that tells you what the alarm model detects.

createAlarmModel_alarmEventActions :: Lens' CreateAlarmModel (Maybe AlarmEventActions) Source #

Contains information about one or more alarm actions.

createAlarmModel_alarmCapabilities :: Lens' CreateAlarmModel (Maybe AlarmCapabilities) Source #

Contains the configuration information of alarm state changes.

createAlarmModel_tags :: Lens' CreateAlarmModel (Maybe [Tag]) Source #

A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide.

You can create up to 50 tags for one alarm model.

createAlarmModel_alarmModelName :: Lens' CreateAlarmModel Text Source #

A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.

createAlarmModel_roleArn :: Lens' CreateAlarmModel Text Source #

The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

createAlarmModel_alarmRule :: Lens' CreateAlarmModel AlarmRule Source #

Defines when your alarm is invoked.

createAlarmModelResponse_creationTime :: Lens' CreateAlarmModelResponse (Maybe UTCTime) Source #

The time the alarm model was created, in the Unix epoch format.

createAlarmModelResponse_status :: Lens' CreateAlarmModelResponse (Maybe AlarmModelVersionStatus) Source #

The status of the alarm model. The status can be one of the following values:

  • ACTIVE - The alarm model is active and it's ready to evaluate data.
  • ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes.
  • INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model.
  • FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.

createAlarmModelResponse_lastUpdateTime :: Lens' CreateAlarmModelResponse (Maybe UTCTime) Source #

The time the alarm model was last updated, in the Unix epoch format.

createAlarmModelResponse_alarmModelArn :: Lens' CreateAlarmModelResponse (Maybe Text) Source #

The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

GetDetectorModelAnalysisResults

getDetectorModelAnalysisResults_nextToken :: Lens' GetDetectorModelAnalysisResults (Maybe Text) Source #

The token that you can use to return the next set of results.

getDetectorModelAnalysisResults_maxResults :: Lens' GetDetectorModelAnalysisResults (Maybe Int) Source #

The maximum number of results to be returned per request.

getDetectorModelAnalysisResults_analysisId :: Lens' GetDetectorModelAnalysisResults Text Source #

The ID of the analysis result that you want to retrieve.

getDetectorModelAnalysisResultsResponse_nextToken :: Lens' GetDetectorModelAnalysisResultsResponse (Maybe Text) Source #

The token that you can use to return the next set of results, or null if there are no more results.

ListDetectorModelVersions

listDetectorModelVersions_nextToken :: Lens' ListDetectorModelVersions (Maybe Text) Source #

The token that you can use to return the next set of results.

listDetectorModelVersions_maxResults :: Lens' ListDetectorModelVersions (Maybe Natural) Source #

The maximum number of results to be returned per request.

listDetectorModelVersions_detectorModelName :: Lens' ListDetectorModelVersions Text Source #

The name of the detector model whose versions are returned.

listDetectorModelVersionsResponse_nextToken :: Lens' ListDetectorModelVersionsResponse (Maybe Text) Source #

The token that you can use to return the next set of results, or null if there are no more results.

DescribeAlarmModel

describeAlarmModelResponse_creationTime :: Lens' DescribeAlarmModelResponse (Maybe UTCTime) Source #

The time the alarm model was created, in the Unix epoch format.

describeAlarmModelResponse_status :: Lens' DescribeAlarmModelResponse (Maybe AlarmModelVersionStatus) Source #

The status of the alarm model. The status can be one of the following values:

  • ACTIVE - The alarm model is active and it's ready to evaluate data.
  • ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes.
  • INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model.
  • FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.

describeAlarmModelResponse_severity :: Lens' DescribeAlarmModelResponse (Maybe Natural) Source #

A non-negative integer that reflects the severity level of the alarm.

describeAlarmModelResponse_alarmNotification :: Lens' DescribeAlarmModelResponse (Maybe AlarmNotification) Source #

Contains information about one or more notification actions.

describeAlarmModelResponse_key :: Lens' DescribeAlarmModelResponse (Maybe Text) Source #

An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.

describeAlarmModelResponse_statusMessage :: Lens' DescribeAlarmModelResponse (Maybe Text) Source #

Contains information about the status of the alarm model.

describeAlarmModelResponse_alarmCapabilities :: Lens' DescribeAlarmModelResponse (Maybe AlarmCapabilities) Source #

Contains the configuration information of alarm state changes.

describeAlarmModelResponse_lastUpdateTime :: Lens' DescribeAlarmModelResponse (Maybe UTCTime) Source #

The time the alarm model was last updated, in the Unix epoch format.

describeAlarmModelResponse_alarmModelArn :: Lens' DescribeAlarmModelResponse (Maybe Text) Source #

The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

describeAlarmModelResponse_roleArn :: Lens' DescribeAlarmModelResponse (Maybe Text) Source #

The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

CreateDetectorModel

createDetectorModel_key :: Lens' CreateDetectorModel (Maybe Text) Source #

The input attribute key used to identify a device or system to create a detector (an instance of the detector model) and then to route each input received to the appropriate detector (instance). This parameter uses a JSON-path expression in the message payload of each input to specify the attribute-value pair that is used to identify the device associated with the input.

createDetectorModel_evaluationMethod :: Lens' CreateDetectorModel (Maybe EvaluationMethod) Source #

Information about the order in which events are evaluated and how actions are executed.

createDetectorModel_tags :: Lens' CreateDetectorModel (Maybe [Tag]) Source #

Metadata that can be used to manage the detector model.

createDetectorModel_roleArn :: Lens' CreateDetectorModel Text Source #

The ARN of the role that grants permission to AWS IoT Events to perform its operations.

ListDetectorModels

listDetectorModels_nextToken :: Lens' ListDetectorModels (Maybe Text) Source #

The token that you can use to return the next set of results.

listDetectorModels_maxResults :: Lens' ListDetectorModels (Maybe Natural) Source #

The maximum number of results to be returned per request.

listDetectorModelsResponse_nextToken :: Lens' ListDetectorModelsResponse (Maybe Text) Source #

The token that you can use to return the next set of results, or null if there are no more results.

UpdateDetectorModel

updateDetectorModel_evaluationMethod :: Lens' UpdateDetectorModel (Maybe EvaluationMethod) Source #

Information about the order in which events are evaluated and how actions are executed.

updateDetectorModel_detectorModelName :: Lens' UpdateDetectorModel Text Source #

The name of the detector model that is updated.

updateDetectorModel_roleArn :: Lens' UpdateDetectorModel Text Source #

The ARN of the role that grants permission to AWS IoT Events to perform its operations.

DeleteDetectorModel

deleteDetectorModel_detectorModelName :: Lens' DeleteDetectorModel Text Source #

The name of the detector model to be deleted.

DeleteInput

deleteInput_inputName :: Lens' DeleteInput Text Source #

The name of the input to delete.

UpdateInput

updateInput_inputDescription :: Lens' UpdateInput (Maybe Text) Source #

A brief description of the input.

updateInput_inputName :: Lens' UpdateInput Text Source #

The name of the input you want to update.

ListAlarmModelVersions

listAlarmModelVersions_nextToken :: Lens' ListAlarmModelVersions (Maybe Text) Source #

The token that you can use to return the next set of results.

listAlarmModelVersions_maxResults :: Lens' ListAlarmModelVersions (Maybe Natural) Source #

The maximum number of results to be returned per request.

listAlarmModelVersionsResponse_nextToken :: Lens' ListAlarmModelVersionsResponse (Maybe Text) Source #

The token that you can use to return the next set of results, or null if there are no more results.

TagResource

tagResource_tags :: Lens' TagResource [Tag] Source #

The new or modified tags for the resource.

DescribeDetectorModel

DescribeInput

UntagResource

untagResource_tagKeys :: Lens' UntagResource [Text] Source #

A list of the keys of the tags to be removed from the resource.

ListInputRoutings

listInputRoutings_nextToken :: Lens' ListInputRoutings (Maybe Text) Source #

The token that you can use to return the next set of results.

listInputRoutings_maxResults :: Lens' ListInputRoutings (Maybe Natural) Source #

The maximum number of results to be returned per request.

listInputRoutingsResponse_nextToken :: Lens' ListInputRoutingsResponse (Maybe Text) Source #

The token that you can use to return the next set of results, or null if there are no more results.

DescribeLoggingOptions

Types

AcknowledgeFlow

acknowledgeFlow_enabled :: Lens' AcknowledgeFlow Bool Source #

The value must be TRUE or FALSE. If TRUE, you receive a notification when the alarm state changes. You must choose to acknowledge the notification before the alarm state can return to NORMAL. If FALSE, you won't receive notifications. The alarm automatically changes to the NORMAL state when the input property value returns to the specified range.

Action

action_iotTopicPublish :: Lens' Action (Maybe IotTopicPublishAction) Source #

Publishes an MQTT message with the given topic to the AWS IoT message broker.

action_dynamoDBv2 :: Lens' Action (Maybe DynamoDBv2Action) Source #

Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

action_resetTimer :: Lens' Action (Maybe ResetTimerAction) Source #

Information needed to reset the timer.

action_setTimer :: Lens' Action (Maybe SetTimerAction) Source #

Information needed to set the timer.

action_sns :: Lens' Action (Maybe SNSTopicPublishAction) Source #

Sends an Amazon SNS message.

action_clearTimer :: Lens' Action (Maybe ClearTimerAction) Source #

Information needed to clear the timer.

action_dynamoDB :: Lens' Action (Maybe DynamoDBAction) Source #

Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

action_firehose :: Lens' Action (Maybe FirehoseAction) Source #

Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

action_iotSiteWise :: Lens' Action (Maybe IotSiteWiseAction) Source #

Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .

action_setVariable :: Lens' Action (Maybe SetVariableAction) Source #

Sets a variable to a specified value.

action_lambda :: Lens' Action (Maybe LambdaAction) Source #

Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.

action_iotEvents :: Lens' Action (Maybe IotEventsAction) Source #

Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.

action_sqs :: Lens' Action (Maybe SqsAction) Source #

Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.

AlarmAction

AlarmCapabilities

alarmCapabilities_acknowledgeFlow :: Lens' AlarmCapabilities (Maybe AcknowledgeFlow) Source #

Specifies whether to get notified for alarm state changes.

alarmCapabilities_initializationConfiguration :: Lens' AlarmCapabilities (Maybe InitializationConfiguration) Source #

Specifies the default alarm state. The configuration applies to all alarms that were created based on this alarm model.

AlarmEventActions

alarmEventActions_alarmActions :: Lens' AlarmEventActions (Maybe [AlarmAction]) Source #

Specifies one or more supported actions to receive notifications when the alarm state changes.

AlarmModelSummary

alarmModelSummary_creationTime :: Lens' AlarmModelSummary (Maybe UTCTime) Source #

The time the alarm model was created, in the Unix epoch format.

AlarmModelVersionSummary

alarmModelVersionSummary_creationTime :: Lens' AlarmModelVersionSummary (Maybe UTCTime) Source #

The time the alarm model was created, in the Unix epoch format.

alarmModelVersionSummary_status :: Lens' AlarmModelVersionSummary (Maybe AlarmModelVersionStatus) Source #

The status of the alarm model. The status can be one of the following values:

  • ACTIVE - The alarm model is active and it's ready to evaluate data.
  • ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes.
  • INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model.
  • FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.

alarmModelVersionSummary_statusMessage :: Lens' AlarmModelVersionSummary (Maybe Text) Source #

Contains information about the status of the alarm model version.

alarmModelVersionSummary_lastUpdateTime :: Lens' AlarmModelVersionSummary (Maybe UTCTime) Source #

The time the alarm model was last updated, in the Unix epoch format.

alarmModelVersionSummary_alarmModelArn :: Lens' AlarmModelVersionSummary (Maybe Text) Source #

The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

alarmModelVersionSummary_roleArn :: Lens' AlarmModelVersionSummary (Maybe Text) Source #

The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

AlarmNotification

alarmNotification_notificationActions :: Lens' AlarmNotification (Maybe (NonEmpty NotificationAction)) Source #

Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.

AlarmRule

alarmRule_simpleRule :: Lens' AlarmRule (Maybe SimpleRule) Source #

A rule that compares an input property value to a threshold value with a comparison operator.

AnalysisResult

analysisResult_type :: Lens' AnalysisResult (Maybe Text) Source #

The type of the analysis result. Analyses fall into the following types based on the validators used to generate the analysis result:

  • supported-actions - You must specify AWS IoT Events supported actions that work with other AWS services in a supported AWS Region.
  • service-limits - Resources or API operations can't exceed service quotas (also known as limits). Update your detector model or request a quota increase.
  • structure - The detector model must follow a structure that AWS IoT Events supports.
  • expression-syntax - Your expression must follow the required syntax.
  • data-type - Data types referenced in the detector model must be compatible.
  • referenced-data - You must define the data referenced in your detector model before you can use the data.
  • referenced-resource - Resources that the detector model uses must be available.

For more information, see Running detector model analyses in the AWS IoT Events Developer Guide.

analysisResult_message :: Lens' AnalysisResult (Maybe Text) Source #

Contains additional information about the analysis result.

analysisResult_level :: Lens' AnalysisResult (Maybe AnalysisResultLevel) Source #

The severity level of the analysis result. Based on the severity level, analysis results fall into three general categories:

  • INFO - An information result tells you about a significant field in your detector model. This type of result usually doesn't require immediate action.
  • WARNING - A warning result draws special attention to fields that might cause issues for your detector model. We recommend that you review warnings and take necessary actions before you use your detector model in production environments. Otherwise, the detector model might not work as expected.
  • ERROR - An error result notifies you about a problem found in your detector model. You must fix all errors before you can publish your detector model.

analysisResult_locations :: Lens' AnalysisResult (Maybe [AnalysisResultLocation]) Source #

Contains one or more locations that you can use to locate the fields in your detector model that the analysis result references.

AnalysisResultLocation

analysisResultLocation_path :: Lens' AnalysisResultLocation (Maybe Text) Source #

A JsonPath expression that identifies the error field in your detector model.

AssetPropertyTimestamp

assetPropertyTimestamp_offsetInNanos :: Lens' AssetPropertyTimestamp (Maybe Text) Source #

The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999.

assetPropertyTimestamp_timeInSeconds :: Lens' AssetPropertyTimestamp Text Source #

The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.

AssetPropertyValue

assetPropertyValue_quality :: Lens' AssetPropertyValue (Maybe Text) Source #

The quality of the asset property value. The value must be 'GOOD', 'BAD', or 'UNCERTAIN'.

assetPropertyValue_timestamp :: Lens' AssetPropertyValue (Maybe AssetPropertyTimestamp) Source #

The timestamp associated with the asset property value. The default is the current event time.

AssetPropertyVariant

assetPropertyVariant_integerValue :: Lens' AssetPropertyVariant (Maybe Text) Source #

The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.

assetPropertyVariant_doubleValue :: Lens' AssetPropertyVariant (Maybe Text) Source #

The asset property value is a double. You must use an expression, and the evaluated result should be a double.

assetPropertyVariant_stringValue :: Lens' AssetPropertyVariant (Maybe Text) Source #

The asset property value is a string. You must use an expression, and the evaluated result should be a string.

assetPropertyVariant_booleanValue :: Lens' AssetPropertyVariant (Maybe Text) Source #

The asset property value is a Boolean value that must be 'TRUE' or 'FALSE'. You must use an expression, and the evaluated result should be a Boolean value.

Attribute

attribute_jsonPath :: Lens' Attribute Text Source #

An expression that specifies an attribute-value pair in a JSON structure. Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to AWS IoT Events (BatchPutMessage). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in the condition expressions used by detectors.

Syntax: <field-name>.<field-name>...

ClearTimerAction

clearTimerAction_timerName :: Lens' ClearTimerAction Text Source #

The name of the timer to clear.

DetectorDebugOption

detectorDebugOption_keyValue :: Lens' DetectorDebugOption (Maybe Text) Source #

The value of the input attribute key used to create the detector (the instance of the detector model).

DetectorModel

detectorModel_detectorModelDefinition :: Lens' DetectorModel (Maybe DetectorModelDefinition) Source #

Information that defines how a detector operates.

DetectorModelConfiguration

detectorModelConfiguration_key :: Lens' DetectorModelConfiguration (Maybe Text) Source #

The value used to identify a detector instance. When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information.

This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value.

detectorModelConfiguration_evaluationMethod :: Lens' DetectorModelConfiguration (Maybe EvaluationMethod) Source #

Information about the order in which events are evaluated and how actions are executed.

detectorModelConfiguration_roleArn :: Lens' DetectorModelConfiguration (Maybe Text) Source #

The ARN of the role that grants permission to AWS IoT Events to perform its operations.

DetectorModelDefinition

detectorModelDefinition_states :: Lens' DetectorModelDefinition (NonEmpty State) Source #

Information about the states of the detector.

detectorModelDefinition_initialStateName :: Lens' DetectorModelDefinition Text Source #

The state that is entered at the creation of each detector (instance).

DetectorModelSummary

DetectorModelVersionSummary

detectorModelVersionSummary_lastUpdateTime :: Lens' DetectorModelVersionSummary (Maybe UTCTime) Source #

The last time the detector model version was updated.

detectorModelVersionSummary_evaluationMethod :: Lens' DetectorModelVersionSummary (Maybe EvaluationMethod) Source #

Information about the order in which events are evaluated and how actions are executed.

detectorModelVersionSummary_roleArn :: Lens' DetectorModelVersionSummary (Maybe Text) Source #

The ARN of the role that grants the detector model permission to perform its tasks.

DynamoDBAction

dynamoDBAction_hashKeyType :: Lens' DynamoDBAction (Maybe Text) Source #

The data type for the hash key (also called the partition key). You can specify the following values:

  • 'STRING' - The hash key is a string.
  • 'NUMBER' - The hash key is a number.

If you don't specify hashKeyType, the default value is 'STRING'.

dynamoDBAction_operation :: Lens' DynamoDBAction (Maybe Text) Source #

The type of operation to perform. You can specify the following values:

  • 'INSERT' - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key.
  • 'UPDATE' - Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
  • 'DELETE' - Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.

If you don't specify this parameter, AWS IoT Events triggers the 'INSERT' operation.

dynamoDBAction_rangeKeyType :: Lens' DynamoDBAction (Maybe Text) Source #

The data type for the range key (also called the sort key), You can specify the following values:

  • 'STRING' - The range key is a string.
  • 'NUMBER' - The range key is number.

If you don't specify rangeKeyField, the default value is 'STRING'.

dynamoDBAction_payloadField :: Lens' DynamoDBAction (Maybe Text) Source #

The name of the DynamoDB column that receives the action payload.

If you don't specify this parameter, the name of the DynamoDB column is payload.

dynamoDBAction_rangeKeyField :: Lens' DynamoDBAction (Maybe Text) Source #

The name of the range key (also called the sort key). The rangeKeyField value must match the sort key of the target DynamoDB table.

dynamoDBAction_rangeKeyValue :: Lens' DynamoDBAction (Maybe Text) Source #

The value of the range key (also called the sort key).

dynamoDBAction_hashKeyField :: Lens' DynamoDBAction Text Source #

The name of the hash key (also called the partition key). The hashKeyField value must match the partition key of the target DynamoDB table.

dynamoDBAction_hashKeyValue :: Lens' DynamoDBAction Text Source #

The value of the hash key (also called the partition key).

dynamoDBAction_tableName :: Lens' DynamoDBAction Text Source #

The name of the DynamoDB table. The tableName value must match the table name of the target DynamoDB table.

DynamoDBv2Action

dynamoDBv2Action_tableName :: Lens' DynamoDBv2Action Text Source #

The name of the DynamoDB table.

EmailConfiguration

emailConfiguration_content :: Lens' EmailConfiguration (Maybe EmailContent) Source #

Contains the subject and message of an email.

emailConfiguration_from :: Lens' EmailConfiguration Text Source #

The email address that sends emails.

If you use the AWS IoT Events managed AWS Lambda function to manage your emails, you must verify the email address that sends emails in Amazon SES.

emailConfiguration_recipients :: Lens' EmailConfiguration EmailRecipients Source #

Contains the information of one or more recipients who receive the emails.

You must add the users that receive emails to your AWS SSO store.

EmailContent

emailContent_subject :: Lens' EmailContent (Maybe Text) Source #

The subject of the email.

emailContent_additionalMessage :: Lens' EmailContent (Maybe Text) Source #

The message that you want to send. The message can be up to 200 characters.

EmailRecipients

emailRecipients_to :: Lens' EmailRecipients (Maybe (NonEmpty RecipientDetail)) Source #

Specifies one or more recipients who receive the email.

Event

event_actions :: Lens' Event (Maybe [Action]) Source #

The actions to be performed.

event_condition :: Lens' Event (Maybe Text) Source #

Optional. The Boolean expression that, when TRUE, causes the actions to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).

event_eventName :: Lens' Event Text Source #

The name of the event.

FirehoseAction

firehoseAction_separator :: Lens' FirehoseAction (Maybe Text) Source #

A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).

firehoseAction_payload :: Lens' FirehoseAction (Maybe Payload) Source #

You can configure the action payload when you send a message to an Amazon Kinesis Data Firehose delivery stream.

firehoseAction_deliveryStreamName :: Lens' FirehoseAction Text Source #

The name of the Kinesis Data Firehose delivery stream where the data is written.

InitializationConfiguration

initializationConfiguration_disabledOnInitialization :: Lens' InitializationConfiguration Bool Source #

The value must be TRUE or FALSE. If FALSE, all alarm instances created based on the alarm model are activated. The default value is TRUE.

Input

input_inputDefinition :: Lens' Input (Maybe InputDefinition) Source #

The definition of the input.

input_inputConfiguration :: Lens' Input (Maybe InputConfiguration) Source #

Information about the configuration of an input.

InputConfiguration

InputDefinition

inputDefinition_attributes :: Lens' InputDefinition (NonEmpty Attribute) Source #

The attributes from the JSON payload that are made available by the input. Inputs are derived from messages sent to the AWS IoT Events system using BatchPutMessage. Each such message contains a JSON payload, and those attributes (and their paired values) specified here are available for use in the condition expressions used by detectors that monitor this input.

InputIdentifier

inputIdentifier_iotSiteWiseInputIdentifier :: Lens' InputIdentifier (Maybe IotSiteWiseInputIdentifier) Source #

The identifer of the input routed from AWS IoT SiteWise.

inputIdentifier_iotEventsInputIdentifier :: Lens' InputIdentifier (Maybe IotEventsInputIdentifier) Source #

The identifier of the input routed to AWS IoT Events.

InputSummary

inputSummary_creationTime :: Lens' InputSummary (Maybe UTCTime) Source #

The time the input was created.

inputSummary_inputDescription :: Lens' InputSummary (Maybe Text) Source #

A brief description of the input.

inputSummary_lastUpdateTime :: Lens' InputSummary (Maybe UTCTime) Source #

The last time the input was updated.

IotEventsAction

iotEventsAction_payload :: Lens' IotEventsAction (Maybe Payload) Source #

You can configure the action payload when you send a message to an AWS IoT Events input.

iotEventsAction_inputName :: Lens' IotEventsAction Text Source #

The name of the AWS IoT Events input where the data is sent.

IotEventsInputIdentifier

iotEventsInputIdentifier_inputName :: Lens' IotEventsInputIdentifier Text Source #

The name of the input routed to AWS IoT Events.

IotSiteWiseAction

iotSiteWiseAction_entryId :: Lens' IotSiteWiseAction (Maybe Text) Source #

A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier.

iotSiteWiseAction_propertyValue :: Lens' IotSiteWiseAction (Maybe AssetPropertyValue) Source #

The value to send to the asset property. This value contains timestamp, quality, and value (TQV) information.

iotSiteWiseAction_assetId :: Lens' IotSiteWiseAction (Maybe Text) Source #

The ID of the asset that has the specified property.

IotSiteWiseAssetModelPropertyIdentifier

IotSiteWiseInputIdentifier

IotTopicPublishAction

iotTopicPublishAction_payload :: Lens' IotTopicPublishAction (Maybe Payload) Source #

You can configure the action payload when you publish a message to an AWS IoT Core topic.

iotTopicPublishAction_mqttTopic :: Lens' IotTopicPublishAction Text Source #

The MQTT topic of the message. You can use a string expression that includes variables ($variable.<variable-name>) and input values ($input.<input-name>.<path-to-datum>) as the topic string.

LambdaAction

lambdaAction_payload :: Lens' LambdaAction (Maybe Payload) Source #

You can configure the action payload when you send a message to a Lambda function.

lambdaAction_functionArn :: Lens' LambdaAction Text Source #

The ARN of the Lambda function that is executed.

LoggingOptions

loggingOptions_detectorDebugOptions :: Lens' LoggingOptions (Maybe (NonEmpty DetectorDebugOption)) Source #

Information that identifies those detector models and their detectors (instances) for which the logging level is given.

loggingOptions_roleArn :: Lens' LoggingOptions Text Source #

The ARN of the role that grants permission to AWS IoT Events to perform logging.

loggingOptions_enabled :: Lens' LoggingOptions Bool Source #

If TRUE, logging is enabled for AWS IoT Events.

NotificationAction

notificationAction_emailConfigurations :: Lens' NotificationAction (Maybe (NonEmpty EmailConfiguration)) Source #

Contains the configuration information of email notifications.

notificationAction_smsConfigurations :: Lens' NotificationAction (Maybe (NonEmpty SMSConfiguration)) Source #

Contains the configuration information of SMS notifications.

notificationAction_action :: Lens' NotificationAction NotificationTargetActions Source #

Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function provided by AWS IoT Events.

NotificationTargetActions

OnEnterLifecycle

onEnterLifecycle_events :: Lens' OnEnterLifecycle (Maybe [Event]) Source #

Specifies the actions that are performed when the state is entered and the condition is TRUE.

OnExitLifecycle

onExitLifecycle_events :: Lens' OnExitLifecycle (Maybe [Event]) Source #

Specifies the actions that are performed when the state is exited and the condition is TRUE.

OnInputLifecycle

onInputLifecycle_events :: Lens' OnInputLifecycle (Maybe [Event]) Source #

Specifies the actions performed when the condition evaluates to TRUE.

onInputLifecycle_transitionEvents :: Lens' OnInputLifecycle (Maybe [TransitionEvent]) Source #

Specifies the actions performed, and the next state entered, when a condition evaluates to TRUE.

Payload

payload_contentExpression :: Lens' Payload Text Source #

The content of the payload. You can use a string expression that includes quoted strings ('<string>'), variables ($variable.<variable-name>), input values ($input.<input-name>.<path-to-datum>), string concatenations, and quoted strings that contain ${} as the content. The recommended maximum size of a content expression is 1 KB.

payload_type :: Lens' Payload PayloadType Source #

The value of the payload type can be either STRING or JSON.

RecipientDetail

recipientDetail_ssoIdentity :: Lens' RecipientDetail (Maybe SSOIdentity) Source #

The AWS Single Sign-On (AWS SSO) authentication information.

ResetTimerAction

resetTimerAction_timerName :: Lens' ResetTimerAction Text Source #

The name of the timer to reset.

RoutedResource

routedResource_arn :: Lens' RoutedResource (Maybe Text) Source #

The ARN of the routed resource. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

routedResource_name :: Lens' RoutedResource (Maybe Text) Source #

The name of the routed resource.

SMSConfiguration

sMSConfiguration_additionalMessage :: Lens' SMSConfiguration (Maybe Text) Source #

The message that you want to send. The message can be up to 200 characters.

SNSTopicPublishAction

sNSTopicPublishAction_payload :: Lens' SNSTopicPublishAction (Maybe Payload) Source #

You can configure the action payload when you send a message as an Amazon SNS push notification.

sNSTopicPublishAction_targetArn :: Lens' SNSTopicPublishAction Text Source #

The ARN of the Amazon SNS target where the message is sent.

SSOIdentity

sSOIdentity_identityStoreId :: Lens' SSOIdentity Text Source #

The ID of the AWS SSO identity store.

SetTimerAction

setTimerAction_durationExpression :: Lens' SetTimerAction (Maybe Text) Source #

The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.<variable-name>), and input values ($input.<input-name>.<path-to-datum>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.

setTimerAction_seconds :: Lens' SetTimerAction (Maybe Natural) Source #

The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

SetVariableAction

setVariableAction_value :: Lens' SetVariableAction Text Source #

The new value of the variable.

SimpleRule

simpleRule_inputProperty :: Lens' SimpleRule Text Source #

The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.

simpleRule_threshold :: Lens' SimpleRule Text Source #

The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.

SqsAction

sqsAction_payload :: Lens' SqsAction (Maybe Payload) Source #

You can configure the action payload when you send a message to an Amazon SQS queue.

sqsAction_useBase64 :: Lens' SqsAction (Maybe Bool) Source #

Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.

sqsAction_queueUrl :: Lens' SqsAction Text Source #

The URL of the SQS queue where the data is written.

State

state_onEnter :: Lens' State (Maybe OnEnterLifecycle) Source #

When entering this state, perform these actions if the condition is TRUE.

state_onInput :: Lens' State (Maybe OnInputLifecycle) Source #

When an input is received and the condition is TRUE, perform the specified actions.

state_onExit :: Lens' State (Maybe OnExitLifecycle) Source #

When exiting this state, perform these actions if the specified condition is TRUE.

state_stateName :: Lens' State Text Source #

The name of the state.

Tag

tag_key :: Lens' Tag Text Source #

The tag's key.

tag_value :: Lens' Tag Text Source #

The tag's value.

TransitionEvent

transitionEvent_actions :: Lens' TransitionEvent (Maybe [Action]) Source #

The actions to be performed.

transitionEvent_eventName :: Lens' TransitionEvent Text Source #

The name of the transition event.

transitionEvent_condition :: Lens' TransitionEvent Text Source #

Required. A Boolean expression that when TRUE causes the actions to be performed and the nextState to be entered.