Skip to content
v2.278.0

WorkspaceAccessPropertiesProperty Struct ​

The device types and operating systems that can be used to access a WorkSpace.

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 workspaceAccessPropertiesProperty: workspaces.CfnDirectory.WorkspaceAccessPropertiesProperty = {
  accessEndpointConfig: {
    accessEndpoints: [{
      accessEndpointType: 'accessEndpointType',
      vpcEndpointId: 'vpcEndpointId',
    }],

    // the properties below are optional
    internetFallbackProtocols: ['internetFallbackProtocols'],
  },
  deviceTypeAndroid: 'deviceTypeAndroid',
  deviceTypeChromeOs: 'deviceTypeChromeOs',
  deviceTypeIos: 'deviceTypeIos',
  deviceTypeLinux: 'deviceTypeLinux',
  deviceTypeOsx: 'deviceTypeOsx',
  deviceTypeWeb: 'deviceTypeWeb',
  deviceTypeWindows: 'deviceTypeWindows',
  deviceTypeWorkSpacesThinClient: 'deviceTypeWorkSpacesThinClient',
  deviceTypeZeroClient: 'deviceTypeZeroClient',
};
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

workspace_access_properties_property = workspaces.CfnDirectory.WorkspaceAccessPropertiesProperty(
    access_endpoint_config=workspaces.CfnDirectory.AccessEndpointConfigProperty(
        access_endpoints=[workspaces.CfnDirectory.AccessEndpointProperty(
            access_endpoint_type="accessEndpointType",
            vpc_endpoint_id="vpcEndpointId"
        )],

        # the properties below are optional
        internet_fallback_protocols=["internetFallbackProtocols"]
    ),
    device_type_android="deviceTypeAndroid",
    device_type_chrome_os="deviceTypeChromeOs",
    device_type_ios="deviceTypeIos",
    device_type_linux="deviceTypeLinux",
    device_type_osx="deviceTypeOsx",
    device_type_web="deviceTypeWeb",
    device_type_windows="deviceTypeWindows",
    device_type_work_spaces_thin_client="deviceTypeWorkSpacesThinClient",
    device_type_zero_client="deviceTypeZeroClient"
)
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.*;

WorkspaceAccessPropertiesProperty workspaceAccessPropertiesProperty = WorkspaceAccessPropertiesProperty.builder()
        .accessEndpointConfig(AccessEndpointConfigProperty.builder()
                .accessEndpoints(List.of(AccessEndpointProperty.builder()
                        .accessEndpointType("accessEndpointType")
                        .vpcEndpointId("vpcEndpointId")
                        .build()))

                // the properties below are optional
                .internetFallbackProtocols(List.of("internetFallbackProtocols"))
                .build())
        .deviceTypeAndroid("deviceTypeAndroid")
        .deviceTypeChromeOs("deviceTypeChromeOs")
        .deviceTypeIos("deviceTypeIos")
        .deviceTypeLinux("deviceTypeLinux")
        .deviceTypeOsx("deviceTypeOsx")
        .deviceTypeWeb("deviceTypeWeb")
        .deviceTypeWindows("deviceTypeWindows")
        .deviceTypeWorkSpacesThinClient("deviceTypeWorkSpacesThinClient")
        .deviceTypeZeroClient("deviceTypeZeroClient")
        .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 workspaceAccessPropertiesProperty = new WorkspaceAccessPropertiesProperty {
    AccessEndpointConfig = new AccessEndpointConfigProperty {
        AccessEndpoints = new [] { new AccessEndpointProperty {
            AccessEndpointType = "accessEndpointType",
            VpcEndpointId = "vpcEndpointId"
        } },

        // the properties below are optional
        InternetFallbackProtocols = new [] { "internetFallbackProtocols" }
    },
    DeviceTypeAndroid = "deviceTypeAndroid",
    DeviceTypeChromeOs = "deviceTypeChromeOs",
    DeviceTypeIos = "deviceTypeIos",
    DeviceTypeLinux = "deviceTypeLinux",
    DeviceTypeOsx = "deviceTypeOsx",
    DeviceTypeWeb = "deviceTypeWeb",
    DeviceTypeWindows = "deviceTypeWindows",
    DeviceTypeWorkSpacesThinClient = "deviceTypeWorkSpacesThinClient",
    DeviceTypeZeroClient = "deviceTypeZeroClient"
};
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"

