| 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.DataPipeline.DeactivatePipeline
Description
Deactivates the specified running pipeline. The pipeline is set to the
DEACTIVATING state until the deactivation process completes.
To resume a deactivated pipeline, use ActivatePipeline. By default, the pipeline resumes from the last completed execution. Optionally, you can specify the date and time to resume the pipeline.
Synopsis
- data DeactivatePipeline = DeactivatePipeline' {
- cancelActive :: Maybe Bool
- pipelineId :: Text
- newDeactivatePipeline :: Text -> DeactivatePipeline
- deactivatePipeline_cancelActive :: Lens' DeactivatePipeline (Maybe Bool)
- deactivatePipeline_pipelineId :: Lens' DeactivatePipeline Text
- data DeactivatePipelineResponse = DeactivatePipelineResponse' {
- httpStatus :: Int
- newDeactivatePipelineResponse :: Int -> DeactivatePipelineResponse
- deactivatePipelineResponse_httpStatus :: Lens' DeactivatePipelineResponse Int
Creating a Request
data DeactivatePipeline Source #
Contains the parameters for DeactivatePipeline.
See: newDeactivatePipeline smart constructor.
Constructors
| DeactivatePipeline' | |
Fields
| |
Instances
newDeactivatePipeline Source #
Arguments
| :: Text | |
| -> DeactivatePipeline |
Create a value of DeactivatePipeline 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:cancelActive:DeactivatePipeline', deactivatePipeline_cancelActive - Indicates whether to cancel any running objects. The default is true,
which sets the state of any running objects to CANCELED. If this value
is false, the pipeline is deactivated after all running objects finish.
DeactivatePipeline, deactivatePipeline_pipelineId - The ID of the pipeline.
Request Lenses
deactivatePipeline_cancelActive :: Lens' DeactivatePipeline (Maybe Bool) Source #
Indicates whether to cancel any running objects. The default is true,
which sets the state of any running objects to CANCELED. If this value
is false, the pipeline is deactivated after all running objects finish.
deactivatePipeline_pipelineId :: Lens' DeactivatePipeline Text Source #
The ID of the pipeline.
Destructuring the Response
data DeactivatePipelineResponse Source #
Contains the output of DeactivatePipeline.
See: newDeactivatePipelineResponse smart constructor.
Constructors
| DeactivatePipelineResponse' | |
Fields
| |
Instances
newDeactivatePipelineResponse Source #
Create a value of DeactivatePipelineResponse 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:httpStatus:DeactivatePipelineResponse', deactivatePipelineResponse_httpStatus - The response's http status code.
Response Lenses
deactivatePipelineResponse_httpStatus :: Lens' DeactivatePipelineResponse Int Source #
The response's http status code.