# ActiveDirectoryConfigProperty

Information about the Active Directory config.

- 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 activeDirectoryConfigProperty: workspaces.CfnDirectory.ActiveDirectoryConfigProperty = {
  domainName: 'domainName',
  serviceAccountSecretArn: 'serviceAccountSecretArn',
};
```

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

active_directory_config_property = workspaces.CfnDirectory.ActiveDirectoryConfigProperty(
    domain_name="domainName",
    service_account_secret_arn="serviceAccountSecretArn"
)
```

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

ActiveDirectoryConfigProperty activeDirectoryConfigProperty = ActiveDirectoryConfigProperty.builder()
        .domainName("domainName")
        .serviceAccountSecretArn("serviceAccountSecretArn")
        .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 activeDirectoryConfigProperty = new ActiveDirectoryConfigProperty {
    DomainName = "domainName",
    ServiceAccountSecretArn = "serviceAccountSecretArn"
};
```

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"

activeDirectoryConfigProperty := &ActiveDirectoryConfigProperty{
	DomainName: jsii.String("domainName"),
	ServiceAccountSecretArn: jsii.String("serviceAccountSecretArn"),
}
```

## Properties

- `domainName`: string (required) — The name of the domain.

- `serviceAccountSecretArn`: string (required) — Indicates the secret ARN on the service account.
