| 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.IAM.UpdateRole
Description
Updates the description or maximum session duration setting of a role.
Synopsis
- data UpdateRole = UpdateRole' {}
- newUpdateRole :: Text -> UpdateRole
- updateRole_description :: Lens' UpdateRole (Maybe Text)
- updateRole_maxSessionDuration :: Lens' UpdateRole (Maybe Natural)
- updateRole_roleName :: Lens' UpdateRole Text
- data UpdateRoleResponse = UpdateRoleResponse' {
- httpStatus :: Int
- newUpdateRoleResponse :: Int -> UpdateRoleResponse
- updateRoleResponse_httpStatus :: Lens' UpdateRoleResponse Int
Creating a Request
data UpdateRole Source #
See: newUpdateRole smart constructor.
Constructors
| UpdateRole' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateRole |
Create a value of UpdateRole 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:
UpdateRole, updateRole_description - The new description that you want to apply to the specified role.
UpdateRole, updateRole_maxSessionDuration - 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 value of one hour is applied. This setting can have a value from
1 hour to 12 hours.
Anyone who assumes the role from the 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.
UpdateRole, updateRole_roleName - The name of the role that you want to modify.
Request Lenses
updateRole_description :: Lens' UpdateRole (Maybe Text) Source #
The new description that you want to apply to the specified role.
updateRole_maxSessionDuration :: 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 value of one hour is applied. This setting can have a value from 1 hour to 12 hours.
Anyone who assumes the role from the 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.
updateRole_roleName :: Lens' UpdateRole Text Source #
The name of the role that you want to modify.
Destructuring the Response
data UpdateRoleResponse Source #
See: newUpdateRoleResponse smart constructor.
Constructors
| UpdateRoleResponse' | |
Fields
| |
Instances
newUpdateRoleResponse Source #
Arguments
| :: Int | |
| -> UpdateRoleResponse |
Create a value of UpdateRoleResponse 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:UpdateRoleResponse', updateRoleResponse_httpStatus - The response's http status code.
Response Lenses
updateRoleResponse_httpStatus :: Lens' UpdateRoleResponse Int Source #
The response's http status code.