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 team member's attributes in an AWS CodeStar project. For example, you can change a team member's role in the project, or change whether they have remote access to project resources.
Synopsis
- data UpdateTeamMember = UpdateTeamMember' {
- remoteAccessAllowed :: Maybe Bool
- projectRole :: Maybe Text
- projectId :: Text
- userArn :: Text
- newUpdateTeamMember :: Text -> Text -> UpdateTeamMember
- updateTeamMember_remoteAccessAllowed :: Lens' UpdateTeamMember (Maybe Bool)
- updateTeamMember_projectRole :: Lens' UpdateTeamMember (Maybe Text)
- updateTeamMember_projectId :: Lens' UpdateTeamMember Text
- updateTeamMember_userArn :: Lens' UpdateTeamMember Text
- data UpdateTeamMemberResponse = UpdateTeamMemberResponse' {}
- newUpdateTeamMemberResponse :: Int -> UpdateTeamMemberResponse
- updateTeamMemberResponse_userArn :: Lens' UpdateTeamMemberResponse (Maybe Text)
- updateTeamMemberResponse_remoteAccessAllowed :: Lens' UpdateTeamMemberResponse (Maybe Bool)
- updateTeamMemberResponse_projectRole :: Lens' UpdateTeamMemberResponse (Maybe Text)
- updateTeamMemberResponse_httpStatus :: Lens' UpdateTeamMemberResponse Int
Creating a Request
data UpdateTeamMember Source #
See: newUpdateTeamMember
smart constructor.
UpdateTeamMember' | |
|
Instances
Create a value of UpdateTeamMember
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:remoteAccessAllowed:UpdateTeamMember'
, updateTeamMember_remoteAccessAllowed
- Whether a team member is allowed to remotely access project resources
using the SSH public key associated with the user's profile. Even if
this is set to True, the user must associate a public key with their
profile before the user can access resources.
$sel:projectRole:UpdateTeamMember'
, updateTeamMember_projectRole
- The role assigned to the user in the project. Project roles have
different levels of access. For more information, see
Working with Teams
in the AWS CodeStar User Guide.
$sel:projectId:UpdateTeamMember'
, updateTeamMember_projectId
- The ID of the project.
$sel:userArn:UpdateTeamMember'
, updateTeamMember_userArn
- The Amazon Resource Name (ARN) of the user for whom you want to change
team membership attributes.
Request Lenses
updateTeamMember_remoteAccessAllowed :: Lens' UpdateTeamMember (Maybe Bool) Source #
Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile. Even if this is set to True, the user must associate a public key with their profile before the user can access resources.
updateTeamMember_projectRole :: Lens' UpdateTeamMember (Maybe Text) Source #
The role assigned to the user in the project. Project roles have different levels of access. For more information, see Working with Teams in the AWS CodeStar User Guide.
updateTeamMember_projectId :: Lens' UpdateTeamMember Text Source #
The ID of the project.
updateTeamMember_userArn :: Lens' UpdateTeamMember Text Source #
The Amazon Resource Name (ARN) of the user for whom you want to change team membership attributes.
Destructuring the Response
data UpdateTeamMemberResponse Source #
See: newUpdateTeamMemberResponse
smart constructor.
UpdateTeamMemberResponse' | |
|
Instances
newUpdateTeamMemberResponse Source #
Create a value of UpdateTeamMemberResponse
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:userArn:UpdateTeamMember'
, updateTeamMemberResponse_userArn
- The Amazon Resource Name (ARN) of the user whose team membership
attributes were updated.
$sel:remoteAccessAllowed:UpdateTeamMember'
, updateTeamMemberResponse_remoteAccessAllowed
- Whether a team member is allowed to remotely access project resources
using the SSH public key associated with the user's profile.
$sel:projectRole:UpdateTeamMember'
, updateTeamMemberResponse_projectRole
- The project role granted to the user.
$sel:httpStatus:UpdateTeamMemberResponse'
, updateTeamMemberResponse_httpStatus
- The response's http status code.
Response Lenses
updateTeamMemberResponse_userArn :: Lens' UpdateTeamMemberResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the user whose team membership attributes were updated.
updateTeamMemberResponse_remoteAccessAllowed :: Lens' UpdateTeamMemberResponse (Maybe Bool) Source #
Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile.
updateTeamMemberResponse_projectRole :: Lens' UpdateTeamMemberResponse (Maybe Text) Source #
The project role granted to the user.
updateTeamMemberResponse_httpStatus :: Lens' UpdateTeamMemberResponse Int Source #
The response's http status code.