libZSservicesZSamazonka-dsZSamazonka-ds
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • shortName :: Maybe Text

    The NetBIOS name of the directory, such as CORP.

  • vpcSettings :: Maybe DirectoryVpcSettings

    A DirectoryVpcSettings object that contains additional information for the operation.

  • description :: Maybe Text

    A description for the directory.

  • tags :: Maybe [Tag]

    The tags to be assigned to the Simple AD directory.

  • 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
Eq CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Show CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Generic CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Associated Types

type Rep CreateDirectory :: Type -> Type #

NFData CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Methods

rnf :: CreateDirectory -> () #

Hashable CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

ToJSON CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

AWSRequest CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Associated Types

type AWSResponse 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

type Rep CreateDirectory Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

type AWSResponse 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:

$sel:shortName:CreateDirectory', createDirectory_shortName - The NetBIOS name of the directory, such as CORP.

$sel:vpcSettings:CreateDirectory', createDirectory_vpcSettings - A DirectoryVpcSettings object that contains additional information for the operation.

$sel:description:CreateDirectory', createDirectory_description - A description for the directory.

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

$sel:name: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.

$sel:size:CreateDirectory', createDirectory_size - The size of the directory.

Request Lenses

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

The NetBIOS name of the directory, such as CORP.

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

A DirectoryVpcSettings object that contains additional information for the operation.

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

A description for the directory.

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

The tags to be assigned to the Simple AD directory.

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
Eq CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Read CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Show CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Generic CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Associated Types

type Rep CreateDirectoryResponse :: Type -> Type #

NFData CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

Methods

rnf :: CreateDirectoryResponse -> () #

type Rep CreateDirectoryResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateDirectory

type Rep CreateDirectoryResponse = D1 ('MetaData "CreateDirectoryResponse" "Amazonka.DirectoryService.CreateDirectory" "libZSservicesZSamazonka-dsZSamazonka-ds" '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:

$sel:directoryId: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.