aws_sdk_qconnect/client/
delete_ai_prompt.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 [`DeleteAIPrompt`](crate::operation::delete_ai_prompt::builders::DeleteAIPromptFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`assistant_id(impl Into<String>)`](crate::operation::delete_ai_prompt::builders::DeleteAIPromptFluentBuilder::assistant_id) / [`set_assistant_id(Option<String>)`](crate::operation::delete_ai_prompt::builders::DeleteAIPromptFluentBuilder::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>
7    ///   - [`ai_prompt_id(impl Into<String>)`](crate::operation::delete_ai_prompt::builders::DeleteAIPromptFluentBuilder::ai_prompt_id) / [`set_ai_prompt_id(Option<String>)`](crate::operation::delete_ai_prompt::builders::DeleteAIPromptFluentBuilder::set_ai_prompt_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect AI prompt. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
8    /// - On success, responds with [`DeleteAiPromptOutput`](crate::operation::delete_ai_prompt::DeleteAiPromptOutput)
9    /// - On failure, responds with [`SdkError<DeleteAIPromptError>`](crate::operation::delete_ai_prompt::DeleteAIPromptError)
10    pub fn delete_ai_prompt(&self) -> crate::operation::delete_ai_prompt::builders::DeleteAIPromptFluentBuilder {
11        crate::operation::delete_ai_prompt::builders::DeleteAIPromptFluentBuilder::new(self.handle.clone())
12    }
13}