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 [`CreateEnvironmentMembership`](crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_id(impl Into<String>)`](crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder::set_environment_id):<br>required: **true**<br><p>The ID of the environment that contains the environment member you want to add.</p><br>
    ///   - [`user_arn(impl Into<String>)`](crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder::user_arn) / [`set_user_arn(Option<String>)`](crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder::set_user_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the environment member you want to add.</p><br>
    ///   - [`permissions(MemberPermissions)`](crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder::permissions) / [`set_permissions(Option<MemberPermissions>)`](crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder::set_permissions):<br>required: **true**<br><p>The 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 [`CreateEnvironmentMembershipOutput`](crate::operation::create_environment_membership::CreateEnvironmentMembershipOutput) with field(s):
    ///   - [`membership(Option<EnvironmentMember>)`](crate::operation::create_environment_membership::CreateEnvironmentMembershipOutput::membership): <p>Information about the environment member that was added.</p>
    /// - On failure, responds with [`SdkError<CreateEnvironmentMembershipError>`](crate::operation::create_environment_membership::CreateEnvironmentMembershipError)
    pub fn create_environment_membership(
        &self,
    ) -> crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder {
        crate::operation::create_environment_membership::builders::CreateEnvironmentMembershipFluentBuilder::new(self.handle.clone())
    }
}