# VariableProperty

An instance of a variable to be passed to the `containerAction` execution.

Each variable must have a name and a value given by one of `stringValue` , `datasetContentVersionValue` , or `outputFileUriValue` .

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotanalytics as iotanalytics } from 'aws-cdk-lib';
const variableProperty: iotanalytics.CfnDataset.VariableProperty = {
  variableName: 'variableName',

  // the properties below are optional
  datasetContentVersionValue: {
    datasetName: 'datasetName',
  },
  doubleValue: 123,
  outputFileUriValue: {
    fileName: 'fileName',
  },
  stringValue: 'stringValue',
};
```

## Properties

- `datasetContentVersionValue`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataset.DatasetContentVersionValueProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.DatasetContentVersionValueProperty.html) — The value of the variable as a structure that specifies a dataset content version.

- `doubleValue`: number — The value of the variable as a double (numeric).

- `outputFileUriValue`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataset.OutputFileUriValueProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.OutputFileUriValueProperty.html) — The value of the variable as a structure that specifies an output file URI.

- `stringValue`: string — The value of the variable as a string.

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