# SetVariableProperty

Information about the variable and its new value.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `value`: string (required) — The new value of the variable.

- `variableName`: string (required) — The name of the variable.
