Skip to content
v2.278.0

SetVariableProperty Struct ​

Information about the variable and its new value.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotevents as iotevents } from 'aws-cdk-lib';
const setVariableProperty: iotevents.CfnDetectorModel.SetVariableProperty = {
  value: 'value',
  variableName: 'variableName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotevents as iotevents

set_variable_property = iotevents.CfnDetectorModel.SetVariableProperty(
    value="value",
    variable_name="variableName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotevents.*;

SetVariableProperty setVariableProperty = SetVariableProperty.builder()
        .value("value")
        .variableName("variableName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTEvents;

var setVariableProperty = new SetVariableProperty {
    Value = "value",
    VariableName = "variableName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

setVariableProperty := &SetVariableProperty{
	Value: jsii.String("value"),
	VariableName: jsii.String("variableName"),
}

Properties ​

valuestringvaluestrvalueStringValuestringValue*string required #
The new value of the variable.
variableNamestringvariable_namestrvariableNameStringVariableNamestringVariableName*string required #
The name of the variable.