amazonka-codepipeline-1.5.0: Amazon CodePipeline SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodePipeline.PutApprovalResult

Contents

Description

Provides the response to a manual approval request to AWS CodePipeline. Valid responses include Approved and Rejected.

Synopsis

Creating a Request

putApprovalResult Source #

Creates a value of PutApprovalResult with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • parPipelineName - The name of the pipeline that contains the action.
  • parStageName - The name of the stage that contains the action.
  • parActionName - The name of the action for which approval is requested.
  • parResult - Represents information about the result of the approval request.
  • parToken - The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the GetPipelineState action and is used to validate that the approval request corresponding to this token is still valid.

data PutApprovalResult Source #

Represents the input of a PutApprovalResult action.

See: putApprovalResult smart constructor.

Instances

Eq PutApprovalResult Source # 
Data PutApprovalResult Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutApprovalResult -> c PutApprovalResult #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutApprovalResult #

toConstr :: PutApprovalResult -> Constr #

dataTypeOf :: PutApprovalResult -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutApprovalResult) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutApprovalResult) #

gmapT :: (forall b. Data b => b -> b) -> PutApprovalResult -> PutApprovalResult #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutApprovalResult -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutApprovalResult -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutApprovalResult -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutApprovalResult -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutApprovalResult -> m PutApprovalResult #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutApprovalResult -> m PutApprovalResult #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutApprovalResult -> m PutApprovalResult #

Read PutApprovalResult Source # 
Show PutApprovalResult Source # 
Generic PutApprovalResult Source # 
Hashable PutApprovalResult Source # 
ToJSON PutApprovalResult Source # 
NFData PutApprovalResult Source # 

Methods

rnf :: PutApprovalResult -> () #

AWSRequest PutApprovalResult Source # 
ToQuery PutApprovalResult Source # 
ToPath PutApprovalResult Source # 
ToHeaders PutApprovalResult Source # 
type Rep PutApprovalResult Source # 
type Rep PutApprovalResult = D1 (MetaData "PutApprovalResult" "Network.AWS.CodePipeline.PutApprovalResult" "amazonka-codepipeline-1.5.0-BYFgK5oCiPTDLF5tMR5fvg" False) (C1 (MetaCons "PutApprovalResult'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_parPipelineName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_parStageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_parActionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_parResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ApprovalResult)) (S1 (MetaSel (Just Symbol "_parToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs PutApprovalResult Source # 

Request Lenses

parPipelineName :: Lens' PutApprovalResult Text Source #

The name of the pipeline that contains the action.

parStageName :: Lens' PutApprovalResult Text Source #

The name of the stage that contains the action.

parActionName :: Lens' PutApprovalResult Text Source #

The name of the action for which approval is requested.

parResult :: Lens' PutApprovalResult ApprovalResult Source #

Represents information about the result of the approval request.

parToken :: Lens' PutApprovalResult Text Source #

The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the GetPipelineState action and is used to validate that the approval request corresponding to this token is still valid.

Destructuring the Response

putApprovalResultResponse Source #

Creates a value of PutApprovalResultResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PutApprovalResultResponse Source #

Represents the output of a PutApprovalResult action.

See: putApprovalResultResponse smart constructor.

Instances

Eq PutApprovalResultResponse Source # 
Data PutApprovalResultResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutApprovalResultResponse -> c PutApprovalResultResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutApprovalResultResponse #

toConstr :: PutApprovalResultResponse -> Constr #

dataTypeOf :: PutApprovalResultResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutApprovalResultResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutApprovalResultResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutApprovalResultResponse -> PutApprovalResultResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutApprovalResultResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutApprovalResultResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutApprovalResultResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutApprovalResultResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutApprovalResultResponse -> m PutApprovalResultResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutApprovalResultResponse -> m PutApprovalResultResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutApprovalResultResponse -> m PutApprovalResultResponse #

Read PutApprovalResultResponse Source # 
Show PutApprovalResultResponse Source # 
Generic PutApprovalResultResponse Source # 
NFData PutApprovalResultResponse Source # 
type Rep PutApprovalResultResponse Source # 
type Rep PutApprovalResultResponse = D1 (MetaData "PutApprovalResultResponse" "Network.AWS.CodePipeline.PutApprovalResult" "amazonka-codepipeline-1.5.0-BYFgK5oCiPTDLF5tMR5fvg" False) (C1 (MetaCons "PutApprovalResultResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_parrsApprovedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) (S1 (MetaSel (Just Symbol "_parrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

parrsApprovedAt :: Lens' PutApprovalResultResponse (Maybe UTCTime) Source #

The timestamp showing when the approval or rejection was submitted.