404

[ Avaa Bypassed ]




Upload:

Command:

botdev@13.58.146.48: ~ $
**To add permissions to an existing Lambda function**

The following ``add-permission`` example grants the Amazon SNS service permission to invoke a function named ``my-function``. ::

    aws lambda add-permission \
        --function-name my-function \
        --action lambda:InvokeFunction \
        --statement-id sns \
        --principal sns.amazonaws.com

Output::

    {
        "Statement":
        {
            "Sid":"sns",
            "Effect":"Allow",
            "Principal":{
                "Service":"sns.amazonaws.com"
            },
            "Action":"lambda:InvokeFunction",
            "Resource":"arn:aws:lambda:us-east-2:123456789012:function:my-function"
        }
    }

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

Filemanager

Name Type Size Permission Actions
add-layer-version-permission.rst File 975 B 0755
add-permission.rst File 894 B 0755
create-alias.rst File 828 B 0755
create-event-source-mapping.rst File 959 B 0755
create-function.rst File 1.37 KB 0755
delete-alias.rst File 459 B 0755
delete-event-source-mapping.rst File 880 B 0755
delete-function-concurrency.rst File 517 B 0755
delete-function-event-invoke-config.rst File 313 B 0755
delete-function.rst File 402 B 0755
delete-layer-version.rst File 435 B 0755
delete-provisioned-concurrency-config.rst File 350 B 0755
get-account-settings.rst File 733 B 0755
get-alias.rst File 721 B 0755
get-event-source-mapping.rst File 868 B 0755
get-function-concurrency.rst File 344 B 0755
get-function-configuration.rst File 1.23 KB 0755
get-function-event-invoke-config.rst File 757 B 0755
get-function.rst File 1.56 KB 0755
get-layer-version-by-arn.rst File 1.42 KB 0755
get-layer-version-policy.rst File 1022 B 0755
get-layer-version.rst File 1.14 KB 0755
get-policy.rst File 1016 B 0755
get-provisioned-concurrency-config.rst File 635 B 0755
invoke.rst File 1.1 KB 0755
list-aliases.rst File 1.11 KB 0755
list-event-source-mappings.rst File 967 B 0755
list-function-event-invoke-configs.rst File 924 B 0755
list-functions.rst File 3.6 KB 0755
list-layer-versions.rst File 835 B 0755
list-layers.rst File 1.05 KB 0755
list-provisioned-concurrency-configs.rst File 1.2 KB 0755
list-tags.rst File 543 B 0755
list-versions-by-function.rst File 3.42 KB 0755
publish-layer-version.rst File 1.38 KB 0755
publish-version.rst File 1.07 KB 0755
put-function-concurrency.rst File 580 B 0755
put-function-event-invoke-config.rst File 731 B 0755
put-provisioned-concurrency-config.rst File 597 B 0755
remove-layer-version-permission.rst File 502 B 0755
remove-permission.rst File 500 B 0755
tag-resource.rst File 539 B 0755
untag-resource.rst File 522 B 0755
update-alias.rst File 751 B 0755
update-event-source-mapping.rst File 879 B 0755
update-function-code.rst File 1.3 KB 0755
update-function-configuration.rst File 1.28 KB 0755
update-function-event-invoke-config.rst File 883 B 0755