Skip to main content

pipelines

Creates, updates, deletes or gets a pipeline resource or lists pipelines in a region

Overview

Namepipelines
TypeResource
DescriptionResource Type definition for AWS::SageMaker::Pipeline
Idawscc.sagemaker.pipelines

Fields

NameDatatypeDescription
pipeline_namestringThe name of the Pipeline.
pipeline_display_namestringThe display name of the Pipeline.
pipeline_descriptionstringThe description of the Pipeline.
pipeline_definitionobject
role_arnstringRole Arn
tagsarray
parallelism_configurationobject
regionstringAWS region.

For more information, see AWS::SageMaker::Pipeline.

Methods

NameResourceAccessible byRequired Params
create_resourcepipelinesINSERTPipelineName, PipelineDefinition, RoleArn, region
delete_resourcepipelinesDELETEIdentifier, region
update_resourcepipelinesUPDATEIdentifier, PatchDocument, region
list_resourcespipelines_list_onlySELECTregion
get_resourcepipelinesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual pipeline.

SELECT
region,
pipeline_name,
pipeline_display_name,
pipeline_description,
pipeline_definition,
role_arn,
tags,
parallelism_configuration
FROM awscc.sagemaker.pipelines
WHERE
region = 'us-east-1' AND
Identifier = '{{ pipeline_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.sagemaker.pipelines (
PipelineName,
PipelineDefinition,
RoleArn,
region
)
SELECT
'{{ pipeline_name }}',
'{{ pipeline_definition }}',
'{{ role_arn }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a pipeline resource, using stack-deploy.

/*+ update */
UPDATE awscc.sagemaker.pipelines
SET PatchDocument = string('{{ {
"PipelineDisplayName": pipeline_display_name,
"PipelineDescription": pipeline_description,
"PipelineDefinition": pipeline_definition,
"RoleArn": role_arn,
"Tags": tags,
"ParallelismConfiguration": parallelism_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ pipeline_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.pipelines
WHERE
Identifier = '{{ pipeline_name }}' AND
region = 'us-east-1';

Permissions

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

iam:PassRole,
s3:GetObject,
sagemaker:CreatePipeline,
sagemaker:DescribePipeline,
sagemaker:AddTags,
sagemaker:ListTags