workspaceAccessPropertiesProperty := &WorkspaceAccessPropertiesProperty{
	AccessEndpointConfig: &AccessEndpointConfigProperty{
		AccessEndpoints: []interface{}{
			&AccessEndpointProperty{
				AccessEndpointType: jsii.String("accessEndpointType"),
				VpcEndpointId: jsii.String("vpcEndpointId"),
			},
		},

		// the properties below are optional
		InternetFallbackProtocols: []*string{
			jsii.String("internetFallbackProtocols"),
		},
	},
	DeviceTypeAndroid: jsii.String("deviceTypeAndroid"),
	DeviceTypeChromeOs: jsii.String("deviceTypeChromeOs"),
	DeviceTypeIos: jsii.String("deviceTypeIos"),
	DeviceTypeLinux: jsii.String("deviceTypeLinux"),
	DeviceTypeOsx: jsii.String("deviceTypeOsx"),
	DeviceTypeWeb: jsii.String("deviceTypeWeb"),
	DeviceTypeWindows: jsii.String("deviceTypeWindows"),
	DeviceTypeWorkSpacesThinClient: jsii.String("deviceTypeWorkSpacesThinClient"),
	DeviceTypeZeroClient: jsii.String("deviceTypeZeroClient"),
}

Properties ​

accessEndpointConfigoptionalIResolvable | CfnDirectory.AccessEndpointConfigPropertyaccess_endpoint_configoptionaltyping.Union[IResolvable, AccessEndpointConfigProperty]accessEndpointConfigoptionalIResolvableAccessEndpointConfigoptionalIResolvableAccessEndpointConfigoptionalinterface{} #
Describes the access endpoint configuration for a WorkSpace.
deviceTypeAndroidoptionalstringdevice_type_androidoptionalstrdeviceTypeAndroidoptionalStringDeviceTypeAndroidoptionalstringDeviceTypeAndroidoptional*string #
Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces.
deviceTypeChromeOsoptionalstringdevice_type_chrome_osoptionalstrdeviceTypeChromeOsoptionalStringDeviceTypeChromeOsoptionalstringDeviceTypeChromeOsoptional*string #
Indicates whether users can use Chromebooks to access their WorkSpaces.
deviceTypeIosoptionalstringdevice_type_iosoptionalstrdeviceTypeIosoptionalStringDeviceTypeIosoptionalstringDeviceTypeIosoptional*string #
Indicates whether users can use iOS devices to access their WorkSpaces.
deviceTypeLinuxoptionalstringdevice_type_linuxoptionalstrdeviceTypeLinuxoptionalStringDeviceTypeLinuxoptionalstringDeviceTypeLinuxoptional*string #
Indicates whether users can use Linux clients to access their WorkSpaces.
deviceTypeOsxoptionalstringdevice_type_osxoptionalstrdeviceTypeOsxoptionalStringDeviceTypeOsxoptionalstringDeviceTypeOsxoptional*string #
Indicates whether users can use macOS clients to access their WorkSpaces.
deviceTypeWeboptionalstringdevice_type_weboptionalstrdeviceTypeWeboptionalStringDeviceTypeWeboptionalstringDeviceTypeWeboptional*string #
Indicates whether users can access their WorkSpaces through a web browser.
deviceTypeWindowsoptionalstringdevice_type_windowsoptionalstrdeviceTypeWindowsoptionalStringDeviceTypeWindowsoptionalstringDeviceTypeWindowsoptional*string #
Indicates whether users can use Windows clients to access their WorkSpaces.
deviceTypeWorkSpacesThinClientoptionalstringdevice_type_work_spaces_thin_clientoptionalstrdeviceTypeWorkSpacesThinClientoptionalStringDeviceTypeWorkSpacesThinClientoptionalstringDeviceTypeWorkSpacesThinClientoptional*string #
Indicates whether users can access their WorkSpaces through a WorkSpaces Thin Client.
deviceTypeZeroClientoptionalstringdevice_type_zero_clientoptionalstrdeviceTypeZeroClientoptionalStringDeviceTypeZeroClientoptionalstringDeviceTypeZeroClientoptional*string #
Indicates whether users can use zero client devices to access their WorkSpaces.