DataPipeline.Client.
put_pipeline_definition
(**kwargs)¶Adds tasks, schedules, and preconditions to the specified pipeline. You can use PutPipelineDefinition
to populate a new pipeline.
PutPipelineDefinition
also validates the configuration as it adds it to the pipeline. Changes to the pipeline are saved unless one of the following three validation errors exists in the pipeline.
Pipeline object definitions are passed to the PutPipelineDefinition
action and returned by the GetPipelineDefinition action.
See also: AWS API Documentation
Request Syntax
response = client.put_pipeline_definition(
pipelineId='string',
pipelineObjects=[
{
'id': 'string',
'name': 'string',
'fields': [
{
'key': 'string',
'stringValue': 'string',
'refValue': 'string'
},
]
},
],
parameterObjects=[
{
'id': 'string',
'attributes': [
{
'key': 'string',
'stringValue': 'string'
},
]
},
],
parameterValues=[
{
'id': 'string',
'stringValue': 'string'
},
]
)
[REQUIRED]
The ID of the pipeline.
[REQUIRED]
The objects that define the pipeline. These objects overwrite the existing pipeline definition.
Contains information about a pipeline object. This can be a logical, physical, or physical attempt pipeline object. The complete set of components of a pipeline defines the pipeline.
The ID of the object.
The name of the object.
Key-value pairs that define the properties of the object.
A key-value pair that describes a property of a pipeline object. The value is specified as either a string value ( StringValue
) or a reference to another object ( RefValue
) but not as both.
The field identifier.
The field value, expressed as a String.
The field value, expressed as the identifier of another object.
The parameter objects used with the pipeline.
Contains information about a parameter object.
The ID of the parameter object.
The attributes of the parameter object.
The attributes allowed or specified with a parameter object.
The field identifier.
The field value, expressed as a String.
The parameter values used with the pipeline.
A value or list of parameter values.
The ID of the parameter value.
The field value, expressed as a String.
dict
Response Syntax
{
'validationErrors': [
{
'id': 'string',
'errors': [
'string',
]
},
],
'validationWarnings': [
{
'id': 'string',
'warnings': [
'string',
]
},
],
'errored': True|False
}
Response Structure
(dict) --
Contains the output of PutPipelineDefinition.
validationErrors (list) --
The validation errors that are associated with the objects defined in pipelineObjects
.
(dict) --
Defines a validation error. Validation errors prevent pipeline activation. The set of validation errors that can be returned are defined by AWS Data Pipeline.
id (string) --
The identifier of the object that contains the validation error.
errors (list) --
A description of the validation error.
validationWarnings (list) --
The validation warnings that are associated with the objects defined in pipelineObjects
.
(dict) --
Defines a validation warning. Validation warnings do not prevent pipeline activation. The set of validation warnings that can be returned are defined by AWS Data Pipeline.
id (string) --
The identifier of the object that contains the validation warning.
warnings (list) --
A description of the validation warning.
errored (boolean) --
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition
to commit the corrected pipeline.
Exceptions
DataPipeline.Client.exceptions.InternalServiceError
DataPipeline.Client.exceptions.InvalidRequestException
DataPipeline.Client.exceptions.PipelineNotFoundException
DataPipeline.Client.exceptions.PipelineDeletedException