# StatusProperty

The component type status.

- 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';
const statusProperty: iottwinmaker.CfnComponentType.StatusProperty = {
  error: {
    code: 'code',
    message: 'message',
  },
  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

status_property = iottwinmaker.CfnComponentType.StatusProperty(
    error=iottwinmaker.CfnComponentType.ErrorProperty(
        code="code",
        message="message"
    ),
    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.*;

StatusProperty statusProperty = StatusProperty.builder()
        .error(ErrorProperty.builder()
                .code("code")
                .message("message")
                .build())
        .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 statusProperty = new StatusProperty {
    Error = new ErrorProperty {
        Code = "code",
        Message = "message"
    },
    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"

statusProperty := &StatusProperty{
	Error: &ErrorProperty{
		Code: jsii.String("code"),
		Message: jsii.String("message"),
	},
	State: jsii.String("state"),
}
```

## Properties

- `error`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentType.ErrorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnComponentType.ErrorProperty.html) — The component type error.

- `state`: string — The component type status state.
