aws_sdk_codestar/client/
update_team_member.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateTeamMember`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`project_id(impl Into<String>)`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::project_id) / [`set_project_id(Option<String>)`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::set_project_id):<br>required: **true**<br><p>The ID of the project.</p><br>
7    ///   - [`user_arn(impl Into<String>)`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::user_arn) / [`set_user_arn(Option<String>)`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::set_user_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the user for whom you want to change team membership attributes.</p><br>
8    ///   - [`project_role(impl Into<String>)`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::project_role) / [`set_project_role(Option<String>)`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::set_project_role):<br>required: **false**<br><p>The role assigned to the user in the project. Project roles have different levels of access. For more information, see <a href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working with Teams</a> in the <i>AWS CodeStar User Guide</i>.</p><br>
9    ///   - [`remote_access_allowed(bool)`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::remote_access_allowed) / [`set_remote_access_allowed(Option<bool>)`](crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::set_remote_access_allowed):<br>required: **false**<br><p>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.</p><br>
10    /// - On success, responds with [`UpdateTeamMemberOutput`](crate::operation::update_team_member::UpdateTeamMemberOutput) with field(s):
11    ///   - [`user_arn(Option<String>)`](crate::operation::update_team_member::UpdateTeamMemberOutput::user_arn): <p>The Amazon Resource Name (ARN) of the user whose team membership attributes were updated.</p>
12    ///   - [`project_role(Option<String>)`](crate::operation::update_team_member::UpdateTeamMemberOutput::project_role): <p>The project role granted to the user.</p>
13    ///   - [`remote_access_allowed(Option<bool>)`](crate::operation::update_team_member::UpdateTeamMemberOutput::remote_access_allowed): <p>Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile.</p>
14    /// - On failure, responds with [`SdkError<UpdateTeamMemberError>`](crate::operation::update_team_member::UpdateTeamMemberError)
15    pub fn update_team_member(&self) -> crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder {
16        crate::operation::update_team_member::builders::UpdateTeamMemberFluentBuilder::new(self.handle.clone())
17    }
18}