Skip to main content

pipelines

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

Overview

Namepipelines
TypeResource
Idaws.osis.pipelines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
buffer_optionsobjectOptions that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions. For more information, see Persistent buffering.
created_atstring (date-time)The date and time when the pipeline was created.
destinationsarrayDestinations to which the pipeline writes data.
encryption_at_rest_optionsobjectOptions to control how OpenSearch encrypts buffer data.
ingest_endpoint_urlsarrayThe ingestion endpoints for the pipeline, which you can send data to.
last_updated_atstring (date-time)The date and time when the pipeline was last updated.
log_publishing_optionsobjectContainer for the values required to configure logging for the pipeline. If you don't specify these values, OpenSearch Ingestion will not publish logs from your application to CloudWatch Logs.
max_unitsintegerThe maximum pipeline capacity, in Ingestion Compute Units (ICUs).
min_unitsintegerThe minimum pipeline capacity, in Ingestion Compute Units (ICUs).
pipeline_arnstringThe Amazon Resource Name (ARN) of the pipeline.
pipeline_configuration_bodystringThe Data Prepper pipeline configuration in YAML format.
pipeline_namestringThe name of the pipeline.
pipeline_role_arnstringThe Amazon Resource Name (ARN) of the IAM role that the pipeline uses to access AWS resources. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f):iam::[0-9]+:role/.*$</code>)
service_vpc_endpointsarrayA list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.
statusstringThe current status of the pipeline. (CREATING, ACTIVE, UPDATING, DELETING, CREATE_FAILED, UPDATE_FAILED, STARTING, START_FAILED, STOPPING, STOPPED)
status_reasonobjectThe reason for the current status of the pipeline.
tagsarrayA list of tags associated with the given pipeline.
vpc_endpoint_servicestringThe VPC endpoint service name for the pipeline.
vpc_endpointsarrayThe VPC interface endpoints that have access to the pipeline.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_pipelineselectpipeline_name, regionRetrieves information about an OpenSearch Ingestion pipeline.
list_pipelinesselectregionmaxResults, nextTokenLists all OpenSearch Ingestion pipelines in the current Amazon Web Services account and Region. For more information, see Viewing Amazon OpenSearch Ingestion pipelines.
create_pipelineinsertregion, PipelineName, MinUnits, MaxUnits, PipelineConfigurationBodyCreates an OpenSearch Ingestion pipeline. For more information, see Creating Amazon OpenSearch Ingestion pipelines.
update_pipelineupdatepipeline_name, regionUpdates an OpenSearch Ingestion pipeline. For more information, see Updating Amazon OpenSearch Ingestion pipelines.
delete_pipelinedeletepipeline_name, regionDeletes an OpenSearch Ingestion pipeline. For more information, see Deleting Amazon OpenSearch Ingestion pipelines.

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
pipeline_namestringThe name of the pipeline to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerAn optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
nextTokenstringIf your initial ListPipelines operation returns a nextToken, you can include the returned nextToken in subsequent ListPipelines operations, which returns results in the next page.

SELECT examples

Retrieves information about an OpenSearch Ingestion pipeline.

SELECT
buffer_options,
created_at,
destinations,
encryption_at_rest_options,
ingest_endpoint_urls,
last_updated_at,
log_publishing_options,
max_units,
min_units,
pipeline_arn,
pipeline_configuration_body,
pipeline_name,
pipeline_role_arn,
service_vpc_endpoints,
status,
status_reason,
tags,
vpc_endpoint_service,
vpc_endpoints
FROM aws.osis.pipelines
WHERE pipeline_name = '{{ pipeline_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an OpenSearch Ingestion pipeline. For more information, see Creating Amazon OpenSearch Ingestion pipelines.

INSERT INTO aws.osis.pipelines (
PipelineName,
MinUnits,
MaxUnits,
PipelineConfigurationBody,
LogPublishingOptions,
VpcOptions,
BufferOptions,
EncryptionAtRestOptions,
Tags,
PipelineRoleArn,
region
)
SELECT
'{{ PipelineName }}' /* required */,
{{ MinUnits }} /* required */,
{{ MaxUnits }} /* required */,
'{{ PipelineConfigurationBody }}' /* required */,
'{{ LogPublishingOptions }}',
'{{ VpcOptions }}',
'{{ BufferOptions }}',
'{{ EncryptionAtRestOptions }}',
'{{ Tags }}',
'{{ PipelineRoleArn }}',
'{{ region }}'
RETURNING
pipeline
;

UPDATE examples

Updates an OpenSearch Ingestion pipeline. For more information, see Updating Amazon OpenSearch Ingestion pipelines.

UPDATE aws.osis.pipelines
SET
MinUnits = {{ MinUnits }},
MaxUnits = {{ MaxUnits }},
PipelineConfigurationBody = '{{ PipelineConfigurationBody }}',
LogPublishingOptions = '{{ LogPublishingOptions }}',
BufferOptions = '{{ BufferOptions }}',
EncryptionAtRestOptions = '{{ EncryptionAtRestOptions }}',
PipelineRoleArn = '{{ PipelineRoleArn }}'
WHERE
pipeline_name = '{{ pipeline_name }}' --required
AND region = '{{ region }}' --required
RETURNING
pipeline;

DELETE examples

Deletes an OpenSearch Ingestion pipeline. For more information, see Deleting Amazon OpenSearch Ingestion pipelines.

DELETE FROM aws.osis.pipelines
WHERE pipeline_name = '{{ pipeline_name }}' --required
AND region = '{{ region }}' --required
;