@aws-sdk/client-lambda 3.41.0 → 3.46.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 +48 -0
- package/README.md +62 -3
- package/dist-cjs/endpoints.js +257 -0
- package/dist-cjs/models/models_0.js +18 -4
- package/dist-cjs/protocols/Aws_restJson1.js +70 -0
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/endpoints.js +257 -0
- package/dist-es/models/models_0.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +68 -4
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/Lambda.d.ts +189 -13
- package/dist-types/LambdaClient.d.ts +62 -3
- 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 -15
- package/dist-types/ts3.4/models/models_0.d.ts +26 -0
- package/package.json +37 -44
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,54 @@
|
|
|
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **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))
|
|
17
|
+
* **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))
|
|
18
|
+
* 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))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **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))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **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))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @aws-sdk/client-lambda
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
6
54
|
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
55
|
|
|
8
56
|
|
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,6 +3,246 @@ 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
|
+
"af-south-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "lambda.af-south-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
hostname: "lambda.af-south-1.api.aws",
|
|
14
|
+
tags: ["dualstack"],
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
"ap-east-1": {
|
|
19
|
+
variants: [
|
|
20
|
+
{
|
|
21
|
+
hostname: "lambda.ap-east-1.amazonaws.com",
|
|
22
|
+
tags: [],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
hostname: "lambda.ap-east-1.api.aws",
|
|
26
|
+
tags: ["dualstack"],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
"ap-northeast-1": {
|
|
31
|
+
variants: [
|
|
32
|
+
{
|
|
33
|
+
hostname: "lambda.ap-northeast-1.amazonaws.com",
|
|
34
|
+
tags: [],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
hostname: "lambda.ap-northeast-1.api.aws",
|
|
38
|
+
tags: ["dualstack"],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
"ap-northeast-2": {
|
|
43
|
+
variants: [
|
|
44
|
+
{
|
|
45
|
+
hostname: "lambda.ap-northeast-2.amazonaws.com",
|
|
46
|
+
tags: [],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
hostname: "lambda.ap-northeast-2.api.aws",
|
|
50
|
+
tags: ["dualstack"],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
"ap-northeast-3": {
|
|
55
|
+
variants: [
|
|
56
|
+
{
|
|
57
|
+
hostname: "lambda.ap-northeast-3.amazonaws.com",
|
|
58
|
+
tags: [],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
hostname: "lambda.ap-northeast-3.api.aws",
|
|
62
|
+
tags: ["dualstack"],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
"ap-south-1": {
|
|
67
|
+
variants: [
|
|
68
|
+
{
|
|
69
|
+
hostname: "lambda.ap-south-1.amazonaws.com",
|
|
70
|
+
tags: [],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
hostname: "lambda.ap-south-1.api.aws",
|
|
74
|
+
tags: ["dualstack"],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
"ap-southeast-1": {
|
|
79
|
+
variants: [
|
|
80
|
+
{
|
|
81
|
+
hostname: "lambda.ap-southeast-1.amazonaws.com",
|
|
82
|
+
tags: [],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
hostname: "lambda.ap-southeast-1.api.aws",
|
|
86
|
+
tags: ["dualstack"],
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
"ap-southeast-2": {
|
|
91
|
+
variants: [
|
|
92
|
+
{
|
|
93
|
+
hostname: "lambda.ap-southeast-2.amazonaws.com",
|
|
94
|
+
tags: [],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
hostname: "lambda.ap-southeast-2.api.aws",
|
|
98
|
+
tags: ["dualstack"],
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
"ap-southeast-3": {
|
|
103
|
+
variants: [
|
|
104
|
+
{
|
|
105
|
+
hostname: "lambda.ap-southeast-3.amazonaws.com",
|
|
106
|
+
tags: [],
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
hostname: "lambda.ap-southeast-3.api.aws",
|
|
110
|
+
tags: ["dualstack"],
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
"ca-central-1": {
|
|
115
|
+
variants: [
|
|
116
|
+
{
|
|
117
|
+
hostname: "lambda.ca-central-1.amazonaws.com",
|
|
118
|
+
tags: [],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
hostname: "lambda.ca-central-1.api.aws",
|
|
122
|
+
tags: ["dualstack"],
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
"cn-north-1": {
|
|
127
|
+
variants: [
|
|
128
|
+
{
|
|
129
|
+
hostname: "lambda.cn-north-1.amazonaws.com.cn",
|
|
130
|
+
tags: [],
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
hostname: "lambda.cn-north-1.api.amazonwebservices.com.cn",
|
|
134
|
+
tags: ["dualstack"],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
"cn-northwest-1": {
|
|
139
|
+
variants: [
|
|
140
|
+
{
|
|
141
|
+
hostname: "lambda.cn-northwest-1.amazonaws.com.cn",
|
|
142
|
+
tags: [],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
hostname: "lambda.cn-northwest-1.api.amazonwebservices.com.cn",
|
|
146
|
+
tags: ["dualstack"],
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
"eu-central-1": {
|
|
151
|
+
variants: [
|
|
152
|
+
{
|
|
153
|
+
hostname: "lambda.eu-central-1.amazonaws.com",
|
|
154
|
+
tags: [],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
hostname: "lambda.eu-central-1.api.aws",
|
|
158
|
+
tags: ["dualstack"],
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
"eu-north-1": {
|
|
163
|
+
variants: [
|
|
164
|
+
{
|
|
165
|
+
hostname: "lambda.eu-north-1.amazonaws.com",
|
|
166
|
+
tags: [],
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
hostname: "lambda.eu-north-1.api.aws",
|
|
170
|
+
tags: ["dualstack"],
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
"eu-south-1": {
|
|
175
|
+
variants: [
|
|
176
|
+
{
|
|
177
|
+
hostname: "lambda.eu-south-1.amazonaws.com",
|
|
178
|
+
tags: [],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
hostname: "lambda.eu-south-1.api.aws",
|
|
182
|
+
tags: ["dualstack"],
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
"eu-west-1": {
|
|
187
|
+
variants: [
|
|
188
|
+
{
|
|
189
|
+
hostname: "lambda.eu-west-1.amazonaws.com",
|
|
190
|
+
tags: [],
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
hostname: "lambda.eu-west-1.api.aws",
|
|
194
|
+
tags: ["dualstack"],
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
"eu-west-2": {
|
|
199
|
+
variants: [
|
|
200
|
+
{
|
|
201
|
+
hostname: "lambda.eu-west-2.amazonaws.com",
|
|
202
|
+
tags: [],
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
hostname: "lambda.eu-west-2.api.aws",
|
|
206
|
+
tags: ["dualstack"],
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
"eu-west-3": {
|
|
211
|
+
variants: [
|
|
212
|
+
{
|
|
213
|
+
hostname: "lambda.eu-west-3.amazonaws.com",
|
|
214
|
+
tags: [],
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
hostname: "lambda.eu-west-3.api.aws",
|
|
218
|
+
tags: ["dualstack"],
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
"me-south-1": {
|
|
223
|
+
variants: [
|
|
224
|
+
{
|
|
225
|
+
hostname: "lambda.me-south-1.amazonaws.com",
|
|
226
|
+
tags: [],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
hostname: "lambda.me-south-1.api.aws",
|
|
230
|
+
tags: ["dualstack"],
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
"sa-east-1": {
|
|
235
|
+
variants: [
|
|
236
|
+
{
|
|
237
|
+
hostname: "lambda.sa-east-1.amazonaws.com",
|
|
238
|
+
tags: [],
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
hostname: "lambda.sa-east-1.api.aws",
|
|
242
|
+
tags: ["dualstack"],
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
},
|
|
6
246
|
"us-east-1": {
|
|
7
247
|
variants: [
|
|
8
248
|
{
|
|
@@ -13,6 +253,10 @@ const regionHash = {
|
|
|
13
253
|
hostname: "lambda-fips.us-east-1.amazonaws.com",
|
|
14
254
|
tags: ["fips"],
|
|
15
255
|
},
|
|
256
|
+
{
|
|
257
|
+
hostname: "lambda.us-east-1.api.aws",
|
|
258
|
+
tags: ["dualstack"],
|
|
259
|
+
},
|
|
16
260
|
],
|
|
17
261
|
},
|
|
18
262
|
"us-east-2": {
|
|
@@ -25,6 +269,10 @@ const regionHash = {
|
|
|
25
269
|
hostname: "lambda-fips.us-east-2.amazonaws.com",
|
|
26
270
|
tags: ["fips"],
|
|
27
271
|
},
|
|
272
|
+
{
|
|
273
|
+
hostname: "lambda.us-east-2.api.aws",
|
|
274
|
+
tags: ["dualstack"],
|
|
275
|
+
},
|
|
28
276
|
],
|
|
29
277
|
},
|
|
30
278
|
"us-gov-east-1": {
|
|
@@ -61,6 +309,10 @@ const regionHash = {
|
|
|
61
309
|
hostname: "lambda-fips.us-west-1.amazonaws.com",
|
|
62
310
|
tags: ["fips"],
|
|
63
311
|
},
|
|
312
|
+
{
|
|
313
|
+
hostname: "lambda.us-west-1.api.aws",
|
|
314
|
+
tags: ["dualstack"],
|
|
315
|
+
},
|
|
64
316
|
],
|
|
65
317
|
},
|
|
66
318
|
"us-west-2": {
|
|
@@ -73,6 +325,10 @@ const regionHash = {
|
|
|
73
325
|
hostname: "lambda-fips.us-west-2.amazonaws.com",
|
|
74
326
|
tags: ["fips"],
|
|
75
327
|
},
|
|
328
|
+
{
|
|
329
|
+
hostname: "lambda.us-west-2.api.aws",
|
|
330
|
+
tags: ["dualstack"],
|
|
331
|
+
},
|
|
76
332
|
],
|
|
77
333
|
},
|
|
78
334
|
};
|
|
@@ -87,6 +343,7 @@ const partitionHash = {
|
|
|
87
343
|
"ap-south-1",
|
|
88
344
|
"ap-southeast-1",
|
|
89
345
|
"ap-southeast-2",
|
|
346
|
+
"ap-southeast-3",
|
|
90
347
|
"ca-central-1",
|
|
91
348
|
"eu-central-1",
|
|
92
349
|
"eu-north-1",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateFunctionEventInvokeConfigRequest = exports.UpdateFunctionConfigurationRequest = exports.UpdateFunctionCodeRequest = exports.UpdateEventSourceMappingRequest = exports.UpdateCodeSigningConfigResponse = exports.UpdateCodeSigningConfigRequest = exports.UpdateAliasRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RemovePermissionRequest = exports.RemoveLayerVersionPermissionRequest = exports.PutProvisionedConcurrencyConfigResponse = exports.PutProvisionedConcurrencyConfigRequest = exports.PutFunctionEventInvokeConfigRequest = exports.PutFunctionConcurrencyRequest = exports.PutFunctionCodeSigningConfigResponse = exports.PutFunctionCodeSigningConfigRequest = exports.PublishVersionRequest = exports.PublishLayerVersionResponse = exports.PublishLayerVersionRequest = exports.LayerVersionContentInput = exports.ListVersionsByFunctionResponse = exports.ListVersionsByFunctionRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListProvisionedConcurrencyConfigsResponse = void 0;
|
|
3
|
+
exports.VpcConfig = exports.TracingConfig = exports.TracingMode = exports.Runtime = exports.PackageType = exports.ImageConfig = exports.FileSystemConfig = exports.Environment = exports.DeadLetterConfig = exports.FunctionCode = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourceMappingConfiguration = exports.CreateEventSourceMappingRequest = exports.EventSourcePosition = exports.SourceAccessConfiguration = exports.SourceAccessType = exports.SelfManagedEventSource = exports.EndPointType = exports.FunctionResponseType = exports.FilterCriteria = exports.Filter = exports.DestinationConfig = exports.OnSuccess = exports.OnFailure = exports.CreateCodeSigningConfigResponse = exports.CodeSigningConfig = exports.CreateCodeSigningConfigRequest = exports.CodeSigningPolicies = exports.CodeSigningPolicy = exports.CreateAliasRequest = exports.Architecture = exports.AllowedPublishers = exports.AliasConfiguration = exports.AliasRoutingConfiguration = exports.AddPermissionResponse = exports.AddPermissionRequest = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = exports.AddLayerVersionPermissionResponse = exports.AddLayerVersionPermissionRequest = exports.AccountUsage = exports.AccountLimit = void 0;
|
|
4
|
+
exports.GetPolicyResponse = exports.GetPolicyRequest = exports.GetLayerVersionPolicyResponse = exports.GetLayerVersionPolicyRequest = exports.GetLayerVersionByArnRequest = exports.GetLayerVersionResponse = exports.LayerVersionContentOutput = exports.GetLayerVersionRequest = exports.GetFunctionEventInvokeConfigRequest = exports.FunctionEventInvokeConfig = exports.GetFunctionConfigurationRequest = exports.GetFunctionConcurrencyResponse = exports.GetFunctionConcurrencyRequest = exports.GetFunctionCodeSigningConfigResponse = exports.GetFunctionCodeSigningConfigRequest = exports.GetFunctionResponse = exports.Concurrency = exports.FunctionCodeLocation = exports.GetFunctionRequest = exports.GetEventSourceMappingRequest = exports.GetCodeSigningConfigResponse = exports.GetCodeSigningConfigRequest = exports.GetAliasRequest = exports.GetAccountSettingsResponse = exports.GetAccountSettingsRequest = exports.DeleteProvisionedConcurrencyConfigRequest = exports.DeleteLayerVersionRequest = exports.DeleteFunctionEventInvokeConfigRequest = exports.DeleteFunctionConcurrencyRequest = exports.DeleteFunctionCodeSigningConfigRequest = exports.DeleteFunctionRequest = exports.ResourceInUseException = exports.DeleteEventSourceMappingRequest = exports.DeleteCodeSigningConfigResponse = exports.DeleteCodeSigningConfigRequest = exports.DeleteAliasRequest = exports.InvalidCodeSignatureException = exports.FunctionConfiguration = exports.VpcConfigResponse = exports.TracingConfigResponse = exports.StateReasonCode = exports.State = exports.Layer = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.ImageConfigResponse = exports.ImageConfigError = exports.EnvironmentResponse = exports.EnvironmentError = exports.CreateFunctionRequest = void 0;
|
|
5
|
+
exports.ListLayerVersionsResponse = exports.ListLayerVersionsRequest = exports.ListLayersResponse = exports.LayersListItem = exports.LayerVersionsListItem = exports.ListLayersRequest = exports.ListFunctionsByCodeSigningConfigResponse = exports.ListFunctionsByCodeSigningConfigRequest = exports.ListFunctionsResponse = exports.ListFunctionsRequest = exports.FunctionVersion = exports.ListFunctionEventInvokeConfigsResponse = exports.ListFunctionEventInvokeConfigsRequest = exports.ListEventSourceMappingsResponse = exports.ListEventSourceMappingsRequest = exports.ListCodeSigningConfigsResponse = exports.ListCodeSigningConfigsRequest = exports.ListAliasesResponse = exports.ListAliasesRequest = exports.InvokeAsyncResponse = exports.InvokeAsyncRequest = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.InvocationResponse = exports.InvocationRequest = exports.LogType = exports.InvocationType = exports.InvalidZipFileException = exports.InvalidSubnetIDException = exports.InvalidSecurityGroupIDException = exports.InvalidRuntimeException = exports.InvalidRequestContentException = exports.ENILimitReachedException = exports.EFSMountTimeoutException = exports.EFSMountFailureException = exports.EFSMountConnectivityException = exports.EFSIOException = exports.EC2UnexpectedException = exports.EC2ThrottledException = exports.EC2AccessDeniedException = exports.ProvisionedConcurrencyConfigNotFoundException = exports.GetProvisionedConcurrencyConfigResponse = exports.ProvisionedConcurrencyStatusEnum = exports.GetProvisionedConcurrencyConfigRequest = void 0;
|
|
6
|
+
exports.UpdateFunctionEventInvokeConfigRequest = exports.UpdateFunctionConfigurationRequest = exports.UpdateFunctionCodeRequest = exports.UpdateEventSourceMappingRequest = exports.UpdateCodeSigningConfigResponse = exports.UpdateCodeSigningConfigRequest = exports.UpdateAliasRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RemovePermissionRequest = exports.RemoveLayerVersionPermissionRequest = exports.PutProvisionedConcurrencyConfigResponse = exports.PutProvisionedConcurrencyConfigRequest = exports.PutFunctionEventInvokeConfigRequest = exports.PutFunctionConcurrencyRequest = exports.PutFunctionCodeSigningConfigResponse = exports.PutFunctionCodeSigningConfigRequest = exports.PublishVersionRequest = exports.PublishLayerVersionResponse = exports.PublishLayerVersionRequest = exports.LayerVersionContentInput = exports.ListVersionsByFunctionResponse = exports.ListVersionsByFunctionRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListProvisionedConcurrencyConfigsResponse = exports.ProvisionedConcurrencyConfigListItem = exports.ListProvisionedConcurrencyConfigsRequest = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
var AccountLimit;
|
|
9
9
|
(function (AccountLimit) {
|
|
@@ -167,6 +167,18 @@ var DestinationConfig;
|
|
|
167
167
|
...obj,
|
|
168
168
|
});
|
|
169
169
|
})(DestinationConfig = exports.DestinationConfig || (exports.DestinationConfig = {}));
|
|
170
|
+
var Filter;
|
|
171
|
+
(function (Filter) {
|
|
172
|
+
Filter.filterSensitiveLog = (obj) => ({
|
|
173
|
+
...obj,
|
|
174
|
+
});
|
|
175
|
+
})(Filter = exports.Filter || (exports.Filter = {}));
|
|
176
|
+
var FilterCriteria;
|
|
177
|
+
(function (FilterCriteria) {
|
|
178
|
+
FilterCriteria.filterSensitiveLog = (obj) => ({
|
|
179
|
+
...obj,
|
|
180
|
+
});
|
|
181
|
+
})(FilterCriteria = exports.FilterCriteria || (exports.FilterCriteria = {}));
|
|
170
182
|
var FunctionResponseType;
|
|
171
183
|
(function (FunctionResponseType) {
|
|
172
184
|
FunctionResponseType["ReportBatchItemFailures"] = "ReportBatchItemFailures";
|
|
@@ -184,8 +196,10 @@ var SelfManagedEventSource;
|
|
|
184
196
|
var SourceAccessType;
|
|
185
197
|
(function (SourceAccessType) {
|
|
186
198
|
SourceAccessType["BASIC_AUTH"] = "BASIC_AUTH";
|
|
199
|
+
SourceAccessType["CLIENT_CERTIFICATE_TLS_AUTH"] = "CLIENT_CERTIFICATE_TLS_AUTH";
|
|
187
200
|
SourceAccessType["SASL_SCRAM_256_AUTH"] = "SASL_SCRAM_256_AUTH";
|
|
188
201
|
SourceAccessType["SASL_SCRAM_512_AUTH"] = "SASL_SCRAM_512_AUTH";
|
|
202
|
+
SourceAccessType["SERVER_ROOT_CA_CERTIFICATE"] = "SERVER_ROOT_CA_CERTIFICATE";
|
|
189
203
|
SourceAccessType["VIRTUAL_HOST"] = "VIRTUAL_HOST";
|
|
190
204
|
SourceAccessType["VPC_SECURITY_GROUP"] = "VPC_SECURITY_GROUP";
|
|
191
205
|
SourceAccessType["VPC_SUBNET"] = "VPC_SUBNET";
|
|
@@ -184,6 +184,10 @@ const serializeAws_restJson1CreateEventSourceMappingCommand = async (input, cont
|
|
|
184
184
|
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
185
185
|
...(input.EventSourceArn !== undefined &&
|
|
186
186
|
input.EventSourceArn !== null && { EventSourceArn: input.EventSourceArn }),
|
|
187
|
+
...(input.FilterCriteria !== undefined &&
|
|
188
|
+
input.FilterCriteria !== null && {
|
|
189
|
+
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
190
|
+
}),
|
|
187
191
|
...(input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName }),
|
|
188
192
|
...(input.FunctionResponseTypes !== undefined &&
|
|
189
193
|
input.FunctionResponseTypes !== null && {
|
|
@@ -1852,6 +1856,10 @@ const serializeAws_restJson1UpdateEventSourceMappingCommand = async (input, cont
|
|
|
1852
1856
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
1853
1857
|
}),
|
|
1854
1858
|
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
1859
|
+
...(input.FilterCriteria !== undefined &&
|
|
1860
|
+
input.FilterCriteria !== null && {
|
|
1861
|
+
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
1862
|
+
}),
|
|
1855
1863
|
...(input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName }),
|
|
1856
1864
|
...(input.FunctionResponseTypes !== undefined &&
|
|
1857
1865
|
input.FunctionResponseTypes !== null && {
|
|
@@ -2392,6 +2400,7 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
|
|
|
2392
2400
|
BisectBatchOnFunctionError: undefined,
|
|
2393
2401
|
DestinationConfig: undefined,
|
|
2394
2402
|
EventSourceArn: undefined,
|
|
2403
|
+
FilterCriteria: undefined,
|
|
2395
2404
|
FunctionArn: undefined,
|
|
2396
2405
|
FunctionResponseTypes: undefined,
|
|
2397
2406
|
LastModified: undefined,
|
|
@@ -2424,6 +2433,9 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
|
|
|
2424
2433
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
2425
2434
|
contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
|
|
2426
2435
|
}
|
|
2436
|
+
if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
|
|
2437
|
+
contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
|
|
2438
|
+
}
|
|
2427
2439
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
2428
2440
|
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
2429
2441
|
}
|
|
@@ -2928,6 +2940,7 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
|
|
|
2928
2940
|
BisectBatchOnFunctionError: undefined,
|
|
2929
2941
|
DestinationConfig: undefined,
|
|
2930
2942
|
EventSourceArn: undefined,
|
|
2943
|
+
FilterCriteria: undefined,
|
|
2931
2944
|
FunctionArn: undefined,
|
|
2932
2945
|
FunctionResponseTypes: undefined,
|
|
2933
2946
|
LastModified: undefined,
|
|
@@ -2960,6 +2973,9 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
|
|
|
2960
2973
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
2961
2974
|
contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
|
|
2962
2975
|
}
|
|
2976
|
+
if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
|
|
2977
|
+
contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
|
|
2978
|
+
}
|
|
2963
2979
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
2964
2980
|
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
2965
2981
|
}
|
|
@@ -3748,6 +3764,7 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
|
|
|
3748
3764
|
BisectBatchOnFunctionError: undefined,
|
|
3749
3765
|
DestinationConfig: undefined,
|
|
3750
3766
|
EventSourceArn: undefined,
|
|
3767
|
+
FilterCriteria: undefined,
|
|
3751
3768
|
FunctionArn: undefined,
|
|
3752
3769
|
FunctionResponseTypes: undefined,
|
|
3753
3770
|
LastModified: undefined,
|
|
@@ -3780,6 +3797,9 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
|
|
|
3780
3797
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
3781
3798
|
contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
|
|
3782
3799
|
}
|
|
3800
|
+
if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
|
|
3801
|
+
contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
|
|
3802
|
+
}
|
|
3783
3803
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
3784
3804
|
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
3785
3805
|
}
|
|
@@ -7196,6 +7216,7 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
|
|
|
7196
7216
|
BisectBatchOnFunctionError: undefined,
|
|
7197
7217
|
DestinationConfig: undefined,
|
|
7198
7218
|
EventSourceArn: undefined,
|
|
7219
|
+
FilterCriteria: undefined,
|
|
7199
7220
|
FunctionArn: undefined,
|
|
7200
7221
|
FunctionResponseTypes: undefined,
|
|
7201
7222
|
LastModified: undefined,
|
|
@@ -7228,6 +7249,9 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
|
|
|
7228
7249
|
if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
|
|
7229
7250
|
contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
|
|
7230
7251
|
}
|
|
7252
|
+
if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
|
|
7253
|
+
contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
|
|
7254
|
+
}
|
|
7231
7255
|
if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
|
|
7232
7256
|
contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
|
|
7233
7257
|
}
|
|
@@ -8657,6 +8681,27 @@ const serializeAws_restJson1FileSystemConfigList = (input, context) => {
|
|
|
8657
8681
|
return serializeAws_restJson1FileSystemConfig(entry, context);
|
|
8658
8682
|
});
|
|
8659
8683
|
};
|
|
8684
|
+
const serializeAws_restJson1Filter = (input, context) => {
|
|
8685
|
+
return {
|
|
8686
|
+
...(input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern }),
|
|
8687
|
+
};
|
|
8688
|
+
};
|
|
8689
|
+
const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
8690
|
+
return {
|
|
8691
|
+
...(input.Filters !== undefined &&
|
|
8692
|
+
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
8693
|
+
};
|
|
8694
|
+
};
|
|
8695
|
+
const serializeAws_restJson1FilterList = (input, context) => {
|
|
8696
|
+
return input
|
|
8697
|
+
.filter((e) => e != null)
|
|
8698
|
+
.map((entry) => {
|
|
8699
|
+
if (entry === null) {
|
|
8700
|
+
return null;
|
|
8701
|
+
}
|
|
8702
|
+
return serializeAws_restJson1Filter(entry, context);
|
|
8703
|
+
});
|
|
8704
|
+
};
|
|
8660
8705
|
const serializeAws_restJson1FunctionCode = (input, context) => {
|
|
8661
8706
|
return {
|
|
8662
8707
|
...(input.ImageUri !== undefined && input.ImageUri !== null && { ImageUri: input.ImageUri }),
|
|
@@ -9021,6 +9066,9 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
|
|
|
9021
9066
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
9022
9067
|
: undefined,
|
|
9023
9068
|
EventSourceArn: smithy_client_1.expectString(output.EventSourceArn),
|
|
9069
|
+
FilterCriteria: output.FilterCriteria !== undefined && output.FilterCriteria !== null
|
|
9070
|
+
? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
|
|
9071
|
+
: undefined,
|
|
9024
9072
|
FunctionArn: smithy_client_1.expectString(output.FunctionArn),
|
|
9025
9073
|
FunctionResponseTypes: output.FunctionResponseTypes !== undefined && output.FunctionResponseTypes !== null
|
|
9026
9074
|
? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
|
|
@@ -9081,6 +9129,28 @@ const deserializeAws_restJson1FileSystemConfigList = (output, context) => {
|
|
|
9081
9129
|
return deserializeAws_restJson1FileSystemConfig(entry, context);
|
|
9082
9130
|
});
|
|
9083
9131
|
};
|
|
9132
|
+
const deserializeAws_restJson1Filter = (output, context) => {
|
|
9133
|
+
return {
|
|
9134
|
+
Pattern: smithy_client_1.expectString(output.Pattern),
|
|
9135
|
+
};
|
|
9136
|
+
};
|
|
9137
|
+
const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
9138
|
+
return {
|
|
9139
|
+
Filters: output.Filters !== undefined && output.Filters !== null
|
|
9140
|
+
? deserializeAws_restJson1FilterList(output.Filters, context)
|
|
9141
|
+
: undefined,
|
|
9142
|
+
};
|
|
9143
|
+
};
|
|
9144
|
+
const deserializeAws_restJson1FilterList = (output, context) => {
|
|
9145
|
+
return (output || [])
|
|
9146
|
+
.filter((e) => e != null)
|
|
9147
|
+
.map((entry) => {
|
|
9148
|
+
if (entry === null) {
|
|
9149
|
+
return null;
|
|
9150
|
+
}
|
|
9151
|
+
return deserializeAws_restJson1Filter(entry, context);
|
|
9152
|
+
});
|
|
9153
|
+
};
|
|
9084
9154
|
const deserializeAws_restJson1FunctionArnList = (output, context) => {
|
|
9085
9155
|
return (output || [])
|
|
9086
9156
|
.filter((e) => e != null)
|
|
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
18
|
const getRuntimeConfig = (config) => {
|
|
20
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
20
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|