# AccessEndpointProperty

Describes the access type and endpoint for a WorkSpace.

- 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 accessEndpointProperty: workspaces.CfnDirectory.AccessEndpointProperty = {
  accessEndpointType: 'accessEndpointType',
  vpcEndpointId: 'vpcEndpointId',
};
```

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

access_endpoint_property = workspaces.CfnDirectory.AccessEndpointProperty(
    access_endpoint_type="accessEndpointType",
    vpc_endpoint_id="vpcEndpointId"
)
```

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

AccessEndpointProperty accessEndpointProperty = AccessEndpointProperty.builder()
        .accessEndpointType("accessEndpointType")
        .vpcEndpointId("vpcEndpointId")
        .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 accessEndpointProperty = new AccessEndpointProperty {
    AccessEndpointType = "accessEndpointType",
    VpcEndpointId = "vpcEndpointId"
};
```

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"

accessEndpointProperty := &AccessEndpointProperty{
	AccessEndpointType: jsii.String("accessEndpointType"),
	VpcEndpointId: jsii.String("vpcEndpointId"),
}
```

## Properties

- `accessEndpointType`: string — Indicates the type of access endpoint.

- `vpcEndpointId`: string — Indicates the VPC endpoint to use for access.
