| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.Types.Approval
Description
Synopsis
Documentation
Returns information about a specific approval on a pull request.
See: newApproval smart constructor.
Constructors
| Approval' | |
Fields
| |
Instances
| FromJSON Approval Source # | |
| Generic Approval Source # | |
| Read Approval Source # | |
| Show Approval Source # | |
| NFData Approval Source # | |
Defined in Amazonka.CodeCommit.Types.Approval | |
| Eq Approval Source # | |
| Hashable Approval Source # | |
Defined in Amazonka.CodeCommit.Types.Approval | |
| type Rep Approval Source # | |
Defined in Amazonka.CodeCommit.Types.Approval type Rep Approval = D1 ('MetaData "Approval" "Amazonka.CodeCommit.Types.Approval" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" '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.