Skip to content
v2.278.0

GlobalAcceleratorForDirectoryProperty Struct ​

Describes the Global Accelerator for directory.

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

  // the properties below are optional
  preferredProtocol: 'preferredProtocol',
};
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
// 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();
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"
};
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 ​

modestringmodestrmodeStringModestringMode*string required #
Indicates if Global Accelerator for directory is enabled or disabled.
preferredProtocoloptionalstringpreferred_protocoloptionalstrpreferredProtocoloptionalStringPreferredProtocoloptionalstringPreferredProtocoloptional*string #
Indicates the preferred protocol for Global Accelerator.