AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateDirectory operation. Creates a Simple AD directory. For more information, see Simple Active Directory in the Directory Service Admin Guide.

Before you call CreateDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateDirectory operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.DirectoryService.AmazonDirectoryServiceRequest
      Amazon.DirectoryService.Model.CreateDirectoryRequest

Namespace: Amazon.DirectoryService.Model
Assembly: AWSSDK.DirectoryService.dll
Version: 3.x.y.z

Syntax

C#
public class CreateDirectoryRequest : AmazonDirectoryServiceRequest
         IAmazonWebServiceRequest

The CreateDirectoryRequest type exposes the following members

Constructors

NameDescription
Public Method CreateDirectoryRequest()

Properties

NameTypeDescription
Public Property Description System.String

Gets and sets the property Description.

A description for the directory.

Public Property Name System.String

Gets and sets the property Name.

The fully qualified name for the directory, such as corp.example.com.

Public Property Password System.String

Gets and sets the property Password.

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, you can use the ResetUserPassword API call.

The regex pattern for this string is made up of the following conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 characters

AND any 3 of the following password complexity rules required by Active Directory:

  • Numbers and upper case and lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • Special characters and upper case and lower case (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

For additional information about how Active Directory passwords are enforced, see Password must meet complexity requirements on the Microsoft website.

Public Property ShortName System.String

Gets and sets the property ShortName.

The NetBIOS name of the directory, such as CORP.

Public Property Size Amazon.DirectoryService.DirectorySize

Gets and sets the property Size.

The size of the directory.

Public Property Tags System.Collections.Generic.List<Amazon.DirectoryService.Model.Tag>

Gets and sets the property Tags.

The tags to be assigned to the Simple AD directory.

Public Property VpcSettings Amazon.DirectoryService.Model.DirectoryVpcSettings

Gets and sets the property VpcSettings.

A DirectoryVpcSettings object that contains additional information for the operation.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5