Skip to main content

pipelines

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

Overview

Namepipelines
TypeResource
DescriptionAn example resource schema demonstrating some basic constructs and validation rules.
Idawscc.datapipeline.pipelines

Fields

NameDatatypeDescription
activatebooleanIndicates whether to validate and start the pipeline or stop an active pipeline. By default, the value is set to true.
descriptionstringA description of the pipeline.
namestringThe name of the pipeline.
parameter_objectsarrayThe parameter objects used with the pipeline.
parameter_valuesarrayThe parameter values used with the pipeline.
pipeline_objectsarrayThe objects that define the pipeline. These objects overwrite the existing pipeline definition. Not all objects, fields, and values can be updated. For information about restrictions, see Editing Your Pipeline in the AWS Data Pipeline Developer Guide.
pipeline_tagsarrayA list of arbitrary tags (key-value pairs) to associate with the pipeline, which you can use to control permissions. For more information, see Controlling Access to Pipelines and Resources in the AWS Data Pipeline Developer Guide.
pipeline_idstring
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcepipelinesINSERTName, 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,
activate,
description,
name,
parameter_objects,
parameter_values,
pipeline_objects,
pipeline_tags,
pipeline_id
FROM awscc.datapipeline.pipelines
WHERE
region = 'us-east-1' AND
Identifier = '{{ pipeline_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.datapipeline.pipelines (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.datapipeline.pipelines
SET PatchDocument = string('{{ {
"Activate": activate,
"ParameterObjects": parameter_objects,
"ParameterValues": parameter_values,
"PipelineObjects": pipeline_objects,
"PipelineTags": pipeline_tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ pipeline_id }}';

DELETE example

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

Permissions

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

datapipeline:CreatePipeline,
datapipeline:PutPipelineDefinition,
datapipeline:GetPipelineDefinition,
datapipeline:DescribePipelines,
datapipeline:ValidatePipelineDefinition,
datapipeline:ActivatePipeline,
datapipeline:AddTags,
iam:PassRole