You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc_source/API_AddPermission.md
+6-10
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Adds a permission to the resource policy associated with the specified AWS Lambda function\. You use resource policies to grant permissions to event sources that use the *push* model\. In a *push* model, event sources \(such as Amazon S3 and custom applications\) invoke your Lambda function\. Each permission you add to the resource policy allows an event source permission to invoke the Lambda function\.
4
4
5
-
If you are using versioning, the permissions you add are specific to the Lambda functionversion or alias you specify in the `AddPermission` request via the `Qualifier` parameter\. For more information about versioning, see [AWS Lambda Function Versioning and Aliases](https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)\.
5
+
Permissions apply to the Amazon Resource Name \(ARN\) used to invoke the function, which can be unqualified \(the unpublished version of the function\), or include a version or alias\. If a client uses a version or alias to invoke a function, use the `Qualifier` parameter to apply permissions to that ARN\. For more information about versioning, see [AWS Lambda Function Versioning and Aliases](https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)\.
6
6
7
7
This operation requires permission for the `lambda:AddPermission` action\.
8
8
@@ -39,12 +39,7 @@ Length Constraints: Minimum length of 1\. Maximum length of 140\.
You can use this optional query parameter to describe a qualified ARN using a function version or an alias name\. The permission will then apply to the specific qualified ARN\. For example, if you specify function version 2 as the qualifier, then permission applies only when request is made using qualified function ARN:
The principal who is getting this permission\.It can be Amazon S3 service Principal \(`s3.amazonaws.com`\)if you want Amazon S3 to invoke the function, an AWS account ID if you are granting cross\-account permission, or any valid AWS service principal such as `sns.amazonaws.com`\.For example, you might want to allow a custom application in another AWS account to push events to AWS Lambda by invoking your function\.
64
+
The principal who is getting this permission\.The principal can be an AWS service \(e\.g\.`s3.amazonaws.com` or `sns.amazonaws.com`\)for service triggers, or an account ID for cross\-account access\.If you specify a service as a principal, use the `SourceArn` parameter to limit who can invoke the function through that service\.
This is optional; however, when granting permission to invoke your function, you should specify this field with the Amazon Resource Name \(ARN\) as its value\. This ensures that only events generated from the specified source can invoke the function\.
87
-
If you add a permission without providing the source ARN, any AWS account that creates a mapping to your function ARN can send events to invoke your Lambda function\.
81
+
The Amazon Resource Name of the invoker\.
82
+
If you add a permission to a service principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can invoke your Lambda function\.
Copy file name to clipboardExpand all lines: doc_source/API_DeleteFunction.md
+3-8
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,6 @@
1
1
# DeleteFunction<aname="API_DeleteFunction"></a>
2
2
3
-
Deletes the specified Lambda function code and configuration\.
4
-
5
-
If you are using the versioning feature and you don't specify a function version in your `DeleteFunction` request, AWS Lambda will delete the function, including all its versions, and any aliases pointing to the function versions\. To delete a specific function version, you must provide the function version via the `Qualifier` parameter\. For information about function versioning, see [AWS Lambda Function Versioning and Aliases](https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)\.
6
-
7
-
When you delete a function the associated resource policy is also deleted\. You will need to delete the event source mappings explicitly\.
3
+
Deletes a Lambda function\. To delete a specific function version, use the `Qualifier` parameter\. Otherwise, all versions and aliases are deleted\. Event source mappings are not deleted\.
8
4
9
5
This operation requires permission for the `lambda:DeleteFunction` action\.
10
6
@@ -30,9 +26,7 @@ Length Constraints: Minimum length of 1\. Maximum length of 140\.
Using this optional parameter you can specify a function version \(but not the `$LATEST` version\) to direct AWS Lambda to delete a specific function version\. If the function version has one or more aliases pointing to it, you will get an error because you cannot have aliases pointing to it\. You can delete any function version but not the `$LATEST`, that is, you cannot specify `$LATEST` as the value of this parameter\. The `$LATEST` version can be deleted only when you want to delete all the function versions and aliases\.
34
-
You can only specify a function version, not an alias name, using this parameter\. You cannot delete a function version using its alias\.
35
-
If you don't specify this parameter, AWS Lambda will delete the function, including all of its versions and aliases\.
29
+
Specify a version to delete\. You cannot delete a version that is referenced by an alias\.
36
30
Length Constraints: Minimum length of 1\. Maximum length of 128\.
37
31
Pattern: `(|[a-zA-Z0-9$_-]+)`
38
32
@@ -69,6 +63,7 @@ The AWS Lambda service encountered an internal error\.
69
63
HTTP Status Code: 500
70
64
71
65
**TooManyRequestsException**
66
+
Request throughput limit exceeded
72
67
HTTP Status Code: 429
73
68
74
69
## See Also<aname="API_DeleteFunction_SeeAlso"></a>
The parent object returned that contains your environment's configuration settings or any error information associated with your configuration settings\.
3
+
The results of a configuration update that applied environment variables\.
You can use this operation to retrieve Lambda limits information, such as code size and concurrency limits\. For more information about limits, see [AWS Lambda Limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html)\. You can also retrieve resource usage statistics, such as code storage usage and function count\.
3
+
Retrieves details about your account's [limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html) and usage in a region\.
Copy file name to clipboardExpand all lines: doc_source/API_GetFunction.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Returns the configuration information of the Lambda function and a presigned URL link to the \.zip file you uploaded with [CreateFunction](API_CreateFunction.md) so you can download the \.zip file\. Note that the URL is valid for up to 10 minutes\. The configuration information is the same information you provided as parameters when uploading the function\.
4
4
5
-
Using the optional `Qualifier` parameter, you can specify a specific function version for which you want this information\.If you don't specify this parameter, the API uses unqualified function ARN which return information about the `$LATEST` version of the Lambda function\. For more information, see [AWS Lambda Function Versioning and Aliases](https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)\.
5
+
Use the `Qualifier` parameter to retrieve a published version of the function\.Otherwise, returns the unpublished version \(`$LATEST`\)\. For more information, see [AWS Lambda Function Versioning and Aliases](https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)\.
6
6
7
7
This operation requires permission for the `lambda:GetFunction` action\.
8
8
@@ -28,7 +28,7 @@ Length Constraints: Minimum length of 1\. Maximum length of 170\.
Use this optional parameter to specify a function version or an alias name\. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version\. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points\. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the `$LATEST` version of the Lambda function\.
31
+
Specify a version or alias to get details about a published version of the function\.
32
32
Length Constraints: Minimum length of 1\. Maximum length of 128\.
33
33
Pattern: `(|[a-zA-Z0-9$_-]+)`
34
34
@@ -100,13 +100,15 @@ If the action is successful, the service sends back an HTTP 200 response\.
100
100
The following data is returned in JSON format by the service\.
The concurrent execution limit set for this function\. For more information, see [Managing Concurrency](https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html)\.
Using this optional parameter you can specify a function version or an alias name\. If you specify function version, the API uses qualified function ARN and returns information about the specific function version\. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points\.
32
-
If you don't specify this parameter, the API uses unqualified function ARN, and returns information about the `$LATEST` function version\.
31
+
Specify a version or alias to get details about a published version of the function\.
33
32
Length Constraints: Minimum length of 1\. Maximum length of 128\.
34
33
Pattern: `(|[a-zA-Z0-9$_-]+)`
35
34
@@ -193,6 +192,7 @@ The AWS Lambda service encountered an internal error\.
193
192
HTTP Status Code: 500
194
193
195
194
**TooManyRequestsException**
195
+
Request throughput limit exceeded
196
196
HTTP Status Code: 429
197
197
198
198
## See Also<aname="API_GetFunctionConfiguration_SeeAlso"></a>
You can use this optional parameter to specify a Lambda function version or alias name\. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function\. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points\.
59
-
If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the `$LATEST` version\.
58
+
Specify a version or alias to invoke a published version of the function\.
60
59
Length Constraints: Minimum length of 1\. Maximum length of 128\.
61
60
Pattern: `(|[a-zA-Z0-9$_-]+)`
62
61
@@ -107,6 +106,7 @@ In the event of a function error this field contains a message describing the er
107
106
## Errors<aname="API_Invoke_Errors"></a>
108
107
109
108
**EC2AccessDeniedException**
109
+
Need additional permissions to configure VPC settings\.
110
110
HTTP Status Code: 502
111
111
112
112
**EC2ThrottledException**
@@ -142,7 +142,7 @@ The Subnet ID provided in the Lambda function VPC configuration is invalid\.
142
142
HTTP Status Code: 502
143
143
144
144
**InvalidZipFileException**
145
-
AWS Lambda could not unzip the function zip file\.
145
+
AWS Lambda could not unzip the deployment package\.
146
146
HTTP Status Code: 502
147
147
148
148
**KMSAccessDeniedException**
@@ -178,6 +178,7 @@ AWS Lambda was not able to set up VPC access for the Lambda function because one
0 commit comments