@aws-sdk/client-lambda 3.848.0 → 3.851.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +1 -66
  2. package/dist-cjs/index.js +73 -73
  3. package/dist-es/models/models_0.js +43 -43
  4. package/dist-es/waiters/waitForFunctionActive.js +2 -2
  5. package/dist-es/waiters/waitForFunctionActiveV2.js +2 -2
  6. package/dist-es/waiters/waitForFunctionExists.js +2 -2
  7. package/dist-es/waiters/waitForFunctionUpdated.js +2 -2
  8. package/dist-es/waiters/waitForFunctionUpdatedV2.js +2 -2
  9. package/dist-es/waiters/waitForPublishedVersionActive.js +2 -2
  10. package/dist-types/Lambda.d.ts +1 -65
  11. package/dist-types/LambdaClient.d.ts +1 -65
  12. package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +2 -17
  13. package/dist-types/commands/AddPermissionCommand.d.ts +2 -24
  14. package/dist-types/commands/CreateAliasCommand.d.ts +1 -6
  15. package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +1 -3
  16. package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +1 -118
  17. package/dist-types/commands/CreateFunctionCommand.d.ts +3 -42
  18. package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +1 -2
  19. package/dist-types/commands/DeleteCodeSigningConfigCommand.d.ts +1 -2
  20. package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +2 -6
  21. package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -5
  22. package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +1 -2
  23. package/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +1 -2
  24. package/dist-types/commands/DeleteLayerVersionCommand.d.ts +1 -3
  25. package/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -2
  26. package/dist-types/commands/GetFunctionCommand.d.ts +1 -3
  27. package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +1 -2
  28. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +1 -3
  29. package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +1 -2
  30. package/dist-types/commands/GetFunctionRecursionConfigCommand.d.ts +1 -2
  31. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +1 -3
  32. package/dist-types/commands/GetLayerVersionCommand.d.ts +1 -3
  33. package/dist-types/commands/GetLayerVersionPolicyCommand.d.ts +1 -2
  34. package/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +1 -3
  35. package/dist-types/commands/InvokeAsyncCommand.d.ts +2 -10
  36. package/dist-types/commands/InvokeCommand.d.ts +14 -55
  37. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +14 -31
  38. package/dist-types/commands/ListAliasesCommand.d.ts +1 -2
  39. package/dist-types/commands/ListCodeSigningConfigsCommand.d.ts +1 -3
  40. package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +1 -2
  41. package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -2
  42. package/dist-types/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +1 -2
  43. package/dist-types/commands/ListFunctionsCommand.d.ts +1 -9
  44. package/dist-types/commands/ListLayerVersionsCommand.d.ts +1 -4
  45. package/dist-types/commands/ListLayersCommand.d.ts +1 -6
  46. package/dist-types/commands/ListTagsCommand.d.ts +1 -2
  47. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -2
  48. package/dist-types/commands/PublishLayerVersionCommand.d.ts +1 -4
  49. package/dist-types/commands/PublishVersionCommand.d.ts +2 -18
  50. package/dist-types/commands/PutFunctionCodeSigningConfigCommand.d.ts +1 -2
  51. package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -9
  52. package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +1 -14
  53. package/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -7
  54. package/dist-types/commands/PutRuntimeManagementConfigCommand.d.ts +1 -2
  55. package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +2 -14
  56. package/dist-types/commands/RemovePermissionCommand.d.ts +2 -13
  57. package/dist-types/commands/UpdateAliasCommand.d.ts +1 -11
  58. package/dist-types/commands/UpdateCodeSigningConfigCommand.d.ts +1 -2
  59. package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +2 -121
  60. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +4 -31
  61. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +4 -27
  62. package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +1 -2
  63. package/dist-types/index.d.ts +1 -65
  64. package/dist-types/models/models_0.d.ts +1328 -3048
  65. package/dist-types/ts3.4/models/models_0.d.ts +319 -319
  66. package/package.json +1 -1
