Skip to main content

pipelines

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

Overview

Namepipelines
TypeResource
DescriptionAn OpenSearch Ingestion Service Data Prepper pipeline running Data Prepper.
Idaws.osis.pipelines

Fields

NameDatatypeDescription
buffer_optionsobjectKey-value pairs to configure buffering.
encryption_at_rest_optionsobjectKey-value pairs to configure encryption at rest.
log_publishing_optionsobjectKey-value pairs to configure log publishing.
max_unitsintegerThe maximum pipeline capacity, in Ingestion OpenSearch Compute Units (OCUs).
min_unitsintegerThe minimum pipeline capacity, in Ingestion OpenSearch Compute Units (OCUs).
pipeline_configuration_bodystringThe Data Prepper pipeline configuration.
pipeline_namestringName of the OpenSearch Ingestion Service pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
tagsarrayAn array of key-value pairs to apply to this resource.
vpc_optionsobjectContainer for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion Service creates the pipeline with a public endpoint.
vpc_endpointsarrayThe VPC interface endpoints that have access to the pipeline.
pipeline_arnstringThe Amazon Resource Name (ARN) of the pipeline.
ingest_endpoint_urlsarrayA list of endpoints that can be used for ingesting data into a pipeline
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTMaxUnits, MinUnits, PipelineConfigurationBody, PipelineName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all pipelines in a region.

SELECT
region,
buffer_options,
encryption_at_rest_options,
log_publishing_options,
max_units,
min_units,
pipeline_configuration_body,
pipeline_name,
tags,
vpc_options,
vpc_endpoints,
pipeline_arn,
ingest_endpoint_urls
FROM aws.osis.pipelines
WHERE region = 'us-east-1';

Gets all properties from an individual pipeline.

SELECT
region,
buffer_options,
encryption_at_rest_options,
log_publishing_options,
max_units,
min_units,
pipeline_configuration_body,
pipeline_name,
tags,
vpc_options,
vpc_endpoints,
pipeline_arn,
ingest_endpoint_urls
FROM aws.osis.pipelines
WHERE region = 'us-east-1' AND data__Identifier = '<PipelineArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.osis.pipelines (
MaxUnits,
MinUnits,
PipelineConfigurationBody,
PipelineName,
region
)
SELECT
'{{ MaxUnits }}',
'{{ MinUnits }}',
'{{ PipelineConfigurationBody }}',
'{{ PipelineName }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

osis:CreatePipeline,
osis:GetPipeline,
osis:TagResource,
osis:ListTagsForResource,
iam:PassRole,
iam:CreateServiceLinkedRole,
logs:CreateLogDelivery,
kms:DescribeKey

Read

osis:GetPipeline,
osis:ListTagsForResource

Update

osis:UpdatePipeline,
osis:GetPipeline,
osis:ListTagsForResource,
osis:TagResource,
osis:UntagResource,
iam:PassRole,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:ListLogDeliveries,
kms:DescribeKey

Delete

osis:DeletePipeline,
osis:GetPipeline,
logs:GetLogDelivery,
logs:DeleteLogDelivery,
logs:ListLogDeliveries

List

osis:ListPipelines