SetVariableAction
- class aws_cdk.aws_iotevents_actions_alpha.SetVariableAction(variable_name, value)
Bases:
object
(experimental) The action to create a variable with a specified value.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_iotevents_alpha as iotevents import aws_cdk.aws_iotevents_actions_alpha as actions # input: iotevents.IInput state = iotevents.State( state_name="MyState", on_enter=[iotevents.Event( event_name="test-event", condition=iotevents.Expression.current_input(input), actions=[ actions.SetVariableAction("MyVariable", iotevents.Expression.input_attribute(input, "payload.temperature")) ] )] )
- Parameters:
variable_name (
str
) – the name of the variable.value (
Expression
) – the new value of the variable.
- Stability:
experimental