libZSservicesZSamazonka-codecommitZSamazonka-codecommit
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.CodeCommit.EvaluatePullRequestApprovalRules

Description

Evaluates whether a pull request has met all the conditions specified in its associated approval rules.

Synopsis

Creating a Request

data EvaluatePullRequestApprovalRules Source #

See: newEvaluatePullRequestApprovalRules smart constructor.

Constructors

EvaluatePullRequestApprovalRules' 

Fields

  • pullRequestId :: Text

    The system-generated ID of the pull request you want to evaluate.

  • revisionId :: Text

    The system-generated ID for the pull request revision. To retrieve the most recent revision ID for a pull request, use GetPullRequest.

Instances

Instances details
Eq EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

Read EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

Show EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

Generic EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

Associated Types

type Rep EvaluatePullRequestApprovalRules :: Type -> Type #

NFData EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

Hashable EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

ToJSON EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

AWSRequest EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

ToHeaders EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

ToPath EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

ToQuery EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

type Rep EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

type Rep EvaluatePullRequestApprovalRules = D1 ('MetaData "EvaluatePullRequestApprovalRules" "Amazonka.CodeCommit.EvaluatePullRequestApprovalRules" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "EvaluatePullRequestApprovalRules'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "revisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse EvaluatePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

newEvaluatePullRequestApprovalRules Source #

Create a value of EvaluatePullRequestApprovalRules 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:pullRequestId:EvaluatePullRequestApprovalRules', evaluatePullRequestApprovalRules_pullRequestId - The system-generated ID of the pull request you want to evaluate.

$sel:revisionId:EvaluatePullRequestApprovalRules', evaluatePullRequestApprovalRules_revisionId - The system-generated ID for the pull request revision. To retrieve the most recent revision ID for a pull request, use GetPullRequest.

Request Lenses

evaluatePullRequestApprovalRules_pullRequestId :: Lens' EvaluatePullRequestApprovalRules Text Source #

The system-generated ID of the pull request you want to evaluate.

evaluatePullRequestApprovalRules_revisionId :: Lens' EvaluatePullRequestApprovalRules Text Source #

The system-generated ID for the pull request revision. To retrieve the most recent revision ID for a pull request, use GetPullRequest.

Destructuring the Response

data EvaluatePullRequestApprovalRulesResponse Source #

Constructors

EvaluatePullRequestApprovalRulesResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • evaluation :: Evaluation

    The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.

Instances

Instances details
Eq EvaluatePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

Read EvaluatePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

Show EvaluatePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

Generic EvaluatePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

NFData EvaluatePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

type Rep EvaluatePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.EvaluatePullRequestApprovalRules

type Rep EvaluatePullRequestApprovalRulesResponse = D1 ('MetaData "EvaluatePullRequestApprovalRulesResponse" "Amazonka.CodeCommit.EvaluatePullRequestApprovalRules" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "EvaluatePullRequestApprovalRulesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "evaluation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Evaluation)))

newEvaluatePullRequestApprovalRulesResponse Source #

Create a value of EvaluatePullRequestApprovalRulesResponse 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:httpStatus:EvaluatePullRequestApprovalRulesResponse', evaluatePullRequestApprovalRulesResponse_httpStatus - The response's http status code.

$sel:evaluation:EvaluatePullRequestApprovalRulesResponse', evaluatePullRequestApprovalRulesResponse_evaluation - The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.

Response Lenses

evaluatePullRequestApprovalRulesResponse_evaluation :: Lens' EvaluatePullRequestApprovalRulesResponse Evaluation Source #

The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.