# StatusProperty

The current status of the entity.

- 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_iottwinmaker as iottwinmaker } from 'aws-cdk-lib';

declare const error: any;
const statusProperty: iottwinmaker.CfnEntity.StatusProperty = {
  error: error,
  state: 'state',
};
```

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_iottwinmaker as iottwinmaker

# error: Any

status_property = iottwinmaker.CfnEntity.StatusProperty(
    error=error,
    state="state"
)
```

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

Object error;

StatusProperty statusProperty = StatusProperty.builder()
        .error(error)
        .state("state")
        .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.IoTTwinMaker;

var error;

var statusProperty = new StatusProperty {
    Error = error,
    State = "state"
};
```

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"

var error interface{}

statusProperty := &StatusProperty{
	Error: error,
	State: jsii.String("state"),
}
```

## Properties

- `error`: any — The error message.

- `state`: string — The current state of the entity, component, component type, or workspace.

  Valid Values: `CREATING | UPDATING | DELETING | ACTIVE | ERROR`
