Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- An object is missing a name or identifier field. * A string or reference field is empty. * The number of objects in the pipeline exceeds the maximum allowed objects. * The pipeline is in a FINISHED state.
Pipeline object definitions are passed to the PutPipelineDefinition
action and returned by the GetPipelineDefinition
action.
Synopsis
- putPipelineDefinition :: Text -> PutPipelineDefinition
- data PutPipelineDefinition
- ppdParameterObjects :: Lens' PutPipelineDefinition [ParameterObject]
- ppdParameterValues :: Lens' PutPipelineDefinition [ParameterValue]
- ppdPipelineId :: Lens' PutPipelineDefinition Text
- ppdPipelineObjects :: Lens' PutPipelineDefinition [PipelineObject]
- putPipelineDefinitionResponse :: Int -> Bool -> PutPipelineDefinitionResponse
- data PutPipelineDefinitionResponse
- ppdrsValidationErrors :: Lens' PutPipelineDefinitionResponse [ValidationError]
- ppdrsValidationWarnings :: Lens' PutPipelineDefinitionResponse [ValidationWarning]
- ppdrsResponseStatus :: Lens' PutPipelineDefinitionResponse Int
- ppdrsErrored :: Lens' PutPipelineDefinitionResponse Bool
Creating a Request
putPipelineDefinition Source #
Creates a value of PutPipelineDefinition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ppdParameterObjects
- The parameter objects used with the pipeline.ppdParameterValues
- The parameter values used with the pipeline.ppdPipelineId
- The ID of the pipeline.ppdPipelineObjects
- The objects that define the pipeline. These objects overwrite the existing pipeline definition.
data PutPipelineDefinition Source #
Contains the parameters for PutPipelineDefinition.
See: putPipelineDefinition
smart constructor.
Instances
Request Lenses
ppdParameterObjects :: Lens' PutPipelineDefinition [ParameterObject] Source #
The parameter objects used with the pipeline.
ppdParameterValues :: Lens' PutPipelineDefinition [ParameterValue] Source #
The parameter values used with the pipeline.
ppdPipelineId :: Lens' PutPipelineDefinition Text Source #
The ID of the pipeline.
ppdPipelineObjects :: Lens' PutPipelineDefinition [PipelineObject] Source #
The objects that define the pipeline. These objects overwrite the existing pipeline definition.
Destructuring the Response
putPipelineDefinitionResponse Source #
Creates a value of PutPipelineDefinitionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ppdrsValidationErrors
- The validation errors that are associated with the objects defined inpipelineObjects
.ppdrsValidationWarnings
- The validation warnings that are associated with the objects defined inpipelineObjects
.ppdrsResponseStatus
- -- | The response status code.ppdrsErrored
- Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and callPutPipelineDefinition
to commit the corrected pipeline.
data PutPipelineDefinitionResponse Source #
Contains the output of PutPipelineDefinition.
See: putPipelineDefinitionResponse
smart constructor.
Instances
Response Lenses
ppdrsValidationErrors :: Lens' PutPipelineDefinitionResponse [ValidationError] Source #
The validation errors that are associated with the objects defined in pipelineObjects
.
ppdrsValidationWarnings :: Lens' PutPipelineDefinitionResponse [ValidationWarning] Source #
The validation warnings that are associated with the objects defined in pipelineObjects
.
ppdrsResponseStatus :: Lens' PutPipelineDefinitionResponse Int Source #
- - | The response status code.
ppdrsErrored :: Lens' PutPipelineDefinitionResponse Bool Source #
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.