1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetPrompt`](crate::operation::get_prompt::builders::GetPromptFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`prompt_identifier(impl Into<String>)`](crate::operation::get_prompt::builders::GetPromptFluentBuilder::prompt_identifier) / [`set_prompt_identifier(Option<String>)`](crate::operation::get_prompt::builders::GetPromptFluentBuilder::set_prompt_identifier):<br>required: **true**<br><p>The unique identifier of the prompt.</p><br>
    ///   - [`prompt_version(impl Into<String>)`](crate::operation::get_prompt::builders::GetPromptFluentBuilder::prompt_version) / [`set_prompt_version(Option<String>)`](crate::operation::get_prompt::builders::GetPromptFluentBuilder::set_prompt_version):<br>required: **false**<br><p>The version of the prompt about which you want to retrieve information. Omit this field to return information about the working draft of the prompt.</p><br>
    /// - On success, responds with [`GetPromptOutput`](crate::operation::get_prompt::GetPromptOutput) with field(s):
    ///   - [`name(String)`](crate::operation::get_prompt::GetPromptOutput::name): <p>The name of the prompt.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_prompt::GetPromptOutput::description): <p>The descriptino of the prompt.</p>
    ///   - [`customer_encryption_key_arn(Option<String>)`](crate::operation::get_prompt::GetPromptOutput::customer_encryption_key_arn): <p>The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.</p>
    ///   - [`default_variant(Option<String>)`](crate::operation::get_prompt::GetPromptOutput::default_variant): <p>The name of the default variant for the prompt. This value must match the <code>name</code> field in the relevant <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html">PromptVariant</a> object.</p>
    ///   - [`variants(Option<Vec::<PromptVariant>>)`](crate::operation::get_prompt::GetPromptOutput::variants): <p>A list of objects, each containing details about a variant of the prompt.</p>
    ///   - [`id(String)`](crate::operation::get_prompt::GetPromptOutput::id): <p>The unique identifier of the prompt.</p>
    ///   - [`arn(String)`](crate::operation::get_prompt::GetPromptOutput::arn): <p>The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version in the request).</p>
    ///   - [`version(String)`](crate::operation::get_prompt::GetPromptOutput::version): <p>The version of the prompt.</p>
    ///   - [`created_at(DateTime)`](crate::operation::get_prompt::GetPromptOutput::created_at): <p>The time at which the prompt was created.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::get_prompt::GetPromptOutput::updated_at): <p>The time at which the prompt was last updated.</p>
    /// - On failure, responds with [`SdkError<GetPromptError>`](crate::operation::get_prompt::GetPromptError)
    pub fn get_prompt(&self) -> crate::operation::get_prompt::builders::GetPromptFluentBuilder {
        crate::operation::get_prompt::builders::GetPromptFluentBuilder::new(self.handle.clone())
    }
}