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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.pipelines
WHERE
Identifier = '{{ pipeline_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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