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.CreateAlias

Description

Creates 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.

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

Synopsis

Creating a Request

data CreateAlias Source #

Contains the inputs for the CreateAlias operation.

See: newCreateAlias smart constructor.

Constructors

CreateAlias' 

Fields

  • directoryId :: Text

    The identifier of the directory for which to create the alias.

  • alias :: Text

    The requested alias.

    The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an EntityAlreadyExistsException error if the alias already exists.

Instances

Instances details
Eq CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Read CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Show CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Generic CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Associated Types

type Rep CreateAlias :: Type -> Type #

NFData CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Methods

rnf :: CreateAlias -> () #

Hashable CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

ToJSON CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

AWSRequest CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Associated Types

type AWSResponse CreateAlias #

ToHeaders CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Methods

toHeaders :: CreateAlias -> [Header] #

ToPath CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

ToQuery CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

type Rep CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

type Rep CreateAlias = D1 ('MetaData "CreateAlias" "Amazonka.DirectoryService.CreateAlias" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "CreateAlias'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateAlias Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

newCreateAlias Source #

Create a value of CreateAlias 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:CreateAlias', createAlias_directoryId - The identifier of the directory for which to create the alias.

$sel:alias:CreateAlias', createAlias_alias - The requested alias.

The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an EntityAlreadyExistsException error if the alias already exists.

Request Lenses

createAlias_directoryId :: Lens' CreateAlias Text Source #

The identifier of the directory for which to create the alias.

createAlias_alias :: Lens' CreateAlias Text Source #

The requested alias.

The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an EntityAlreadyExistsException error if the alias already exists.

Destructuring the Response

data CreateAliasResponse Source #

Contains the results of the CreateAlias operation.

See: newCreateAliasResponse smart constructor.

Constructors

CreateAliasResponse' 

Fields

Instances

Instances details
Eq CreateAliasResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Read CreateAliasResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Show CreateAliasResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Generic CreateAliasResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Associated Types

type Rep CreateAliasResponse :: Type -> Type #

NFData CreateAliasResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

Methods

rnf :: CreateAliasResponse -> () #

type Rep CreateAliasResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateAlias

type Rep CreateAliasResponse = D1 ('MetaData "CreateAliasResponse" "Amazonka.DirectoryService.CreateAlias" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "CreateAliasResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateAliasResponse Source #

Create a value of CreateAliasResponse 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:CreateAlias', createAliasResponse_directoryId - The identifier of the directory.

$sel:alias:CreateAlias', createAliasResponse_alias - The alias for the directory.

$sel:httpStatus:CreateAliasResponse', createAliasResponse_httpStatus - The response's http status code.

Response Lenses