HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/codecommit/get-pull-request-approval-states.rst
**To view approvals on a pull request**

The following ``get-pull-request-approval-states`` example returns approvals for the specified pull request. ::

    aws codecommit get-pull-request-approval-states \
        --pull-request-id 8 \
        --revision-id 9f29d167EXAMPLE 

Output::

    {
        "approvals": [
            {
                "userArn": "arn:aws:iam::123456789012:user/Mary_Major",
                "approvalState": "APPROVE"
            }
        ]
    }

For more information, see `View Pull Requests <https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-view-pull-request.html#get-pull-request-approval-state>`__ in the *AWS CodeCommit User Guide*.