# EventVariableProperty

Struct · External

The event type variable for the detector.

- 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_frauddetector as frauddetector } from 'aws-cdk-lib';
const eventVariableProperty: frauddetector.CfnDetector.EventVariableProperty = {
  arn: 'arn',
  createdTime: 'createdTime',
  dataSource: 'dataSource',
  dataType: 'dataType',
  defaultValue: 'defaultValue',
  description: 'description',
  inline: false,
  lastUpdatedTime: 'lastUpdatedTime',
  name: 'name',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  variableType: 'variableType',
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_frauddetector as frauddetector

event_variable_property = frauddetector.CfnDetector.EventVariableProperty(
    arn="arn",
    created_time="createdTime",
    data_source="dataSource",
    data_type="dataType",
    default_value="defaultValue",
    description="description",
    inline=False,
    last_updated_time="lastUpdatedTime",
    name="name",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    variable_type="variableType"
)
```

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.frauddetector.*;

EventVariableProperty eventVariableProperty = EventVariableProperty.builder()
        .arn("arn")
        .createdTime("createdTime")
        .dataSource("dataSource")
        .dataType("dataType")
        .defaultValue("defaultValue")
        .description("description")
        .inline(false)
        .lastUpdatedTime("lastUpdatedTime")
        .name("name")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .variableType("variableType")
        .build();
```

C#:

```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.FraudDetector;

var eventVariableProperty = new EventVariableProperty {
    Arn = "arn",
    CreatedTime = "createdTime",
    DataSource = "dataSource",
    DataType = "dataType",
    DefaultValue = "defaultValue",
    Description = "description",
    Inline = false,
    LastUpdatedTime = "lastUpdatedTime",
    Name = "name",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VariableType = "variableType"
};
```

Go:

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

eventVariableProperty := &EventVariableProperty{
	Arn: jsii.String("arn"),
	CreatedTime: jsii.String("createdTime"),
	DataSource: jsii.String("dataSource"),
	DataType: jsii.String("dataType"),
	DefaultValue: jsii.String("defaultValue"),
	Description: jsii.String("description"),
	Inline: jsii.Boolean(false),
	LastUpdatedTime: jsii.String("lastUpdatedTime"),
	Name: jsii.String("name"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VariableType: jsii.String("variableType"),
}
```

## Properties

- `arn`: string — The event variable ARN.

- `createdTime`: string — Timestamp for when the event variable was created.

- `dataSource`: string — The data source of the event variable.

  Valid values: `EVENT | EXTERNAL_MODEL_SCORE`

  When defining a variable within a detector, you can only use the `EVENT` value for DataSource when the *Inline* property is set to true. If the *Inline* property is set false, you can use either `EVENT` or `MODEL_SCORE` for DataSource.

- `dataType`: string — The data type of the event variable.

  Valid values: `STRING | INTEGER | BOOLEAN | FLOAT`

- `defaultValue`: string — The default value of the event variable.

  This is required if you are providing the details of your variables instead of the ARN.

- `description`: string — The description of the event variable.

- `inline`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the resource is defined within this CloudFormation template and impacts the create, update, and delete behavior of the stack.

  If the value is `true` , CloudFormation will create/update/delete the resource when creating/updating/deleting the stack. If the value is `false` , CloudFormation will validate that the object exists and then use it within the resource without making changes to the object.

  For example, when creating `AWS::FraudDetector::Detector` you must define at least two variables. You can set `Inline=true` for these variables and CloudFormation will create/update/delete the variables as part of stack operations. However, if you set `Inline=false` , CloudFormation will associate the variables to your detector but not execute any changes to the variables.

- `lastUpdatedTime`: string — Timestamp for when the event variable was last updated.

- `name`: string — The name of the event variable.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .

- `variableType`: string — The type of event variable.

  For more information, see [Variable types](https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types) .
