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

Amazonka.CodePipeline.PutApprovalResult

Description

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

Synopsis

Creating a Request

data PutApprovalResult Source #

Represents the input of a PutApprovalResult action.

See: newPutApprovalResult smart constructor.

Constructors

PutApprovalResult' 

Fields

  • pipelineName :: Text

    The name of the pipeline that contains the action.

  • stageName :: Text

    The name of the stage that contains the action.

  • actionName :: Text

    The name of the action for which approval is requested.

  • result :: ApprovalResult

    Represents information about the result of the approval request.

  • token :: 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. It is used to validate that the approval request corresponding to this token is still valid.

Instances

Instances details
Eq PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Read PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Show PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Generic PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Associated Types

type Rep PutApprovalResult :: Type -> Type #

NFData PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Methods

rnf :: PutApprovalResult -> () #

Hashable PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

ToJSON PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

AWSRequest PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Associated Types

type AWSResponse PutApprovalResult #

ToHeaders PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

ToPath PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

ToQuery PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

type Rep PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

type Rep PutApprovalResult = D1 ('MetaData "PutApprovalResult" "Amazonka.CodePipeline.PutApprovalResult" "libZSservicesZSamazonka-codepipelineZSamazonka-codepipeline" 'False) (C1 ('MetaCons "PutApprovalResult'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pipelineName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "stageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "actionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "result") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApprovalResult) :*: S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse PutApprovalResult Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

newPutApprovalResult Source #

Create a value of PutApprovalResult 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:pipelineName:PutApprovalResult', putApprovalResult_pipelineName - The name of the pipeline that contains the action.

$sel:stageName:PutApprovalResult', putApprovalResult_stageName - The name of the stage that contains the action.

$sel:actionName:PutApprovalResult', putApprovalResult_actionName - The name of the action for which approval is requested.

$sel:result:PutApprovalResult', putApprovalResult_result - Represents information about the result of the approval request.

$sel:token:PutApprovalResult', putApprovalResult_token - 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. It is used to validate that the approval request corresponding to this token is still valid.

Request Lenses

putApprovalResult_pipelineName :: Lens' PutApprovalResult Text Source #

The name of the pipeline that contains the action.

putApprovalResult_stageName :: Lens' PutApprovalResult Text Source #

The name of the stage that contains the action.

putApprovalResult_actionName :: Lens' PutApprovalResult Text Source #

The name of the action for which approval is requested.

putApprovalResult_result :: Lens' PutApprovalResult ApprovalResult Source #

Represents information about the result of the approval request.

putApprovalResult_token :: 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. It is used to validate that the approval request corresponding to this token is still valid.

Destructuring the Response

data PutApprovalResultResponse Source #

Represents the output of a PutApprovalResult action.

See: newPutApprovalResultResponse smart constructor.

Constructors

PutApprovalResultResponse' 

Fields

Instances

Instances details
Eq PutApprovalResultResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Read PutApprovalResultResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Show PutApprovalResultResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Generic PutApprovalResultResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

Associated Types

type Rep PutApprovalResultResponse :: Type -> Type #

NFData PutApprovalResultResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

type Rep PutApprovalResultResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutApprovalResult

type Rep PutApprovalResultResponse = D1 ('MetaData "PutApprovalResultResponse" "Amazonka.CodePipeline.PutApprovalResult" "libZSservicesZSamazonka-codepipelineZSamazonka-codepipeline" 'False) (C1 ('MetaCons "PutApprovalResultResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "approvedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutApprovalResultResponse Source #

Create a value of PutApprovalResultResponse 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:approvedAt:PutApprovalResultResponse', putApprovalResultResponse_approvedAt - The timestamp showing when the approval or rejection was submitted.

$sel:httpStatus:PutApprovalResultResponse', putApprovalResultResponse_httpStatus - The response's http status code.

Response Lenses

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

The timestamp showing when the approval or rejection was submitted.