Skip to main content

blueprints

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

Overview

Nameblueprints
TypeResource
Idaws.glue.blueprints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
blueprintsarrayReturns a list of blueprint as a Blueprints object.
missing_blueprintsarrayReturns a list of BlueprintNames that were not found.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_blueprintsselectregionRetrieves information about a list of blueprints.
get_blueprintselectregionRetrieves the details of a blueprint.
create_blueprintinsertregion, BlueprintLocationRegisters a blueprint with Glue.
update_blueprintupdateregion, BlueprintLocationUpdates a registered blueprint.
delete_blueprintdeleteregionDeletes an existing blueprint.
list_blueprintsexecregionLists all the blueprint names in an account.
start_blueprint_runexecregion, BlueprintName, RoleArnStarts a new run of the specified blueprint.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about a list of blueprints.

SELECT
blueprints,
missing_blueprints
FROM aws.glue.blueprints
WHERE region = '{{ region }}' -- required
;

INSERT examples

Registers a blueprint with Glue.

INSERT INTO aws.glue.blueprints (
Name,
Description,
BlueprintLocation,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ BlueprintLocation }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
name
;

UPDATE examples

Updates a registered blueprint.

UPDATE aws.glue.blueprints
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
BlueprintLocation = '{{ BlueprintLocation }}'
WHERE
region = '{{ region }}' --required
AND BlueprintLocation = '{{ BlueprintLocation }}' --required
RETURNING
name;

DELETE examples

Deletes an existing blueprint.

DELETE FROM aws.glue.blueprints
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Lists all the blueprint names in an account.

EXEC aws.glue.blueprints.list_blueprints
@region='{{ region }}' --required
@@json=
'{
"NextToken": "{{ NextToken }}",
"MaxResults": {{ MaxResults }},
"Tags": "{{ Tags }}"
}'
;