1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetGuardrail`](crate::operation::get_guardrail::builders::GetGuardrailFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`guardrail_identifier(impl Into<String>)`](crate::operation::get_guardrail::builders::GetGuardrailFluentBuilder::guardrail_identifier) / [`set_guardrail_identifier(Option<String>)`](crate::operation::get_guardrail::builders::GetGuardrailFluentBuilder::set_guardrail_identifier):<br>required: **true**<br><p>The unique identifier of the guardrail for which to get details.</p><br>
    ///   - [`guardrail_version(impl Into<String>)`](crate::operation::get_guardrail::builders::GetGuardrailFluentBuilder::guardrail_version) / [`set_guardrail_version(Option<String>)`](crate::operation::get_guardrail::builders::GetGuardrailFluentBuilder::set_guardrail_version):<br>required: **false**<br><p>The version of the guardrail for which to get details. If you don't specify a version, the response returns details for the <code>DRAFT</code> version.</p><br>
    /// - On success, responds with [`GetGuardrailOutput`](crate::operation::get_guardrail::GetGuardrailOutput) with field(s):
    ///   - [`name(String)`](crate::operation::get_guardrail::GetGuardrailOutput::name): <p>The name of the guardrail.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_guardrail::GetGuardrailOutput::description): <p>The description of the guardrail.</p>
    ///   - [`guardrail_id(String)`](crate::operation::get_guardrail::GetGuardrailOutput::guardrail_id): <p>The unique identifier of the guardrail.</p>
    ///   - [`guardrail_arn(String)`](crate::operation::get_guardrail::GetGuardrailOutput::guardrail_arn): <p>The ARN of the guardrail that was created.</p>
    ///   - [`version(String)`](crate::operation::get_guardrail::GetGuardrailOutput::version): <p>The version of the guardrail.</p>
    ///   - [`status(GuardrailStatus)`](crate::operation::get_guardrail::GetGuardrailOutput::status): <p>The status of the guardrail.</p>
    ///   - [`topic_policy(Option<GuardrailTopicPolicy>)`](crate::operation::get_guardrail::GetGuardrailOutput::topic_policy): <p>The topic policy that was configured for the guardrail.</p>
    ///   - [`content_policy(Option<GuardrailContentPolicy>)`](crate::operation::get_guardrail::GetGuardrailOutput::content_policy): <p>The content policy that was configured for the guardrail.</p>
    ///   - [`word_policy(Option<GuardrailWordPolicy>)`](crate::operation::get_guardrail::GetGuardrailOutput::word_policy): <p>The word policy that was configured for the guardrail.</p>
    ///   - [`sensitive_information_policy(Option<GuardrailSensitiveInformationPolicy>)`](crate::operation::get_guardrail::GetGuardrailOutput::sensitive_information_policy): <p>The sensitive information policy that was configured for the guardrail.</p>
    ///   - [`created_at(DateTime)`](crate::operation::get_guardrail::GetGuardrailOutput::created_at): <p>The date and time at which the guardrail was created.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::get_guardrail::GetGuardrailOutput::updated_at): <p>The date and time at which the guardrail was updated.</p>
    ///   - [`status_reasons(Option<Vec::<String>>)`](crate::operation::get_guardrail::GetGuardrailOutput::status_reasons): <p>Appears if the <code>status</code> is <code>FAILED</code>. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.</p>
    ///   - [`failure_recommendations(Option<Vec::<String>>)`](crate::operation::get_guardrail::GetGuardrailOutput::failure_recommendations): <p>Appears if the <code>status</code> of the guardrail is <code>FAILED</code>. A list of recommendations to carry out before retrying the request.</p>
    ///   - [`blocked_input_messaging(String)`](crate::operation::get_guardrail::GetGuardrailOutput::blocked_input_messaging): <p>The message that the guardrail returns when it blocks a prompt.</p>
    ///   - [`blocked_outputs_messaging(String)`](crate::operation::get_guardrail::GetGuardrailOutput::blocked_outputs_messaging): <p>The message that the guardrail returns when it blocks a model response.</p>
    ///   - [`kms_key_arn(Option<String>)`](crate::operation::get_guardrail::GetGuardrailOutput::kms_key_arn): <p>The ARN of the KMS key that encrypts the guardrail.</p>
    /// - On failure, responds with [`SdkError<GetGuardrailError>`](crate::operation::get_guardrail::GetGuardrailError)
    pub fn get_guardrail(&self) -> crate::operation::get_guardrail::builders::GetGuardrailFluentBuilder {
        crate::operation::get_guardrail::builders::GetGuardrailFluentBuilder::new(self.handle.clone())
    }
}