Skip to main content

guardrail_versions

Creates, updates, deletes or gets a guardrail_version resource or lists guardrail_versions in a region

Overview

Nameguardrail_versions
TypeResource
DescriptionDefinition of AWS::Bedrock::GuardrailVersion Resource Type
Idaws.bedrock.guardrail_versions

Fields

NameDatatypeDescription
descriptionstringDescription of the Guardrail version
guardrail_arnstringArn representation for the guardrail
guardrail_idstringUnique id for the guardrail
guardrail_identifierstringIdentifier (GuardrailId or GuardrailArn) for the guardrail
versionstringGuardrail version
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTGuardrailIdentifier, region
delete_resourceDELETEdata__Identifier, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual guardrail_version.

SELECT
region,
description,
guardrail_arn,
guardrail_id,
guardrail_identifier,
version
FROM aws.bedrock.guardrail_versions
WHERE region = 'us-east-1' AND data__Identifier = '<GuardrailId>|<Version>';

INSERT example

Use the following StackQL query and manifest file to create a new guardrail_version resource, using stack-deploy.

/*+ create */
INSERT INTO aws.bedrock.guardrail_versions (
GuardrailIdentifier,
region
)
SELECT
'{{ GuardrailIdentifier }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.bedrock.guardrail_versions
WHERE data__Identifier = '<GuardrailId|Version>'
AND region = 'us-east-1';

Permissions

To operate on the guardrail_versions resource, the following permissions are required:

Create

bedrock:CreateGuardrailVersion,
bedrock:GetGuardrail,
kms:CreateGrant,
kms:Decrypt

Read

bedrock:GetGuardrail,
kms:Decrypt

Delete

bedrock:DeleteGuardrail,
bedrock:GetGuardrail,
kms:RetireGrant