Skip to content

Commit 6f0d211

Browse files
authored
Merge branch 'master' into patch-1
2 parents de3d85f + fa2e3b9 commit 6f0d211

File tree

176 files changed

+1477
-3789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+1477
-3789
lines changed

doc_source/API_AccountLimit.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
# AccountLimit<a name="API_AccountLimit"></a>
22

3-
Provides limits of code size and concurrency associated with the current account and region\. For more information or to request a limit increase for concurrent executions, see [Lambda Limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html)\.
3+
Limits that are related to concurrency and code storage\. All file and storage sizes are in bytes\.
44

55
## Contents<a name="API_AccountLimit_Contents"></a>
66

77
**CodeSizeUnzipped** <a name="SSS-Type-AccountLimit-CodeSizeUnzipped"></a>
8-
Size, in bytes, of code/dependencies that you can zip into a deployment package \(uncompressed zip/jar size\) for uploading\. The default limit is 250 MB\.
8+
The maximum size of your function's code and layers when they're extracted\.
99
Type: Long
1010
Required: No
1111

1212
**CodeSizeZipped** <a name="SSS-Type-AccountLimit-CodeSizeZipped"></a>
13-
Size, in bytes, of a single zipped code/dependencies package you can upload for your Lambda function\(\.zip/\.jar file\)\. Try using Amazon S3 for uploading larger files\. Default limit is 50 MB\.
13+
The maximum size of a deployment package when it's uploaded directly to AWS Lambda\. Use Amazon S3 for larger files\.
1414
Type: Long
1515
Required: No
1616

1717
**ConcurrentExecutions** <a name="SSS-Type-AccountLimit-ConcurrentExecutions"></a>
18-
Number of simultaneous executions of your function per region\. The default limit is 1000\.
18+
The maximum number of simultaneous function executions\.
1919
Type: Integer
2020
Required: No
2121

2222
**TotalCodeSize** <a name="SSS-Type-AccountLimit-TotalCodeSize"></a>
23-
Maximum size, in bytes, of a code package you can upload per region\. The default size is 75 GB\.
23+
The amount of storage space that you can use for all deployment packages and layer archives\.
2424
Type: Long
2525
Required: No
2626

