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.GetPullRequestOverrideState

Description

Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.

Synopsis

Creating a Request

data GetPullRequestOverrideState Source #

See: newGetPullRequestOverrideState smart constructor.

Constructors

GetPullRequestOverrideState' 

Fields

  • pullRequestId :: Text

    The ID of the pull request for which you want to get information about whether approval rules have been set aside (overridden).

  • revisionId :: Text

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

Instances

Instances details
Eq GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

Read GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

Show GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

Generic GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

Associated Types

type Rep GetPullRequestOverrideState :: Type -> Type #

NFData GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

Hashable GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

ToJSON GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

AWSRequest GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

ToHeaders GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

ToPath GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

ToQuery GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

type Rep GetPullRequestOverrideState Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

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

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

newGetPullRequestOverrideState Source #

Create a value of GetPullRequestOverrideState 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:GetPullRequestOverrideState', getPullRequestOverrideState_pullRequestId - The ID of the pull request for which you want to get information about whether approval rules have been set aside (overridden).

$sel:revisionId:GetPullRequestOverrideState', getPullRequestOverrideState_revisionId - The system-generated ID of the revision for the pull request. To retrieve the most recent revision ID, use GetPullRequest.

Request Lenses

getPullRequestOverrideState_pullRequestId :: Lens' GetPullRequestOverrideState Text Source #

The ID of the pull request for which you want to get information about whether approval rules have been set aside (overridden).

getPullRequestOverrideState_revisionId :: Lens' GetPullRequestOverrideState Text Source #

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

Destructuring the Response

data GetPullRequestOverrideStateResponse Source #

Constructors

GetPullRequestOverrideStateResponse' 

Fields

  • overridden :: Maybe Bool

    A Boolean value that indicates whether a pull request has had its rules set aside (TRUE) or whether all approval rules still apply (FALSE).

  • overrider :: Maybe Text

    The Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetPullRequestOverrideStateResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

Read GetPullRequestOverrideStateResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

Show GetPullRequestOverrideStateResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

Generic GetPullRequestOverrideStateResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

NFData GetPullRequestOverrideStateResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

type Rep GetPullRequestOverrideStateResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetPullRequestOverrideState

type Rep GetPullRequestOverrideStateResponse = D1 ('MetaData "GetPullRequestOverrideStateResponse" "Amazonka.CodeCommit.GetPullRequestOverrideState" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "GetPullRequestOverrideStateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "overridden") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "overrider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetPullRequestOverrideStateResponse Source #

Create a value of GetPullRequestOverrideStateResponse 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:overridden:GetPullRequestOverrideStateResponse', getPullRequestOverrideStateResponse_overridden - A Boolean value that indicates whether a pull request has had its rules set aside (TRUE) or whether all approval rules still apply (FALSE).

$sel:overrider:GetPullRequestOverrideStateResponse', getPullRequestOverrideStateResponse_overrider - The Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.

$sel:httpStatus:GetPullRequestOverrideStateResponse', getPullRequestOverrideStateResponse_httpStatus - The response's http status code.

Response Lenses

getPullRequestOverrideStateResponse_overridden :: Lens' GetPullRequestOverrideStateResponse (Maybe Bool) Source #

A Boolean value that indicates whether a pull request has had its rules set aside (TRUE) or whether all approval rules still apply (FALSE).

getPullRequestOverrideStateResponse_overrider :: Lens' GetPullRequestOverrideStateResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.