aws_sdk_bedrockagent/client/
delete_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 [`DeleteAgent`](crate::operation::delete_agent::builders::DeleteAgentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_id(impl Into<String>)`](crate::operation::delete_agent::builders::DeleteAgentFluentBuilder::agent_id) / [`set_agent_id(Option<String>)`](crate::operation::delete_agent::builders::DeleteAgentFluentBuilder::set_agent_id):<br>required: **true**<br><p>The unique identifier of the agent to delete.</p><br>
7    ///   - [`skip_resource_in_use_check(bool)`](crate::operation::delete_agent::builders::DeleteAgentFluentBuilder::skip_resource_in_use_check) / [`set_skip_resource_in_use_check(Option<bool>)`](crate::operation::delete_agent::builders::DeleteAgentFluentBuilder::set_skip_resource_in_use_check):<br>required: **false**<br><p>By default, this value is <code>false</code> and deletion is stopped if the resource is in use. If you set it to <code>true</code>, the resource will be deleted even if the resource is in use.</p><br>
8    /// - On success, responds with [`DeleteAgentOutput`](crate::operation::delete_agent::DeleteAgentOutput) with field(s):
9    ///   - [`agent_id(String)`](crate::operation::delete_agent::DeleteAgentOutput::agent_id): <p>The unique identifier of the agent that was deleted.</p>
10    ///   - [`agent_status(AgentStatus)`](crate::operation::delete_agent::DeleteAgentOutput::agent_status): <p>The status of the agent.</p>
11    /// - On failure, responds with [`SdkError<DeleteAgentError>`](crate::operation::delete_agent::DeleteAgentError)
12    pub fn delete_agent(&self) -> crate::operation::delete_agent::builders::DeleteAgentFluentBuilder {
13        crate::operation::delete_agent::builders::DeleteAgentFluentBuilder::new(self.handle.clone())
14    }
15}