amazonka-ds-1.4.4: Amazon Directory Service SDK.

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

Network.AWS.DirectoryService.CreateAlias

Contents

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

createAlias Source #

Creates a value of CreateAlias with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateAlias Source #

Contains the inputs for the CreateAlias operation.

See: createAlias smart constructor.

Instances

Eq CreateAlias Source # 
Data CreateAlias Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateAlias -> c CreateAlias #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateAlias #

toConstr :: CreateAlias -> Constr #

dataTypeOf :: CreateAlias -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateAlias) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateAlias) #

gmapT :: (forall b. Data b => b -> b) -> CreateAlias -> CreateAlias #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateAlias -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateAlias -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateAlias -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateAlias -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateAlias -> m CreateAlias #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateAlias -> m CreateAlias #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateAlias -> m CreateAlias #

Read CreateAlias Source # 
Show CreateAlias Source # 
Generic CreateAlias Source # 

Associated Types

type Rep CreateAlias :: * -> * #

Hashable CreateAlias Source # 
NFData CreateAlias Source # 

Methods

rnf :: CreateAlias -> () #

AWSRequest CreateAlias Source # 
ToPath CreateAlias Source # 
ToHeaders CreateAlias Source # 

Methods

toHeaders :: CreateAlias -> [Header] #

ToQuery CreateAlias Source # 
ToJSON CreateAlias Source # 

Methods

toJSON :: CreateAlias -> Value #

toEncoding :: CreateAlias -> Encoding #

type Rep CreateAlias Source # 
type Rep CreateAlias = D1 (MetaData "CreateAlias" "Network.AWS.DirectoryService.CreateAlias" "amazonka-ds-1.4.4-9k5BNLMvpUcC12HvOZ6S1s" False) (C1 (MetaCons "CreateAlias'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_caDirectoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_caAlias") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateAlias Source # 

Request Lenses

caDirectoryId :: Lens' CreateAlias Text Source #

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

caAlias :: Lens' CreateAlias Text Source #

The requested alias.

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

Destructuring the Response

createAliasResponse Source #

Creates a value of CreateAliasResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateAliasResponse Source #

Contains the results of the CreateAlias operation.

See: createAliasResponse smart constructor.

Instances

Eq CreateAliasResponse Source # 
Data CreateAliasResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateAliasResponse -> c CreateAliasResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateAliasResponse #

toConstr :: CreateAliasResponse -> Constr #

dataTypeOf :: CreateAliasResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateAliasResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateAliasResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateAliasResponse -> CreateAliasResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateAliasResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateAliasResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateAliasResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateAliasResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateAliasResponse -> m CreateAliasResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateAliasResponse -> m CreateAliasResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateAliasResponse -> m CreateAliasResponse #

Read CreateAliasResponse Source # 
Show CreateAliasResponse Source # 
Generic CreateAliasResponse Source # 
NFData CreateAliasResponse Source # 

Methods

rnf :: CreateAliasResponse -> () #

type Rep CreateAliasResponse Source # 
type Rep CreateAliasResponse = D1 (MetaData "CreateAliasResponse" "Network.AWS.DirectoryService.CreateAlias" "amazonka-ds-1.4.4-9k5BNLMvpUcC12HvOZ6S1s" False) (C1 (MetaCons "CreateAliasResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_carsDirectoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_carsAlias") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_carsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

carsDirectoryId :: Lens' CreateAliasResponse (Maybe Text) Source #

The identifier of the directory.

carsAlias :: Lens' CreateAliasResponse (Maybe Text) Source #

The alias for the directory.