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 |
Use UpdateRole instead.
Modifies only the description of a role. This operation performs the
same function as the Description
parameter in the UpdateRole
operation.
Synopsis
- data UpdateRoleDescription = UpdateRoleDescription' {
- roleName :: Text
- description :: Text
- newUpdateRoleDescription :: Text -> Text -> UpdateRoleDescription
- updateRoleDescription_roleName :: Lens' UpdateRoleDescription Text
- updateRoleDescription_description :: Lens' UpdateRoleDescription Text
- data UpdateRoleDescriptionResponse = UpdateRoleDescriptionResponse' {
- role' :: Maybe Role
- httpStatus :: Int
- newUpdateRoleDescriptionResponse :: Int -> UpdateRoleDescriptionResponse
- updateRoleDescriptionResponse_role :: Lens' UpdateRoleDescriptionResponse (Maybe Role)
- updateRoleDescriptionResponse_httpStatus :: Lens' UpdateRoleDescriptionResponse Int
Creating a Request
data UpdateRoleDescription Source #
See: newUpdateRoleDescription
smart constructor.
UpdateRoleDescription' | |
|
Instances
newUpdateRoleDescription Source #
:: Text | |
-> Text | |
-> UpdateRoleDescription |
Create a value of UpdateRoleDescription
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:roleName:UpdateRoleDescription'
, updateRoleDescription_roleName
- The name of the role that you want to modify.
$sel:description:UpdateRoleDescription'
, updateRoleDescription_description
- The new description that you want to apply to the specified role.
Request Lenses
updateRoleDescription_roleName :: Lens' UpdateRoleDescription Text Source #
The name of the role that you want to modify.
updateRoleDescription_description :: Lens' UpdateRoleDescription Text Source #
The new description that you want to apply to the specified role.
Destructuring the Response
data UpdateRoleDescriptionResponse Source #
See: newUpdateRoleDescriptionResponse
smart constructor.
UpdateRoleDescriptionResponse' | |
|
Instances
newUpdateRoleDescriptionResponse Source #
Create a value of UpdateRoleDescriptionResponse
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:role':UpdateRoleDescriptionResponse'
, updateRoleDescriptionResponse_role
- A structure that contains details about the modified role.
$sel:httpStatus:UpdateRoleDescriptionResponse'
, updateRoleDescriptionResponse_httpStatus
- The response's http status code.
Response Lenses
updateRoleDescriptionResponse_role :: Lens' UpdateRoleDescriptionResponse (Maybe Role) Source #
A structure that contains details about the modified role.
updateRoleDescriptionResponse_httpStatus :: Lens' UpdateRoleDescriptionResponse Int Source #
The response's http status code.