get_guardrail
async
¶
get_guardrail(
guardrail_identifier: GuardrailIdentifier,
*,
config_overrides: Optional[AsyncBedrockClientConfig] = 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/async_bedrock.py
5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 | |