# StatusProperty

Struct · External

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const statusProperty: sagemaker.CfnExperimentTrialComponent.StatusProperty = {
  message: 'message',
  primaryStatus: 'primaryStatus',
};
```

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_sagemaker as sagemaker

status_property = sagemaker.CfnExperimentTrialComponent.StatusProperty(
    message="message",
    primary_status="primaryStatus"
)
```

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

StatusProperty statusProperty = StatusProperty.builder()
        .message("message")
        .primaryStatus("primaryStatus")
        .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.Sagemaker;

var statusProperty = new StatusProperty {
    Message = "message",
    PrimaryStatus = "primaryStatus"
};
```

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"

statusProperty := &StatusProperty{
	Message: jsii.String("message"),
	PrimaryStatus: jsii.String("primaryStatus"),
}
```

## Properties

- `message`: string

- `primaryStatus`: string
