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
The maximum number of simultaneous function executions, minus the capacity that's reserved for individual functions with [PutFunctionConcurrency](API_PutFunctionConcurrency.md)\.
The maximum number of simultaneous function executions, minus the capacity that's reserved for individual functions with [PutFunctionConcurrency](API_PutFunctionConcurrency.md)\.
Copy file name to clipboardExpand all lines: doc_source/API_AddLayerVersionPermission.md
+17-17
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
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 accounts in an organization, or all AWS accounts\.
4
4
5
-
To revoke permission, call [RemoveLayerVersionPermission](API_RemoveLayerVersionPermission.md) with the statement ID that you specified when you added it\.
5
+
To revoke permission, call [RemoveLayerVersionPermission](API_RemoveLayerVersionPermission.md) with the statement ID that you specified when you added it\.
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\.
An account ID, or `*` to grant layer usage permission to all accounts in an organization, or all AWS accounts \(if `organizationId` is not specified\)\. For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer\.
The permissions policy for the resource is too large\.[Learn more](https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
103
103
HTTP Status Code: 400
104
104
105
-
**PreconditionFailedException**
105
+
**PreconditionFailedException**
106
106
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\.
107
107
HTTP Status Code: 412
108
108
109
-
**ResourceConflictException**
109
+
**ResourceConflictException**
110
110
The resource already exists, or another operation is in progress\.
111
111
HTTP Status Code: 409
112
112
113
-
**ResourceNotFoundException**
113
+
**ResourceNotFoundException**
114
114
The resource specified in the request does not exist\.
115
115
HTTP Status Code: 404
116
116
117
-
**ServiceException**
117
+
**ServiceException**
118
118
The AWS Lambda service encountered an internal error\.
Copy file name to clipboardExpand all lines: doc_source/API_AddPermission.md
+19-18
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# AddPermission<aname="API_AddPermission"></a>
2
2
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\.
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\. Note: Lambda does not support adding policies to version $LATEST\.
4
4
5
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 of the associated resource as the `SourceArn`\. 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\.
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\.
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\.
For Amazon S3, the ID of the account that owns the resource\. Use this together with `SourceArn` to ensure that the resource is owned by the specified account\. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account\.
The permission statement that's added to the function policy\.
114
115
Type: String
115
116
116
117
## Errors<aname="API_AddPermission_Errors"></a>
117
118
118
-
**InvalidParameterValueException**
119
+
**InvalidParameterValueException**
119
120
One of the parameters in the request is invalid\.
120
121
HTTP Status Code: 400
121
122
122
-
**PolicyLengthExceededException**
123
+
**PolicyLengthExceededException**
123
124
The permissions policy for the resource is too large\.[Learn more](https://docs.aws.amazon.com/lambda/latest/dg/limits.html)
124
125
HTTP Status Code: 400
125
126
126
-
**PreconditionFailedException**
127
+
**PreconditionFailedException**
127
128
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\.
128
129
HTTP Status Code: 412
129
130
130
-
**ResourceConflictException**
131
+
**ResourceConflictException**
131
132
The resource already exists, or another operation is in progress\.
132
133
HTTP Status Code: 409
133
134
134
-
**ResourceNotFoundException**
135
+
**ResourceNotFoundException**
135
136
The resource specified in the request does not exist\.
136
137
HTTP Status Code: 404
137
138
138
-
**ServiceException**
139
+
**ServiceException**
139
140
The AWS Lambda service encountered an internal error\.
0 commit comments