Skip to main content

blueprints

Creates, updates, deletes or gets a blueprint resource or lists blueprints in a region

Overview

Nameblueprints
TypeResource
DescriptionDefinition of AWS::Bedrock::Blueprint Resource Type
Idawscc.bedrock.blueprints

Fields

NameDatatypeDescription
blueprint_arnstringARN of a Blueprint
blueprint_namestringName of the Blueprint
creation_timestringCreation timestamp
last_modified_timestringLast modified timestamp
schemaobjectSchema of the blueprint
typestringModality Type
blueprint_stagestringStage of the Blueprint
kms_key_idstringKMS key identifier
kms_encryption_contextobjectKMS encryption context
tagsarrayList of Tags
regionstringAWS region.

For more information, see AWS::Bedrock::Blueprint.

Methods

NameAccessible byRequired Params
create_resourceINSERTBlueprintName, Schema, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual blueprint.

SELECT
region,
blueprint_arn,
blueprint_name,
creation_time,
last_modified_time,
schema,
type,
blueprint_stage,
kms_key_id,
kms_encryption_context,
tags
FROM awscc.bedrock.blueprints
WHERE region = 'us-east-1' AND data__Identifier = '<BlueprintArn>';

INSERT example

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

/*+ create */
INSERT INTO awscc.bedrock.blueprints (
BlueprintName,
Schema,
Type,
region
)
SELECT
'{{ BlueprintName }}',
'{{ Schema }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.blueprints
WHERE data__Identifier = '<BlueprintArn>'
AND region = 'us-east-1';

Permissions

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

Create

bedrock:CreateBlueprint,
bedrock:GetBlueprint,
bedrock:TagResource,
bedrock:ListTagsForResource,
kms:DescribeKey,
kms:Decrypt,
kms:GenerateDataKey

Read

bedrock:GetBlueprint,
bedrock:ListTagsForResource,
kms:DescribeKey,
kms:Decrypt

Update

bedrock:UpdateBlueprint,
bedrock:GetBlueprint,
bedrock:TagResource,
bedrock:UntagResource,
bedrock:ListTagsForResource,
kms:DescribeKey,
kms:Decrypt,
kms:GenerateDataKey

Delete

bedrock:DeleteBlueprint,
bedrock:GetBlueprint,
kms:DescribeKey,
kms:Decrypt

List

bedrock:ListBlueprints