# CfnSimpleADProps

Properties for defining a `CfnSimpleAD`.

Used as props by: [CfnSimpleAD](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_directoryservice.CfnSimpleAD.html)

- Source: Generated at build time
- Type last changed: v2.241.0 · 2 Mar 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_directoryservice as directoryservice } from 'aws-cdk-lib';
const cfnSimpleADProps: directoryservice.CfnSimpleADProps = {
  name: 'name',
  size: 'size',
  vpcSettings: {
    subnetIds: ['subnetIds'],
    vpcId: 'vpcId',
  },

  // the properties below are optional
  createAlias: false,
  description: 'description',
  enableSso: false,
  password: 'password',
  shortName: 'shortName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_directoryservice as directoryservice

cfn_simple_ad_props = directoryservice.CfnSimpleADProps(
    name="name",
    size="size",
    vpc_settings=directoryservice.CfnSimpleAD.VpcSettingsProperty(
        subnet_ids=["subnetIds"],
        vpc_id="vpcId"
    ),

    # the properties below are optional
    create_alias=False,
    description="description",
    enable_sso=False,
    password="password",
    short_name="shortName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

CfnSimpleADProps cfnSimpleADProps = CfnSimpleADProps.builder()
        .name("name")
        .size("size")
        .vpcSettings(VpcSettingsProperty.builder()
                .subnetIds(List.of("subnetIds"))
                .vpcId("vpcId")
                .build())

        // the properties below are optional
        .createAlias(false)
        .description("description")
        .enableSso(false)
        .password("password")
        .shortName("shortName")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.DirectoryService;

var cfnSimpleADProps = new CfnSimpleADProps {
    Name = "name",
    Size = "size",
    VpcSettings = new VpcSettingsProperty {
        SubnetIds = new [] { "subnetIds" },
        VpcId = "vpcId"
    },

    // the properties below are optional
    CreateAlias = false,
    Description = "description",
    EnableSso = false,
    Password = "password",
    ShortName = "shortName",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnSimpleADProps := &CfnSimpleADProps{
	Name: jsii.String("name"),
	Size: jsii.String("size"),
	VpcSettings: &VpcSettingsProperty{
		SubnetIds: []*string{
			jsii.String("subnetIds"),
		},
		VpcId: jsii.String("vpcId"),
	},

	// the properties below are optional
	CreateAlias: jsii.Boolean(false),
	Description: jsii.String("description"),
	EnableSso: jsii.Boolean(false),
	Password: jsii.String("password"),
	ShortName: jsii.String("shortName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `createAlias`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If set to `true` , specifies an alias for a directory and assigns the alias to the directory.

  The alias is used to construct the access URL for the directory, such as `http://<alias>.awsapps.com` . By default, this property is set to `false` .

  > After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.

- `description`: string — A description for the directory.

- `enableSso`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to enable single sign-on for a directory.

  If you don't specify a value, CloudFormation disables single sign-on by default.

- `name`: string (required) — The fully qualified name for the directory, such as `corp.example.com` .

- `password`: string — The password for the directory administrator.

  The directory creation process creates a directory administrator account with the user name `Administrator` and this password.

  If you need to change the password for the administrator account, see the [ResetUserPassword](https://docs.aws.amazon.com/directoryservice/latest/devguide/API_ResetUserPassword.html) API call in the *Directory Service API Reference* .

- `shortName`: string — The NetBIOS name of the directory, such as `CORP` .

- `size`: string (required) — The size of the directory.

  For valid values, see [CreateDirectory](https://docs.aws.amazon.com/directoryservice/latest/devguide/API_CreateDirectory.html) in the *Directory Service API Reference* .

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[]

- `vpcSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSimpleAD.VpcSettingsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_directoryservice.CfnSimpleAD.VpcSettingsProperty.html) (required) — A [DirectoryVpcSettings](https://docs.aws.amazon.com/directoryservice/latest/devguide/API_DirectoryVpcSettings.html) object that contains additional information for the operation.
