# GlobalAcceleratorForDirectoryProperty

Describes the Global Accelerator for directory.

- 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 globalAcceleratorForDirectoryProperty: workspaces.CfnDirectory.GlobalAcceleratorForDirectoryProperty = {
  mode: 'mode',

  // the properties below are optional
  preferredProtocol: 'preferredProtocol',
};
```

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

global_accelerator_for_directory_property = workspaces.CfnDirectory.GlobalAcceleratorForDirectoryProperty(
    mode="mode",

    # the properties below are optional
    preferred_protocol="preferredProtocol"
)
```

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

GlobalAcceleratorForDirectoryProperty globalAcceleratorForDirectoryProperty = GlobalAcceleratorForDirectoryProperty.builder()
        .mode("mode")

        // the properties below are optional
        .preferredProtocol("preferredProtocol")
        .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 globalAcceleratorForDirectoryProperty = new GlobalAcceleratorForDirectoryProperty {
    Mode = "mode",

    // the properties below are optional
    PreferredProtocol = "preferredProtocol"
};
```

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"

globalAcceleratorForDirectoryProperty := &GlobalAcceleratorForDirectoryProperty{
	Mode: jsii.String("mode"),

	// the properties below are optional
	PreferredProtocol: jsii.String("preferredProtocol"),
}
```

## Properties

- `mode`: string (required) — Indicates if Global Accelerator for directory is enabled or disabled.

- `preferredProtocol`: string — Indicates the preferred protocol for Global Accelerator.
