Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
You can remove individual permissions from an access policy associated with a Lambda function by providing a Statement ID.
Note that removal of a permission will cause an active event source to lose permission to the function.
You need permission for the 'lambda:RemovePermission' action.
See: AWS API Reference for RemovePermission.
Creating a Request
Creates a value of RemovePermission
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RemovePermission Source
See: removePermission
smart constructor.
Request Lenses
rpFunctionName :: Lens' RemovePermission Text Source
Lambda function whose access policy you want to remove a permission from.
You can specify an unqualified function name (for example, "Thumbnail") or you can specify Amazon Resource Name (ARN) of the function (for example, "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.
rpStatementId :: Lens' RemovePermission Text Source
Statement ID of the permission to remove.
Destructuring the Response
removePermissionResponse :: RemovePermissionResponse Source
Creates a value of RemovePermissionResponse
with the minimum fields required to make a request.
data RemovePermissionResponse Source
See: removePermissionResponse
smart constructor.