@aws-sdk/client-lambda 3.452.0 → 3.453.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/dist-cjs/models/models_0.js +19 -2
- package/dist-cjs/protocols/Aws_restJson1.js +7 -0
- package/dist-es/models/models_0.js +17 -0
- package/dist-es/protocols/Aws_restJson1.js +7 -0
- package/dist-types/commands/CreateFunctionCommand.d.ts +12 -0
- package/dist-types/commands/GetFunctionCommand.d.ts +6 -0
- package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +6 -0
- package/dist-types/commands/InvokeAsyncCommand.d.ts +0 -4
- package/dist-types/commands/ListFunctionsCommand.d.ts +6 -0
- package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +6 -0
- package/dist-types/commands/PublishVersionCommand.d.ts +6 -0
- package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +6 -0
- package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +92 -6
- package/dist-types/ts3.4/models/models_0.d.ts +31 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.PublishLayerVersionRequestFilterSensitiveLog = exports.LayerVersionContentInputFilterSensitiveLog = exports.ListVersionsByFunctionResponseFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.InvokeWithResponseStreamResponseFilterSensitiveLog = exports.InvokeWithResponseStreamResponseEventFilterSensitiveLog = exports.InvokeResponseStreamUpdateFilterSensitiveLog = exports.InvokeWithResponseStreamRequestFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = exports.GetFunctionResponseFilterSensitiveLog = exports.FunctionConfigurationFilterSensitiveLog = exports.RuntimeVersionConfigFilterSensitiveLog = exports.RuntimeVersionErrorFilterSensitiveLog = exports.ImageConfigResponseFilterSensitiveLog = exports.ImageConfigErrorFilterSensitiveLog = exports.EnvironmentResponseFilterSensitiveLog = exports.EnvironmentErrorFilterSensitiveLog = exports.CreateFunctionRequestFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.FunctionCodeFilterSensitiveLog = exports.FunctionVersion = exports.InvokeWithResponseStreamResponseEvent = exports.ResponseStreamingInvocationType = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.SnapStartTimeoutException = exports.SnapStartNotReadyException = exports.SnapStartException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.RecursiveInvocationException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = void 0;
|
|
3
|
+
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.UpdateRuntimeOn = exports.ProvisionedConcurrencyConfigNotFoundException = exports.ProvisionedConcurrencyStatusEnum = exports.ResourceInUseException = exports.InvokeMode = exports.InvalidCodeSignatureException = exports.StateReasonCode = exports.State = exports.SnapStartOptimizationStatus = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.TracingMode = exports.SnapStartApplyOn = exports.Runtime = exports.PackageType = exports.SystemLogLevel = exports.LogFormat = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourcePosition = exports.SourceAccessType = exports.EndPointType = exports.FunctionResponseType = exports.FullDocument = exports.CodeSigningPolicy = exports.Architecture = exports.ApplicationLogLevel = exports.FunctionUrlAuthType = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = void 0;
|
|
4
|
+
exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.PublishLayerVersionRequestFilterSensitiveLog = exports.LayerVersionContentInputFilterSensitiveLog = exports.ListVersionsByFunctionResponseFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.InvokeWithResponseStreamResponseFilterSensitiveLog = exports.InvokeWithResponseStreamResponseEventFilterSensitiveLog = exports.InvokeResponseStreamUpdateFilterSensitiveLog = exports.InvokeWithResponseStreamRequestFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = exports.GetFunctionResponseFilterSensitiveLog = exports.FunctionConfigurationFilterSensitiveLog = exports.RuntimeVersionConfigFilterSensitiveLog = exports.RuntimeVersionErrorFilterSensitiveLog = exports.ImageConfigResponseFilterSensitiveLog = exports.ImageConfigErrorFilterSensitiveLog = exports.EnvironmentResponseFilterSensitiveLog = exports.EnvironmentErrorFilterSensitiveLog = exports.CreateFunctionRequestFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.FunctionCodeFilterSensitiveLog = exports.FunctionVersion = exports.InvokeWithResponseStreamResponseEvent = exports.ResponseStreamingInvocationType = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.SnapStartTimeoutException = exports.SnapStartNotReadyException = exports.SnapStartException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.RecursiveInvocationException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.LogType = exports.InvocationType = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const LambdaServiceException_1 = require("./LambdaServiceException");
|
|
7
7
|
class InvalidParameterValueException extends LambdaServiceException_1.LambdaServiceException {
|
|
@@ -118,6 +118,14 @@ exports.FunctionUrlAuthType = {
|
|
|
118
118
|
AWS_IAM: "AWS_IAM",
|
|
119
119
|
NONE: "NONE",
|
|
120
120
|
};
|
|
121
|
+
exports.ApplicationLogLevel = {
|
|
122
|
+
Debug: "DEBUG",
|
|
123
|
+
Error: "ERROR",
|
|
124
|
+
Fatal: "FATAL",
|
|
125
|
+
Info: "INFO",
|
|
126
|
+
Trace: "TRACE",
|
|
127
|
+
Warn: "WARN",
|
|
128
|
+
};
|
|
121
129
|
exports.Architecture = {
|
|
122
130
|
arm64: "arm64",
|
|
123
131
|
x86_64: "x86_64",
|
|
@@ -195,6 +203,15 @@ class CodeVerificationFailedException extends LambdaServiceException_1.LambdaSer
|
|
|
195
203
|
}
|
|
196
204
|
}
|
|
197
205
|
exports.CodeVerificationFailedException = CodeVerificationFailedException;
|
|
206
|
+
exports.LogFormat = {
|
|
207
|
+
Json: "JSON",
|
|
208
|
+
Text: "Text",
|
|
209
|
+
};
|
|
210
|
+
exports.SystemLogLevel = {
|
|
211
|
+
Debug: "DEBUG",
|
|
212
|
+
Info: "INFO",
|
|
213
|
+
Warn: "WARN",
|
|
214
|
+
};
|
|
198
215
|
exports.PackageType = {
|
|
199
216
|
Image: "Image",
|
|
200
217
|
Zip: "Zip",
|
|
@@ -186,6 +186,7 @@ const se_CreateFunctionCommand = async (input, context) => {
|
|
|
186
186
|
ImageConfig: (_) => (0, smithy_client_1._json)(_),
|
|
187
187
|
KMSKeyArn: [],
|
|
188
188
|
Layers: (_) => (0, smithy_client_1._json)(_),
|
|
189
|
+
LoggingConfig: (_) => (0, smithy_client_1._json)(_),
|
|
189
190
|
MemorySize: [],
|
|
190
191
|
PackageType: [],
|
|
191
192
|
Publish: [],
|
|
@@ -1516,6 +1517,7 @@ const se_UpdateFunctionConfigurationCommand = async (input, context) => {
|
|
|
1516
1517
|
ImageConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1517
1518
|
KMSKeyArn: [],
|
|
1518
1519
|
Layers: (_) => (0, smithy_client_1._json)(_),
|
|
1520
|
+
LoggingConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1519
1521
|
MemorySize: [],
|
|
1520
1522
|
RevisionId: [],
|
|
1521
1523
|
Role: [],
|
|
@@ -1885,6 +1887,7 @@ const de_CreateFunctionCommand = async (output, context) => {
|
|
|
1885
1887
|
LastUpdateStatusReason: smithy_client_1.expectString,
|
|
1886
1888
|
LastUpdateStatusReasonCode: smithy_client_1.expectString,
|
|
1887
1889
|
Layers: smithy_client_1._json,
|
|
1890
|
+
LoggingConfig: smithy_client_1._json,
|
|
1888
1891
|
MasterArn: smithy_client_1.expectString,
|
|
1889
1892
|
MemorySize: smithy_client_1.expectInt32,
|
|
1890
1893
|
PackageType: smithy_client_1.expectString,
|
|
@@ -2794,6 +2797,7 @@ const de_GetFunctionConfigurationCommand = async (output, context) => {
|
|
|
2794
2797
|
LastUpdateStatusReason: smithy_client_1.expectString,
|
|
2795
2798
|
LastUpdateStatusReasonCode: smithy_client_1.expectString,
|
|
2796
2799
|
Layers: smithy_client_1._json,
|
|
2800
|
+
LoggingConfig: smithy_client_1._json,
|
|
2797
2801
|
MasterArn: smithy_client_1.expectString,
|
|
2798
2802
|
MemorySize: smithy_client_1.expectInt32,
|
|
2799
2803
|
PackageType: smithy_client_1.expectString,
|
|
@@ -4111,6 +4115,7 @@ const de_PublishVersionCommand = async (output, context) => {
|
|
|
4111
4115
|
LastUpdateStatusReason: smithy_client_1.expectString,
|
|
4112
4116
|
LastUpdateStatusReasonCode: smithy_client_1.expectString,
|
|
4113
4117
|
Layers: smithy_client_1._json,
|
|
4118
|
+
LoggingConfig: smithy_client_1._json,
|
|
4114
4119
|
MasterArn: smithy_client_1.expectString,
|
|
4115
4120
|
MemorySize: smithy_client_1.expectInt32,
|
|
4116
4121
|
PackageType: smithy_client_1.expectString,
|
|
@@ -4779,6 +4784,7 @@ const de_UpdateFunctionCodeCommand = async (output, context) => {
|
|
|
4779
4784
|
LastUpdateStatusReason: smithy_client_1.expectString,
|
|
4780
4785
|
LastUpdateStatusReasonCode: smithy_client_1.expectString,
|
|
4781
4786
|
Layers: smithy_client_1._json,
|
|
4787
|
+
LoggingConfig: smithy_client_1._json,
|
|
4782
4788
|
MasterArn: smithy_client_1.expectString,
|
|
4783
4789
|
MemorySize: smithy_client_1.expectInt32,
|
|
4784
4790
|
PackageType: smithy_client_1.expectString,
|
|
@@ -4874,6 +4880,7 @@ const de_UpdateFunctionConfigurationCommand = async (output, context) => {
|
|
|
4874
4880
|
LastUpdateStatusReason: smithy_client_1.expectString,
|
|
4875
4881
|
LastUpdateStatusReasonCode: smithy_client_1.expectString,
|
|
4876
4882
|
Layers: smithy_client_1._json,
|
|
4883
|
+
LoggingConfig: smithy_client_1._json,
|
|
4877
4884
|
MasterArn: smithy_client_1.expectString,
|
|
4878
4885
|
MemorySize: smithy_client_1.expectInt32,
|
|
4879
4886
|
PackageType: smithy_client_1.expectString,
|
|
@@ -107,6 +107,14 @@ export const FunctionUrlAuthType = {
|
|
|
107
107
|
AWS_IAM: "AWS_IAM",
|
|
108
108
|
NONE: "NONE",
|
|
109
109
|
};
|
|
110
|
+
export const ApplicationLogLevel = {
|
|
111
|
+
Debug: "DEBUG",
|
|
112
|
+
Error: "ERROR",
|
|
113
|
+
Fatal: "FATAL",
|
|
114
|
+
Info: "INFO",
|
|
115
|
+
Trace: "TRACE",
|
|
116
|
+
Warn: "WARN",
|
|
117
|
+
};
|
|
110
118
|
export const Architecture = {
|
|
111
119
|
arm64: "arm64",
|
|
112
120
|
x86_64: "x86_64",
|
|
@@ -181,6 +189,15 @@ export class CodeVerificationFailedException extends __BaseException {
|
|
|
181
189
|
this.Message = opts.Message;
|
|
182
190
|
}
|
|
183
191
|
}
|
|
192
|
+
export const LogFormat = {
|
|
193
|
+
Json: "JSON",
|
|
194
|
+
Text: "Text",
|
|
195
|
+
};
|
|
196
|
+
export const SystemLogLevel = {
|
|
197
|
+
Debug: "DEBUG",
|
|
198
|
+
Info: "INFO",
|
|
199
|
+
Warn: "WARN",
|
|
200
|
+
};
|
|
184
201
|
export const PackageType = {
|
|
185
202
|
Image: "Image",
|
|
186
203
|
Zip: "Zip",
|
|
@@ -176,6 +176,7 @@ export const se_CreateFunctionCommand = async (input, context) => {
|
|
|
176
176
|
ImageConfig: (_) => _json(_),
|
|
177
177
|
KMSKeyArn: [],
|
|
178
178
|
Layers: (_) => _json(_),
|
|
179
|
+
LoggingConfig: (_) => _json(_),
|
|
179
180
|
MemorySize: [],
|
|
180
181
|
PackageType: [],
|
|
181
182
|
Publish: [],
|
|
@@ -1448,6 +1449,7 @@ export const se_UpdateFunctionConfigurationCommand = async (input, context) => {
|
|
|
1448
1449
|
ImageConfig: (_) => _json(_),
|
|
1449
1450
|
KMSKeyArn: [],
|
|
1450
1451
|
Layers: (_) => _json(_),
|
|
1452
|
+
LoggingConfig: (_) => _json(_),
|
|
1451
1453
|
MemorySize: [],
|
|
1452
1454
|
RevisionId: [],
|
|
1453
1455
|
Role: [],
|
|
@@ -1809,6 +1811,7 @@ export const de_CreateFunctionCommand = async (output, context) => {
|
|
|
1809
1811
|
LastUpdateStatusReason: __expectString,
|
|
1810
1812
|
LastUpdateStatusReasonCode: __expectString,
|
|
1811
1813
|
Layers: _json,
|
|
1814
|
+
LoggingConfig: _json,
|
|
1812
1815
|
MasterArn: __expectString,
|
|
1813
1816
|
MemorySize: __expectInt32,
|
|
1814
1817
|
PackageType: __expectString,
|
|
@@ -2699,6 +2702,7 @@ export const de_GetFunctionConfigurationCommand = async (output, context) => {
|
|
|
2699
2702
|
LastUpdateStatusReason: __expectString,
|
|
2700
2703
|
LastUpdateStatusReasonCode: __expectString,
|
|
2701
2704
|
Layers: _json,
|
|
2705
|
+
LoggingConfig: _json,
|
|
2702
2706
|
MasterArn: __expectString,
|
|
2703
2707
|
MemorySize: __expectInt32,
|
|
2704
2708
|
PackageType: __expectString,
|
|
@@ -3991,6 +3995,7 @@ export const de_PublishVersionCommand = async (output, context) => {
|
|
|
3991
3995
|
LastUpdateStatusReason: __expectString,
|
|
3992
3996
|
LastUpdateStatusReasonCode: __expectString,
|
|
3993
3997
|
Layers: _json,
|
|
3998
|
+
LoggingConfig: _json,
|
|
3994
3999
|
MasterArn: __expectString,
|
|
3995
4000
|
MemorySize: __expectInt32,
|
|
3996
4001
|
PackageType: __expectString,
|
|
@@ -4646,6 +4651,7 @@ export const de_UpdateFunctionCodeCommand = async (output, context) => {
|
|
|
4646
4651
|
LastUpdateStatusReason: __expectString,
|
|
4647
4652
|
LastUpdateStatusReasonCode: __expectString,
|
|
4648
4653
|
Layers: _json,
|
|
4654
|
+
LoggingConfig: _json,
|
|
4649
4655
|
MasterArn: __expectString,
|
|
4650
4656
|
MemorySize: __expectInt32,
|
|
4651
4657
|
PackageType: __expectString,
|
|
@@ -4740,6 +4746,7 @@ export const de_UpdateFunctionConfigurationCommand = async (output, context) =>
|
|
|
4740
4746
|
LastUpdateStatusReason: __expectString,
|
|
4741
4747
|
LastUpdateStatusReasonCode: __expectString,
|
|
4742
4748
|
Layers: _json,
|
|
4749
|
+
LoggingConfig: _json,
|
|
4743
4750
|
MasterArn: __expectString,
|
|
4744
4751
|
MemorySize: __expectInt32,
|
|
4745
4752
|
PackageType: __expectString,
|
|
@@ -136,6 +136,12 @@ export interface CreateFunctionCommandOutput extends FunctionConfiguration, __Me
|
|
|
136
136
|
* SnapStart: { // SnapStart
|
|
137
137
|
* ApplyOn: "PublishedVersions" || "None",
|
|
138
138
|
* },
|
|
139
|
+
* LoggingConfig: { // LoggingConfig
|
|
140
|
+
* LogFormat: "JSON" || "Text",
|
|
141
|
+
* ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
142
|
+
* SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
143
|
+
* LogGroup: "STRING_VALUE",
|
|
144
|
+
* },
|
|
139
145
|
* };
|
|
140
146
|
* const command = new CreateFunctionCommand(input);
|
|
141
147
|
* const response = await client.send(command);
|
|
@@ -235,6 +241,12 @@ export interface CreateFunctionCommandOutput extends FunctionConfiguration, __Me
|
|
|
235
241
|
* // Message: "STRING_VALUE",
|
|
236
242
|
* // },
|
|
237
243
|
* // },
|
|
244
|
+
* // LoggingConfig: { // LoggingConfig
|
|
245
|
+
* // LogFormat: "JSON" || "Text",
|
|
246
|
+
* // ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
247
|
+
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
248
|
+
* // LogGroup: "STRING_VALUE",
|
|
249
|
+
* // },
|
|
238
250
|
* // };
|
|
239
251
|
*
|
|
240
252
|
* ```
|
|
@@ -135,6 +135,12 @@ export interface GetFunctionCommandOutput extends GetFunctionResponse, __Metadat
|
|
|
135
135
|
* // Message: "STRING_VALUE",
|
|
136
136
|
* // },
|
|
137
137
|
* // },
|
|
138
|
+
* // LoggingConfig: { // LoggingConfig
|
|
139
|
+
* // LogFormat: "JSON" || "Text",
|
|
140
|
+
* // ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
141
|
+
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
142
|
+
* // LogGroup: "STRING_VALUE",
|
|
143
|
+
* // },
|
|
138
144
|
* // },
|
|
139
145
|
* // Code: { // FunctionCodeLocation
|
|
140
146
|
* // RepositoryType: "STRING_VALUE",
|
|
@@ -134,6 +134,12 @@ export interface GetFunctionConfigurationCommandOutput extends FunctionConfigura
|
|
|
134
134
|
* // Message: "STRING_VALUE",
|
|
135
135
|
* // },
|
|
136
136
|
* // },
|
|
137
|
+
* // LoggingConfig: { // LoggingConfig
|
|
138
|
+
* // LogFormat: "JSON" || "Text",
|
|
139
|
+
* // ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
140
|
+
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
141
|
+
* // LogGroup: "STRING_VALUE",
|
|
142
|
+
* // },
|
|
137
143
|
* // };
|
|
138
144
|
*
|
|
139
145
|
* ```
|
|
@@ -30,10 +30,6 @@ export interface InvokeAsyncCommandOutput extends InvokeAsyncResponse, __Metadat
|
|
|
30
30
|
* <p>For asynchronous function invocation, use <a>Invoke</a>.</p>
|
|
31
31
|
* </important>
|
|
32
32
|
* <p>Invokes a function asynchronously.</p>
|
|
33
|
-
* <note>
|
|
34
|
-
* <p>If you do use the InvokeAsync action, note that it doesn't support the use of X-Ray active tracing. Trace ID is not
|
|
35
|
-
* propagated to the function, even if X-Ray active tracing is turned on.</p>
|
|
36
|
-
* </note>
|
|
37
33
|
* @example
|
|
38
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
39
35
|
* ```javascript
|
|
@@ -145,6 +145,12 @@ export interface ListFunctionsCommandOutput extends ListFunctionsResponse, __Met
|
|
|
145
145
|
* // Message: "STRING_VALUE",
|
|
146
146
|
* // },
|
|
147
147
|
* // },
|
|
148
|
+
* // LoggingConfig: { // LoggingConfig
|
|
149
|
+
* // LogFormat: "JSON" || "Text",
|
|
150
|
+
* // ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
151
|
+
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
152
|
+
* // LogGroup: "STRING_VALUE",
|
|
153
|
+
* // },
|
|
148
154
|
* // },
|
|
149
155
|
* // ],
|
|
150
156
|
* // };
|
|
@@ -137,6 +137,12 @@ export interface ListVersionsByFunctionCommandOutput extends ListVersionsByFunct
|
|
|
137
137
|
* // Message: "STRING_VALUE",
|
|
138
138
|
* // },
|
|
139
139
|
* // },
|
|
140
|
+
* // LoggingConfig: { // LoggingConfig
|
|
141
|
+
* // LogFormat: "JSON" || "Text",
|
|
142
|
+
* // ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
143
|
+
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
144
|
+
* // LogGroup: "STRING_VALUE",
|
|
145
|
+
* // },
|
|
140
146
|
* // },
|
|
141
147
|
* // ],
|
|
142
148
|
* // };
|
|
@@ -140,6 +140,12 @@ export interface PublishVersionCommandOutput extends FunctionConfiguration, __Me
|
|
|
140
140
|
* // Message: "STRING_VALUE",
|
|
141
141
|
* // },
|
|
142
142
|
* // },
|
|
143
|
+
* // LoggingConfig: { // LoggingConfig
|
|
144
|
+
* // LogFormat: "JSON" || "Text",
|
|
145
|
+
* // ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
146
|
+
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
147
|
+
* // LogGroup: "STRING_VALUE",
|
|
148
|
+
* // },
|
|
143
149
|
* // };
|
|
144
150
|
*
|
|
145
151
|
* ```
|
|
@@ -157,6 +157,12 @@ export interface UpdateFunctionCodeCommandOutput extends FunctionConfiguration,
|
|
|
157
157
|
* // Message: "STRING_VALUE",
|
|
158
158
|
* // },
|
|
159
159
|
* // },
|
|
160
|
+
* // LoggingConfig: { // LoggingConfig
|
|
161
|
+
* // LogFormat: "JSON" || "Text",
|
|
162
|
+
* // ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
163
|
+
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
164
|
+
* // LogGroup: "STRING_VALUE",
|
|
165
|
+
* // },
|
|
160
166
|
* // };
|
|
161
167
|
*
|
|
162
168
|
* ```
|
|
@@ -95,6 +95,12 @@ export interface UpdateFunctionConfigurationCommandOutput extends FunctionConfig
|
|
|
95
95
|
* SnapStart: { // SnapStart
|
|
96
96
|
* ApplyOn: "PublishedVersions" || "None",
|
|
97
97
|
* },
|
|
98
|
+
* LoggingConfig: { // LoggingConfig
|
|
99
|
+
* LogFormat: "JSON" || "Text",
|
|
100
|
+
* ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
101
|
+
* SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
102
|
+
* LogGroup: "STRING_VALUE",
|
|
103
|
+
* },
|
|
98
104
|
* };
|
|
99
105
|
* const command = new UpdateFunctionConfigurationCommand(input);
|
|
100
106
|
* const response = await client.send(command);
|
|
@@ -194,6 +200,12 @@ export interface UpdateFunctionConfigurationCommandOutput extends FunctionConfig
|
|
|
194
200
|
* // Message: "STRING_VALUE",
|
|
195
201
|
* // },
|
|
196
202
|
* // },
|
|
203
|
+
* // LoggingConfig: { // LoggingConfig
|
|
204
|
+
* // LogFormat: "JSON" || "Text",
|
|
205
|
+
* // ApplicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
206
|
+
* // SystemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
207
|
+
* // LogGroup: "STRING_VALUE",
|
|
208
|
+
* // },
|
|
197
209
|
* // };
|
|
198
210
|
*
|
|
199
211
|
* ```
|
|
@@ -423,6 +423,22 @@ export interface AmazonManagedKafkaEventSourceConfig {
|
|
|
423
423
|
*/
|
|
424
424
|
ConsumerGroupId?: string;
|
|
425
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* @public
|
|
428
|
+
* @enum
|
|
429
|
+
*/
|
|
430
|
+
export declare const ApplicationLogLevel: {
|
|
431
|
+
readonly Debug: "DEBUG";
|
|
432
|
+
readonly Error: "ERROR";
|
|
433
|
+
readonly Fatal: "FATAL";
|
|
434
|
+
readonly Info: "INFO";
|
|
435
|
+
readonly Trace: "TRACE";
|
|
436
|
+
readonly Warn: "WARN";
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* @public
|
|
440
|
+
*/
|
|
441
|
+
export type ApplicationLogLevel = (typeof ApplicationLogLevel)[keyof typeof ApplicationLogLevel];
|
|
426
442
|
/**
|
|
427
443
|
* @public
|
|
428
444
|
* @enum
|
|
@@ -1312,8 +1328,8 @@ export interface Environment {
|
|
|
1312
1328
|
}
|
|
1313
1329
|
/**
|
|
1314
1330
|
* @public
|
|
1315
|
-
* <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any
|
|
1316
|
-
*
|
|
1331
|
+
* <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but it can be any
|
|
1332
|
+
* whole number between 512 and 10,240 MB.</p>
|
|
1317
1333
|
*/
|
|
1318
1334
|
export interface EphemeralStorage {
|
|
1319
1335
|
/**
|
|
@@ -1362,6 +1378,61 @@ export interface ImageConfig {
|
|
|
1362
1378
|
*/
|
|
1363
1379
|
WorkingDirectory?: string;
|
|
1364
1380
|
}
|
|
1381
|
+
/**
|
|
1382
|
+
* @public
|
|
1383
|
+
* @enum
|
|
1384
|
+
*/
|
|
1385
|
+
export declare const LogFormat: {
|
|
1386
|
+
readonly Json: "JSON";
|
|
1387
|
+
readonly Text: "Text";
|
|
1388
|
+
};
|
|
1389
|
+
/**
|
|
1390
|
+
* @public
|
|
1391
|
+
*/
|
|
1392
|
+
export type LogFormat = (typeof LogFormat)[keyof typeof LogFormat];
|
|
1393
|
+
/**
|
|
1394
|
+
* @public
|
|
1395
|
+
* @enum
|
|
1396
|
+
*/
|
|
1397
|
+
export declare const SystemLogLevel: {
|
|
1398
|
+
readonly Debug: "DEBUG";
|
|
1399
|
+
readonly Info: "INFO";
|
|
1400
|
+
readonly Warn: "WARN";
|
|
1401
|
+
};
|
|
1402
|
+
/**
|
|
1403
|
+
* @public
|
|
1404
|
+
*/
|
|
1405
|
+
export type SystemLogLevel = (typeof SystemLogLevel)[keyof typeof SystemLogLevel];
|
|
1406
|
+
/**
|
|
1407
|
+
* @public
|
|
1408
|
+
* <p>The function's Amazon CloudWatch Logs configuration settings.</p>
|
|
1409
|
+
*/
|
|
1410
|
+
export interface LoggingConfig {
|
|
1411
|
+
/**
|
|
1412
|
+
* @public
|
|
1413
|
+
* <p>The format in which Lambda sends your function's application and system logs to CloudWatch. Select between
|
|
1414
|
+
* plain text and structured JSON.</p>
|
|
1415
|
+
*/
|
|
1416
|
+
LogFormat?: LogFormat;
|
|
1417
|
+
/**
|
|
1418
|
+
* @public
|
|
1419
|
+
* <p>Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the
|
|
1420
|
+
* selected level and lower.</p>
|
|
1421
|
+
*/
|
|
1422
|
+
ApplicationLogLevel?: ApplicationLogLevel;
|
|
1423
|
+
/**
|
|
1424
|
+
* @public
|
|
1425
|
+
* <p>Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the
|
|
1426
|
+
* selected level and lower.</p>
|
|
1427
|
+
*/
|
|
1428
|
+
SystemLogLevel?: SystemLogLevel;
|
|
1429
|
+
/**
|
|
1430
|
+
* @public
|
|
1431
|
+
* <p>The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default
|
|
1432
|
+
* log group named <code>/aws/lambda/<function name></code>. To use a different log group, enter an existing log group or enter a new log group name.</p>
|
|
1433
|
+
*/
|
|
1434
|
+
LogGroup?: string;
|
|
1435
|
+
}
|
|
1365
1436
|
/**
|
|
1366
1437
|
* @public
|
|
1367
1438
|
* @enum
|
|
@@ -1642,7 +1713,7 @@ export interface CreateFunctionRequest {
|
|
|
1642
1713
|
/**
|
|
1643
1714
|
* @public
|
|
1644
1715
|
* <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole
|
|
1645
|
-
* number between 512 and 10,240 MB
|
|
1716
|
+
* number between 512 and 10,240 MB.</p>
|
|
1646
1717
|
*/
|
|
1647
1718
|
EphemeralStorage?: EphemeralStorage;
|
|
1648
1719
|
/**
|
|
@@ -1650,6 +1721,11 @@ export interface CreateFunctionRequest {
|
|
|
1650
1721
|
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">SnapStart</a> setting.</p>
|
|
1651
1722
|
*/
|
|
1652
1723
|
SnapStart?: SnapStart;
|
|
1724
|
+
/**
|
|
1725
|
+
* @public
|
|
1726
|
+
* <p>The function's Amazon CloudWatch Logs configuration settings.</p>
|
|
1727
|
+
*/
|
|
1728
|
+
LoggingConfig?: LoggingConfig;
|
|
1653
1729
|
}
|
|
1654
1730
|
/**
|
|
1655
1731
|
* @public
|
|
@@ -2105,8 +2181,8 @@ export interface FunctionConfiguration {
|
|
|
2105
2181
|
Architectures?: Architecture[];
|
|
2106
2182
|
/**
|
|
2107
2183
|
* @public
|
|
2108
|
-
* <p>The size of the function
|
|
2109
|
-
*
|
|
2184
|
+
* <p>The size of the function’s <code>/tmp</code> directory in MB. The default value is 512, but it can be any
|
|
2185
|
+
* whole number between 512 and 10,240 MB.</p>
|
|
2110
2186
|
*/
|
|
2111
2187
|
EphemeralStorage?: EphemeralStorage;
|
|
2112
2188
|
/**
|
|
@@ -2120,6 +2196,11 @@ export interface FunctionConfiguration {
|
|
|
2120
2196
|
* <p>The ARN of the runtime and any errors that occured.</p>
|
|
2121
2197
|
*/
|
|
2122
2198
|
RuntimeVersionConfig?: RuntimeVersionConfig;
|
|
2199
|
+
/**
|
|
2200
|
+
* @public
|
|
2201
|
+
* <p>The function's Amazon CloudWatch Logs configuration settings.</p>
|
|
2202
|
+
*/
|
|
2203
|
+
LoggingConfig?: LoggingConfig;
|
|
2123
2204
|
}
|
|
2124
2205
|
/**
|
|
2125
2206
|
* @public
|
|
@@ -5996,7 +6077,7 @@ export interface UpdateFunctionConfigurationRequest {
|
|
|
5996
6077
|
/**
|
|
5997
6078
|
* @public
|
|
5998
6079
|
* <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole
|
|
5999
|
-
* number between 512 and 10,240 MB
|
|
6080
|
+
* number between 512 and 10,240 MB.</p>
|
|
6000
6081
|
*/
|
|
6001
6082
|
EphemeralStorage?: EphemeralStorage;
|
|
6002
6083
|
/**
|
|
@@ -6004,6 +6085,11 @@ export interface UpdateFunctionConfigurationRequest {
|
|
|
6004
6085
|
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">SnapStart</a> setting.</p>
|
|
6005
6086
|
*/
|
|
6006
6087
|
SnapStart?: SnapStart;
|
|
6088
|
+
/**
|
|
6089
|
+
* @public
|
|
6090
|
+
* <p>The function's Amazon CloudWatch Logs configuration settings.</p>
|
|
6091
|
+
*/
|
|
6092
|
+
LoggingConfig?: LoggingConfig;
|
|
6007
6093
|
}
|
|
6008
6094
|
/**
|
|
6009
6095
|
* @public
|
|
@@ -132,6 +132,16 @@ export interface AllowedPublishers {
|
|
|
132
132
|
export interface AmazonManagedKafkaEventSourceConfig {
|
|
133
133
|
ConsumerGroupId?: string;
|
|
134
134
|
}
|
|
135
|
+
export declare const ApplicationLogLevel: {
|
|
136
|
+
readonly Debug: "DEBUG";
|
|
137
|
+
readonly Error: "ERROR";
|
|
138
|
+
readonly Fatal: "FATAL";
|
|
139
|
+
readonly Info: "INFO";
|
|
140
|
+
readonly Trace: "TRACE";
|
|
141
|
+
readonly Warn: "WARN";
|
|
142
|
+
};
|
|
143
|
+
export type ApplicationLogLevel =
|
|
144
|
+
(typeof ApplicationLogLevel)[keyof typeof ApplicationLogLevel];
|
|
135
145
|
export declare const Architecture: {
|
|
136
146
|
readonly arm64: "arm64";
|
|
137
147
|
readonly x86_64: "x86_64";
|
|
@@ -347,6 +357,24 @@ export interface ImageConfig {
|
|
|
347
357
|
Command?: string[];
|
|
348
358
|
WorkingDirectory?: string;
|
|
349
359
|
}
|
|
360
|
+
export declare const LogFormat: {
|
|
361
|
+
readonly Json: "JSON";
|
|
362
|
+
readonly Text: "Text";
|
|
363
|
+
};
|
|
364
|
+
export type LogFormat = (typeof LogFormat)[keyof typeof LogFormat];
|
|
365
|
+
export declare const SystemLogLevel: {
|
|
366
|
+
readonly Debug: "DEBUG";
|
|
367
|
+
readonly Info: "INFO";
|
|
368
|
+
readonly Warn: "WARN";
|
|
369
|
+
};
|
|
370
|
+
export type SystemLogLevel =
|
|
371
|
+
(typeof SystemLogLevel)[keyof typeof SystemLogLevel];
|
|
372
|
+
export interface LoggingConfig {
|
|
373
|
+
LogFormat?: LogFormat;
|
|
374
|
+
ApplicationLogLevel?: ApplicationLogLevel;
|
|
375
|
+
SystemLogLevel?: SystemLogLevel;
|
|
376
|
+
LogGroup?: string;
|
|
377
|
+
}
|
|
350
378
|
export declare const PackageType: {
|
|
351
379
|
readonly Image: "Image";
|
|
352
380
|
readonly Zip: "Zip";
|
|
@@ -437,6 +465,7 @@ export interface CreateFunctionRequest {
|
|
|
437
465
|
Architectures?: Architecture[];
|
|
438
466
|
EphemeralStorage?: EphemeralStorage;
|
|
439
467
|
SnapStart?: SnapStart;
|
|
468
|
+
LoggingConfig?: LoggingConfig;
|
|
440
469
|
}
|
|
441
470
|
export interface EnvironmentError {
|
|
442
471
|
ErrorCode?: string;
|
|
@@ -590,6 +619,7 @@ export interface FunctionConfiguration {
|
|
|
590
619
|
EphemeralStorage?: EphemeralStorage;
|
|
591
620
|
SnapStart?: SnapStartResponse;
|
|
592
621
|
RuntimeVersionConfig?: RuntimeVersionConfig;
|
|
622
|
+
LoggingConfig?: LoggingConfig;
|
|
593
623
|
}
|
|
594
624
|
export declare class InvalidCodeSignatureException extends __BaseException {
|
|
595
625
|
readonly name: "InvalidCodeSignatureException";
|
|
@@ -1462,6 +1492,7 @@ export interface UpdateFunctionConfigurationRequest {
|
|
|
1462
1492
|
ImageConfig?: ImageConfig;
|
|
1463
1493
|
EphemeralStorage?: EphemeralStorage;
|
|
1464
1494
|
SnapStart?: SnapStart;
|
|
1495
|
+
LoggingConfig?: LoggingConfig;
|
|
1465
1496
|
}
|
|
1466
1497
|
export interface UpdateFunctionEventInvokeConfigRequest {
|
|
1467
1498
|
FunctionName: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lambda",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.453.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|