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
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\.
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
5
To revoke permission, call [RemoveLayerVersionPermission](API_RemoveLayerVersionPermission.md) with the statement ID that you specified when you added it\.
\(Streams\) Discard records after the specified number of retries\. The default value is infinite \(\-1\)\. When set to infinite \(\-1\), failed records will be retried until the record expires\.
142
+
\(Streams only\) Discard records after the specified number of retries\. The default value is infinite \(\-1\)\. When set to infinite \(\-1\), failed records will be retried until the record expires\.
143
143
Type: Integer
144
144
Valid Range: Minimum value of \-1\. Maximum value of 10000\.
\(Streams only\) Discard records older than the specified age\. The default value is infinite \(\-1\)\. When set to infinite\(\-1\), failed records are retried until the record expires\.
294
+
\(Streams only\) Discard records older than the specified age\. The default value is \-1, which sets the maximum age to infinite\. When the value is set to infinite, Lambda never discards old records\.
295
295
Type: Integer
296
296
Valid Range: Minimum value of \-1\. Maximum value of 604800\.
\(Streams only\) Discard records after the specified number of retries\. The default value is infinite \(\-1\)\. When set to infinite\(\-1\), failed records are retried until the record expires\.
299
+
\(Streams only\) Discard records after the specified number of retries\. The default value is \-1, which sets the maximum number of retries to infinite\. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source\.
300
300
Type: Integer
301
301
Valid Range: Minimum value of \-1\. Maximum value of 10000\.
302
302
@@ -346,7 +346,7 @@ Length Constraints: Minimum length of 1\. Maximum length of 249\.
Copy file name to clipboardExpand all lines: doc_source/API_CreateFunction.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# CreateFunction<aname="API_CreateFunction"></a>
2
2
3
-
Creates a Lambda function\. To create a function, you need a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) and an [execution role](https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role)\. The deployment package is a \.zip file archive or container image that contains your function code\. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X\-Ray for request tracing\.
3
+
Creates a Lambda function\. To create a function, you need a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) and an [execution role](https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role)\. The deployment package is a \.zip file archive or container image that contains your function code\. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and X\-Ray for request tracing\.
4
4
5
5
You set the package type to `Image` if the deployment package is a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html)\. For a container image, the code property must include the URI of a container image in the Amazon ECR registry\. You do not need to specify the handler and runtime properties\.
6
6
@@ -197,7 +197,7 @@ Valid Range: Minimum value of 1\.
Set `Mode` to `Active` to sample and trace a subset of incoming requests with [AWS X\-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html)\.
200
+
Set `Mode` to `Active` to sample and trace a subset of incoming requests with [X\-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html)\.
\(Streams only\) Discard records older than the specified age\. The default value is infinite \(\-1\)\. When set to infinite\(\-1\), failed records are retried until the record expires\.
122
+
\(Streams only\) Discard records older than the specified age\. The default value is \-1, which sets the maximum age to infinite\. When the value is set to infinite, Lambda never discards old records\.
123
123
Type: Integer
124
124
Valid Range: Minimum value of \-1\. Maximum value of 604800\.
\(Streams only\) Discard records after the specified number of retries\. The default value is infinite \(\-1\)\. When set to infinite\(\-1\), failed records are retried until the record expires\.
127
+
\(Streams only\) Discard records after the specified number of retries\. The default value is \-1, which sets the maximum number of retries to infinite\. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source\.
128
128
Type: Integer
129
129
Valid Range: Minimum value of \-1\. Maximum value of 10000\.
130
130
@@ -174,7 +174,7 @@ Length Constraints: Minimum length of 1\. Maximum length of 249\.
Deletes a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)\. Deleted versions can no longer be viewed or added to functions\. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it\.
3
+
Deletes a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)\. Deleted versions can no longer be viewed or added to functions\. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it\.
\(Streams only\) Discard records older than the specified age\. The default value is infinite \(\-1\)\. When set to infinite\(\-1\), failed records are retried until the record expires\.
59
+
\(Streams only\) Discard records older than the specified age\. The default value is \-1, which sets the maximum age to infinite\. When the value is set to infinite, Lambda never discards old records\.
60
60
Type: Integer
61
61
Valid Range: Minimum value of \-1\. Maximum value of 604800\.
\(Streams only\) Discard records after the specified number of retries\. The default value is infinite \(\-1\)\. When set to infinite\(\-1\), failed records are retried until the record expires\.
65
+
\(Streams only\) Discard records after the specified number of retries\. The default value is \-1, which sets the maximum number of retries to infinite\. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source\.
66
66
Type: Integer
67
67
Valid Range: Minimum value of \-1\. Maximum value of 10000\.
\(Streams only\) Discard records older than the specified age\. The default value is infinite \(\-1\)\. When set to infinite\(\-1\), failed records are retried until the record expires\.
120
+
\(Streams only\) Discard records older than the specified age\. The default value is \-1, which sets the maximum age to infinite\. When the value is set to infinite, Lambda never discards old records\.
121
121
Type: Integer
122
122
Valid Range: Minimum value of \-1\. Maximum value of 604800\.
\(Streams only\) Discard records after the specified number of retries\. The default value is infinite \(\-1\)\. When set to infinite\(\-1\), failed records are retried until the record expires\.
125
+
\(Streams only\) Discard records after the specified number of retries\. The default value is \-1, which sets the maximum number of retries to infinite\. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source\.
126
126
Type: Integer
127
127
Valid Range: Minimum value of \-1\. Maximum value of 10000\.
128
128
@@ -172,7 +172,7 @@ Length Constraints: Minimum length of 1\. Maximum length of 249\.
Returns information about a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes\.
3
+
Returns information about a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes\.
Returns information about a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes\.
3
+
Returns information about a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes\.
Returns the permission policy for a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)\. For more information, see [AddLayerVersionPermission](API_AddLayerVersionPermission.md)\.
3
+
Returns the permission policy for a version of an [AWS Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)\. For more information, see [AddLayerVersionPermission](API_AddLayerVersionPermission.md)\.
0 commit comments