amazonka-ds-2.0: Amazon Directory Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DirectoryService.CreateDirectory

Description

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.

Synopsis

Creating a Request

data CreateDirectory Source #

Contains the inputs for the CreateDirectory operation.

See: newCreateDirectory smart constructor.

Constructors

CreateDirectory' 

Fields

  • description :: Maybe Text

    A description for the directory.

  • shortName :: Maybe Text

    The NetBIOS name of the directory, such as CORP.

  • tags :: Maybe [Tag]

    The tags to be assigned to the Simple AD directory.

  • vpcSettings :: Maybe DirectoryVpcSettings

    A DirectoryVpcSettings object that contains additional information for the operation.

  • name :: Text

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

  • password :: Sensitive Text

    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.

  • size :: DirectorySize

    The size of the directory.

Instances

Instances details
ToJSON CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

ToHeaders CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

ToPath CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

ToQuery CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

AWSRequest CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Associated Types

type AWSResponse CreateDirectory #

Generic CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Associated Types

type Rep CreateDirectory :: Type -> Type #

Show CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

NFData CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Methods

rnf :: CreateDirectory -> () #

Eq CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Hashable CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

type AWSResponse CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

type Rep CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

newCreateDirectory Source #

Create a value of CreateDirectory with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateDirectory, createDirectory_description - A description for the directory.

CreateDirectory, createDirectory_shortName - The NetBIOS name of the directory, such as CORP.

$sel:tags:CreateDirectory', createDirectory_tags - The tags to be assigned to the Simple AD directory.

CreateDirectory, createDirectory_vpcSettings - A DirectoryVpcSettings object that contains additional information for the operation.

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

$sel:password:CreateDirectory', createDirectory_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.

CreateDirectory, createDirectory_size - The size of the directory.

Request Lenses

createDirectory_description :: Lens' CreateDirectory (Maybe Text) Source #

A description for the directory.

createDirectory_shortName :: Lens' CreateDirectory (Maybe Text) Source #

The NetBIOS name of the directory, such as CORP.

createDirectory_tags :: Lens' CreateDirectory (Maybe [Tag]) Source #

The tags to be assigned to the Simple AD directory.

createDirectory_vpcSettings :: Lens' CreateDirectory (Maybe DirectoryVpcSettings) Source #

A DirectoryVpcSettings object that contains additional information for the operation.

createDirectory_name :: Lens' CreateDirectory Text Source #

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

createDirectory_password :: Lens' CreateDirectory Text Source #

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.

Destructuring the Response

data CreateDirectoryResponse Source #

Contains the results of the CreateDirectory operation.

See: newCreateDirectoryResponse smart constructor.

Constructors

CreateDirectoryResponse' 

Fields

Instances

Instances details
Generic CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Associated Types

type Rep CreateDirectoryResponse :: Type -> Type #

Read CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Show CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

NFData CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Methods

rnf :: CreateDirectoryResponse -> () #

Eq CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

type Rep CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

type Rep CreateDirectoryResponse = D1 ('MetaData "CreateDirectoryResponse" "Amazonka.DirectoryService.CreateDirectory" "amazonka-ds-2.0-AgXI5fcN8ZxCoi4kNvhD3" 'False) (C1 ('MetaCons "CreateDirectoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDirectoryResponse Source #

Create a value of CreateDirectoryResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateDirectoryResponse, createDirectoryResponse_directoryId - The identifier of the directory that was created.

$sel:httpStatus:CreateDirectoryResponse', createDirectoryResponse_httpStatus - The response's http status code.

Response Lenses

createDirectoryResponse_directoryId :: Lens' CreateDirectoryResponse (Maybe Text) Source #

The identifier of the directory that was created.