amazonka-codepipeline-1.6.1: 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 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 # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Data PutApprovalResult Source # 
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 Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Show PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Generic PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Associated Types

type Rep PutApprovalResult :: Type -> Type #

Hashable PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

ToJSON PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

AWSRequest PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Associated Types

type Rs PutApprovalResult :: Type #

ToHeaders PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

ToPath PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

ToQuery PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

NFData PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Methods

rnf :: PutApprovalResult -> () #

type Rep PutApprovalResult Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

type Rep PutApprovalResult = D1 (MetaData "PutApprovalResult" "Network.AWS.CodePipeline.PutApprovalResult" "amazonka-codepipeline-1.6.1-F3QDNRTP6GQJdBGUcFnM9u" 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 Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

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

Defined in Network.AWS.CodePipeline.PutApprovalResult

Data PutApprovalResultResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Show PutApprovalResultResponse Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Generic PutApprovalResultResponse Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

Associated Types

type Rep PutApprovalResultResponse :: Type -> Type #

NFData PutApprovalResultResponse Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

type Rep PutApprovalResultResponse Source # 
Instance details

Defined in Network.AWS.CodePipeline.PutApprovalResult

type Rep PutApprovalResultResponse = D1 (MetaData "PutApprovalResultResponse" "Network.AWS.CodePipeline.PutApprovalResult" "amazonka-codepipeline-1.6.1-F3QDNRTP6GQJdBGUcFnM9u" 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) Source #

The timestamp showing when the approval or rejection was submitted.