aws_sdk_qconnect/client/
get_ai_prompt.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAIPrompt`](crate::operation::get_ai_prompt::builders::GetAIPromptFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`assistant_id(impl Into<String>)`](crate::operation::get_ai_prompt::builders::GetAIPromptFluentBuilder::assistant_id) / [`set_assistant_id(Option<String>)`](crate::operation::get_ai_prompt::builders::GetAIPromptFluentBuilder::set_assistant_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
    ///   - [`ai_prompt_id(impl Into<String>)`](crate::operation::get_ai_prompt::builders::GetAIPromptFluentBuilder::ai_prompt_id) / [`set_ai_prompt_id(Option<String>)`](crate::operation::get_ai_prompt::builders::GetAIPromptFluentBuilder::set_ai_prompt_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect AI prompt.</p><br>
    /// - On success, responds with [`GetAiPromptOutput`](crate::operation::get_ai_prompt::GetAiPromptOutput) with field(s):
    ///   - [`ai_prompt(Option<AiPromptData>)`](crate::operation::get_ai_prompt::GetAiPromptOutput::ai_prompt): <p>The data of the AI Prompt.</p>
    ///   - [`version_number(Option<i64>)`](crate::operation::get_ai_prompt::GetAiPromptOutput::version_number): <p>The version number of the AI Prompt version (returned if an AI Prompt version was specified via use of a qualifier for the <code>aiPromptId</code> on the request).</p>
    /// - On failure, responds with [`SdkError<GetAIPromptError>`](crate::operation::get_ai_prompt::GetAIPromptError)
    pub fn get_ai_prompt(&self) -> crate::operation::get_ai_prompt::builders::GetAIPromptFluentBuilder {
        crate::operation::get_ai_prompt::builders::GetAIPromptFluentBuilder::new(self.handle.clone())
    }
}