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
Idawscc.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

NameResourceAccessible byRequired Params
create_resourceai_guardrail_versionsINSERTAssistantId, AIGuardrailId, region
delete_resourceai_guardrail_versionsDELETEIdentifier, region
update_resourceai_guardrail_versionsUPDATEIdentifier, PatchDocument, region
list_resourcesai_guardrail_versions_list_onlySELECTregion
get_resourceai_guardrail_versionsSELECTIdentifier, region

SELECT examples

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 awscc.wisdom.ai_guardrail_versions
WHERE
region = '{{ region }}' AND
Identifier = '{{ assistant_id }}|{{ a_iguardrail_id }}|{{ version_number }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.wisdom.ai_guardrail_versions (
AIGuardrailId,
AssistantId,
region
)
SELECT
'{{ a_iguardrail_id }}',
'{{ assistant_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.wisdom.ai_guardrail_versions
WHERE
Identifier = '{{ assistant_id }}|{{ a_iguardrail_id }}|{{ version_number }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

wisdom:CreateAIGuardrailVersion