Class CfnAlarmModelPropsMixin.AlarmActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModelPropsMixin.AlarmActionProperty>
- Enclosing interface:
CfnAlarmModelPropsMixin.AlarmActionProperty
CfnAlarmModelPropsMixin.AlarmActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dynamoDb(IResolvable dynamoDb) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getDynamoDb()Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getDynamoDb()dynamoDBv2(IResolvable dynamoDBv2) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getDynamoDBv2()dynamoDBv2(CfnAlarmModelPropsMixin.DynamoDBv2Property dynamoDBv2) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getDynamoDBv2()firehose(IResolvable firehose) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getFirehose()Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getFirehose()iotEvents(IResolvable iotEvents) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotEvents()Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotEvents()iotSiteWise(IResolvable iotSiteWise) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotSiteWise()iotSiteWise(CfnAlarmModelPropsMixin.IotSiteWiseProperty iotSiteWise) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotSiteWise()iotTopicPublish(IResolvable iotTopicPublish) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotTopicPublish()iotTopicPublish(CfnAlarmModelPropsMixin.IotTopicPublishProperty iotTopicPublish) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotTopicPublish()lambda(IResolvable lambda) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getLambda()Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getLambda()sns(IResolvable sns) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getSns()Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getSns()sqs(IResolvable sqs) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getSqs()Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getSqs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dynamoDb
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder dynamoDb(IResolvable dynamoDb) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getDynamoDb()- Parameters:
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 . 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
hashKeyTypeparameter can be'STRING'.- For references, you must specify either variables or input values. For example, the value for the
hashKeyFieldparameter 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
hashKeyValueparameter 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
tableNameparameter uses a string concatenation.'GreenhouseTemperatureTable ' + $input.GreenhouseInput.dateFor more information, see Expressions in the AWS IoT Events Developer Guide .
If the defined payload type is a string,
DynamoDBActionwrites non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for thepayloadFieldparameter is<payload-field>_raw.- For references, you must specify either variables or input values. For example, the value for the
- Returns:
this
-
dynamoDb
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder dynamoDb(CfnAlarmModelPropsMixin.DynamoDBProperty dynamoDb) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getDynamoDb()- Parameters:
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 . 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
hashKeyTypeparameter can be'STRING'.- For references, you must specify either variables or input values. For example, the value for the
hashKeyFieldparameter 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
hashKeyValueparameter 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
tableNameparameter uses a string concatenation.'GreenhouseTemperatureTable ' + $input.GreenhouseInput.dateFor more information, see Expressions in the AWS IoT Events Developer Guide .
If the defined payload type is a string,
DynamoDBActionwrites non-JSON data to the DynamoDB table as binary data. The DynamoDB console displays the data as Base64-encoded text. The value for thepayloadFieldparameter is<payload-field>_raw.- For references, you must specify either variables or input values. For example, the value for the
- Returns:
this
-
dynamoDBv2
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder dynamoDBv2(IResolvable dynamoDBv2) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getDynamoDBv2()- Parameters:
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 . 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
tableNameparameter can be'GreenhouseTemperatureTable'.- For references, you must specify either variables or input values. For example, the value for the
tableNameparameter 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
contentExpressionparameter inPayloaduses 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
tableNameparameter uses a string concatenation.'GreenhouseTemperatureTable ' + $input.GreenhouseInput.dateFor more information, see Expressions in the AWS IoT Events Developer Guide .
The value for the
typeparameter inPayloadmust beJSON.- For references, you must specify either variables or input values. For example, the value for the
- Returns:
this
-
dynamoDBv2
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder dynamoDBv2(CfnAlarmModelPropsMixin.DynamoDBv2Property dynamoDBv2) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getDynamoDBv2()- Parameters:
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 . 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
tableNameparameter can be'GreenhouseTemperatureTable'.- For references, you must specify either variables or input values. For example, the value for the
tableNameparameter 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
contentExpressionparameter inPayloaduses 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
tableNameparameter uses a string concatenation.'GreenhouseTemperatureTable ' + $input.GreenhouseInput.dateFor more information, see Expressions in the AWS IoT Events Developer Guide .
The value for the
typeparameter inPayloadmust beJSON.- For references, you must specify either variables or input values. For example, the value for the
- Returns:
this
-
firehose
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder firehose(IResolvable firehose) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getFirehose()- Parameters:
firehose- Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.- Returns:
this
-
firehose
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder firehose(CfnAlarmModelPropsMixin.FirehoseProperty firehose) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getFirehose()- Parameters:
firehose- Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.- Returns:
this
-
iotEvents
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder iotEvents(IResolvable iotEvents) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotEvents()- Parameters:
iotEvents- Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.- Returns:
this
-
iotEvents
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder iotEvents(CfnAlarmModelPropsMixin.IotEventsProperty iotEvents) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotEvents()- Parameters:
iotEvents- Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.- Returns:
this
-
iotSiteWise
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder iotSiteWise(IResolvable iotSiteWise) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotSiteWise()- Parameters:
iotSiteWise- Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise . You must use expressions for all parameters inIotSiteWiseAction. 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
propertyAliasparameter can be'/company/windfarm/3/turbine/7/temperature'.- For references, you must specify either variables or input values. For example, the value for the
assetIdparameter 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
propertyAliasparameter uses a substitution template.'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'You must specify either
propertyAliasor bothassetIdandpropertyIdto identify the target asset property in AWS IoT SiteWise .For more information, see Expressions in the AWS IoT Events Developer Guide .
- For references, you must specify either variables or input values. For example, the value for the
- Returns:
this
-
iotSiteWise
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder iotSiteWise(CfnAlarmModelPropsMixin.IotSiteWiseProperty iotSiteWise) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotSiteWise()- Parameters:
iotSiteWise- Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise . You must use expressions for all parameters inIotSiteWiseAction. 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
propertyAliasparameter can be'/company/windfarm/3/turbine/7/temperature'.- For references, you must specify either variables or input values. For example, the value for the
assetIdparameter 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
propertyAliasparameter uses a substitution template.'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'You must specify either
propertyAliasor bothassetIdandpropertyIdto identify the target asset property in AWS IoT SiteWise .For more information, see Expressions in the AWS IoT Events Developer Guide .
- For references, you must specify either variables or input values. For example, the value for the
- Returns:
this
-
iotTopicPublish
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder iotTopicPublish(IResolvable iotTopicPublish) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotTopicPublish()- Parameters:
iotTopicPublish- Information required to publish the MQTT message through the AWS IoT message broker.- Returns:
this
-
iotTopicPublish
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder iotTopicPublish(CfnAlarmModelPropsMixin.IotTopicPublishProperty iotTopicPublish) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getIotTopicPublish()- Parameters:
iotTopicPublish- Information required to publish the MQTT message through the AWS IoT message broker.- Returns:
this
-
lambda
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder lambda(IResolvable lambda) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getLambda()- Parameters:
lambda- Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.- Returns:
this
-
lambda
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder lambda(CfnAlarmModelPropsMixin.LambdaProperty lambda) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getLambda()- Parameters:
lambda- Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.- Returns:
this
-
sns
Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getSns()- Parameters:
sns- Information required to publish the Amazon SNS message.- Returns:
this
-
sns
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder sns(CfnAlarmModelPropsMixin.SnsProperty sns) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getSns()- Parameters:
sns- Information required to publish the Amazon SNS message.- Returns:
this
-
sqs
Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getSqs()- Parameters:
sqs- Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.- Returns:
this
-
sqs
@Stability(Stable) public CfnAlarmModelPropsMixin.AlarmActionProperty.Builder sqs(CfnAlarmModelPropsMixin.SqsProperty sqs) Sets the value ofCfnAlarmModelPropsMixin.AlarmActionProperty.getSqs()- Parameters:
sqs- Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmModelPropsMixin.AlarmActionProperty>- Returns:
- a new instance of
CfnAlarmModelPropsMixin.AlarmActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-