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 |
Amazonka.DataPipeline.SetStatus
Description
Requests that the status of the specified physical or logical pipeline
objects be updated in the specified pipeline. This update might not
occur immediately, but is eventually consistent. The status that can be
set depends on the type of object (for example, DataNode or Activity).
You cannot perform this operation on FINISHED
pipelines and attempting
to do so returns InvalidRequestException
.
Synopsis
- data SetStatus = SetStatus' {}
- newSetStatus :: Text -> Text -> SetStatus
- setStatus_pipelineId :: Lens' SetStatus Text
- setStatus_objectIds :: Lens' SetStatus [Text]
- setStatus_status :: Lens' SetStatus Text
- data SetStatusResponse = SetStatusResponse' {
- newSetStatusResponse :: SetStatusResponse
Creating a Request
Contains the parameters for SetStatus.
See: newSetStatus
smart constructor.
Constructors
SetStatus' | |
Fields
|
Instances
Create a value of SetStatus
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:pipelineId:SetStatus'
, setStatus_pipelineId
- The ID of the pipeline that contains the objects.
$sel:objectIds:SetStatus'
, setStatus_objectIds
- The IDs of the objects. The corresponding objects can be either physical
or components, but not a mix of both types.
$sel:status:SetStatus'
, setStatus_status
- The status to be set on all the objects specified in objectIds
. For
components, use PAUSE
or RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.
Request Lenses
setStatus_pipelineId :: Lens' SetStatus Text Source #
The ID of the pipeline that contains the objects.
setStatus_objectIds :: Lens' SetStatus [Text] Source #
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
setStatus_status :: Lens' SetStatus Text Source #
The status to be set on all the objects specified in objectIds
. For
components, use PAUSE
or RESUME
. For instances, use TRY_CANCEL
,
RERUN
, or MARK_FINISHED
.
Destructuring the Response
data SetStatusResponse Source #
See: newSetStatusResponse
smart constructor.
Constructors
SetStatusResponse' | |
Instances
Eq SetStatusResponse Source # | |
Defined in Amazonka.DataPipeline.SetStatus Methods (==) :: SetStatusResponse -> SetStatusResponse -> Bool # (/=) :: SetStatusResponse -> SetStatusResponse -> Bool # | |
Read SetStatusResponse Source # | |
Defined in Amazonka.DataPipeline.SetStatus Methods readsPrec :: Int -> ReadS SetStatusResponse # readList :: ReadS [SetStatusResponse] # | |
Show SetStatusResponse Source # | |
Defined in Amazonka.DataPipeline.SetStatus Methods showsPrec :: Int -> SetStatusResponse -> ShowS # show :: SetStatusResponse -> String # showList :: [SetStatusResponse] -> ShowS # | |
Generic SetStatusResponse Source # | |
Defined in Amazonka.DataPipeline.SetStatus Associated Types type Rep SetStatusResponse :: Type -> Type # Methods from :: SetStatusResponse -> Rep SetStatusResponse x # to :: Rep SetStatusResponse x -> SetStatusResponse # | |
NFData SetStatusResponse Source # | |
Defined in Amazonka.DataPipeline.SetStatus Methods rnf :: SetStatusResponse -> () # | |
type Rep SetStatusResponse Source # | |
newSetStatusResponse :: SetStatusResponse Source #
Create a value of SetStatusResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.