aws_sdk_resourcegroups/client/group_resources.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 [`GroupResources`](crate::operation::group_resources::builders::GroupResourcesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`group(impl Into<String>)`](crate::operation::group_resources::builders::GroupResourcesFluentBuilder::group) / [`set_group(Option<String>)`](crate::operation::group_resources::builders::GroupResourcesFluentBuilder::set_group):<br>required: **true**<br><p>The name or the Amazon resource name (ARN) of the resource group to add resources to.</p><br>
7 /// - [`resource_arns(impl Into<String>)`](crate::operation::group_resources::builders::GroupResourcesFluentBuilder::resource_arns) / [`set_resource_arns(Option<Vec::<String>>)`](crate::operation::group_resources::builders::GroupResourcesFluentBuilder::set_resource_arns):<br>required: **true**<br><p>The list of Amazon resource names (ARNs) of the resources to be added to the group.</p><br>
8 /// - On success, responds with [`GroupResourcesOutput`](crate::operation::group_resources::GroupResourcesOutput) with field(s):
9 /// - [`succeeded(Option<Vec::<String>>)`](crate::operation::group_resources::GroupResourcesOutput::succeeded): <p>A list of Amazon resource names (ARNs) of the resources that this operation successfully added to the group.</p>
10 /// - [`failed(Option<Vec::<FailedResource>>)`](crate::operation::group_resources::GroupResourcesOutput::failed): <p>A list of Amazon resource names (ARNs) of any resources that this operation failed to add to the group.</p>
11 /// - [`pending(Option<Vec::<PendingResource>>)`](crate::operation::group_resources::GroupResourcesOutput::pending): <p>A list of Amazon resource names (ARNs) of any resources that this operation is still in the process adding to the group. These pending additions continue asynchronously. You can check the status of pending additions by using the <code> <code>ListGroupResources</code> </code> operation, and checking the <code>Resources</code> array in the response and the <code>Status</code> field of each object in that array.</p>
12 /// - On failure, responds with [`SdkError<GroupResourcesError>`](crate::operation::group_resources::GroupResourcesError)
13 pub fn group_resources(&self) -> crate::operation::group_resources::builders::GroupResourcesFluentBuilder {
14 crate::operation::group_resources::builders::GroupResourcesFluentBuilder::new(self.handle.clone())
15 }
16}