Skip to main content

blueprints

Creates, updates, deletes, gets or lists a blueprints resource.

Overview

Nameblueprints
TypeResource
Idaws.bedrock_data_automation.blueprints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
blueprint_arnstringARN of a Blueprint (pattern: <code>arn:aws(|-cn|-us-gov):bedrock:[a-zA-Z0-9-]*:(aws|[0-9]{12}):blueprint/(bedrock-data-automation-public-[a-zA-Z0-9-_]{1,30}|[a-zA-Z0-9-]{12,36})</code>)
blueprint_namestringName of the Blueprint (pattern: <code>[a-zA-Z0-9-_]+</code>)
blueprint_stagestringStage of the Blueprint (DEVELOPMENT, LIVE)
blueprint_versionstringBlueprint Version (pattern: <code>[0-9]*</code>)
creation_timestring (date-time)Time Stamp
kms_encryption_contextobject
kms_key_idstringKMS Key Identifier (pattern: <code>[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]+</code>)
last_modified_timestring (date-time)Time Stamp
optimization_samplesarrayList of Blueprint Optimization Samples
optimization_timestring (date-time)Time Stamp
schemastringSchema of the blueprint
type_stringType (DOCUMENT, IMAGE, AUDIO, VIDEO)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_blueprintselectblueprint_arn, regionGets an existing Amazon Bedrock Data Automation Blueprint
list_blueprintsselectregionLists all existing Amazon Bedrock Data Automation Blueprints
create_blueprintinsertregion, blueprintName, type, schemaCreates an Amazon Bedrock Data Automation Blueprint
create_blueprint_versioninsertblueprint_arn, regionCreates a new version of an existing Amazon Bedrock Data Automation Blueprint
update_blueprintupdateblueprint_arn, region, schemaUpdates an existing Amazon Bedrock Data Automation Blueprint
delete_blueprintdeleteblueprint_arn, regionblueprintVersionDeletes an existing Amazon Bedrock Data Automation Blueprint
copy_blueprint_stageexecblueprint_arn, region, sourceStage, targetStageCopies a Blueprint from one stage to another
invoke_blueprint_optimization_asyncexecregion, blueprint, samples, outputConfiguration, dataAutomationProfileArnInvoke an async job to perform Blueprint Optimization

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
blueprint_arnstringBlueprint to be copied
regionstringAWS region (default: us-east-1)
blueprintVersionstringOptional field to delete a specific Blueprint version

SELECT examples

Gets an existing Amazon Bedrock Data Automation Blueprint

SELECT
blueprint_arn,
blueprint_name,
blueprint_stage,
blueprint_version,
creation_time,
kms_encryption_context,
kms_key_id,
last_modified_time,
optimization_samples,
optimization_time,
schema,
type_
FROM aws.bedrock_data_automation.blueprints
WHERE blueprint_arn = '{{ blueprint_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Bedrock Data Automation Blueprint

INSERT INTO aws.bedrock_data_automation.blueprints (
blueprintName,
type,
blueprintStage,
schema,
clientToken,
encryptionConfiguration,
tags,
region
)
SELECT
'{{ blueprintName }}' /* required */,
'{{ type }}' /* required */,
'{{ blueprintStage }}',
'{{ schema }}' /* required */,
'{{ clientToken }}',
'{{ encryptionConfiguration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
blueprint
;

UPDATE examples

Updates an existing Amazon Bedrock Data Automation Blueprint

UPDATE aws.bedrock_data_automation.blueprints
SET
schema = '{{ schema }}',
blueprintStage = '{{ blueprintStage }}',
encryptionConfiguration = '{{ encryptionConfiguration }}'
WHERE
blueprint_arn = '{{ blueprint_arn }}' --required
AND region = '{{ region }}' --required
AND schema = '{{ schema }}' --required
RETURNING
blueprint;

DELETE examples

Deletes an existing Amazon Bedrock Data Automation Blueprint

DELETE FROM aws.bedrock_data_automation.blueprints
WHERE blueprint_arn = '{{ blueprint_arn }}' --required
AND region = '{{ region }}' --required
AND blueprintVersion = '{{ blueprintVersion }}'
;

Lifecycle Methods

Copies a Blueprint from one stage to another

EXEC aws.bedrock_data_automation.blueprints.copy_blueprint_stage
@blueprint_arn='{{ blueprint_arn }}' --required,
@region='{{ region }}' --required
@@json=
'{
"sourceStage": "{{ sourceStage }}",
"targetStage": "{{ targetStage }}",
"clientToken": "{{ clientToken }}"
}'
;