2727
**UnreservedConcurrentExecutions** <a name="SSS-Type-AccountLimit-UnreservedConcurrentExecutions"></a>
28-
The number of concurrent executions available to functions that do not have concurrency limits set\. For more information, see [Managing Concurrency](https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html)\.
28+
The maximum number of simultaneous function executions, minus the capacity that's reserved for individual functions with [PutFunctionConcurrency](API_PutFunctionConcurrency.md)\.
2929
Type: Integer
3030
Valid Range: Minimum value of 0\.
3131
Required: No
@@ -35,5 +35,6 @@ Required: No
3535
For more information about using this API in one of the language\-specific AWS SDKs, see the following:
3636
+ [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/AccountLimit)
3737
+ [AWS SDK for Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/AccountLimit)
38+
+ [AWS SDK for Go \- Pilot](https://docs.aws.amazon.com/goto/SdkForGoPilot/lambda-2015-03-31/AccountLimit)
3839
+ [AWS SDK for Java](https://docs.aws.amazon.com/goto/SdkForJava/lambda-2015-03-31/AccountLimit)
3940
+ [AWS SDK for Ruby V2](https://docs.aws.amazon.com/goto/SdkForRubyV2/lambda-2015-03-31/AccountLimit)

doc_source/API_AccountUsage.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AccountUsage<a name="API_AccountUsage"></a>
22

3-
Provides code size usage and function count associated with the current account and region\.
3+
The number of functions and amount of storage in use\.
44

55
## Contents<a name="API_AccountUsage_Contents"></a>
66

77
**FunctionCount** <a name="SSS-Type-AccountUsage-FunctionCount"></a>
8-
The number of your account's existing functions per region\.
8+
The number of Lambda functions\.
99
Type: Long
1010
Required: No
1111

1212
**TotalCodeSize** <a name="SSS-Type-AccountUsage-TotalCodeSize"></a>
13-
Total size, in bytes, of the account's deployment packages per region\.
13+
The amount of storage space, in bytes, that's being used by deployment packages and layer archives\.
1414
Type: Long
1515
Required: No
1616

@@ -19,5 +19,6 @@ Required: No
1919
For more information about using this API in one of the language\-specific AWS SDKs, see the following:
2020
+ [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/AccountUsage)
2121
+ [AWS SDK for Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/AccountUsage)
22+
+ [AWS SDK for Go \- Pilot](https://docs.aws.amazon.com/goto/SdkForGoPilot/lambda-2015-03-31/AccountUsage)
2223
+ [AWS SDK for Java](https://docs.aws.amazon.com/goto/SdkForJava/lambda-2015-03-31/AccountUsage)
2324
+ [AWS SDK for Ruby V2](https://docs.aws.amazon.com/goto/SdkForRubyV2/lambda-2015-03-31/AccountUsage)

doc_source/API_AddLayerVersionPermission.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AddLayerVersionPermission<a name="API_AddLayerVersionPermission"></a>
22

3-
Adds permissions to the resource\-based policy of a version of a function layer\. Use this action to grant layer usage permission to other accounts\. You can grant permission to a single account, all AWS accounts, or all accounts in an organization\.
3+
Adds permissions to the resource\-based policy of a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)\. Use this action to grant layer usage permission to other accounts\. You can grant permission to a single account, all AWS accounts, or all accounts in an organization\.
44

55
To revoke permission, call [RemoveLayerVersionPermission](API_RemoveLayerVersionPermission.md) with the statement ID that you specified when you added it\.
66

@@ -23,7 +23,7 @@ Content-type: application/json
2323
The request requires the following URI parameters\.
2424

2525
** [LayerName](#API_AddLayerVersionPermission_RequestSyntax) ** <a name="SSS-AddLayerVersionPermission-request-LayerName"></a>
26-
The name of the layer\.
26+
The name or Amazon Resource Name \(ARN\) of the layer\.
2727
Length Constraints: Minimum length of 1\. Maximum length of 140\.
2828
Pattern: `(arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+`
2929

@@ -95,7 +95,7 @@ One of the parameters in the request is invalid\. For example, if you provided a
9595
HTTP Status Code: 400
9696

9797
**PolicyLengthExceededException**
98-
Lambda function access policy is limited to 20 KB\.
98+
The permissions policy for the resource is too large\. [Learn more](https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
9999
HTTP Status Code: 400
100100

101101
**PreconditionFailedException**
@@ -115,7 +115,7 @@ The AWS Lambda service encountered an internal error\.
115115
HTTP Status Code: 500
116116

117117
**TooManyRequestsException**
118-
Request throughput limit exceeded
118+
Request throughput limit exceeded\.
119119
HTTP Status Code: 429
120120

121121
## See Also<a name="API_AddLayerVersionPermission_SeeAlso"></a>
@@ -125,6 +125,7 @@ For more information about using this API in one of the language\-specific AWS S
125125
+ [AWS SDK for \.NET](https://docs.aws.amazon.com/goto/DotNetSDKV3/lambda-2015-03-31/AddLayerVersionPermission)
126126
+ [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/AddLayerVersionPermission)
127127
+ [AWS SDK for Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/AddLayerVersionPermission)
128+
+ [AWS SDK for Go \- Pilot](https://docs.aws.amazon.com/goto/SdkForGoPilot/lambda-2015-03-31/AddLayerVersionPermission)
128129
+ [AWS SDK for Java](https://docs.aws.amazon.com/goto/SdkForJava/lambda-2015-03-31/AddLayerVersionPermission)
129130
+ [AWS SDK for JavaScript](https://docs.aws.amazon.com/goto/AWSJavaScriptSDK/lambda-2015-03-31/AddLayerVersionPermission)
130131
+ [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/lambda-2015-03-31/AddLayerVersionPermission)

doc_source/API_AddPermission.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# AddPermission<a name="API_AddPermission"></a>
22

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\.
3+
Grants an AWS service or another account permission to use a function\. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias\. If you use a qualifier, the invoker must use the full Amazon Resource Name \(ARN\) of that version or alias to invoke the function\.
44

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)\.
5+
To grant permission to another account, specify the account ID as the `Principal`\. For AWS services, the principal is a domain\-style identifier defined by the service, like `s3.amazonaws.com` or `sns.amazonaws.com`\. For AWS services, you can also specify the ARN or owning account of the associated resource as the `SourceArn` or `SourceAccount`\. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function\.
66

7-
This operation requires permission for the `lambda:AddPermission` action\.
7+
This action adds a statement to a resource\-based permission policy for the function\. For more information about function policies, see [Lambda Function Policies](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html)\.
88

99
## Request Syntax<a name="API_AddPermission_RequestSyntax"></a>
1010

@@ -28,13 +28,13 @@ Content-type: application/json
2828
The request requires the following URI parameters\.
2929

3030
** [FunctionName](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-FunctionName"></a>
31-
The name of the lambda function\.
31+
The name of the Lambda function, version, or alias\.
3232

3333
**Name formats**
34-
+ **Function name** \- `MyFunction`\.
35-
+ **Function ARN** \- `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`\.
36-
+ **Partial ARN** \- `123456789012:function:MyFunction`\.
37-
The length constraint applies only to the full ARN\. If you specify only the function name, it is limited to 64 characters in length\.
34+
+ **Function name** \- `my-function` \(name\-only\), `my-function:v1` \(with alias\)\.
35+
+ **Function ARN** \- `arn:aws:lambda:us-west-2:123456789012:function:my-function`\.
36+
+ **Partial ARN** \- `123456789012:function:my-function`\.
37+
You can append a version number or alias to any of the formats\. The length constraint applies only to the full ARN\. If you specify only the function name, it is limited to 64 characters in length\.
3838
Length Constraints: Minimum length of 1\. Maximum length of 140\.
3939
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
4040

@@ -48,44 +48,43 @@ Pattern: `(|[a-zA-Z0-9$_-]+)`
4848
The request accepts the following data in JSON format\.
4949

5050
** [Action](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-Action"></a>
51-
The AWS Lambda action you want to allow in this statement\. Each Lambda action is a string starting with `lambda:` followed by the API name \(see [Actions](https://docs.aws.amazon.com/lambda/latest/dg/API_Operations.html)\) \. For example, `lambda:CreateFunction`\. You can use wildcard \(`lambda:*`\) to grant permission for all AWS Lambda actions\.
51+
The action that the principal can use on the function\. For example, `lambda:InvokeFunction` or `lambda:GetFunction`\.
5252
Type: String
5353
Pattern: `(lambda:[*]|lambda:[a-zA-Z]+|[*])`
5454
Required: Yes
5555

5656
** [EventSourceToken](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-EventSourceToken"></a>
57-
A unique token that must be supplied by the principal invoking the function\. This is currently only used for Alexa Smart Home functions\.
57+
For Alexa Smart Home functions, a token that must be supplied by the invoker\.
5858
Type: String
5959
Length Constraints: Minimum length of 0\. Maximum length of 256\.
6060
Pattern: `[a-zA-Z0-9._\-]+`
6161
Required: No
6262

6363
** [Principal](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-Principal"></a>
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\.
64+
The AWS service or account that invokes the function\. If you specify a service, use `SourceArn` or `SourceAccount` to limit who can invoke the function through that service\.
6565
Type: String
6666
Pattern: `.*`
6767
Required: Yes
6868

6969
** [RevisionId](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-RevisionId"></a>
70-
An optional value you can use to ensure you are updating the latest update of the function version or alias\. If the `RevisionID` you pass doesn't match the latest `RevisionId` of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias `RevisionID` using either [GetFunction](API_GetFunction.md) or [GetAlias](API_GetAlias.md)
70+
Only update the policy if the revision ID matches the ID that's specified\. Use this option to avoid modifying a policy that has changed since you last read it\.
7171
Type: String
7272
Required: No
7373

7474
** [SourceAccount](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-SourceAccount"></a>
75-
This parameter is used for S3 and SES\. The AWS account ID \(without a hyphen\) of the source owner\. For example, if the `SourceArn` identifies a bucket, then this is the bucket owner's account ID\. You can use this additional condition to ensure the bucket you specify is owned by a specific account \(it is possible the bucket owner deleted the bucket and some other AWS account created the bucket\)\. You can also use this condition to specify all sources \(that is, you don't specify the `SourceArn`\) owned by a specific account\.
75+
For AWS services, the ID of the account that owns the resource\. Use this instead of `SourceArn` to grant permission to resources that are owned by another account \(for example, all of an account's Amazon S3 buckets\)\. Or use it together with `SourceArn` to ensure that the resource is owned by the specified account\. For example, an Amazon S3 bucket could be deleted by its owner and recreated by another account\.
7676
Type: String
7777
Pattern: `\d{12}`
7878
Required: No
7979

8080
** [SourceArn](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-SourceArn"></a>
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\.
81+
For AWS services, the ARN of the AWS resource that invokes the function\. For example, an Amazon S3 bucket or Amazon SNS topic\.
8382
Type: String
8483
Pattern: `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
8584
Required: No
8685

8786
** [StatementId](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-StatementId"></a>
88-
A unique statement identifier\.
87+
A statement identifier that differentiates the statement from others in the same policy\.
8988
Type: String
9089
Length Constraints: Minimum length of 1\. Maximum length of 100\.
9190
Pattern: `([a-zA-Z0-9-_]+)`
@@ -109,7 +108,7 @@ If the action is successful, the service sends back an HTTP 201 response\.
109108
The following data is returned in JSON format by the service\.
110109

111110
** [Statement](#API_AddPermission_ResponseSyntax) ** <a name="SSS-AddPermission-response-Statement"></a>
112-
The permission statement you specified in the request\. The response returns the same as a string using a backslash \("\\"\) as an escape character in the JSON\.
111+
The permission statement that's added to the function policy\.
113112
Type: String
114113

115114
## Errors<a name="API_AddPermission_Errors"></a>
@@ -119,7 +118,7 @@ One of the parameters in the request is invalid\. For example, if you provided a
119118
HTTP Status Code: 400
120119

121120
**PolicyLengthExceededException**
122-
Lambda function access policy is limited to 20 KB\.
121+
The permissions policy for the resource is too large\. [Learn more](https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
123122
HTTP Status Code: 400
124123

125124
**PreconditionFailedException**
@@ -139,7 +138,7 @@ The AWS Lambda service encountered an internal error\.
139138
HTTP Status Code: 500
140139

141140
**TooManyRequestsException**
142-
Request throughput limit exceeded
141+
Request throughput limit exceeded\.
143142
HTTP Status Code: 429
144143

145144
## See Also<a name="API_AddPermission_SeeAlso"></a>
@@ -149,6 +148,7 @@ For more information about using this API in one of the language\-specific AWS S
149148
+ [AWS SDK for \.NET](https://docs.aws.amazon.com/goto/DotNetSDKV3/lambda-2015-03-31/AddPermission)
150149
+ [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/AddPermission)
151150
+ [AWS SDK for Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/AddPermission)
151+
+ [AWS SDK for Go \- Pilot](https://docs.aws.amazon.com/goto/SdkForGoPilot/lambda-2015-03-31/AddPermission)
152152
+ [AWS SDK for Java](https://docs.aws.amazon.com/goto/SdkForJava/lambda-2015-03-31/AddPermission)
153153
+ [AWS SDK for JavaScript](https://docs.aws.amazon.com/goto/AWSJavaScriptSDK/lambda-2015-03-31/AddPermission)
154154
+ [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/lambda-2015-03-31/AddPermission)

0 commit comments

Comments
 (0)