Copyright | (c) 2013-2015 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.
See: AWS API Reference for CreateAlias.
- 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)
- carsStatus :: 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 to create the alias for.
caAlias :: Lens' CreateAlias Text Source
The requested alias.
The alias must be unique amongst all aliases in AWS. This operation will
throw an EntityAlreadyExistsException
if this 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.
carsStatus :: Lens' CreateAliasResponse Int Source
The response status code.