@@ -27,9 +27,7 @@ declare const RemoveLayerVersionPermissionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Removes a statement from the permissions policy for a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
31
- * layer</a>. For more information, see
32
- * <a>AddLayerVersionPermission</a>.</p>
30
+ * <p>Removes a statement from the permissions policy for a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda layer</a>. For more information, see <a>AddLayerVersionPermission</a>.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -58,17 +56,7 @@ declare const RemoveLayerVersionPermissionCommand_base: {
58
56
  * <p>One of the parameters in the request is not valid.</p>
59
57
  *
60
58
  * @throws {@link PreconditionFailedException} (client fault)
61
- * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p>
62
- * <ul>
63
- * <li>
64
- * <p>
65
- * <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p>
66
- * </li>
67
- * <li>
68
- * <p>
69
- * <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p>
70
- * </li>
71
- * </ul>
59
+ * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p> <ul> <li> <p> <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p> </li> <li> <p> <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p> </li> </ul>
72
60
  *
73
61
  * @throws {@link ResourceNotFoundException} (client fault)
74
62
  * <p>The resource specified in the request does not exist.</p>
@@ -27,8 +27,7 @@ declare const RemovePermissionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You
31
- * can get the ID of the statement from the output of <a>GetPolicy</a>.</p>
30
+ * <p>Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You can get the ID of the statement from the output of <a>GetPolicy</a>.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -57,17 +56,7 @@ declare const RemovePermissionCommand_base: {
57
56
  * <p>One of the parameters in the request is not valid.</p>
58
57
  *
59
58
  * @throws {@link PreconditionFailedException} (client fault)
60
- * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p>
61
- * <ul>
62
- * <li>
63
- * <p>
64
- * <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p>
65
- * </li>
66
- * <li>
67
- * <p>
68
- * <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p>
69
- * </li>
70
- * </ul>
59
+ * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p> <ul> <li> <p> <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p> </li> <li> <p> <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p> </li> </ul>
71
60
  *
72
61
  * @throws {@link ResourceNotFoundException} (client fault)
73
62
  * <p>The resource specified in the request does not exist.</p>
@@ -73,17 +73,7 @@ declare const UpdateAliasCommand_base: {
73
73
  * <p>One of the parameters in the request is not valid.</p>
74
74
  *
75
75
  * @throws {@link PreconditionFailedException} (client fault)
76
- * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p>
77
- * <ul>
78
- * <li>
79
- * <p>
80
- * <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p>
81
- * </li>
82
- * <li>
83
- * <p>
84
- * <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p>
85
- * </li>
86
- * </ul>
76
+ * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p> <ul> <li> <p> <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p> </li> <li> <p> <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p> </li> </ul>
87
77
  *
88
78
  * @throws {@link ResourceConflictException} (client fault)
89
79
  * <p>The resource already exists, or another operation is in progress.</p>
@@ -27,8 +27,7 @@ declare const UpdateCodeSigningConfigCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Update the code signing configuration. Changes to the code signing configuration take effect the next time a
31
- * user tries to deploy a code package to the function. </p>
30
+ * <p>Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function. </p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -27,125 +27,7 @@ declare const UpdateEventSourceMappingCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates an event source mapping. You can change the function that Lambda invokes, or pause
31
- * invocation and resume later from the same location.</p>
32
- * <p>For details about how to configure different event sources, see the following topics. </p>
33
- * <ul>
34
- * <li>
35
- * <p>
36
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping">
37
- * Amazon DynamoDB Streams</a>
38
- * </p>
39
- * </li>
40
- * <li>
41
- * <p>
42
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping">
43
- * Amazon Kinesis</a>
44
- * </p>
45
- * </li>
46
- * <li>
47
- * <p>
48
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource">
49
- * Amazon SQS</a>
50
- * </p>
51
- * </li>
52
- * <li>
53
- * <p>
54
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping">
55
- * Amazon MQ and RabbitMQ</a>
56
- * </p>
57
- * </li>
58
- * <li>
59
- * <p>
60
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html">
61
- * Amazon MSK</a>
62
- * </p>
63
- * </li>
64
- * <li>
65
- * <p>
66
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html">
67
- * Apache Kafka</a>
68
- * </p>
69
- * </li>
70
- * <li>
71
- * <p>
72
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html">
73
- * Amazon DocumentDB</a>
74
- * </p>
75
- * </li>
76
- * </ul>
77
- * <p>The following error handling options are available only for DynamoDB and Kinesis event sources:</p>
78
- * <ul>
79
- * <li>
80
- * <p>
81
- * <code>BisectBatchOnFunctionError</code> – If the function returns an error, split the batch in two and retry.</p>
82
- * </li>
83
- * <li>
84
- * <p>
85
- * <code>MaximumRecordAgeInSeconds</code> – 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</p>
86
- * </li>
87
- * <li>
88
- * <p>
89
- * <code>MaximumRetryAttempts</code> – 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.</p>
90
- * </li>
91
- * <li>
92
- * <p>
93
- * <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p>
94
- * </li>
95
- * </ul>
96
- * <p>For stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed Apache Kafka), the following option is also available:</p>
97
- * <ul>
98
- * <li>
99
- * <p>
100
- * <code>OnFailure</code> – Send discarded records to an Amazon SQS queue, Amazon SNS topic, or
101
- * Amazon S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations">Adding a destination</a>.</p>
102
- * </li>
103
- * </ul>
104
- * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
105
- * <ul>
106
- * <li>
107
- * <p>
108
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params">
109
- * Amazon DynamoDB Streams</a>
110
- * </p>
111
- * </li>
112
- * <li>
113
- * <p>
114
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params">
115
- * Amazon Kinesis</a>
116
- * </p>
117
- * </li>
118
- * <li>
119
- * <p>
120
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params">
121
- * Amazon SQS</a>
122
- * </p>
123
- * </li>
124
- * <li>
125
- * <p>
126
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params">
127
- * Amazon MQ and RabbitMQ</a>
128
- * </p>
129
- * </li>
130
- * <li>
131
- * <p>
132
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms">
133
- * Amazon MSK</a>
134
- * </p>
135
- * </li>
136
- * <li>
137
- * <p>
138
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms">
139
- * Apache Kafka</a>
140
- * </p>
141
- * </li>
142
- * <li>
143
- * <p>
144
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration">
145
- * Amazon DocumentDB</a>
146
- * </p>
147
- * </li>
148
- * </ul>
30
+ * <p>Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.</p> <p>For details about how to configure different event sources, see the following topics. </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping"> Amazon Kinesis</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource"> Amazon SQS</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html"> Amazon MSK</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html"> Apache Kafka</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html"> Amazon DocumentDB</a> </p> </li> </ul> <p>The following error handling options are available only for DynamoDB and Kinesis event sources:</p> <ul> <li> <p> <code>BisectBatchOnFunctionError</code> – If the function returns an error, split the batch in two and retry.</p> </li> <li> <p> <code>MaximumRecordAgeInSeconds</code> – 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</p> </li> <li> <p> <code>MaximumRetryAttempts</code> – 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.</p> </li> <li> <p> <code>ParallelizationFactor</code> – Process multiple batches from each shard concurrently.</p> </li> </ul> <p>For stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed Apache Kafka), the following option is also available:</p> <ul> <li> <p> <code>OnFailure</code> – Send discarded records to an Amazon SQS queue, Amazon SNS topic, or Amazon S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations">Adding a destination</a>.</p> </li> </ul> <p>For information about which configuration parameters apply to each event source, see the following topics.</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params"> Amazon DynamoDB Streams</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params"> Amazon Kinesis</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params"> Amazon SQS</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params"> Amazon MQ and RabbitMQ</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms"> Amazon MSK</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms"> Apache Kafka</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration"> Amazon DocumentDB</a> </p> </li> </ul>
149
31
  * @example
150
32
  * Use a bare-bones client and the command you need to make an API call.
151
33
  * ```javascript
@@ -374,8 +256,7 @@ declare const UpdateEventSourceMappingCommand_base: {
374
256
  * <p>The resource already exists, or another operation is in progress.</p>
375
257
  *
376
258
  * @throws {@link ResourceInUseException} (client fault)
377
- * <p>The operation conflicts with the resource's availability. For example, you tried to update an event source
378
- * mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.</p>
259
+ * <p>The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.</p>
379
260
  *
380
261
  * @throws {@link ResourceNotFoundException} (client fault)
381
262
  * <p>The resource specified in the request does not exist.</p>
@@ -27,22 +27,7 @@ declare const UpdateFunctionCodeCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates a Lambda function's code. If code signing is enabled for the function, the code package
31
- * must be signed by a trusted publisher. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html">Configuring code signing for Lambda</a>.</p>
32
- * <p>If the function's package type is <code>Image</code>, then you must specify the code package in
33
- * <code>ImageUri</code> as the URI of a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container image</a> in the Amazon ECR registry.</p>
34
- * <p>If the function's package type is <code>Zip</code>, then you must specify the deployment package as a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip">.zip file
35
- * archive</a>. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide
36
- * the function code inline using the <code>ZipFile</code> field.</p>
37
- * <p>The code in the deployment package must be compatible with the target instruction set architecture of the
38
- * function (<code>x86-64</code> or <code>arm64</code>).</p>
39
- * <p>The function's code is locked when you publish a version. You can't modify the code of a published version,
40
- * only the unpublished version.</p>
41
- * <note>
42
- * <p>For a function defined as a container image, Lambda resolves the image tag to an image digest. In
43
- * Amazon ECR, if you update the image tag to a new image, Lambda does not automatically
44
- * update the function.</p>
45
- * </note>
30
+ * <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-codesigning.html">Configuring code signing for Lambda</a>.</p> <p>If the function's package type is <code>Image</code>, then you must specify the code package in <code>ImageUri</code> as the URI of a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container image</a> in the Amazon ECR registry.</p> <p>If the function's package type is <code>Zip</code>, then you must specify the deployment package as a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip">.zip file archive</a>. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using the <code>ZipFile</code> field.</p> <p>The code in the deployment package must be compatible with the target instruction set architecture of the function (<code>x86-64</code> or <code>arm64</code>).</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>
46
31
  * @example
47
32
  * Use a bare-bones client and the command you need to make an API call.
48
33
  * ```javascript
@@ -185,28 +170,16 @@ declare const UpdateFunctionCodeCommand_base: {
185
170
  * <p>Your Amazon Web Services account has exceeded its maximum total code size. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda quotas</a>.</p>
186
171
  *
187
172
  * @throws {@link CodeVerificationFailedException} (client fault)
188
- * <p>The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code
189
- * signing policy is set to ENFORCE. Lambda blocks the deployment.</p>
173
+ * <p>The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.</p>
190
174
  *
191
175
  * @throws {@link InvalidCodeSignatureException} (client fault)
192
- * <p>The code signature failed the integrity check. If the integrity check fails, then Lambda blocks
193
- * deployment, even if the code signing policy is set to WARN.</p>
176
+ * <p>The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.</p>
194
177
  *
195
178
  * @throws {@link InvalidParameterValueException} (client fault)
196
179
  * <p>One of the parameters in the request is not valid.</p>
197
180
  *
198
181
  * @throws {@link PreconditionFailedException} (client fault)
199
- * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p>
200
- * <ul>
201
- * <li>
202
- * <p>
203
- * <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p>
204
- * </li>
205
- * <li>
206
- * <p>
207
- * <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p>
208
- * </li>
209
- * </ul>
182
+ * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p> <ul> <li> <p> <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p> </li> <li> <p> <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p> </li> </ul>
210
183
  *
211
184
  * @throws {@link ResourceConflictException} (client fault)
212
185
  * <p>The resource already exists, or another operation is in progress.</p>
@@ -27,18 +27,7 @@ declare const UpdateFunctionConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Modify the version-specific settings of a Lambda function.</p>
31
- * <p>When you update a function, Lambda provisions an instance of the function and its supporting
32
- * resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify
33
- * the function, but you can still invoke it. The <code>LastUpdateStatus</code>, <code>LastUpdateStatusReason</code>,
34
- * and <code>LastUpdateStatusReasonCode</code> fields in the response from <a>GetFunctionConfiguration</a>
35
- * indicate when the update is complete and the function is processing events with the new configuration. For more
36
- * information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Lambda
37
- * function states</a>.</p>
38
- * <p>These settings can vary between versions of a function and are locked when you publish a version. You can't
39
- * modify the configuration of a published version, only the unpublished version.</p>
40
- * <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions
41
- * to an Amazon Web Services account or Amazon Web Services service, use <a>AddPermission</a>.</p>
30
+ * <p>Modify the version-specific settings of a Lambda function.</p> <p>When you update 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. During this time, you can't modify the function, but you can still invoke it. The <code>LastUpdateStatus</code>, <code>LastUpdateStatusReason</code>, and <code>LastUpdateStatusReasonCode</code> fields in the response from <a>GetFunctionConfiguration</a> indicate when the update is complete and the function is processing events with the new configuration. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Lambda function states</a>.</p> <p>These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.</p> <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions to an Amazon Web Services account or Amazon Web Services service, use <a>AddPermission</a>.</p>
42
31
  * @example
43
32
  * Use a bare-bones client and the command you need to make an API call.
44
33
  * ```javascript
@@ -224,28 +213,16 @@ declare const UpdateFunctionConfigurationCommand_base: {
224
213
  * <p>The specified code signing configuration does not exist.</p>
225
214
  *
226
215
  * @throws {@link CodeVerificationFailedException} (client fault)
227
- * <p>The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code
228
- * signing policy is set to ENFORCE. Lambda blocks the deployment.</p>
216
+ * <p>The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.</p>
229
217
  *
230
218
  * @throws {@link InvalidCodeSignatureException} (client fault)
231
- * <p>The code signature failed the integrity check. If the integrity check fails, then Lambda blocks
232
- * deployment, even if the code signing policy is set to WARN.</p>
219
+ * <p>The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.</p>
233
220
  *
234
221
  * @throws {@link InvalidParameterValueException} (client fault)
235
222
  * <p>One of the parameters in the request is not valid.</p>
236
223
  *
237
224
  * @throws {@link PreconditionFailedException} (client fault)
238
- * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p>
239
- * <ul>
240
- * <li>
241
- * <p>
242
- * <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p>
243
- * </li>
244
- * <li>
245
- * <p>
246
- * <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p>
247
- * </li>
248
- * </ul>
225
+ * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p> <ul> <li> <p> <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p> </li> <li> <p> <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p> </li> </ul>
249
226
  *
250
227
  * @throws {@link ResourceConflictException} (client fault)
251
228
  * <p>The resource already exists, or another operation is in progress.</p>
@@ -27,8 +27,7 @@ declare const UpdateFunctionEventInvokeConfigCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the configuration for asynchronous invocation for a function, version, or alias.</p>
31
- * <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
30
+ * <p>Updates the configuration for asynchronous invocation for a function, version, or alias.</p> <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -1,69 +1,5 @@
1
1
  /**
2
- * <fullname>Lambda</fullname>
3
- * <p>
4
- * <b>Overview</b>
5
- * </p>
6
- * <p>Lambda is a compute service that lets you run code without provisioning or managing servers.
7
- * Lambda runs your code on a high-availability compute infrastructure and performs all of the
8
- * administration of the compute resources, including server and operating system maintenance, capacity provisioning
9
- * and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any
10
- * type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p>
11
- * <p>The <i>Lambda API Reference</i> provides information about
12
- * each of the API methods, including details about the parameters in each API request and
13
- * response. </p>
14
- * <p></p>
15
- * <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command
16
- * line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
17
- * Amazon Web Services</a>. </p>
18
- * <p>For a list of Region-specific endpoints that Lambda supports,
19
- * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda
20
- * endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
21
- * <p>When making the API calls, you will need to
22
- * authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
23
- * see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the
24
- * <i>Amazon Web Services General Reference.</i>. </p>
25
- * <p>
26
- * <b>CA certificates</b>
27
- * </p>
28
- * <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
29
- * can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
30
- * computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
31
- * environment and do not manage your own computer, you might need to ask an administrator to assist with the
32
- * update process. The following list shows minimum operating system and Java versions:</p>
33
- * <ul>
34
- * <li>
35
- * <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one
36
- * of the required CAs in their trust list. </p>
37
- * </li>
38
- * <li>
39
- * <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and
40
- * later versions contain at least one of the required CAs in their trust list. </p>
41
- * </li>
42
- * <li>
43
- * <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the
44
- * required CAs in their default trusted CA list. </p>
45
- * </li>
46
- * <li>
47
- * <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December
48
- * 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p>
49
- * </li>
50
- * </ul>
51
- * <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or
52
- * programmatically, you will need to ensure your client machines support any of the following CAs: </p>
53
- * <ul>
54
- * <li>
55
- * <p>Amazon Root CA 1</p>
56
- * </li>
57
- * <li>
58
- * <p>Starfield Services Root Certificate Authority - G2</p>
59
- * </li>
60
- * <li>
61
- * <p>Starfield Class 2 Certification Authority</p>
62
- * </li>
63
- * </ul>
64
- * <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer
65
- * up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a>
66
- * </p>
2
+ * <fullname>Lambda</fullname> <p> <b>Overview</b> </p> <p>Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is Lambda</a> in the <b>Lambda Developer Guide</b>.</p> <p>The <i>Lambda API Reference</i> provides information about each of the API methods, including details about the parameters in each API request and response. </p> <p/> <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>. </p> <p>For a list of Region-specific endpoints that Lambda supports, see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html">Lambda endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p> <p>When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the <i>Amazon Web Services General Reference.</i>. </p> <p> <b>CA certificates</b> </p> <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:</p> <ul> <li> <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list. </p> </li> <li> <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list. </p> </li> <li> <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p> </li> </ul> <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs: </p> <ul> <li> <p>Amazon Root CA 1</p> </li> <li> <p>Starfield Services Root Certificate Authority - G2</p> </li> <li> <p>Starfield Class 2 Certification Authority</p> </li> </ul> <p>Root certificates from the first two authorities are available from <a href="https://www.amazontrust.com/repository/">Amazon trust services</a>, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see <a href="http://aws.amazon.com/certificate-manager/faqs/#certificates">Amazon Web Services Certificate Manager FAQs.</a> </p>
67
3
  *
68
4
  * @packageDocumentation
69
5
  */