SetVariableAction
- class aws_cdk.aws_iotevents_actions.SetVariableAction(variable_name, value)
Bases:
object
(experimental) The action to create a variable with a specified value.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# Example automatically generated from non-compiling source. May contain errors. import aws_cdk.aws_iotevents as iotevents import aws_cdk.aws_iotevents_actions 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, [ 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
Methods
- bind(_scope, *, role)
(experimental) Returns the AWS IoT Events action specification.
- Parameters:
- Stability:
experimental
- Return type: