amazonka-codepipeline-1.4.5: Amazon CodePipeline SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

Represents the input of a put approval result action.

See: putApprovalResult smart constructor.

Instances

Eq PutApprovalResult # 
Data PutApprovalResult # 

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 # 
Show PutApprovalResult # 
Generic PutApprovalResult # 
Hashable PutApprovalResult # 
ToJSON PutApprovalResult # 
NFData PutApprovalResult # 

Methods

rnf :: PutApprovalResult -> () #

AWSRequest PutApprovalResult # 
ToQuery PutApprovalResult # 
ToPath PutApprovalResult # 
ToHeaders PutApprovalResult # 
type Rep PutApprovalResult # 
type Rep PutApprovalResult = D1 (MetaData "PutApprovalResult" "Network.AWS.CodePipeline.PutApprovalResult" "amazonka-codepipeline-1.4.5-7l6xH8NU5nx4wRSql2Kh3c" 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 # 

Request Lenses

parPipelineName :: Lens' PutApprovalResult Text #

The name of the pipeline that contains the action.

parStageName :: Lens' PutApprovalResult Text #

The name of the stage that contains the action.

parActionName :: Lens' PutApprovalResult Text #

The name of the action for which approval is requested.

parResult :: Lens' PutApprovalResult ApprovalResult #

Represents information about the result of the approval request.

parToken :: Lens' PutApprovalResult Text #

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 #

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 #

Represents the output of a put approval result action.

See: putApprovalResultResponse smart constructor.

Instances

Eq PutApprovalResultResponse # 
Data PutApprovalResultResponse # 

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 # 
Show PutApprovalResultResponse # 
Generic PutApprovalResultResponse # 
NFData PutApprovalResultResponse # 
type Rep PutApprovalResultResponse # 
type Rep PutApprovalResultResponse = D1 (MetaData "PutApprovalResultResponse" "Network.AWS.CodePipeline.PutApprovalResult" "amazonka-codepipeline-1.4.5-7l6xH8NU5nx4wRSql2Kh3c" False) (C1 (MetaCons "PutApprovalResultResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_parrsApprovedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) (S1 (MetaSel (Just Symbol "_parrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

parrsApprovedAt :: Lens' PutApprovalResultResponse (Maybe UTCTime) #

The timestamp showing when the approval or rejection was submitted.

parrsResponseStatus :: Lens' PutApprovalResultResponse Int #

  • - | The response status code.