Skip to content

create_pipeline_endpoint

create_pipeline_endpoint(
    pipeline_arn: PipelineArn,
    vpc_options: PipelineEndpointVpcOptions,
    *,
    config_overrides: Optional[OSISClientConfig] = None,
) -> CreatePipelineEndpointResponse

Creates a VPC endpoint for an OpenSearch Ingestion pipeline. Pipeline endpoints allow you to ingest data from your VPC into pipelines that you have access to.

Parameters:

  • pipeline_arn (PipelineArn) –

    The Amazon Resource Name (ARN) of the pipeline to create the endpoint for.

  • vpc_options (PipelineEndpointVpcOptions) –

    Container for the VPC configuration for the pipeline endpoint, including subnet IDs and security group IDs.

Raises:

Source code in docs_src/capo_osis/_services/osis.py
def create_pipeline_endpoint(
    self,
    pipeline_arn: "capo_osis.types.pipeline_arn.PipelineArn",
    vpc_options: "capo_osis.types.pipeline_endpoint_vpc_options.PipelineEndpointVpcOptions",
    *,
    config_overrides: Optional[OSISClientConfig] = None,
) -> "capo_osis.types.create_pipeline_endpoint_response.CreatePipelineEndpointResponse":
    """<p>Creates a VPC endpoint for an OpenSearch Ingestion pipeline. Pipeline endpoints allow you to ingest data from your VPC into pipelines that you have access to.</p>

    Args:
        pipeline_arn: <p>The Amazon Resource Name (ARN) of the pipeline to create the endpoint for.</p>
        vpc_options: <p>Container for the VPC configuration for the pipeline endpoint, including subnet IDs and security group IDs.</p>

    Raises:
        capo_osis.errors.access_denied_exception.AccessDeniedException: <p>You don't have permissions to access the resource.</p>
        capo_osis.errors.disabled_operation_exception.DisabledOperationException: <p>Exception is thrown when an operation has been disabled.</p>
        capo_osis.errors.internal_exception.InternalException: <p>The request failed because of an unknown error, exception, or failure (the failure is internal to the service).</p>
        capo_osis.errors.limit_exceeded_exception.LimitExceededException: <p>You attempted to create more than the allowed number of tags.</p>
        capo_osis.errors.resource_not_found_exception.ResourceNotFoundException: <p>You attempted to access or delete a resource that does not exist.</p>
        capo_osis.errors.validation_exception.ValidationException: <p>An exception for missing or invalid input fields.</p>
        capo_osis.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_osis.types.create_pipeline_endpoint_request.CreatePipelineEndpointRequest]",
    ) -> OperationResponse[
        "capo_osis.types.create_pipeline_endpoint_response.CreatePipelineEndpointResponse"
    ]:
        import capo_osis._operations.amazon_open_search_ingestion_service.create_pipeline_endpoint

        output, http_response = (
            capo_osis._operations.amazon_open_search_ingestion_service.create_pipeline_endpoint.create_pipeline_endpoint(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreatePipelineEndpoint")
    )
    input_: capo_osis.types.create_pipeline_endpoint_request.CreatePipelineEndpointRequest = {
        "pipeline_arn": pipeline_arn,
        "vpc_options": vpc_options,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output