aws_sdk_bedrockagent/client/
delete_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 [`DeletePrompt`](crate::operation::delete_prompt::builders::DeletePromptFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`prompt_identifier(impl Into<String>)`](crate::operation::delete_prompt::builders::DeletePromptFluentBuilder::prompt_identifier) / [`set_prompt_identifier(Option<String>)`](crate::operation::delete_prompt::builders::DeletePromptFluentBuilder::set_prompt_identifier):<br>required: **true**<br><p>The unique identifier of the prompt.</p><br>
7    ///   - [`prompt_version(impl Into<String>)`](crate::operation::delete_prompt::builders::DeletePromptFluentBuilder::prompt_version) / [`set_prompt_version(Option<String>)`](crate::operation::delete_prompt::builders::DeletePromptFluentBuilder::set_prompt_version):<br>required: **false**<br><p>The version of the prompt to delete. To delete the prompt, omit this field.</p><br>
8    /// - On success, responds with [`DeletePromptOutput`](crate::operation::delete_prompt::DeletePromptOutput) with field(s):
9    ///   - [`id(String)`](crate::operation::delete_prompt::DeletePromptOutput::id): <p>The unique identifier of the prompt that was deleted.</p>
10    ///   - [`version(Option<String>)`](crate::operation::delete_prompt::DeletePromptOutput::version): <p>The version of the prompt that was deleted.</p>
11    /// - On failure, responds with [`SdkError<DeletePromptError>`](crate::operation::delete_prompt::DeletePromptError)
12    pub fn delete_prompt(&self) -> crate::operation::delete_prompt::builders::DeletePromptFluentBuilder {
13        crate::operation::delete_prompt::builders::DeletePromptFluentBuilder::new(self.handle.clone())
14    }
15}