Copyright | (c) 2013-2021 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 |
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
- data PutPipelineDefinition = PutPipelineDefinition' {}
- newPutPipelineDefinition :: Text -> PutPipelineDefinition
- putPipelineDefinition_parameterObjects :: Lens' PutPipelineDefinition (Maybe [ParameterObject])
- putPipelineDefinition_parameterValues :: Lens' PutPipelineDefinition (Maybe [ParameterValue])
- putPipelineDefinition_pipelineId :: Lens' PutPipelineDefinition Text
- putPipelineDefinition_pipelineObjects :: Lens' PutPipelineDefinition [PipelineObject]
- data PutPipelineDefinitionResponse = PutPipelineDefinitionResponse' {}
- newPutPipelineDefinitionResponse :: Int -> Bool -> PutPipelineDefinitionResponse
- putPipelineDefinitionResponse_validationErrors :: Lens' PutPipelineDefinitionResponse (Maybe [ValidationError])
- putPipelineDefinitionResponse_validationWarnings :: Lens' PutPipelineDefinitionResponse (Maybe [ValidationWarning])
- putPipelineDefinitionResponse_httpStatus :: Lens' PutPipelineDefinitionResponse Int
- putPipelineDefinitionResponse_errored :: Lens' PutPipelineDefinitionResponse Bool
Creating a Request
data PutPipelineDefinition Source #
Contains the parameters for PutPipelineDefinition.
See: newPutPipelineDefinition
smart constructor.
PutPipelineDefinition' | |
|
Instances
newPutPipelineDefinition Source #
Create a value of PutPipelineDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:parameterObjects:PutPipelineDefinition'
, putPipelineDefinition_parameterObjects
- The parameter objects used with the pipeline.
$sel:parameterValues:PutPipelineDefinition'
, putPipelineDefinition_parameterValues
- The parameter values used with the pipeline.
$sel:pipelineId:PutPipelineDefinition'
, putPipelineDefinition_pipelineId
- The ID of the pipeline.
$sel:pipelineObjects:PutPipelineDefinition'
, putPipelineDefinition_pipelineObjects
- The objects that define the pipeline. These objects overwrite the
existing pipeline definition.
Request Lenses
putPipelineDefinition_parameterObjects :: Lens' PutPipelineDefinition (Maybe [ParameterObject]) Source #
The parameter objects used with the pipeline.
putPipelineDefinition_parameterValues :: Lens' PutPipelineDefinition (Maybe [ParameterValue]) Source #
The parameter values used with the pipeline.
putPipelineDefinition_pipelineId :: Lens' PutPipelineDefinition Text Source #
The ID of the pipeline.
putPipelineDefinition_pipelineObjects :: Lens' PutPipelineDefinition [PipelineObject] Source #
The objects that define the pipeline. These objects overwrite the existing pipeline definition.
Destructuring the Response
data PutPipelineDefinitionResponse Source #
Contains the output of PutPipelineDefinition.
See: newPutPipelineDefinitionResponse
smart constructor.
PutPipelineDefinitionResponse' | |
|
Instances
newPutPipelineDefinitionResponse Source #
:: Int | |
-> Bool | |
-> PutPipelineDefinitionResponse |
Create a value of PutPipelineDefinitionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:validationErrors:PutPipelineDefinitionResponse'
, putPipelineDefinitionResponse_validationErrors
- The validation errors that are associated with the objects defined in
pipelineObjects
.
$sel:validationWarnings:PutPipelineDefinitionResponse'
, putPipelineDefinitionResponse_validationWarnings
- The validation warnings that are associated with the objects defined in
pipelineObjects
.
$sel:httpStatus:PutPipelineDefinitionResponse'
, putPipelineDefinitionResponse_httpStatus
- The response's http status code.
$sel:errored:PutPipelineDefinitionResponse'
, putPipelineDefinitionResponse_errored
- 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.
Response Lenses
putPipelineDefinitionResponse_validationErrors :: Lens' PutPipelineDefinitionResponse (Maybe [ValidationError]) Source #
The validation errors that are associated with the objects defined in
pipelineObjects
.
putPipelineDefinitionResponse_validationWarnings :: Lens' PutPipelineDefinitionResponse (Maybe [ValidationWarning]) Source #
The validation warnings that are associated with the objects defined in
pipelineObjects
.
putPipelineDefinitionResponse_httpStatus :: Lens' PutPipelineDefinitionResponse Int Source #
The response's http status code.
putPipelineDefinitionResponse_errored :: 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.