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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.osis.pipelines
WHERE
Identifier = '{{ pipeline_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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