Skip to content

Commit ca64d9b

Browse files
authored
Merge branch 'master' into patch-1
2 parents c47c3c9 + c146d99 commit ca64d9b

File tree

356 files changed

+10245
-10467
lines changed

Some content is hidden

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

356 files changed

+10245
-10467
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
Lambda User Guide and API operations and how it integrates with other AWS Service
44

5+
Start with documentaion [index](/doc_source/index.md)
6+
57
## License Summary
68

7-
The documentation is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See the LICENSE file.
9+
The documentation is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See the [LICENSE](./LICENSE) file.
810

9-
The sample code within this documentation is made available under a modified MIT license. See the LICENSE-SAMPLECODE file.
11+
The sample code within this documentation is made available under a modified MIT license. See the [LICENSE-SAMPLECODE](./LICENSE-SAMPLECODE) file.

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\.
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\. For more information or to request a limit increase for concurrent executions, see [Lambda Function Concurrent Executions](https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html)\. 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](concurrent-executions.md)\.
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)
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# AddLayerVersionPermission<a name="API_AddLayerVersionPermission"></a>
2+
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\.
4+
5+
To revoke permission, call [RemoveLayerVersionPermission](API_RemoveLayerVersionPermission.md) with the statement ID that you specified when you added it\.
6+
7+
## Request Syntax<a name="API_AddLayerVersionPermission_RequestSyntax"></a>
8+
9+
```
10+
POST /2018-10-31/layers/LayerName/versions/VersionNumber/policy?RevisionId=RevisionId HTTP/1.1
11+
Content-type: application/json
12+
13+
{
14+
"[Action](#SSS-AddLayerVersionPermission-request-Action)": "string",
15+
"[OrganizationId](#SSS-AddLayerVersionPermission-request-OrganizationId)": "string",
16+
"[Principal](#SSS-AddLayerVersionPermission-request-Principal)": "string",
17+
"[StatementId](#SSS-AddLayerVersionPermission-request-StatementId)": "string"
18+
}
19+
```
20+
21+
## URI Request Parameters<a name="API_AddLayerVersionPermission_RequestParameters"></a>
22+
23+
The request requires the following URI parameters\.
24+
25+
** [LayerName](#API_AddLayerVersionPermission_RequestSyntax) ** <a name="SSS-AddLayerVersionPermission-request-LayerName"></a>
26+
The name or Amazon Resource Name \(ARN\) of the layer\.
27+
Length Constraints: Minimum length of 1\. Maximum length of 140\.
28+
Pattern: `(arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+`
29+
30+
** [RevisionId](#API_AddLayerVersionPermission_RequestSyntax) ** <a name="SSS-AddLayerVersionPermission-request-RevisionId"></a>
31+
Only update the policy if the revision ID matches the ID specified\. Use this option to avoid modifying a policy that has changed since you last read it\.
32+
33+
** [VersionNumber](#API_AddLayerVersionPermission_RequestSyntax) ** <a name="SSS-AddLayerVersionPermission-request-VersionNumber"></a>
34+
The version number\.
35+
36+
## Request Body<a name="API_AddLayerVersionPermission_RequestBody"></a>
37+
38+
The request accepts the following data in JSON format\.
39+
40+
** [Action](#API_AddLayerVersionPermission_RequestSyntax) ** <a name="SSS-AddLayerVersionPermission-request-Action"></a>
41+
The API action that grants access to the layer\. For example, `lambda:GetLayerVersion`\.
42+
Type: String
43+
Pattern: `lambda:GetLayerVersion`
44+
Required: Yes
45+
46+
** [OrganizationId](#API_AddLayerVersionPermission_RequestSyntax) ** <a name="SSS-AddLayerVersionPermission-request-OrganizationId"></a>
47+
With the principal set to `*`, grant permission to all accounts in the specified organization\.
48+
Type: String
49+
Pattern: `o-[a-z0-9]{10,32}`
50+
Required: No
51+
52+
** [Principal](#API_AddLayerVersionPermission_RequestSyntax) ** <a name="SSS-AddLayerVersionPermission-request-Principal"></a>
53+
An account ID, or `*` to grant permission to all AWS accounts\.
54+
Type: String
55+
Pattern: `\d{12}|\*|arn:(aws[a-zA-Z-]*):iam::\d{12}:root`
56+
Required: Yes
57+
58+
** [StatementId](#API_AddLayerVersionPermission_RequestSyntax) ** <a name="SSS-AddLayerVersionPermission-request-StatementId"></a>
59+
An identifier that distinguishes the policy from others on the same layer version\.
60+
Type: String
61+
Length Constraints: Minimum length of 1\. Maximum length of 100\.
62+
Pattern: `([a-zA-Z0-9-_]+)`
63+
Required: Yes
64+
65+
## Response Syntax<a name="API_AddLayerVersionPermission_ResponseSyntax"></a>
66+
67+
```
68+
HTTP/1.1 201
69+
Content-type: application/json
70+
71+
{
72+
"[RevisionId](#SSS-AddLayerVersionPermission-response-RevisionId)": "string",
73+
"[Statement](#SSS-AddLayerVersionPermission-response-Statement)": "string"
74+
}
75+
```
76+
77+
## Response Elements<a name="API_AddLayerVersionPermission_ResponseElements"></a>
78+
79+
If the action is successful, the service sends back an HTTP 201 response\.
80+
81+
The following data is returned in JSON format by the service\.
82+
83+
** [RevisionId](#API_AddLayerVersionPermission_ResponseSyntax) ** <a name="SSS-AddLayerVersionPermission-response-RevisionId"></a>
84+
A unique identifier for the current revision of the policy\.
85+
Type: String
86+
87+
** [Statement](#API_AddLayerVersionPermission_ResponseSyntax) ** <a name="SSS-AddLayerVersionPermission-response-Statement"></a>
88+
The permission statement\.
89+
Type: String
90+
91+
## Errors<a name="API_AddLayerVersionPermission_Errors"></a>
92+
93+
**InvalidParameterValueException**
94+
One of the parameters in the request is invalid\. For example, if you provided an IAM role for AWS Lambda to assume in the `CreateFunction` or the `UpdateFunctionConfiguration` API, that AWS Lambda is unable to assume you will get this exception\.
95+
HTTP Status Code: 400
96+
97+
**PolicyLengthExceededException**
98+
The permissions policy for the resource is too large\. [Learn more](https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
99+
HTTP Status Code: 400
100+
101+
**PreconditionFailedException**
102+
The RevisionId provided does not match the latest RevisionId for the Lambda function or alias\. Call the `GetFunction` or the `GetAlias` API to retrieve the latest RevisionId for your resource\.
103+
HTTP Status Code: 412
104+
105+
**ResourceConflictException**
106+
The resource already exists\.
107+
HTTP Status Code: 409
108+
109+
**ResourceNotFoundException**
110+
The resource \(for example, a Lambda function or access policy statement\) specified in the request does not exist\.
111+
HTTP Status Code: 404
112+
113+
**ServiceException**
114+
The AWS Lambda service encountered an internal error\.
115+
HTTP Status Code: 500
116+
117+
**TooManyRequestsException**
118+
Request throughput limit exceeded\.
119+
HTTP Status Code: 429
120+
121+
## See Also<a name="API_AddLayerVersionPermission_SeeAlso"></a>
122+
123+
For more information about using this API in one of the language\-specific AWS SDKs, see the following:
124+
+ [AWS Command Line Interface](https://docs.aws.amazon.com/goto/aws-cli/lambda-2015-03-31/AddLayerVersionPermission)
125+
+ [AWS SDK for \.NET](https://docs.aws.amazon.com/goto/DotNetSDKV3/lambda-2015-03-31/AddLayerVersionPermission)
126+
+ [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/AddLayerVersionPermission)
127+
+ [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)
129+
+ [AWS SDK for Java](https://docs.aws.amazon.com/goto/SdkForJava/lambda-2015-03-31/AddLayerVersionPermission)
130+
+ [AWS SDK for JavaScript](https://docs.aws.amazon.com/goto/AWSJavaScriptSDK/lambda-2015-03-31/AddLayerVersionPermission)
131+
+ [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/lambda-2015-03-31/AddLayerVersionPermission)
132+
+ [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/lambda-2015-03-31/AddLayerVersionPermission)
133+
+ [AWS SDK for Ruby V2](https://docs.aws.amazon.com/goto/SdkForRubyV2/lambda-2015-03-31/AddLayerVersionPermission)

0 commit comments

Comments
 (0)