1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateEnvironmentMembership`](crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_id(impl Into<String>)`](crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder::set_environment_id):<br>required: **true**<br><p>The ID of the environment for the environment member whose settings you want to change.</p><br>
    ///   - [`user_arn(impl Into<String>)`](crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder::user_arn) / [`set_user_arn(Option<String>)`](crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder::set_user_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the environment member whose settings you want to change.</p><br>
    ///   - [`permissions(MemberPermissions)`](crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder::permissions) / [`set_permissions(Option<MemberPermissions>)`](crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder::set_permissions):<br>required: **true**<br><p>The replacement type of environment member permissions you want to associate with this environment member. Available values include:</p>  <ul>   <li> <p> <code>read-only</code>: Has read-only access to the environment.</p> </li>   <li> <p> <code>read-write</code>: Has read-write access to the environment.</p> </li>  </ul><br>
    /// - On success, responds with [`UpdateEnvironmentMembershipOutput`](crate::operation::update_environment_membership::UpdateEnvironmentMembershipOutput) with field(s):
    ///   - [`membership(Option<EnvironmentMember>)`](crate::operation::update_environment_membership::UpdateEnvironmentMembershipOutput::membership): <p>Information about the environment member whose settings were changed.</p>
    /// - On failure, responds with [`SdkError<UpdateEnvironmentMembershipError>`](crate::operation::update_environment_membership::UpdateEnvironmentMembershipError)
    pub fn update_environment_membership(
        &self,
    ) -> crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder {
        crate::operation::update_environment_membership::builders::UpdateEnvironmentMembershipFluentBuilder::new(self.handle.clone())
    }
}