Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- 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
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.
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
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.
Response Lenses
carsDirectoryId :: Lens' CreateAliasResponse (Maybe Text) Source #
The identifier of the directory.
carsResponseStatus :: Lens' CreateAliasResponse Int Source #
The response status code.