@aws-sdk/client-lambda 3.42.0 → 3.47.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.
- package/CHANGELOG.md +51 -0
- package/README.md +62 -3
- package/dist-cjs/endpoints.js +176 -23
- package/dist-cjs/models/models_0.js +17 -208
- package/dist-cjs/protocols/Aws_restJson1.js +70 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +176 -23
- package/dist-es/models/models_0.js +10 -136
- package/dist-es/protocols/Aws_restJson1.js +68 -4
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Lambda.d.ts +189 -13
- package/dist-types/LambdaClient.d.ts +67 -4
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +49 -10
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +78 -0
- package/dist-types/models/models_0.d.ts +98 -219
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +26 -136
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,57 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
28
|
+
* **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
|
|
29
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Features
|
|
50
|
+
|
|
51
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
6
57
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
58
|
|
|
8
59
|
**Note:** Version bump only for package @aws-sdk/client-lambda
|
package/README.md
CHANGED
|
@@ -12,9 +12,68 @@ AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native.
|
|
|
12
12
|
<p>
|
|
13
13
|
<b>Overview</b>
|
|
14
14
|
</p>
|
|
15
|
-
<p>
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
<p>Lambda is a compute service that lets you run code without provisioning or managing servers.
|
|
16
|
+
Lambda runs your code on a high-availability compute infrastructure and performs all of the
|
|
17
|
+
administration of the compute resources, including server and operating system maintenance, capacity provisioning
|
|
18
|
+
and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any
|
|
19
|
+
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>
|
|
20
|
+
<p>The <i>Lambda API Reference</i> provides information about
|
|
21
|
+
each of the API methods, including details about the parameters in each API request and
|
|
22
|
+
response. </p>
|
|
23
|
+
<p></p>
|
|
24
|
+
<p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command
|
|
25
|
+
line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
|
|
26
|
+
Amazon Web Services</a>. </p>
|
|
27
|
+
<p>For a list of Region-specific endpoints that Lambda supports,
|
|
28
|
+
see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html/">Lambda
|
|
29
|
+
endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
|
|
30
|
+
<p>When making the API calls, you will need to
|
|
31
|
+
authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
|
|
32
|
+
see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the
|
|
33
|
+
<i>Amazon Web Services General Reference.</i>. </p>
|
|
34
|
+
<p>
|
|
35
|
+
<b>CA certificates</b>
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
<p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
|
|
39
|
+
can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
|
|
40
|
+
computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
|
|
41
|
+
environment and do not manage your own computer, you might need to ask an administrator to assist with the
|
|
42
|
+
update process. The following list shows minimum operating system and Java versions:</p>
|
|
43
|
+
<ul>
|
|
44
|
+
<li>
|
|
45
|
+
<p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one
|
|
46
|
+
of the required CAs in their trust list. </p>
|
|
47
|
+
</li>
|
|
48
|
+
<li>
|
|
49
|
+
<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
|
|
50
|
+
later versions contain at least one of the required CAs in their trust list. </p>
|
|
51
|
+
</li>
|
|
52
|
+
<li>
|
|
53
|
+
<p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the
|
|
54
|
+
required CAs in their default trusted CA list. </p>
|
|
55
|
+
</li>
|
|
56
|
+
<li>
|
|
57
|
+
<p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December
|
|
58
|
+
2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p>
|
|
59
|
+
</li>
|
|
60
|
+
</ul>
|
|
61
|
+
<p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or
|
|
62
|
+
programmatically, you will need to ensure your client machines support any of the following CAs: </p>
|
|
63
|
+
<ul>
|
|
64
|
+
<li>
|
|
65
|
+
<p>Amazon Root CA 1</p>
|
|
66
|
+
</li>
|
|
67
|
+
<li>
|
|
68
|
+
<p>Starfield Services Root Certificate Authority - G2</p>
|
|
69
|
+
</li>
|
|
70
|
+
<li>
|
|
71
|
+
<p>Starfield Class 2 Certification Authority</p>
|
|
72
|
+
</li>
|
|
73
|
+
</ul>
|
|
74
|
+
<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
|
|
75
|
+
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>
|
|
76
|
+
</p>
|
|
18
77
|
|
|
19
78
|
## Installing
|
|
20
79
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,36 +3,192 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
-
"
|
|
6
|
+
"af-south-1": {
|
|
7
7
|
variants: [
|
|
8
8
|
{
|
|
9
|
-
hostname: "lambda.
|
|
10
|
-
tags: [],
|
|
9
|
+
hostname: "lambda.af-south-1.api.aws",
|
|
10
|
+
tags: ["dualstack"],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
"ap-east-1": {
|
|
15
|
+
variants: [
|
|
16
|
+
{
|
|
17
|
+
hostname: "lambda.ap-east-1.api.aws",
|
|
18
|
+
tags: ["dualstack"],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
"ap-northeast-1": {
|
|
23
|
+
variants: [
|
|
24
|
+
{
|
|
25
|
+
hostname: "lambda.ap-northeast-1.api.aws",
|
|
26
|
+
tags: ["dualstack"],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
"ap-northeast-2": {
|
|
31
|
+
variants: [
|
|
32
|
+
{
|
|
33
|
+
hostname: "lambda.ap-northeast-2.api.aws",
|
|
34
|
+
tags: ["dualstack"],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
"ap-northeast-3": {
|
|
39
|
+
variants: [
|
|
40
|
+
{
|
|
41
|
+
hostname: "lambda.ap-northeast-3.api.aws",
|
|
42
|
+
tags: ["dualstack"],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
"ap-south-1": {
|
|
47
|
+
variants: [
|
|
48
|
+
{
|
|
49
|
+
hostname: "lambda.ap-south-1.api.aws",
|
|
50
|
+
tags: ["dualstack"],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
"ap-southeast-1": {
|
|
55
|
+
variants: [
|
|
56
|
+
{
|
|
57
|
+
hostname: "lambda.ap-southeast-1.api.aws",
|
|
58
|
+
tags: ["dualstack"],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
"ap-southeast-2": {
|
|
63
|
+
variants: [
|
|
64
|
+
{
|
|
65
|
+
hostname: "lambda.ap-southeast-2.api.aws",
|
|
66
|
+
tags: ["dualstack"],
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
"ap-southeast-3": {
|
|
71
|
+
variants: [
|
|
72
|
+
{
|
|
73
|
+
hostname: "lambda.ap-southeast-3.api.aws",
|
|
74
|
+
tags: ["dualstack"],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
"ca-central-1": {
|
|
79
|
+
variants: [
|
|
80
|
+
{
|
|
81
|
+
hostname: "lambda.ca-central-1.api.aws",
|
|
82
|
+
tags: ["dualstack"],
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
"cn-north-1": {
|
|
87
|
+
variants: [
|
|
88
|
+
{
|
|
89
|
+
hostname: "lambda.cn-north-1.api.amazonwebservices.com.cn",
|
|
90
|
+
tags: ["dualstack"],
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
"cn-northwest-1": {
|
|
95
|
+
variants: [
|
|
96
|
+
{
|
|
97
|
+
hostname: "lambda.cn-northwest-1.api.amazonwebservices.com.cn",
|
|
98
|
+
tags: ["dualstack"],
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
"eu-central-1": {
|
|
103
|
+
variants: [
|
|
104
|
+
{
|
|
105
|
+
hostname: "lambda.eu-central-1.api.aws",
|
|
106
|
+
tags: ["dualstack"],
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
"eu-north-1": {
|
|
111
|
+
variants: [
|
|
112
|
+
{
|
|
113
|
+
hostname: "lambda.eu-north-1.api.aws",
|
|
114
|
+
tags: ["dualstack"],
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
"eu-south-1": {
|
|
119
|
+
variants: [
|
|
120
|
+
{
|
|
121
|
+
hostname: "lambda.eu-south-1.api.aws",
|
|
122
|
+
tags: ["dualstack"],
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
"eu-west-1": {
|
|
127
|
+
variants: [
|
|
128
|
+
{
|
|
129
|
+
hostname: "lambda.eu-west-1.api.aws",
|
|
130
|
+
tags: ["dualstack"],
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
"eu-west-2": {
|
|
135
|
+
variants: [
|
|
136
|
+
{
|
|
137
|
+
hostname: "lambda.eu-west-2.api.aws",
|
|
138
|
+
tags: ["dualstack"],
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
"eu-west-3": {
|
|
143
|
+
variants: [
|
|
144
|
+
{
|
|
145
|
+
hostname: "lambda.eu-west-3.api.aws",
|
|
146
|
+
tags: ["dualstack"],
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
"me-south-1": {
|
|
151
|
+
variants: [
|
|
152
|
+
{
|
|
153
|
+
hostname: "lambda.me-south-1.api.aws",
|
|
154
|
+
tags: ["dualstack"],
|
|
11
155
|
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
"sa-east-1": {
|
|
159
|
+
variants: [
|
|
160
|
+
{
|
|
161
|
+
hostname: "lambda.sa-east-1.api.aws",
|
|
162
|
+
tags: ["dualstack"],
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
"us-east-1": {
|
|
167
|
+
variants: [
|
|
12
168
|
{
|
|
13
169
|
hostname: "lambda-fips.us-east-1.amazonaws.com",
|
|
14
170
|
tags: ["fips"],
|
|
15
171
|
},
|
|
172
|
+
{
|
|
173
|
+
hostname: "lambda.us-east-1.api.aws",
|
|
174
|
+
tags: ["dualstack"],
|
|
175
|
+
},
|
|
16
176
|
],
|
|
17
177
|
},
|
|
18
178
|
"us-east-2": {
|
|
19
179
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "lambda.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
180
|
{
|
|
25
181
|
hostname: "lambda-fips.us-east-2.amazonaws.com",
|
|
26
182
|
tags: ["fips"],
|
|
27
183
|
},
|
|
184
|
+
{
|
|
185
|
+
hostname: "lambda.us-east-2.api.aws",
|
|
186
|
+
tags: ["dualstack"],
|
|
187
|
+
},
|
|
28
188
|
],
|
|
29
189
|
},
|
|
30
190
|
"us-gov-east-1": {
|
|
31
191
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "lambda.us-gov-east-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
192
|
{
|
|
37
193
|
hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
|
|
38
194
|
tags: ["fips"],
|
|
@@ -41,10 +197,6 @@ const regionHash = {
|
|
|
41
197
|
},
|
|
42
198
|
"us-gov-west-1": {
|
|
43
199
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "lambda.us-gov-west-1.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
200
|
{
|
|
49
201
|
hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
|
|
50
202
|
tags: ["fips"],
|
|
@@ -53,26 +205,26 @@ const regionHash = {
|
|
|
53
205
|
},
|
|
54
206
|
"us-west-1": {
|
|
55
207
|
variants: [
|
|
56
|
-
{
|
|
57
|
-
hostname: "lambda.us-west-1.amazonaws.com",
|
|
58
|
-
tags: [],
|
|
59
|
-
},
|
|
60
208
|
{
|
|
61
209
|
hostname: "lambda-fips.us-west-1.amazonaws.com",
|
|
62
210
|
tags: ["fips"],
|
|
63
211
|
},
|
|
212
|
+
{
|
|
213
|
+
hostname: "lambda.us-west-1.api.aws",
|
|
214
|
+
tags: ["dualstack"],
|
|
215
|
+
},
|
|
64
216
|
],
|
|
65
217
|
},
|
|
66
218
|
"us-west-2": {
|
|
67
219
|
variants: [
|
|
68
|
-
{
|
|
69
|
-
hostname: "lambda.us-west-2.amazonaws.com",
|
|
70
|
-
tags: [],
|
|
71
|
-
},
|
|
72
220
|
{
|
|
73
221
|
hostname: "lambda-fips.us-west-2.amazonaws.com",
|
|
74
222
|
tags: ["fips"],
|
|
75
223
|
},
|
|
224
|
+
{
|
|
225
|
+
hostname: "lambda.us-west-2.api.aws",
|
|
226
|
+
tags: ["dualstack"],
|
|
227
|
+
},
|
|
76
228
|
],
|
|
77
229
|
},
|
|
78
230
|
};
|
|
@@ -87,6 +239,7 @@ const partitionHash = {
|
|
|
87
239
|
"ap-south-1",
|
|
88
240
|
"ap-southeast-1",
|
|
89
241
|
"ap-southeast-2",
|
|
242
|
+
"ap-southeast-3",
|
|
90
243
|
"ca-central-1",
|
|
91
244
|
"eu-central-1",
|
|
92
245
|
"eu-north-1",
|