![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iotevents.kotlin.inputs.AlarmModelAlarmActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotevents.kotlin.inputs
import com.pulumi.awsnative.iotevents.inputs.AlarmModelAlarmActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Specifies one of the following actions to receive notifications when the alarm state changes.
* @property dynamoDBv2 Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.
* You must use expressions for all parameters in ``DynamoDBv2Action``. The expressions accept literals, operators, functions, references, and substitution templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``tableName`` parameter can be ``'GreenhouseTemperatureTable'``.
* + For references, you must specify either variables or input values. For example, the value for the ``tableName`` parameter can be ``$variable.ddbtableName``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``contentExpression`` parameter in ``Payload`` uses a substitution template.
* ``'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'``
* + For a string concatenation, you must use ``+``. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``tableName`` parameter uses a string concatenation.
* ``'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date``
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* The value for the ``type`` parameter in ``Payload`` must be ``JSON``.
* @property dynamoDb Defines an action to write to the Amazon DynamoDB table that you created. The standard action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.
* You must use expressions for all parameters in ``DynamoDBAction``. The expressions accept literals, operators, functions, references, and substitution templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``hashKeyType`` parameter can be ``'STRING'``.
* + For references, you must specify either variables or input values. For example, the value for the ``hashKeyField`` parameter can be ``$input.GreenhouseInput.name``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``hashKeyValue`` parameter uses a substitution template.
* ``'${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'``
* + For a string concatenation, you must use ``+``. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``tableName`` parameter uses a string concatenation.
* ``'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date``
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* If the defined payload type is a string, ``DynamoDBAction`` writes non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the ``payloadField`` parameter is ``_raw``.
* @property firehose Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
* @property iotEvents Sends an ITE input, passing in information about the detector model instance and the event that triggered the action.
* @property iotSiteWise Sends information about the detector model instance and the event that triggered the action to a specified asset property in ITSW.
* You must use expressions for all parameters in ``IotSiteWiseAction``. The expressions accept literals, operators, functions, references, and substitutions templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``propertyAlias`` parameter can be ``'/company/windfarm/3/turbine/7/temperature'``.
* + For references, you must specify either variables or input values. For example, the value for the ``assetId`` parameter can be ``$input.TurbineInput.assetId1``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``propertyAlias`` parameter uses a substitution template.
* ``'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'``
* You must specify either ``propertyAlias`` or both ``assetId`` and ``propertyId`` to identify the target asset property in ITSW.
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* @property iotTopicPublish Information required to publish the MQTT message through the IoT message broker.
* @property lambda Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
* @property sns Information required to publish the Amazon SNS message.
* @property sqs Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
*/
public data class AlarmModelAlarmActionArgs(
public val dynamoDBv2: Output? = null,
public val dynamoDb: Output? = null,
public val firehose: Output? = null,
public val iotEvents: Output? = null,
public val iotSiteWise: Output? = null,
public val iotTopicPublish: Output? = null,
public val lambda: Output? = null,
public val sns: Output? = null,
public val sqs: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotevents.inputs.AlarmModelAlarmActionArgs =
com.pulumi.awsnative.iotevents.inputs.AlarmModelAlarmActionArgs.builder()
.dynamoDBv2(dynamoDBv2?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.dynamoDb(dynamoDb?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.firehose(firehose?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.iotEvents(iotEvents?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.iotSiteWise(iotSiteWise?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.iotTopicPublish(iotTopicPublish?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.lambda(lambda?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sns(sns?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sqs(sqs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AlarmModelAlarmActionArgs].
*/
@PulumiTagMarker
public class AlarmModelAlarmActionArgsBuilder internal constructor() {
private var dynamoDBv2: Output? = null
private var dynamoDb: Output? = null
private var firehose: Output? = null
private var iotEvents: Output? = null
private var iotSiteWise: Output? = null
private var iotTopicPublish: Output? = null
private var lambda: Output? = null
private var sns: Output? = null
private var sqs: Output? = null
/**
* @param value Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.
* You must use expressions for all parameters in ``DynamoDBv2Action``. The expressions accept literals, operators, functions, references, and substitution templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``tableName`` parameter can be ``'GreenhouseTemperatureTable'``.
* + For references, you must specify either variables or input values. For example, the value for the ``tableName`` parameter can be ``$variable.ddbtableName``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``contentExpression`` parameter in ``Payload`` uses a substitution template.
* ``'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'``
* + For a string concatenation, you must use ``+``. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``tableName`` parameter uses a string concatenation.
* ``'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date``
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* The value for the ``type`` parameter in ``Payload`` must be ``JSON``.
*/
@JvmName("nnwaiqipxleyoidd")
public suspend fun dynamoDBv2(`value`: Output) {
this.dynamoDBv2 = value
}
/**
* @param value Defines an action to write to the Amazon DynamoDB table that you created. The standard action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.
* You must use expressions for all parameters in ``DynamoDBAction``. The expressions accept literals, operators, functions, references, and substitution templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``hashKeyType`` parameter can be ``'STRING'``.
* + For references, you must specify either variables or input values. For example, the value for the ``hashKeyField`` parameter can be ``$input.GreenhouseInput.name``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``hashKeyValue`` parameter uses a substitution template.
* ``'${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'``
* + For a string concatenation, you must use ``+``. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``tableName`` parameter uses a string concatenation.
* ``'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date``
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* If the defined payload type is a string, ``DynamoDBAction`` writes non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the ``payloadField`` parameter is ``_raw``.
*/
@JvmName("dgubjdftdfjkcsqf")
public suspend fun dynamoDb(`value`: Output) {
this.dynamoDb = value
}
/**
* @param value Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
*/
@JvmName("gjnopudvrkejfuwb")
public suspend fun firehose(`value`: Output) {
this.firehose = value
}
/**
* @param value Sends an ITE input, passing in information about the detector model instance and the event that triggered the action.
*/
@JvmName("sdvlqefaclcgqjwc")
public suspend fun iotEvents(`value`: Output) {
this.iotEvents = value
}
/**
* @param value Sends information about the detector model instance and the event that triggered the action to a specified asset property in ITSW.
* You must use expressions for all parameters in ``IotSiteWiseAction``. The expressions accept literals, operators, functions, references, and substitutions templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``propertyAlias`` parameter can be ``'/company/windfarm/3/turbine/7/temperature'``.
* + For references, you must specify either variables or input values. For example, the value for the ``assetId`` parameter can be ``$input.TurbineInput.assetId1``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``propertyAlias`` parameter uses a substitution template.
* ``'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'``
* You must specify either ``propertyAlias`` or both ``assetId`` and ``propertyId`` to identify the target asset property in ITSW.
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
*/
@JvmName("elwaqdtyyjsofukx")
public suspend fun iotSiteWise(`value`: Output) {
this.iotSiteWise = value
}
/**
* @param value Information required to publish the MQTT message through the IoT message broker.
*/
@JvmName("jdygeawbxkwxtkwl")
public suspend fun iotTopicPublish(`value`: Output) {
this.iotTopicPublish = value
}
/**
* @param value Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
*/
@JvmName("ltbsktmmqfprxpqr")
public suspend fun lambda(`value`: Output) {
this.lambda = value
}
/**
* @param value Information required to publish the Amazon SNS message.
*/
@JvmName("rrrshcxxbxyqdvrt")
public suspend fun sns(`value`: Output) {
this.sns = value
}
/**
* @param value Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
*/
@JvmName("ibvgxfwwqiardany")
public suspend fun sqs(`value`: Output) {
this.sqs = value
}
/**
* @param value Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.
* You must use expressions for all parameters in ``DynamoDBv2Action``. The expressions accept literals, operators, functions, references, and substitution templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``tableName`` parameter can be ``'GreenhouseTemperatureTable'``.
* + For references, you must specify either variables or input values. For example, the value for the ``tableName`` parameter can be ``$variable.ddbtableName``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``contentExpression`` parameter in ``Payload`` uses a substitution template.
* ``'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'``
* + For a string concatenation, you must use ``+``. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``tableName`` parameter uses a string concatenation.
* ``'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date``
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* The value for the ``type`` parameter in ``Payload`` must be ``JSON``.
*/
@JvmName("npnmuubhubaqhadf")
public suspend fun dynamoDBv2(`value`: AlarmModelDynamoDBv2Args?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dynamoDBv2 = mapped
}
/**
* @param argument Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.
* You must use expressions for all parameters in ``DynamoDBv2Action``. The expressions accept literals, operators, functions, references, and substitution templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``tableName`` parameter can be ``'GreenhouseTemperatureTable'``.
* + For references, you must specify either variables or input values. For example, the value for the ``tableName`` parameter can be ``$variable.ddbtableName``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``contentExpression`` parameter in ``Payload`` uses a substitution template.
* ``'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\", \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 + 32}\"}'``
* + For a string concatenation, you must use ``+``. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``tableName`` parameter uses a string concatenation.
* ``'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date``
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* The value for the ``type`` parameter in ``Payload`` must be ``JSON``.
*/
@JvmName("guqcuutgiyaxktnd")
public suspend fun dynamoDBv2(argument: suspend AlarmModelDynamoDBv2ArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelDynamoDBv2ArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.dynamoDBv2 = mapped
}
/**
* @param value Defines an action to write to the Amazon DynamoDB table that you created. The standard action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.
* You must use expressions for all parameters in ``DynamoDBAction``. The expressions accept literals, operators, functions, references, and substitution templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``hashKeyType`` parameter can be ``'STRING'``.
* + For references, you must specify either variables or input values. For example, the value for the ``hashKeyField`` parameter can be ``$input.GreenhouseInput.name``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``hashKeyValue`` parameter uses a substitution template.
* ``'${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'``
* + For a string concatenation, you must use ``+``. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``tableName`` parameter uses a string concatenation.
* ``'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date``
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* If the defined payload type is a string, ``DynamoDBAction`` writes non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the ``payloadField`` parameter is ``_raw``.
*/
@JvmName("gugtqpweyylvvajm")
public suspend fun dynamoDb(`value`: AlarmModelDynamoDbArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dynamoDb = mapped
}
/**
* @param argument Defines an action to write to the Amazon DynamoDB table that you created. The standard action payload contains all the information about the detector model instance and the event that triggered the action. You can customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify.
* You must use expressions for all parameters in ``DynamoDBAction``. The expressions accept literals, operators, functions, references, and substitution templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``hashKeyType`` parameter can be ``'STRING'``.
* + For references, you must specify either variables or input values. For example, the value for the ``hashKeyField`` parameter can be ``$input.GreenhouseInput.name``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``hashKeyValue`` parameter uses a substitution template.
* ``'${$input.GreenhouseInput.temperature * 6 / 5 + 32} in Fahrenheit'``
* + For a string concatenation, you must use ``+``. A string concatenation can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``tableName`` parameter uses a string concatenation.
* ``'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date``
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
* If the defined payload type is a string, ``DynamoDBAction`` writes non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for the ``payloadField`` parameter is ``_raw``.
*/
@JvmName("ykwnglrbmccytdbj")
public suspend fun dynamoDb(argument: suspend AlarmModelDynamoDbArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelDynamoDbArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.dynamoDb = mapped
}
/**
* @param value Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
*/
@JvmName("rwrbvmglwqvjcxpc")
public suspend fun firehose(`value`: AlarmModelFirehoseArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.firehose = mapped
}
/**
* @param argument Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
*/
@JvmName("yxcxydmtubabtdit")
public suspend fun firehose(argument: suspend AlarmModelFirehoseArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelFirehoseArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.firehose = mapped
}
/**
* @param value Sends an ITE input, passing in information about the detector model instance and the event that triggered the action.
*/
@JvmName("lrvvfmvnmvqiiijm")
public suspend fun iotEvents(`value`: AlarmModelIotEventsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iotEvents = mapped
}
/**
* @param argument Sends an ITE input, passing in information about the detector model instance and the event that triggered the action.
*/
@JvmName("hyomhqhjmjocdkae")
public suspend fun iotEvents(argument: suspend AlarmModelIotEventsArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelIotEventsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.iotEvents = mapped
}
/**
* @param value Sends information about the detector model instance and the event that triggered the action to a specified asset property in ITSW.
* You must use expressions for all parameters in ``IotSiteWiseAction``. The expressions accept literals, operators, functions, references, and substitutions templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``propertyAlias`` parameter can be ``'/company/windfarm/3/turbine/7/temperature'``.
* + For references, you must specify either variables or input values. For example, the value for the ``assetId`` parameter can be ``$input.TurbineInput.assetId1``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``propertyAlias`` parameter uses a substitution template.
* ``'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'``
* You must specify either ``propertyAlias`` or both ``assetId`` and ``propertyId`` to identify the target asset property in ITSW.
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
*/
@JvmName("imbqjfwnhtaktyud")
public suspend fun iotSiteWise(`value`: AlarmModelIotSiteWiseArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iotSiteWise = mapped
}
/**
* @param argument Sends information about the detector model instance and the event that triggered the action to a specified asset property in ITSW.
* You must use expressions for all parameters in ``IotSiteWiseAction``. The expressions accept literals, operators, functions, references, and substitutions templates.
* **Examples**
* + For literal values, the expressions must contain single quotes. For example, the value for the ``propertyAlias`` parameter can be ``'/company/windfarm/3/turbine/7/temperature'``.
* + For references, you must specify either variables or input values. For example, the value for the ``assetId`` parameter can be ``$input.TurbineInput.assetId1``.
* + For a substitution template, you must use ``${}``, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
* In the following example, the value for the ``propertyAlias`` parameter uses a substitution template.
* ``'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'``
* You must specify either ``propertyAlias`` or both ``assetId`` and ``propertyId`` to identify the target asset property in ITSW.
* For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *Developer Guide*.
*/
@JvmName("rorcffhsgrrvorxv")
public suspend fun iotSiteWise(argument: suspend AlarmModelIotSiteWiseArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelIotSiteWiseArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.iotSiteWise = mapped
}
/**
* @param value Information required to publish the MQTT message through the IoT message broker.
*/
@JvmName("vgcxtgggcxfabmjo")
public suspend fun iotTopicPublish(`value`: AlarmModelIotTopicPublishArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iotTopicPublish = mapped
}
/**
* @param argument Information required to publish the MQTT message through the IoT message broker.
*/
@JvmName("memgdobmssasffcm")
public suspend fun iotTopicPublish(argument: suspend AlarmModelIotTopicPublishArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelIotTopicPublishArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.iotTopicPublish = mapped
}
/**
* @param value Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
*/
@JvmName("rdygwtwqyfcgconf")
public suspend fun lambda(`value`: AlarmModelLambdaArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.lambda = mapped
}
/**
* @param argument Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
*/
@JvmName("epmdrlykjdlreofr")
public suspend fun lambda(argument: suspend AlarmModelLambdaArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelLambdaArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.lambda = mapped
}
/**
* @param value Information required to publish the Amazon SNS message.
*/
@JvmName("ewvgmfygmjpetigo")
public suspend fun sns(`value`: AlarmModelSnsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sns = mapped
}
/**
* @param argument Information required to publish the Amazon SNS message.
*/
@JvmName("ppjdverjiemtriim")
public suspend fun sns(argument: suspend AlarmModelSnsArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelSnsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sns = mapped
}
/**
* @param value Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
*/
@JvmName("twlnfivcwlhncmkq")
public suspend fun sqs(`value`: AlarmModelSqsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sqs = mapped
}
/**
* @param argument Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
*/
@JvmName("gsvqfqpfkubglbyc")
public suspend fun sqs(argument: suspend AlarmModelSqsArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelSqsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sqs = mapped
}
internal fun build(): AlarmModelAlarmActionArgs = AlarmModelAlarmActionArgs(
dynamoDBv2 = dynamoDBv2,
dynamoDb = dynamoDb,
firehose = firehose,
iotEvents = iotEvents,
iotSiteWise = iotSiteWise,
iotTopicPublish = iotTopicPublish,
lambda = lambda,
sns = sns,
sqs = sqs,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy