Skip to main content

ai_guardrail_versions

Creates, updates, deletes or gets an ai_guardrail_version resource or lists ai_guardrail_versions in a region

Overview

Nameai_guardrail_versions
TypeResource
DescriptionDefinition of AWS::Wisdom::AIGuardrailVersion Resource Type
Idaws.wisdom.ai_guardrail_versions

Fields

NameDatatypeDescription
a_iguardrail_arnstring
assistant_arnstring
a_iguardrail_idstring
assistant_idstring
a_iguardrail_version_idstring
version_numbernumber
modified_time_secondsnumber
regionstringAWS region.

For more information, see AWS::Wisdom::AIGuardrailVersion.

Methods

NameAccessible byRequired Params
create_resourceINSERTAssistantId, AIGuardrailId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all ai_guardrail_versions in a region.

SELECT
region,
a_iguardrail_arn,
assistant_arn,
a_iguardrail_id,
assistant_id,
a_iguardrail_version_id,
version_number,
modified_time_seconds
FROM aws.wisdom.ai_guardrail_versions
WHERE region = 'us-east-1';

Gets all properties from an individual ai_guardrail_version.

SELECT
region,
a_iguardrail_arn,
assistant_arn,
a_iguardrail_id,
assistant_id,
a_iguardrail_version_id,
version_number,
modified_time_seconds
FROM aws.wisdom.ai_guardrail_versions
WHERE region = 'us-east-1' AND data__Identifier = '<AssistantId>|<AIGuardrailId>|<VersionNumber>';

INSERT example

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

/*+ create */
INSERT INTO aws.wisdom.ai_guardrail_versions (
AIGuardrailId,
AssistantId,
region
)
SELECT
'{{ AIGuardrailId }}',
'{{ AssistantId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.wisdom.ai_guardrail_versions
WHERE data__Identifier = '<AssistantId|AIGuardrailId|VersionNumber>'
AND region = 'us-east-1';

Permissions

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

Create

wisdom:CreateAIGuardrailVersion

Read

wisdom:GetAIGuardrail,
wisdom:GetAIGuardrailVersion

Update

wisdom:GetAIGuardrail,
wisdom:GetAIGuardrailVersion

Delete

wisdom:DeleteAIGuardrailVersion

List

wisdom:ListAIGuardrailVersions