Copyright | (c) 2013-2021 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 |
Updates a role alias.
Requires permission to access the UpdateRoleAlias action.
Synopsis
- data UpdateRoleAlias = UpdateRoleAlias' {}
- newUpdateRoleAlias :: Text -> UpdateRoleAlias
- updateRoleAlias_credentialDurationSeconds :: Lens' UpdateRoleAlias (Maybe Natural)
- updateRoleAlias_roleArn :: Lens' UpdateRoleAlias (Maybe Text)
- updateRoleAlias_roleAlias :: Lens' UpdateRoleAlias Text
- data UpdateRoleAliasResponse = UpdateRoleAliasResponse' {
- roleAliasArn :: Maybe Text
- roleAlias :: Maybe Text
- httpStatus :: Int
- newUpdateRoleAliasResponse :: Int -> UpdateRoleAliasResponse
- updateRoleAliasResponse_roleAliasArn :: Lens' UpdateRoleAliasResponse (Maybe Text)
- updateRoleAliasResponse_roleAlias :: Lens' UpdateRoleAliasResponse (Maybe Text)
- updateRoleAliasResponse_httpStatus :: Lens' UpdateRoleAliasResponse Int
Creating a Request
data UpdateRoleAlias Source #
See: newUpdateRoleAlias
smart constructor.
Instances
Create a value of UpdateRoleAlias
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:credentialDurationSeconds:UpdateRoleAlias'
, updateRoleAlias_credentialDurationSeconds
- The number of seconds the credential will be valid.
$sel:roleArn:UpdateRoleAlias'
, updateRoleAlias_roleArn
- The role ARN.
$sel:roleAlias:UpdateRoleAlias'
, updateRoleAlias_roleAlias
- The role alias to update.
Request Lenses
updateRoleAlias_credentialDurationSeconds :: Lens' UpdateRoleAlias (Maybe Natural) Source #
The number of seconds the credential will be valid.
updateRoleAlias_roleArn :: Lens' UpdateRoleAlias (Maybe Text) Source #
The role ARN.
updateRoleAlias_roleAlias :: Lens' UpdateRoleAlias Text Source #
The role alias to update.
Destructuring the Response
data UpdateRoleAliasResponse Source #
See: newUpdateRoleAliasResponse
smart constructor.
UpdateRoleAliasResponse' | |
|
Instances
newUpdateRoleAliasResponse Source #
Create a value of UpdateRoleAliasResponse
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:roleAliasArn:UpdateRoleAliasResponse'
, updateRoleAliasResponse_roleAliasArn
- The role alias ARN.
$sel:roleAlias:UpdateRoleAlias'
, updateRoleAliasResponse_roleAlias
- The role alias.
$sel:httpStatus:UpdateRoleAliasResponse'
, updateRoleAliasResponse_httpStatus
- The response's http status code.
Response Lenses
updateRoleAliasResponse_roleAliasArn :: Lens' UpdateRoleAliasResponse (Maybe Text) Source #
The role alias ARN.
updateRoleAliasResponse_roleAlias :: Lens' UpdateRoleAliasResponse (Maybe Text) Source #
The role alias.
updateRoleAliasResponse_httpStatus :: Lens' UpdateRoleAliasResponse Int Source #
The response's http status code.