# CfnWorkspaceProps

Properties for defining a `CfnWorkspace`.

Used as props by: [CfnWorkspace](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnWorkspace.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## 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 cfnWorkspaceProps: iottwinmaker.CfnWorkspaceProps = {
  role: 'role',
  s3Location: 's3Location',
  workspaceId: 'workspaceId',

  // the properties below are optional
  description: 'description',
  tags: {
    tagsKey: 'tags',
  },
};
```

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

cfn_workspace_props = iottwinmaker.CfnWorkspaceProps(
    role="role",
    s3_location="s3Location",
    workspace_id="workspaceId",

    # the properties below are optional
    description="description",
    tags={
        "tags_key": "tags"
    }
)
```

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

CfnWorkspaceProps cfnWorkspaceProps = CfnWorkspaceProps.builder()
        .role("role")
        .s3Location("s3Location")
        .workspaceId("workspaceId")

        // the properties below are optional
        .description("description")
        .tags(Map.of(
                "tagsKey", "tags"))
        .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 cfnWorkspaceProps = new CfnWorkspaceProps {
    Role = "role",
    S3Location = "s3Location",
    WorkspaceId = "workspaceId",

    // the properties below are optional
    Description = "description",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

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"

cfnWorkspaceProps := &CfnWorkspaceProps{
	Role: jsii.String("role"),
	S3Location: jsii.String("s3Location"),
	WorkspaceId: jsii.String("workspaceId"),

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `description`: string — The description of the workspace.

- `role`: string | [IRoleRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_iam.IRoleRef.html) (required) — The ARN of the execution role associated with the workspace.

- `s3Location`: string | [IBucketRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_s3.IBucketRef.html) (required) — The ARN of the S3 bucket where resources associated with the workspace are stored.

- `tags`: { [key: string]: string } — Metadata that you can use to manage the workspace.

- `workspaceId`: string (required) — The ID of the workspace.
