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 |
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' {
- projectRole :: Maybe Text
- remoteAccessAllowed :: Maybe Bool
- projectId :: Text
- userArn :: Text
- newUpdateTeamMember :: Text -> Text -> UpdateTeamMember
- updateTeamMember_projectRole :: Lens' UpdateTeamMember (Maybe Text)
- updateTeamMember_remoteAccessAllowed :: Lens' UpdateTeamMember (Maybe Bool)
- updateTeamMember_projectId :: Lens' UpdateTeamMember Text
- updateTeamMember_userArn :: Lens' UpdateTeamMember Text
- data UpdateTeamMemberResponse = UpdateTeamMemberResponse' {}
- newUpdateTeamMemberResponse :: Int -> UpdateTeamMemberResponse
- updateTeamMemberResponse_projectRole :: Lens' UpdateTeamMemberResponse (Maybe Text)
- updateTeamMemberResponse_remoteAccessAllowed :: Lens' UpdateTeamMemberResponse (Maybe Bool)
- updateTeamMemberResponse_userArn :: 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:
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.
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.
UpdateTeamMember
, updateTeamMember_projectId
- The ID of the project.
UpdateTeamMember
, updateTeamMember_userArn
- The Amazon Resource Name (ARN) of the user for whom you want to change
team membership attributes.
Request Lenses
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_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_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:
UpdateTeamMember
, updateTeamMemberResponse_projectRole
- The project role granted to the user.
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.
UpdateTeamMember
, updateTeamMemberResponse_userArn
- The Amazon Resource Name (ARN) of the user whose team membership
attributes were updated.
$sel:httpStatus:UpdateTeamMemberResponse'
, updateTeamMemberResponse_httpStatus
- The response's http status code.
Response Lenses
updateTeamMemberResponse_projectRole :: Lens' UpdateTeamMemberResponse (Maybe Text) Source #
The project role granted to the user.
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_userArn :: Lens' UpdateTeamMemberResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the user whose team membership attributes were updated.
updateTeamMemberResponse_httpStatus :: Lens' UpdateTeamMemberResponse Int Source #
The response's http status code.