|
121 | 121 | {"shape":"InvalidCodeSignatureException"},
|
122 | 122 | {"shape":"CodeSigningConfigNotFoundException"}
|
123 | 123 | ],
|
124 |
| - "documentation":"<p>Creates a Lambda function. To create a function, you need a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html\">deployment package</a> and an <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role\">execution role</a>. The deployment package is a ZIP archive or image container 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.</p> <p>When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The <code>State</code>, <code>StateReason</code>, and <code>StateReasonCode</code> fields in the response from <a>GetFunctionConfiguration</a> indicate when the function is ready to invoke. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html\">Function States</a>.</p> <p>A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the <code>Publish</code> parameter to create version <code>1</code> of your function from its initial configuration.</p> <p>The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with <a>UpdateFunctionConfiguration</a>. Function-level settings apply to both the unpublished and published versions of the function, and include tags (<a>TagResource</a>) and per-function concurrency limits (<a>PutFunctionConcurrency</a>).</p> <p>You can use code signing if your deployment package is a ZIP archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with <a>UpdateFunctionCode</a>, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.</p> <p>If another account or an AWS service invokes your function, use <a>AddPermission</a> to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.</p> <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events in other AWS services, create an event source mapping (<a>CreateEventSourceMapping</a>), or configure a function trigger in the other service. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html\">Invoking Functions</a>.</p>" |
| 124 | + "documentation":"<p>Creates a Lambda function. To create a function, you need a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html\">deployment package</a> and an <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role\">execution role</a>. 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.</p> <p>When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The <code>State</code>, <code>StateReason</code>, and <code>StateReasonCode</code> fields in the response from <a>GetFunctionConfiguration</a> indicate when the function is ready to invoke. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html\">Function States</a>.</p> <p>A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the <code>Publish</code> parameter to create version <code>1</code> of your function from its initial configuration.</p> <p>The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with <a>UpdateFunctionConfiguration</a>. Function-level settings apply to both the unpublished and published versions of the function, and include tags (<a>TagResource</a>) and per-function concurrency limits (<a>PutFunctionConcurrency</a>).</p> <p>You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with <a>UpdateFunctionCode</a>, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.</p> <p>If another account or an AWS service invokes your function, use <a>AddPermission</a> to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.</p> <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events in other AWS services, create an event source mapping (<a>CreateEventSourceMapping</a>), or configure a function trigger in the other service. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html\">Invoking Functions</a>.</p>" |
125 | 125 | },
|
126 | 126 | "DeleteAlias":{
|
127 | 127 | "name":"DeleteAlias",
|
|
1000 | 1000 | {"shape":"InvalidCodeSignatureException"},
|
1001 | 1001 | {"shape":"CodeSigningConfigNotFoundException"}
|
1002 | 1002 | ],
|
1003 |
| - "documentation":"<p>Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html\">Configuring code signing</a>.</p> <p>The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.</p>" |
| 1003 | + "documentation":"<p>Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html\">Configuring code signing</a>.</p> <p>The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.</p> <note> <p>For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.</p> </note>" |
1004 | 1004 | },
|
1005 | 1005 | "UpdateFunctionConfiguration":{
|
1006 | 1006 | "name":"UpdateFunctionConfiguration",
|
|
1578 | 1578 | },
|
1579 | 1579 | "MemorySize":{
|
1580 | 1580 | "shape":"MemorySize",
|
1581 |
| - "documentation":"<p>The amount of memory that your function has access to. Increasing the function's memory also increases its CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.</p>" |
| 1581 | + "documentation":"<p>The amount of memory available to the function at runtime. Increasing the function's memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.</p>" |
1582 | 1582 | },
|
1583 | 1583 | "Publish":{
|
1584 | 1584 | "shape":"Boolean",
|
|
2113 | 2113 | "documentation":"<p>URI of a container image in the Amazon ECR registry.</p>"
|
2114 | 2114 | }
|
2115 | 2115 | },
|
2116 |
| - "documentation":"<p>The code for the Lambda function. You can specify either an object in Amazon S3, upload a ZIP archive deployment package directly, or specify the URI of a container image.</p>" |
| 2116 | + "documentation":"<p>The code for the Lambda function. You can specify either an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.</p>" |
2117 | 2117 | },
|
2118 | 2118 | "FunctionCodeLocation":{
|
2119 | 2119 | "type":"structure",
|
|
2174 | 2174 | },
|
2175 | 2175 | "MemorySize":{
|
2176 | 2176 | "shape":"MemorySize",
|
2177 |
| - "documentation":"<p>The memory that's allocated to the function.</p>" |
| 2177 | + "documentation":"<p>The amount of memory available to the function at runtime. </p>" |
2178 | 2178 | },
|
2179 | 2179 | "LastModified":{
|
2180 | 2180 | "shape":"Timestamp",
|
|
2250 | 2250 | },
|
2251 | 2251 | "PackageType":{
|
2252 | 2252 | "shape":"PackageType",
|
2253 |
| - "documentation":"<p>The type of deployment package. Set to <code>Image</code> for container image and set <code>Zip</code> for ZIP archive.</p>" |
| 2253 | + "documentation":"<p>The type of deployment package. Set to <code>Image</code> for container image and set <code>Zip</code> for .zip file archive.</p>" |
2254 | 2254 | },
|
2255 | 2255 | "ImageConfigResponse":{
|
2256 | 2256 | "shape":"ImageConfigResponse",
|
|
3007 | 3007 | "InvalidSubnet",
|
3008 | 3008 | "InvalidSecurityGroup",
|
3009 | 3009 | "ImageDeleted",
|
3010 |
| - "ImageAccessDenied" |
| 3010 | + "ImageAccessDenied", |
| 3011 | + "InvalidImage" |
3011 | 3012 | ]
|
3012 | 3013 | },
|
3013 | 3014 | "Layer":{
|
|
4307 | 4308 | "InvalidSubnet",
|
4308 | 4309 | "InvalidSecurityGroup",
|
4309 | 4310 | "ImageDeleted",
|
4310 |
| - "ImageAccessDenied" |
| 4311 | + "ImageAccessDenied", |
| 4312 | + "InvalidImage" |
4311 | 4313 | ]
|
4312 | 4314 | },
|
4313 | 4315 | "StatementId":{
|
|
4669 | 4671 | },
|
4670 | 4672 | "MemorySize":{
|
4671 | 4673 | "shape":"MemorySize",
|
4672 |
| - "documentation":"<p>The amount of memory that your function has access to. Increasing the function's memory also increases its CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.</p>" |
| 4674 | + "documentation":"<p>The amount of memory available to the function at runtime. Increasing the function's memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.</p>" |
4673 | 4675 | },
|
4674 | 4676 | "VpcConfig":{
|
4675 | 4677 | "shape":"VpcConfig",
|
|
0 commit comments