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 |
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' {
- roleAlias :: Maybe Text
- roleAliasArn :: Maybe Text
- httpStatus :: Int
- newUpdateRoleAliasResponse :: Int -> UpdateRoleAliasResponse
- updateRoleAliasResponse_roleAlias :: Lens' UpdateRoleAliasResponse (Maybe Text)
- updateRoleAliasResponse_roleAliasArn :: 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:
UpdateRoleAlias
, updateRoleAlias_credentialDurationSeconds
- The number of seconds the credential will be valid.
This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
UpdateRoleAlias
, updateRoleAlias_roleArn
- The role ARN.
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.
This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
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:
UpdateRoleAlias
, updateRoleAliasResponse_roleAlias
- The role alias.
UpdateRoleAliasResponse
, updateRoleAliasResponse_roleAliasArn
- The role alias ARN.
$sel:httpStatus:UpdateRoleAliasResponse'
, updateRoleAliasResponse_httpStatus
- The response's http status code.
Response Lenses
updateRoleAliasResponse_roleAlias :: Lens' UpdateRoleAliasResponse (Maybe Text) Source #
The role alias.
updateRoleAliasResponse_roleAliasArn :: Lens' UpdateRoleAliasResponse (Maybe Text) Source #
The role alias ARN.
updateRoleAliasResponse_httpStatus :: Lens' UpdateRoleAliasResponse Int Source #
The response's http status code.