blueprints
Creates, updates, deletes or gets a blueprint resource or lists blueprints in a region
Overview
| Name | blueprints |
| Type | Resource |
| Description | Definition of AWS::Bedrock::Blueprint Resource Type |
| Id | awscc.bedrock.blueprints |
Fields
| Name | Datatype | Description |
|---|---|---|
blueprint_arn | string | ARN of a Blueprint |
blueprint_name | string | Name of the Blueprint |
creation_time | string | Creation timestamp |
last_modified_time | string | Last modified timestamp |
schema | object | Schema of the blueprint |
type | string | Modality Type |
blueprint_stage | string | Stage of the Blueprint |
kms_key_id | string | KMS key identifier |
kms_encryption_context | object | KMS encryption context |
tags | array | List of Tags |
region | string | AWS region. |
For more information, see AWS::Bedrock::Blueprint.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | BlueprintName, Schema, Type, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.bedrock.blueprints (
BlueprintName,
Schema,
Type,
region
)
SELECT
'{{ BlueprintName }}',
'{{ Schema }}',
'{{ Type }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.bedrock.blueprints (
BlueprintName,
Schema,
Type,
KmsKeyId,
KmsEncryptionContext,
Tags,
region
)
SELECT
'{{ BlueprintName }}',
'{{ Schema }}',
'{{ Type }}',
'{{ KmsKeyId }}',
'{{ KmsEncryptionContext }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: blueprint
props:
- name: BlueprintName
value: '{{ BlueprintName }}'
- name: Schema
value: {}
- name: Type
value: '{{ Type }}'
- name: KmsKeyId
value: '{{ KmsKeyId }}'
- name: KmsEncryptionContext
value: {}
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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