Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Updates the description or maximum session duration setting of a role.
- updateRole :: Text -> UpdateRole
- data UpdateRole
- urMaxSessionDuration :: Lens' UpdateRole (Maybe Natural)
- urDescription :: Lens' UpdateRole (Maybe Text)
- urRoleName :: Lens' UpdateRole Text
- updateRoleResponse :: Int -> UpdateRoleResponse
- data UpdateRoleResponse
- urrsResponseStatus :: Lens' UpdateRoleResponse Int
Creating a Request
:: Text | |
-> UpdateRole |
Creates a value of UpdateRole
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urMaxSessionDuration
- The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. Anyone who assumes the role from the AWS CLI or API can use theDurationSeconds
API parameter or theduration-seconds
CLI parameter to request a longer session. TheMaxSessionDuration
setting determines the maximum duration that can be requested using theDurationSeconds
parameter. If users don't specify a value for theDurationSeconds
parameter, their security credentials are valid for one hour by default. This applies when you use theAssumeRole*
API operations or theassume-role*
CLI operations but does not apply when you use those operations to create a console URL. For more information, see Using IAM Roles in the IAM User Guide .urDescription
- The new description that you want to apply to the specified role.urRoleName
- The name of the role that you want to modify.
data UpdateRole Source #
See: updateRole
smart constructor.
Request Lenses
urMaxSessionDuration :: Lens' UpdateRole (Maybe Natural) Source #
The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. Anyone who assumes the role from the AWS CLI or API can use the DurationSeconds
API parameter or the duration-seconds
CLI parameter to request a longer session. The MaxSessionDuration
setting determines the maximum duration that can be requested using the DurationSeconds
parameter. If users don't specify a value for the DurationSeconds
parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole*
API operations or the assume-role*
CLI operations but does not apply when you use those operations to create a console URL. For more information, see Using IAM Roles in the IAM User Guide .
urDescription :: Lens' UpdateRole (Maybe Text) Source #
The new description that you want to apply to the specified role.
urRoleName :: Lens' UpdateRole Text Source #
The name of the role that you want to modify.
Destructuring the Response
Creates a value of UpdateRoleResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urrsResponseStatus
- -- | The response status code.
data UpdateRoleResponse Source #
See: updateRoleResponse
smart constructor.
Response Lenses
urrsResponseStatus :: Lens' UpdateRoleResponse Int Source #
- - | The response status code.