Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
Returns information about a specific approval on a pull request.
See: newApproval
smart constructor.
Approval' | |
|
Instances
Eq Approval Source # | |
Read Approval Source # | |
Show Approval Source # | |
Generic Approval Source # | |
NFData Approval Source # | |
Defined in Amazonka.CodeCommit.Types.Approval | |
Hashable Approval Source # | |
Defined in Amazonka.CodeCommit.Types.Approval | |
FromJSON Approval Source # | |
type Rep Approval Source # | |
Defined in Amazonka.CodeCommit.Types.Approval type Rep Approval = D1 ('MetaData "Approval" "Amazonka.CodeCommit.Types.Approval" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "Approval'" 'PrefixI 'True) (S1 ('MetaSel ('Just "approvalState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ApprovalState)) :*: S1 ('MetaSel ('Just "userArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newApproval :: Approval Source #
Create a value of Approval
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:approvalState:Approval'
, approval_approvalState
- The state of the approval, APPROVE or REVOKE. REVOKE states are not
stored.
$sel:userArn:Approval'
, approval_userArn
- The Amazon Resource Name (ARN) of the user.
approval_approvalState :: Lens' Approval (Maybe ApprovalState) Source #
The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.