aws_sdk_datasync/client/delete_agent.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DeleteAgent`](crate::operation::delete_agent::builders::DeleteAgentFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`agent_arn(impl Into<String>)`](crate::operation::delete_agent::builders::DeleteAgentFluentBuilder::agent_arn) / [`set_agent_arn(Option<String>)`](crate::operation::delete_agent::builders::DeleteAgentFluentBuilder::set_agent_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the agent to delete. Use the <code>ListAgents</code> operation to return a list of agents for your account and Amazon Web Services Region.</p><br>
/// - On success, responds with [`DeleteAgentOutput`](crate::operation::delete_agent::DeleteAgentOutput)
/// - On failure, responds with [`SdkError<DeleteAgentError>`](crate::operation::delete_agent::DeleteAgentError)
pub fn delete_agent(&self) -> crate::operation::delete_agent::builders::DeleteAgentFluentBuilder {
crate::operation::delete_agent::builders::DeleteAgentFluentBuilder::new(self.handle.clone())
}
}