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 specified user profile.
Required Permissions: To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.
Synopsis
- data UpdateUserProfile = UpdateUserProfile' {}
- newUpdateUserProfile :: Text -> UpdateUserProfile
- updateUserProfile_allowSelfManagement :: Lens' UpdateUserProfile (Maybe Bool)
- updateUserProfile_sshPublicKey :: Lens' UpdateUserProfile (Maybe Text)
- updateUserProfile_sshUsername :: Lens' UpdateUserProfile (Maybe Text)
- updateUserProfile_iamUserArn :: Lens' UpdateUserProfile Text
- data UpdateUserProfileResponse = UpdateUserProfileResponse' {
- newUpdateUserProfileResponse :: UpdateUserProfileResponse
Creating a Request
data UpdateUserProfile Source #
See: newUpdateUserProfile
smart constructor.
UpdateUserProfile' | |
|
Instances
Create a value of UpdateUserProfile
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:allowSelfManagement:UpdateUserProfile'
, updateUserProfile_allowSelfManagement
- Whether users can specify their own SSH public key through the My
Settings page. For more information, see
Managing User Permissions.
$sel:sshPublicKey:UpdateUserProfile'
, updateUserProfile_sshPublicKey
- The user's new SSH public key.
$sel:sshUsername:UpdateUserProfile'
, updateUserProfile_sshUsername
- The user's SSH user name. The allowable characters are [a-z], [A-Z],
[0-9], '-', and '_'. If the specified name includes other
punctuation marks, AWS OpsWorks Stacks removes them. For example,
my.name
will be changed to myname
. If you do not specify an SSH user
name, AWS OpsWorks Stacks generates one from the IAM user name.
$sel:iamUserArn:UpdateUserProfile'
, updateUserProfile_iamUserArn
- The user IAM ARN. This can also be a federated user's ARN.
Request Lenses
updateUserProfile_allowSelfManagement :: Lens' UpdateUserProfile (Maybe Bool) Source #
Whether users can specify their own SSH public key through the My Settings page. For more information, see Managing User Permissions.
updateUserProfile_sshPublicKey :: Lens' UpdateUserProfile (Maybe Text) Source #
The user's new SSH public key.
updateUserProfile_sshUsername :: Lens' UpdateUserProfile (Maybe Text) Source #
The user's SSH user name. The allowable characters are [a-z], [A-Z],
[0-9], '-', and '_'. If the specified name includes other
punctuation marks, AWS OpsWorks Stacks removes them. For example,
my.name
will be changed to myname
. If you do not specify an SSH user
name, AWS OpsWorks Stacks generates one from the IAM user name.
updateUserProfile_iamUserArn :: Lens' UpdateUserProfile Text Source #
The user IAM ARN. This can also be a federated user's ARN.
Destructuring the Response
data UpdateUserProfileResponse Source #
See: newUpdateUserProfileResponse
smart constructor.
Instances
Eq UpdateUserProfileResponse Source # | |
Read UpdateUserProfileResponse Source # | |
Show UpdateUserProfileResponse Source # | |
Defined in Amazonka.OpsWorks.UpdateUserProfile showsPrec :: Int -> UpdateUserProfileResponse -> ShowS # show :: UpdateUserProfileResponse -> String # showList :: [UpdateUserProfileResponse] -> ShowS # | |
Generic UpdateUserProfileResponse Source # | |
Defined in Amazonka.OpsWorks.UpdateUserProfile type Rep UpdateUserProfileResponse :: Type -> Type # | |
NFData UpdateUserProfileResponse Source # | |
Defined in Amazonka.OpsWorks.UpdateUserProfile rnf :: UpdateUserProfileResponse -> () # | |
type Rep UpdateUserProfileResponse Source # | |
Defined in Amazonka.OpsWorks.UpdateUserProfile |
newUpdateUserProfileResponse :: UpdateUserProfileResponse Source #
Create a value of UpdateUserProfileResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.