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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTPipelineName, PipelineDefinition, RoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourceSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

List all pipelines in a region.

SELECT
region,
pipeline_name
FROM aws.sagemaker.pipelines
WHERE region = 'us-east-1';

Gets all properties from a pipeline.

SELECT
region,
pipeline_name,
pipeline_display_name,
pipeline_description,
pipeline_definition,
role_arn,
tags,
parallelism_configuration
FROM aws.sagemaker.pipelines
WHERE region = 'us-east-1' AND data__Identifier = '<PipelineName>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.pipelines
WHERE data__Identifier = '<PipelineName>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

sagemaker:DescribePipeline,
sagemaker:ListTags

Update

iam:PassRole,
s3:GetObject,
sagemaker:UpdatePipeline,
sagemaker:DescribePipeline,
sagemaker:AddTags,
sagemaker:DeleteTags,
sagemaker:ListTags

Delete

sagemaker:DeletePipeline

List

sagemaker:ListPipelines