| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkMail.CreateAlias
Description
Adds an alias to the set of a given member (user or group) of WorkMail.
Synopsis
- data CreateAlias = CreateAlias' {}
- newCreateAlias :: Text -> Text -> Text -> CreateAlias
- createAlias_organizationId :: Lens' CreateAlias Text
- createAlias_entityId :: Lens' CreateAlias Text
- createAlias_alias :: Lens' CreateAlias Text
- data CreateAliasResponse = CreateAliasResponse' {
- httpStatus :: Int
- newCreateAliasResponse :: Int -> CreateAliasResponse
- createAliasResponse_httpStatus :: Lens' CreateAliasResponse Int
Creating a Request
data CreateAlias Source #
See: newCreateAlias smart constructor.
Constructors
| CreateAlias' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateAlias |
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:
CreateAlias, createAlias_organizationId - The organization under which the member (user or group) exists.
CreateAlias, createAlias_entityId - The member (user or group) to which this alias is added.
CreateAlias, createAlias_alias - The alias to add to the member set.
Request Lenses
createAlias_organizationId :: Lens' CreateAlias Text Source #
The organization under which the member (user or group) exists.
createAlias_entityId :: Lens' CreateAlias Text Source #
The member (user or group) to which this alias is added.
createAlias_alias :: Lens' CreateAlias Text Source #
The alias to add to the member set.
Destructuring the Response
data CreateAliasResponse Source #
See: newCreateAliasResponse smart constructor.
Constructors
| CreateAliasResponse' | |
Fields
| |
Instances
newCreateAliasResponse Source #
Arguments
| :: Int | |
| -> CreateAliasResponse |
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:httpStatus:CreateAliasResponse', createAliasResponse_httpStatus - The response's http status code.
Response Lenses
createAliasResponse_httpStatus :: Lens' CreateAliasResponse Int Source #
The response's http status code.