aws_sdk_bedrockagent/client/
prepare_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 [`PrepareAgent`](crate::operation::prepare_agent::builders::PrepareAgentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_id(impl Into<String>)`](crate::operation::prepare_agent::builders::PrepareAgentFluentBuilder::agent_id) / [`set_agent_id(Option<String>)`](crate::operation::prepare_agent::builders::PrepareAgentFluentBuilder::set_agent_id):<br>required: **true**<br><p>The unique identifier of the agent for which to create a <code>DRAFT</code> version.</p><br>
7    /// - On success, responds with [`PrepareAgentOutput`](crate::operation::prepare_agent::PrepareAgentOutput) with field(s):
8    ///   - [`agent_id(String)`](crate::operation::prepare_agent::PrepareAgentOutput::agent_id): <p>The unique identifier of the agent for which the <code>DRAFT</code> version was created.</p>
9    ///   - [`agent_status(AgentStatus)`](crate::operation::prepare_agent::PrepareAgentOutput::agent_status): <p>The status of the <code>DRAFT</code> version and whether it is ready for use.</p>
10    ///   - [`agent_version(String)`](crate::operation::prepare_agent::PrepareAgentOutput::agent_version): <p>The version of the agent.</p>
11    ///   - [`prepared_at(DateTime)`](crate::operation::prepare_agent::PrepareAgentOutput::prepared_at): <p>The time at which the <code>DRAFT</code> version of the agent was last prepared.</p>
12    /// - On failure, responds with [`SdkError<PrepareAgentError>`](crate::operation::prepare_agent::PrepareAgentError)
13    pub fn prepare_agent(&self) -> crate::operation::prepare_agent::builders::PrepareAgentFluentBuilder {
14        crate::operation::prepare_agent::builders::PrepareAgentFluentBuilder::new(self.handle.clone())
15    }
16}