1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteAgentVersion`](crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`agent_id(impl Into<String>)`](crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder::agent_id) / [`set_agent_id(Option<String>)`](crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder::set_agent_id):<br>required: **true**<br><p>The unique identifier of the agent that the version belongs to.</p><br>
    ///   - [`agent_version(impl Into<String>)`](crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder::agent_version) / [`set_agent_version(Option<String>)`](crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder::set_agent_version):<br>required: **true**<br><p>The version of the agent to delete.</p><br>
    ///   - [`skip_resource_in_use_check(bool)`](crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder::skip_resource_in_use_check) / [`set_skip_resource_in_use_check(Option<bool>)`](crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder::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>
    /// - On success, responds with [`DeleteAgentVersionOutput`](crate::operation::delete_agent_version::DeleteAgentVersionOutput) with field(s):
    ///   - [`agent_id(String)`](crate::operation::delete_agent_version::DeleteAgentVersionOutput::agent_id): <p>The unique identifier of the agent that the version belongs to.</p>
    ///   - [`agent_version(String)`](crate::operation::delete_agent_version::DeleteAgentVersionOutput::agent_version): <p>The version that was deleted.</p>
    ///   - [`agent_status(AgentStatus)`](crate::operation::delete_agent_version::DeleteAgentVersionOutput::agent_status): <p>The status of the agent version.</p>
    /// - On failure, responds with [`SdkError<DeleteAgentVersionError>`](crate::operation::delete_agent_version::DeleteAgentVersionError)
    pub fn delete_agent_version(&self) -> crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder {
        crate::operation::delete_agent_version::builders::DeleteAgentVersionFluentBuilder::new(self.handle.clone())
    }
}