aws_sdk_datasync/client/
update_agent.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 [`UpdateAgent`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_arn(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::agent_arn) / [`set_agent_arn(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_agent_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the agent to update.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_name):<br>required: **false**<br><p>The name that you want to use to configure the agent.</p><br>
8    /// - On success, responds with [`UpdateAgentOutput`](crate::operation::update_agent::UpdateAgentOutput)
9    /// - On failure, responds with [`SdkError<UpdateAgentError>`](crate::operation::update_agent::UpdateAgentError)
10    pub fn update_agent(&self) -> crate::operation::update_agent::builders::UpdateAgentFluentBuilder {
11        crate::operation::update_agent::builders::UpdateAgentFluentBuilder::new(self.handle.clone())
12    }
13}