#[non_exhaustive]pub struct GetGuardrailOutput {Show 17 fields
pub name: String,
pub description: Option<String>,
pub guardrail_id: String,
pub guardrail_arn: String,
pub version: String,
pub status: GuardrailStatus,
pub topic_policy: Option<GuardrailTopicPolicy>,
pub content_policy: Option<GuardrailContentPolicy>,
pub word_policy: Option<GuardrailWordPolicy>,
pub sensitive_information_policy: Option<GuardrailSensitiveInformationPolicy>,
pub created_at: DateTime,
pub updated_at: DateTime,
pub status_reasons: Option<Vec<String>>,
pub failure_recommendations: Option<Vec<String>>,
pub blocked_input_messaging: String,
pub blocked_outputs_messaging: String,
pub kms_key_arn: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The name of the guardrail.
description: Option<String>
The description of the guardrail.
guardrail_id: String
The unique identifier of the guardrail.
guardrail_arn: String
The ARN of the guardrail that was created.
version: String
The version of the guardrail.
status: GuardrailStatus
The status of the guardrail.
topic_policy: Option<GuardrailTopicPolicy>
The topic policy that was configured for the guardrail.
content_policy: Option<GuardrailContentPolicy>
The content policy that was configured for the guardrail.
word_policy: Option<GuardrailWordPolicy>
The word policy that was configured for the guardrail.
sensitive_information_policy: Option<GuardrailSensitiveInformationPolicy>
The sensitive information policy that was configured for the guardrail.
created_at: DateTime
The date and time at which the guardrail was created.
updated_at: DateTime
The date and time at which the guardrail was updated.
status_reasons: Option<Vec<String>>
Appears if the status
is FAILED
. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.
failure_recommendations: Option<Vec<String>>
Appears if the status
of the guardrail is FAILED
. A list of recommendations to carry out before retrying the request.
blocked_input_messaging: String
The message that the guardrail returns when it blocks a prompt.
blocked_outputs_messaging: String
The message that the guardrail returns when it blocks a model response.
kms_key_arn: Option<String>
The ARN of the KMS key that encrypts the guardrail.
Implementations§
source§impl GetGuardrailOutput
impl GetGuardrailOutput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the guardrail.
sourcepub fn guardrail_id(&self) -> &str
pub fn guardrail_id(&self) -> &str
The unique identifier of the guardrail.
sourcepub fn guardrail_arn(&self) -> &str
pub fn guardrail_arn(&self) -> &str
The ARN of the guardrail that was created.
sourcepub fn status(&self) -> &GuardrailStatus
pub fn status(&self) -> &GuardrailStatus
The status of the guardrail.
sourcepub fn topic_policy(&self) -> Option<&GuardrailTopicPolicy>
pub fn topic_policy(&self) -> Option<&GuardrailTopicPolicy>
The topic policy that was configured for the guardrail.
sourcepub fn content_policy(&self) -> Option<&GuardrailContentPolicy>
pub fn content_policy(&self) -> Option<&GuardrailContentPolicy>
The content policy that was configured for the guardrail.
sourcepub fn word_policy(&self) -> Option<&GuardrailWordPolicy>
pub fn word_policy(&self) -> Option<&GuardrailWordPolicy>
The word policy that was configured for the guardrail.
sourcepub fn sensitive_information_policy(
&self
) -> Option<&GuardrailSensitiveInformationPolicy>
pub fn sensitive_information_policy( &self ) -> Option<&GuardrailSensitiveInformationPolicy>
The sensitive information policy that was configured for the guardrail.
sourcepub fn created_at(&self) -> &DateTime
pub fn created_at(&self) -> &DateTime
The date and time at which the guardrail was created.
sourcepub fn updated_at(&self) -> &DateTime
pub fn updated_at(&self) -> &DateTime
The date and time at which the guardrail was updated.
sourcepub fn status_reasons(&self) -> &[String]
pub fn status_reasons(&self) -> &[String]
Appears if the status
is FAILED
. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .status_reasons.is_none()
.
sourcepub fn failure_recommendations(&self) -> &[String]
pub fn failure_recommendations(&self) -> &[String]
Appears if the status
of the guardrail is FAILED
. A list of recommendations to carry out before retrying the request.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .failure_recommendations.is_none()
.
sourcepub fn blocked_input_messaging(&self) -> &str
pub fn blocked_input_messaging(&self) -> &str
The message that the guardrail returns when it blocks a prompt.
sourcepub fn blocked_outputs_messaging(&self) -> &str
pub fn blocked_outputs_messaging(&self) -> &str
The message that the guardrail returns when it blocks a model response.
sourcepub fn kms_key_arn(&self) -> Option<&str>
pub fn kms_key_arn(&self) -> Option<&str>
The ARN of the KMS key that encrypts the guardrail.
source§impl GetGuardrailOutput
impl GetGuardrailOutput
sourcepub fn builder() -> GetGuardrailOutputBuilder
pub fn builder() -> GetGuardrailOutputBuilder
Creates a new builder-style object to manufacture GetGuardrailOutput
.
Trait Implementations§
source§impl Clone for GetGuardrailOutput
impl Clone for GetGuardrailOutput
source§fn clone(&self) -> GetGuardrailOutput
fn clone(&self) -> GetGuardrailOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetGuardrailOutput
impl Debug for GetGuardrailOutput
source§impl PartialEq for GetGuardrailOutput
impl PartialEq for GetGuardrailOutput
source§fn eq(&self, other: &GetGuardrailOutput) -> bool
fn eq(&self, other: &GetGuardrailOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetGuardrailOutput
impl RequestId for GetGuardrailOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetGuardrailOutput
Auto Trait Implementations§
impl Freeze for GetGuardrailOutput
impl RefUnwindSafe for GetGuardrailOutput
impl Send for GetGuardrailOutput
impl Sync for GetGuardrailOutput
impl Unpin for GetGuardrailOutput
impl UnwindSafe for GetGuardrailOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more