| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodePipeline.GetPipeline
Description
Returns the metadata, structure, stages, and actions of a pipeline. Can be used to return the entire structure of a pipeline in JSON format, which can then be modified and used to update the pipeline structure with UpdatePipeline.
Synopsis
- data GetPipeline = GetPipeline' {}
- newGetPipeline :: Text -> GetPipeline
- getPipeline_version :: Lens' GetPipeline (Maybe Natural)
- getPipeline_name :: Lens' GetPipeline Text
- data GetPipelineResponse = GetPipelineResponse' {}
- newGetPipelineResponse :: Int -> GetPipelineResponse
- getPipelineResponse_metadata :: Lens' GetPipelineResponse (Maybe PipelineMetadata)
- getPipelineResponse_pipeline :: Lens' GetPipelineResponse (Maybe PipelineDeclaration)
- getPipelineResponse_httpStatus :: Lens' GetPipelineResponse Int
Creating a Request
data GetPipeline Source #
Represents the input of a GetPipeline action.
See: newGetPipeline smart constructor.
Constructors
| GetPipeline' | |
Instances
Arguments
| :: Text | |
| -> GetPipeline |
Create a value of GetPipeline 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:
GetPipeline, getPipeline_version - The version number of the pipeline. If you do not specify a version,
defaults to the current version.
GetPipeline, getPipeline_name - The name of the pipeline for which you want to get information. Pipeline
names must be unique under an AWS user account.
Request Lenses
getPipeline_version :: Lens' GetPipeline (Maybe Natural) Source #
The version number of the pipeline. If you do not specify a version, defaults to the current version.
getPipeline_name :: Lens' GetPipeline Text Source #
The name of the pipeline for which you want to get information. Pipeline names must be unique under an AWS user account.
Destructuring the Response
data GetPipelineResponse Source #
Represents the output of a GetPipeline action.
See: newGetPipelineResponse smart constructor.
Constructors
| GetPipelineResponse' | |
Fields
| |
Instances
newGetPipelineResponse Source #
Arguments
| :: Int | |
| -> GetPipelineResponse |
Create a value of GetPipelineResponse 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:metadata:GetPipelineResponse', getPipelineResponse_metadata - Represents the pipeline metadata information returned as part of the
output of a GetPipeline action.
$sel:pipeline:GetPipelineResponse', getPipelineResponse_pipeline - Represents the structure of actions and stages to be performed in the
pipeline.
$sel:httpStatus:GetPipelineResponse', getPipelineResponse_httpStatus - The response's http status code.
Response Lenses
getPipelineResponse_metadata :: Lens' GetPipelineResponse (Maybe PipelineMetadata) Source #
Represents the pipeline metadata information returned as part of the
output of a GetPipeline action.
getPipelineResponse_pipeline :: Lens' GetPipelineResponse (Maybe PipelineDeclaration) Source #
Represents the structure of actions and stages to be performed in the pipeline.
getPipelineResponse_httpStatus :: Lens' GetPipelineResponse Int Source #
The response's http status code.