# DefaultWorkspaceCreationPropertiesProperty

The default values that are used to create WorkSpaces.

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 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_workspaces as workspaces } from 'aws-cdk-lib';
const defaultWorkspaceCreationPropertiesProperty: workspaces.CfnDirectory.DefaultWorkspaceCreationPropertiesProperty = {
  customSecurityGroupId: 'customSecurityGroupId',
  defaultOu: 'defaultOu',
  enableInternetAccess: false,
  enableMaintenanceMode: false,
  instanceIamRoleArn: 'instanceIamRoleArn',
  userEnabledAsLocalAdministrator: false,
};
```

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_workspaces as workspaces

default_workspace_creation_properties_property = workspaces.CfnDirectory.DefaultWorkspaceCreationPropertiesProperty(
    custom_security_group_id="customSecurityGroupId",
    default_ou="defaultOu",
    enable_internet_access=False,
    enable_maintenance_mode=False,
    instance_iam_role_arn="instanceIamRoleArn",
    user_enabled_as_local_administrator=False
)
```

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

DefaultWorkspaceCreationPropertiesProperty defaultWorkspaceCreationPropertiesProperty = DefaultWorkspaceCreationPropertiesProperty.builder()
        .customSecurityGroupId("customSecurityGroupId")
        .defaultOu("defaultOu")
        .enableInternetAccess(false)
        .enableMaintenanceMode(false)
        .instanceIamRoleArn("instanceIamRoleArn")
        .userEnabledAsLocalAdministrator(false)
        .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.WorkSpaces;

var defaultWorkspaceCreationPropertiesProperty = new DefaultWorkspaceCreationPropertiesProperty {
    CustomSecurityGroupId = "customSecurityGroupId",
    DefaultOu = "defaultOu",
    EnableInternetAccess = false,
    EnableMaintenanceMode = false,
    InstanceIamRoleArn = "instanceIamRoleArn",
    UserEnabledAsLocalAdministrator = false
};
```

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"

defaultWorkspaceCreationPropertiesProperty := &DefaultWorkspaceCreationPropertiesProperty{
	CustomSecurityGroupId: jsii.String("customSecurityGroupId"),
	DefaultOu: jsii.String("defaultOu"),
	EnableInternetAccess: jsii.Boolean(false),
	EnableMaintenanceMode: jsii.Boolean(false),
	InstanceIamRoleArn: jsii.String("instanceIamRoleArn"),
	UserEnabledAsLocalAdministrator: jsii.Boolean(false),
}
```

## Properties

- `customSecurityGroupId`: string — The identifier of the default security group to apply to WorkSpaces when they are created.

- `defaultOu`: string — The organizational unit (OU) in the directory for the WorkSpace machine accounts.

- `enableInternetAccess`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether to automatically assign an Elastic public IP address to WorkSpaces in this directory by default.

- `enableMaintenanceMode`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether maintenance mode is enabled for WorkSpaces.

- `instanceIamRoleArn`: string — Indicates the IAM role ARN of the instance.

- `userEnabledAsLocalAdministrator`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether WorkSpace users are local administrators on their WorkSpaces.
