| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.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 .
Important: After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
- createAlias :: Text -> Text -> CreateAlias
- data CreateAlias
- caDirectoryId :: Lens' CreateAlias Text
- caAlias :: Lens' CreateAlias Text
- createAliasResponse :: Int -> CreateAliasResponse
- data CreateAliasResponse
- carsDirectoryId :: Lens' CreateAliasResponse (Maybe Text)
- carsAlias :: Lens' CreateAliasResponse (Maybe Text)
- carsResponseStatus :: Lens' CreateAliasResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> CreateAlias |
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:
caDirectoryId- The identifier of the directory for which to create the alias.caAlias- The requested alias. The alias must be unique amongst all aliases in AWS. This operation throws anEntityAlreadyExistsExceptionerror if the alias already exists.
data CreateAlias Source #
Contains the inputs for the CreateAlias operation.
See: createAlias smart constructor.
Instances
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
Arguments
| :: Int | |
| -> CreateAliasResponse |
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:
carsDirectoryId- The identifier of the directory.carsAlias- The alias for the directory.carsResponseStatus- -- | The response status code.
data CreateAliasResponse Source #
Contains the results of the CreateAlias operation.
See: createAliasResponse smart constructor.
Response Lenses
carsDirectoryId :: Lens' CreateAliasResponse (Maybe Text) Source #
The identifier of the directory.
carsResponseStatus :: Lens' CreateAliasResponse Int Source #
- - | The response status code.