aws_sdk_resourcegroups/client/
put_group_configuration.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 [`PutGroupConfiguration`](crate::operation::put_group_configuration::builders::PutGroupConfigurationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`group(impl Into<String>)`](crate::operation::put_group_configuration::builders::PutGroupConfigurationFluentBuilder::group) / [`set_group(Option<String>)`](crate::operation::put_group_configuration::builders::PutGroupConfigurationFluentBuilder::set_group):<br>required: **false**<br><p>The name or Amazon resource name (ARN) of the resource group with the configuration that you want to update.</p><br>
7    ///   - [`configuration(GroupConfigurationItem)`](crate::operation::put_group_configuration::builders::PutGroupConfigurationFluentBuilder::configuration) / [`set_configuration(Option<Vec::<GroupConfigurationItem>>)`](crate::operation::put_group_configuration::builders::PutGroupConfigurationFluentBuilder::set_configuration):<br>required: **false**<br><p>The new configuration to associate with the specified group. A configuration associates the resource group with an Amazon Web Services service and specifies how the service can interact with the resources in the group. A configuration is an array of <code>GroupConfigurationItem</code> elements.</p> <p>For information about the syntax of a service configuration, see <a href="https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html">Service configurations for Resource Groups</a>.</p><note>  <p>A resource group can contain either a <code>Configuration</code> or a <code>ResourceQuery</code>, but not both.</p> </note><br>
8    /// - On success, responds with [`PutGroupConfigurationOutput`](crate::operation::put_group_configuration::PutGroupConfigurationOutput)
9    /// - On failure, responds with [`SdkError<PutGroupConfigurationError>`](crate::operation::put_group_configuration::PutGroupConfigurationError)
10    pub fn put_group_configuration(&self) -> crate::operation::put_group_configuration::builders::PutGroupConfigurationFluentBuilder {
11        crate::operation::put_group_configuration::builders::PutGroupConfigurationFluentBuilder::new(self.handle.clone())
12    }
13}