# DetectorModelDefinitionProperty

Struct · External

Information that defines how a detector operates.

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

## Example

TypeScript:

```ts
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
```

Python:

```python

```

Java:

```java

```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib

```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2

```

## Properties

- `initialStateName`: string (required) — The state that is entered at the creation of each detector (instance).

- `states`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDetectorModel.StateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotevents.CfnDetectorModel.StateProperty.html)[] (required) — Information about the states of the detector.
