get_guardrail
¶
get_guardrail(
guardrail_identifier: GuardrailIdentifier,
*,
config_overrides: Optional[BedrockClientConfig] = None,
guardrail_version: Optional[GuardrailVersion] = None,
) -> GetGuardrailResponse
Gets details about a guardrail. If you don't specify a version, the response returns details for the DRAFT version.
Parameters:
-
guardrail_identifier(GuardrailIdentifier) –The unique identifier of the guardrail for which to get details. This can be an ID or the ARN.
-
guardrail_version(Optional[GuardrailVersion], default:None) –The version of the guardrail for which to get details. If you don't specify a version, the response returns details for the
DRAFTversion.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 | |