Skip to content
v2.278.0

DefaultWorkspaceCreationPropertiesProperty Struct ​

The default values that are used to create WorkSpaces.

Example ​

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
# 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
// 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();
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
};
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 ​

customSecurityGroupIdoptionalstringcustom_security_group_idoptionalstrcustomSecurityGroupIdoptionalStringCustomSecurityGroupIdoptionalstringCustomSecurityGroupIdoptional*string #
The identifier of the default security group to apply to WorkSpaces when they are created.
defaultOuoptionalstringdefault_ouoptionalstrdefaultOuoptionalStringDefaultOuoptionalstringDefaultOuoptional*string #
The organizational unit (OU) in the directory for the WorkSpace machine accounts.
enableInternetAccessoptionalboolean | IResolvableenable_internet_accessoptionaltyping.Union[bool, IResolvable]enableInternetAccessoptionalBooleanEnableInternetAccessoptionalboolEnableInternetAccessoptionalinterface{} #
Specifies whether to automatically assign an Elastic public IP address to WorkSpaces in this directory by default.
enableMaintenanceModeoptionalboolean | IResolvableenable_maintenance_modeoptionaltyping.Union[bool, IResolvable]enableMaintenanceModeoptionalBooleanEnableMaintenanceModeoptionalboolEnableMaintenanceModeoptionalinterface{} #
Specifies whether maintenance mode is enabled for WorkSpaces.
instanceIamRoleArnoptionalstringinstance_iam_role_arnoptionalstrinstanceIamRoleArnoptionalStringInstanceIamRoleArnoptionalstringInstanceIamRoleArnoptional*string #
Indicates the IAM role ARN of the instance.
userEnabledAsLocalAdministratoroptionalboolean | IResolvableuser_enabled_as_local_administratoroptionaltyping.Union[bool, IResolvable]userEnabledAsLocalAdministratoroptionalBooleanUserEnabledAsLocalAdministratoroptionalboolUserEnabledAsLocalAdministratoroptionalinterface{} #
Specifies whether WorkSpace users are local administrators on their WorkSpaces.