File: //usr/lib/python3/dist-packages/boto/datapipeline/__pycache__/layer1.cpython-310.pyc
o
ckF[^q � @ sX d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
G dd� de�ZdS ) � N)�json)�AWSQueryConnection)�
RegionInfo)�JSONResponseError)�
exceptionsc s e Zd ZdZdZdZdZdZdZe Z
ejej
ejejejd�Z� fdd�Zd d
� Zdd� Zd.dd�Zdd� Z
d/dd�Zdd� Zdd� Zd.dd�Zd.dd�Z
d/dd�Zdd� Z
d0d d!�Zd"d#� Z
d/d$d%�Z d&d'� Z!
d0d(d)�Z"d*d+� Z#d,d-� Z$� Z%S )1�DataPipelineConnectiona/
This is the AWS Data Pipeline API Reference . This guide provides
descriptions and samples of the AWS Data Pipeline API.
AWS Data Pipeline is a web service that configures and manages a
data-driven workflow called a pipeline. AWS Data Pipeline handles
the details of scheduling and ensuring that data dependencies are
met so your application can focus on processing the data.
The AWS Data Pipeline API implements two main sets of
functionality. The first set of actions configure the pipeline in
the web service. You call these actions to create a pipeline and
define data sources, schedules, dependencies, and the transforms
to be performed on the data.
The second set of actions are used by a task runner application
that calls the AWS Data Pipeline API to receive the next task
ready for processing. The logic for performing the task, such as
querying the data, running data analysis, or converting the data
from one format to another, is contained within the task runner.
The task runner performs the task assigned to it by the web
service, reporting progress to the web service as it does so. When
the task is done, the task runner reports the final success or
failure of the task to the web service.
AWS Data Pipeline provides an open-source implementation of a task
runner called AWS Data Pipeline Task Runner. AWS Data Pipeline
Task Runner provides logic for common data management scenarios,
such as performing database queries and running data analysis
using Amazon Elastic MapReduce (Amazon EMR). You can use AWS Data
Pipeline Task Runner as your task runner, or you can write your
own task runner to provide custom data management.
The AWS Data Pipeline API uses the Signature Version 4 protocol
for signing requests. For more information about how to sign a
request with this protocol, see `Signature Version 4 Signing
Process`_. In the code examples in this reference, the Signature
Version 4 Request parameters are represented as AuthParams.
z
2012-10-29z us-east-1z$datapipeline.us-east-1.amazonaws.com�DataPipeline)�PipelineDeletedException�InvalidRequestException�TaskNotFoundException�PipelineNotFoundException�InternalServiceErrorc sJ |� dd �}|st| | j| j�}|j|d<