aws_sdk_repostspace/client/batch_remove_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 [`BatchRemoveRole`](crate::operation::batch_remove_role::builders::BatchRemoveRoleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`space_id(impl Into<String>)`](crate::operation::batch_remove_role::builders::BatchRemoveRoleFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::batch_remove_role::builders::BatchRemoveRoleFluentBuilder::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_remove_role::builders::BatchRemoveRoleFluentBuilder::accessor_ids) / [`set_accessor_ids(Option<Vec::<String>>)`](crate::operation::batch_remove_role::builders::BatchRemoveRoleFluentBuilder::set_accessor_ids):<br>required: **true**<br><p>The user or group accessor identifiers to remove the role from.</p><br>
8 /// - [`role(Role)`](crate::operation::batch_remove_role::builders::BatchRemoveRoleFluentBuilder::role) / [`set_role(Option<Role>)`](crate::operation::batch_remove_role::builders::BatchRemoveRoleFluentBuilder::set_role):<br>required: **true**<br><p>The role to remove from the users or groups.</p><br>
9 /// - On success, responds with [`BatchRemoveRoleOutput`](crate::operation::batch_remove_role::BatchRemoveRoleOutput) with field(s):
10 /// - [`removed_accessor_ids(Vec::<String>)`](crate::operation::batch_remove_role::BatchRemoveRoleOutput::removed_accessor_ids): <p>An array of successfully updated accessor identifiers.</p>
11 /// - [`errors(Vec::<BatchError>)`](crate::operation::batch_remove_role::BatchRemoveRoleOutput::errors): <p>An array of errors that occurred when roles were removed.</p>
12 /// - On failure, responds with [`SdkError<BatchRemoveRoleError>`](crate::operation::batch_remove_role::BatchRemoveRoleError)
13 pub fn batch_remove_role(&self) -> crate::operation::batch_remove_role::builders::BatchRemoveRoleFluentBuilder {
14 crate::operation::batch_remove_role::builders::BatchRemoveRoleFluentBuilder::new(self.handle.clone())
15 }
16}