aws_sdk_repostspace/client/
batch_add_role.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 [`BatchAddRole`](crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`space_id(impl Into<String>)`](crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder::set_space_id):<br>required: **true**<br><p>The unique ID of the private re:Post.</p><br>
7    ///   - [`accessor_ids(impl Into<String>)`](crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder::accessor_ids) / [`set_accessor_ids(Option<Vec::<String>>)`](crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder::set_accessor_ids):<br>required: **true**<br><p>The user or group accessor identifiers to add the role to.</p><br>
8    ///   - [`role(Role)`](crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder::role) / [`set_role(Option<Role>)`](crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder::set_role):<br>required: **true**<br><p>The role to add to the users or groups.</p><br>
9    /// - On success, responds with [`BatchAddRoleOutput`](crate::operation::batch_add_role::BatchAddRoleOutput) with field(s):
10    ///   - [`added_accessor_ids(Vec::<String>)`](crate::operation::batch_add_role::BatchAddRoleOutput::added_accessor_ids): <p>An array of successfully updated accessor identifiers.</p>
11    ///   - [`errors(Vec::<BatchError>)`](crate::operation::batch_add_role::BatchAddRoleOutput::errors): <p>An array of errors that occurred when roles were added.</p>
12    /// - On failure, responds with [`SdkError<BatchAddRoleError>`](crate::operation::batch_add_role::BatchAddRoleError)
13    pub fn batch_add_role(&self) -> crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder {
14        crate::operation::batch_add_role::builders::BatchAddRoleFluentBuilder::new(self.handle.clone())
15    }
16}