get_guardrail¶
Operation¶
get_guardrail
async
¶
get_guardrail(input: GetGuardrailInput, plugins: list[Plugin] | None = None) -> GetGuardrailOutput
Gets details about a guardrail. If you don't specify a version, the
response returns details for the DRAFT version.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
GetGuardrailInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
GetGuardrailOutput
|
An instance of |
Input¶
GetGuardrailInput
dataclass
¶
Output¶
GetGuardrailOutput
dataclass
¶
Dataclass for GetGuardrailOutput structure.
Attributes¶
automated_reasoning_policy
class-attribute
instance-attribute
¶
automated_reasoning_policy: GuardrailAutomatedReasoningPolicy | None = None
The current Automated Reasoning policy configuration for the guardrail, if any is configured.
blocked_input_messaging
class-attribute
instance-attribute
¶
The message that the guardrail returns when it blocks a prompt.
blocked_outputs_messaging
class-attribute
instance-attribute
¶
The message that the guardrail returns when it blocks a model response.
content_policy
class-attribute
instance-attribute
¶
content_policy: GuardrailContentPolicy | None = None
The content policy that was configured for the guardrail.
contextual_grounding_policy
class-attribute
instance-attribute
¶
contextual_grounding_policy: GuardrailContextualGroundingPolicy | None = None
The contextual grounding policy used in the guardrail.
created_at
instance-attribute
¶
created_at: datetime
The date and time at which the guardrail was created.
cross_region_details
class-attribute
instance-attribute
¶
cross_region_details: GuardrailCrossRegionDetails | None = None
Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).
description
class-attribute
instance-attribute
¶
The description of the guardrail.
failure_recommendations
class-attribute
instance-attribute
¶
Appears if the status of the guardrail is FAILED. A list of
recommendations to carry out before retrying the request.
kms_key_arn
class-attribute
instance-attribute
¶
kms_key_arn: str | None = None
The ARN of the KMS key that encrypts the guardrail.
sensitive_information_policy
class-attribute
instance-attribute
¶
sensitive_information_policy: GuardrailSensitiveInformationPolicy | None = None
The sensitive information policy that was configured for the guardrail.
status_reasons
class-attribute
instance-attribute
¶
Appears if the status is FAILED. A list of reasons for why the
guardrail failed to be created, updated, versioned, or deleted.
topic_policy
class-attribute
instance-attribute
¶
topic_policy: GuardrailTopicPolicy | None = None
The topic policy that was configured for the guardrail.
updated_at
instance-attribute
¶
updated_at: datetime
The date and time at which the guardrail was updated.
word_policy
class-attribute
instance-attribute
¶
word_policy: GuardrailWordPolicy | None = None
The word policy that was configured for the guardrail.