Skip to main content

pipelines

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

Overview

Namepipelines
TypeResource
Idaws.datapipeline.pipelines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
pipeline_description_listarrayAn array of descriptions for the specified pipelines.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_pipelinesselectregionRetrieves metadata about one or more pipelines. The information retrieved includes the name of the pipeline, the pipeline identifier, its current state, and the user account that owns the pipeline. Using account credentials, you can retrieve metadata about pipelines that you or your IAM users have created. If you are using an IAM user account, you can retrieve metadata about only those pipelines for which you have read permissions. To retrieve the full pipeline definition instead of metadata about the pipeline, call GetPipelineDefinition.
list_pipelinesselectregionLists the pipeline identifiers for all active pipelines that you have permission to access.
create_pipelineinsertregion, name, uniqueIdCreates a new, empty pipeline. Use PutPipelineDefinition to populate the pipeline.
set_statusupdateregion, pipelineId, objectIds, statusRequests that the status of the specified physical or logical pipeline objects be updated in the specified pipeline. This update might not occur immediately, but is eventually consistent. The status that can be set depends on the type of object (for example, DataNode or Activity). You cannot perform this operation on FINISHED pipelines and attempting to do so returns InvalidRequestException.
delete_pipelinedeleteregionDeletes a pipeline, its pipeline definition, and its run history. AWS Data Pipeline attempts to cancel instances associated with the pipeline that are currently being processed by task runners. Deleting a pipeline cannot be undone. You cannot query or restore a deleted pipeline. To temporarily pause a pipeline instead of deleting it, call SetStatus with the status set to PAUSE on individual components. Components that are paused by SetStatus can be resumed.
activate_pipelineexecregion, pipelineIdValidates the specified pipeline and starts processing pipeline tasks. If the pipeline does not pass validation, activation fails. If you need to pause the pipeline to investigate an issue with a component, such as a data source or script, call DeactivatePipeline. To activate a finished pipeline, modify the end date for the pipeline and then activate it.
deactivate_pipelineexecregion, pipelineIdDeactivates the specified running pipeline. The pipeline is set to the DEACTIVATING state until the deactivation process completes. To resume a deactivated pipeline, use ActivatePipeline. By default, the pipeline resumes from the last completed execution. Optionally, you can specify the date and time to resume the pipeline.
evaluate_expressionexecregion, pipelineId, objectId, expressionTask runners call EvaluateExpression to evaluate a string in the context of the specified object. For example, a task runner can evaluate SQL queries stored in Amazon S3.
validate_pipeline_definitionexecregion, pipelineId, pipelineObjectsValidates the specified pipeline definition to ensure that it is well formed and can be run without error.

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 metadata about one or more pipelines. The information retrieved includes the name of the pipeline, the pipeline identifier, its current state, and the user account that owns the pipeline. Using account credentials, you can retrieve metadata about pipelines that you or your IAM users have created. If you are using an IAM user account, you can retrieve metadata about only those pipelines for which you have read permissions. To retrieve the full pipeline definition instead of metadata about the pipeline, call GetPipelineDefinition.

SELECT
pipeline_description_list
FROM aws.datapipeline.pipelines
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new, empty pipeline. Use PutPipelineDefinition to populate the pipeline.

INSERT INTO aws.datapipeline.pipelines (
name,
uniqueId,
description,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ uniqueId }}' /* required */,
'{{ description }}',
'{{ tags }}',
'{{ region }}'
RETURNING
pipeline_id
;

UPDATE examples

Requests that the status of the specified physical or logical pipeline objects be updated in the specified pipeline. This update might not occur immediately, but is eventually consistent. The status that can be set depends on the type of object (for example, DataNode or Activity). You cannot perform this operation on FINISHED pipelines and attempting to do so returns InvalidRequestException.

UPDATE aws.datapipeline.pipelines
SET
pipelineId = '{{ pipelineId }}',
objectIds = '{{ objectIds }}',
status = '{{ status }}'
WHERE
region = '{{ region }}' --required
AND pipelineId = '{{ pipelineId }}' --required
AND objectIds = '{{ objectIds }}' --required
AND status = '{{ status }}' --required;

DELETE examples

Deletes a pipeline, its pipeline definition, and its run history. AWS Data Pipeline attempts to cancel instances associated with the pipeline that are currently being processed by task runners. Deleting a pipeline cannot be undone. You cannot query or restore a deleted pipeline. To temporarily pause a pipeline instead of deleting it, call SetStatus with the status set to PAUSE on individual components. Components that are paused by SetStatus can be resumed.

DELETE FROM aws.datapipeline.pipelines
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Validates the specified pipeline and starts processing pipeline tasks. If the pipeline does not pass validation, activation fails. If you need to pause the pipeline to investigate an issue with a component, such as a data source or script, call DeactivatePipeline. To activate a finished pipeline, modify the end date for the pipeline and then activate it.

EXEC aws.datapipeline.pipelines.activate_pipeline
@region='{{ region }}' --required
@@json=
'{
"pipelineId": "{{ pipelineId }}",
"parameterValues": "{{ parameterValues }}",
"startTimestamp": "{{ startTimestamp }}"
}'
;