amazonka-codepipeline-1.6.0: Amazon CodePipeline SDK.

Copyright(c) 2013-2018 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 #

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 PutApprovalResult action.

See: putApprovalResult smart constructor.

Instances
Eq PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Data PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.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 # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Show PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Generic PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Associated Types

type Rep PutApprovalResult :: * -> * #

Hashable PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

ToJSON PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

AWSRequest PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Associated Types

type Rs PutApprovalResult :: * #

ToHeaders PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

ToPath PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

ToQuery PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

NFData PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Methods

rnf :: PutApprovalResult -> () #

type Rep PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

type Rep PutApprovalResult = D1 (MetaData "PutApprovalResult" "Network.AWS.CodePipeline.PutApprovalResult" "amazonka-codepipeline-1.6.0-CC2BPnoufmqE0zbjOUPBZ9" False) (C1 (MetaCons "PutApprovalResult'" PrefixI True) ((S1 (MetaSel (Just "_parPipelineName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_parStageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_parActionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_parResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ApprovalResult) :*: S1 (MetaSel (Just "_parToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs PutApprovalResult # 
Instance details

Defined in Network.AWS.CodePipeline.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 PutApprovalResult action.

See: putApprovalResultResponse smart constructor.

Instances
Eq PutApprovalResultResponse # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Data PutApprovalResultResponse # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

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 # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Show PutApprovalResultResponse # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Generic PutApprovalResultResponse # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Associated Types

type Rep PutApprovalResultResponse :: * -> * #

NFData PutApprovalResultResponse # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

type Rep PutApprovalResultResponse # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

type Rep PutApprovalResultResponse = D1 (MetaData "PutApprovalResultResponse" "Network.AWS.CodePipeline.PutApprovalResult" "amazonka-codepipeline-1.6.0-CC2BPnoufmqE0zbjOUPBZ9" False) (C1 (MetaCons "PutApprovalResultResponse'" PrefixI True) (S1 (MetaSel (Just "_parrsApprovedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 (MetaSel (Just "_parrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.