Bedrock / Client / delete_guardrail
delete_guardrail#
- Bedrock.Client.delete_guardrail(**kwargs)#
Deletes a guardrail.
To delete a guardrail, only specify the ARN of the guardrail in the
guardrailIdentifier
field. If you delete a guardrail, all of its versions will be deleted.To delete a version of a guardrail, specify the ARN of the guardrail in the
guardrailIdentifier
field and the version in theguardrailVersion
field.
See also: AWS API Documentation
Request Syntax
response = client.delete_guardrail( guardrailIdentifier='string', guardrailVersion='string' )
- Parameters:
guardrailIdentifier (string) –
[REQUIRED]
The unique identifier of the guardrail. This can be an ID or the ARN.
guardrailVersion (string) – The version of the guardrail.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
Bedrock.Client.exceptions.ResourceNotFoundException
Bedrock.Client.exceptions.AccessDeniedException
Bedrock.Client.exceptions.ValidationException
Bedrock.Client.exceptions.ConflictException
Bedrock.Client.exceptions.InternalServerException
Bedrock.Client.exceptions.ThrottlingException