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.
Idawscc.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.
vpc_endpoint_servicestringThe VPC endpoint service name for 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.

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

Methods

NameResourceAccessible byRequired Params
create_resourcepipelinesINSERTMaxUnits, MinUnits, PipelineConfigurationBody, PipelineName, 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,
buffer_options,
encryption_at_rest_options,
log_publishing_options,
max_units,
min_units,
pipeline_configuration_body,
pipeline_name,
tags,
vpc_options,
vpc_endpoints,
vpc_endpoint_service,
pipeline_arn,
ingest_endpoint_urls
FROM awscc.osis.pipelines
WHERE
region = 'us-east-1' AND
Identifier = '{{ pipeline_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.osis.pipelines (
MaxUnits,
MinUnits,
PipelineConfigurationBody,
PipelineName,
region
)
SELECT
'{{ max_units }}',
'{{ min_units }}',
'{{ pipeline_configuration_body }}',
'{{ pipeline_name }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.osis.pipelines
SET PatchDocument = string('{{ {
"BufferOptions": buffer_options,
"EncryptionAtRestOptions": encryption_at_rest_options,
"LogPublishingOptions": log_publishing_options,
"MaxUnits": max_units,
"MinUnits": min_units,
"PipelineConfigurationBody": pipeline_configuration_body,
"Tags": tags,
"VpcOptions": vpc_options
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ pipeline_arn }}';

DELETE example

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

Permissions

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

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