1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreatePrompt`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::set_name):<br>required: **true**<br><p>The name of the prompt.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::set_description):<br>required: **false**<br><p>The description of the prompt.</p><br>
    ///   - [`s3_uri(impl Into<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::s3_uri) / [`set_s3_uri(Option<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::set_s3_uri):<br>required: **true**<br><p>The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetPromptFile.html">GetPromptFile</a> API instead of providing S3 URIs.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_prompt::builders::CreatePromptFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.</p><br>
    /// - On success, responds with [`CreatePromptOutput`](crate::operation::create_prompt::CreatePromptOutput) with field(s):
    ///   - [`prompt_arn(Option<String>)`](crate::operation::create_prompt::CreatePromptOutput::prompt_arn): <p>The Amazon Resource Name (ARN) of the prompt.</p>
    ///   - [`prompt_id(Option<String>)`](crate::operation::create_prompt::CreatePromptOutput::prompt_id): <p>A unique identifier for the prompt.</p>
    /// - On failure, responds with [`SdkError<CreatePromptError>`](crate::operation::create_prompt::CreatePromptError)
    pub fn create_prompt(&self) -> crate::operation::create_prompt::builders::CreatePromptFluentBuilder {
        crate::operation::create_prompt::builders::CreatePromptFluentBuilder::new(self.handle.clone())
    }
}