| 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.OpsWorks.CreateUserProfile
Description
Creates a new 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 CreateUserProfile = CreateUserProfile' {}
- newCreateUserProfile :: Text -> CreateUserProfile
- createUserProfile_allowSelfManagement :: Lens' CreateUserProfile (Maybe Bool)
- createUserProfile_sshPublicKey :: Lens' CreateUserProfile (Maybe Text)
- createUserProfile_sshUsername :: Lens' CreateUserProfile (Maybe Text)
- createUserProfile_iamUserArn :: Lens' CreateUserProfile Text
- data CreateUserProfileResponse = CreateUserProfileResponse' {
- iamUserArn :: Maybe Text
- httpStatus :: Int
- newCreateUserProfileResponse :: Int -> CreateUserProfileResponse
- createUserProfileResponse_iamUserArn :: Lens' CreateUserProfileResponse (Maybe Text)
- createUserProfileResponse_httpStatus :: Lens' CreateUserProfileResponse Int
Creating a Request
data CreateUserProfile Source #
See: newCreateUserProfile smart constructor.
Constructors
| CreateUserProfile' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateUserProfile |
Create a value of CreateUserProfile 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:
CreateUserProfile, createUserProfile_allowSelfManagement - Whether users can specify their own SSH public key through the My
Settings page. For more information, see
Setting an IAM User's Public SSH Key.
CreateUserProfile, createUserProfile_sshPublicKey - The user's public SSH key.
CreateUserProfile, createUserProfile_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.
CreateUserProfile, createUserProfile_iamUserArn - The user's IAM ARN; this can also be a federated user's ARN.
Request Lenses
createUserProfile_allowSelfManagement :: Lens' CreateUserProfile (Maybe Bool) Source #
Whether users can specify their own SSH public key through the My Settings page. For more information, see Setting an IAM User's Public SSH Key.
createUserProfile_sshPublicKey :: Lens' CreateUserProfile (Maybe Text) Source #
The user's public SSH key.
createUserProfile_sshUsername :: Lens' CreateUserProfile (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.
createUserProfile_iamUserArn :: Lens' CreateUserProfile Text Source #
The user's IAM ARN; this can also be a federated user's ARN.
Destructuring the Response
data CreateUserProfileResponse Source #
Contains the response to a CreateUserProfile request.
See: newCreateUserProfileResponse smart constructor.
Constructors
| CreateUserProfileResponse' | |
Fields
| |
Instances
newCreateUserProfileResponse Source #
Create a value of CreateUserProfileResponse 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:
CreateUserProfile, createUserProfileResponse_iamUserArn - The user's IAM ARN.
$sel:httpStatus:CreateUserProfileResponse', createUserProfileResponse_httpStatus - The response's http status code.
Response Lenses
createUserProfileResponse_iamUserArn :: Lens' CreateUserProfileResponse (Maybe Text) Source #
The user's IAM ARN.
createUserProfileResponse_httpStatus :: Lens' CreateUserProfileResponse Int Source #
The response's http status code.