aws_sdk_ecs/client/
put_attributes.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 [`PutAttributes`](crate::operation::put_attributes::builders::PutAttributesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster(impl Into<String>)`](crate::operation::put_attributes::builders::PutAttributesFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::put_attributes::builders::PutAttributesFluentBuilder::set_cluster):<br>required: **false**<br><p>The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. If you do not specify a cluster, the default cluster is assumed.</p><br>
7    ///   - [`attributes(Attribute)`](crate::operation::put_attributes::builders::PutAttributesFluentBuilder::attributes) / [`set_attributes(Option<Vec::<Attribute>>)`](crate::operation::put_attributes::builders::PutAttributesFluentBuilder::set_attributes):<br>required: **true**<br><p>The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can specify up to 10 attributes in a single call.</p><br>
8    /// - On success, responds with [`PutAttributesOutput`](crate::operation::put_attributes::PutAttributesOutput) with field(s):
9    ///   - [`attributes(Option<Vec::<Attribute>>)`](crate::operation::put_attributes::PutAttributesOutput::attributes): <p>The attributes applied to your resource.</p>
10    /// - On failure, responds with [`SdkError<PutAttributesError>`](crate::operation::put_attributes::PutAttributesError)
11    pub fn put_attributes(&self) -> crate::operation::put_attributes::builders::PutAttributesFluentBuilder {
12        crate::operation::put_attributes::builders::PutAttributesFluentBuilder::new(self.handle.clone())
13    }
14}