403Webshell
Server IP : 104.21.25.180  /  Your IP : 104.23.197.123
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/awscli/examples/lambda/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/awscli/examples/lambda/get-policy.rst
**To retrieve the resource-based IAM policy for a function, version, or alias**

The following ``get-policy`` example displays policy information about the ``my-function`` Lambda function. ::

    aws lambda get-policy \
        --function-name my-function

Output::

    {
        "Policy": {
            "Version":"2012-10-17",
            "Id":"default",
            "Statement":
            [
                {
                    "Sid":"iot-events",
                    "Effect":"Allow",
                    "Principal": {"Service":"iotevents.amazonaws.com"},
                    "Action":"lambda:InvokeFunction",
                    "Resource":"arn:aws:lambda:us-west-2:123456789012:function:my-function"
                }
            ]
        },
        "RevisionId": "93017fc9-59cb-41dc-901b-4845ce4bf668"
    }

For more information, see `Using Resource-based Policies for AWS Lambda <https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html>`__ in the *AWS Lambda Developer Guide*.

Youez - 2016 - github.com/yon3zu
LinuXploit