@aws-sdk/client-lambda 3.279.0 → 3.280.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/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +14 -5
- package/dist-cjs/protocols/Aws_restJson1.js +38 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +38 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +64 -17
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +16 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const q = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateFunctionUrlConfigResponseFilterSensitiveLog = exports.UpdateFunctionUrlConfigRequestFilterSensitiveLog = exports.UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.UpdateEventSourceMappingRequestFilterSensitiveLog = exports.UpdateCodeSigningConfigResponseFilterSensitiveLog = exports.UpdateCodeSigningConfigRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.KMSDisabledException = exports.KMSAccessDeniedException = 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.UpdateRuntimeOn = exports.ProvisionedConcurrencyConfigNotFoundException = exports.ProvisionedConcurrencyStatusEnum = exports.ResourceInUseException = exports.InvalidCodeSignatureException = exports.StateReasonCode = exports.State = exports.SnapStartOptimizationStatus = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.TracingMode = exports.SnapStartApplyOn = exports.Runtime = exports.PackageType = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourcePosition = exports.SourceAccessType = exports.EndPointType = exports.FunctionResponseType = exports.FullDocument = exports.CodeSigningPolicy = exports.Architecture = exports.FunctionUrlAuthType = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = void 0;
|
|
4
|
+
exports.ImageConfigErrorFilterSensitiveLog = exports.EnvironmentResponseFilterSensitiveLog = exports.EnvironmentErrorFilterSensitiveLog = exports.CreateFunctionRequestFilterSensitiveLog = exports.VpcConfigFilterSensitiveLog = exports.TracingConfigFilterSensitiveLog = exports.SnapStartFilterSensitiveLog = exports.ImageConfigFilterSensitiveLog = exports.FileSystemConfigFilterSensitiveLog = exports.EphemeralStorageFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.DeadLetterConfigFilterSensitiveLog = exports.FunctionCodeFilterSensitiveLog = exports.EventSourceMappingConfigurationFilterSensitiveLog = exports.CreateEventSourceMappingRequestFilterSensitiveLog = exports.SourceAccessConfigurationFilterSensitiveLog = exports.SelfManagedKafkaEventSourceConfigFilterSensitiveLog = exports.SelfManagedEventSourceFilterSensitiveLog = exports.ScalingConfigFilterSensitiveLog = exports.FilterCriteriaFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.DocumentDBEventSourceConfigFilterSensitiveLog = exports.DestinationConfigFilterSensitiveLog = exports.OnSuccessFilterSensitiveLog = exports.OnFailureFilterSensitiveLog = exports.CreateCodeSigningConfigResponseFilterSensitiveLog = exports.CodeSigningConfigFilterSensitiveLog = exports.CreateCodeSigningConfigRequestFilterSensitiveLog = exports.CodeSigningPoliciesFilterSensitiveLog = exports.CreateAliasRequestFilterSensitiveLog = exports.AmazonManagedKafkaEventSourceConfigFilterSensitiveLog = exports.AllowedPublishersFilterSensitiveLog = exports.AliasConfigurationFilterSensitiveLog = exports.AliasRoutingConfigurationFilterSensitiveLog = exports.AddPermissionResponseFilterSensitiveLog = exports.AddPermissionRequestFilterSensitiveLog = exports.AddLayerVersionPermissionResponseFilterSensitiveLog = exports.AddLayerVersionPermissionRequestFilterSensitiveLog = exports.AccountUsageFilterSensitiveLog = exports.AccountLimitFilterSensitiveLog = exports.FunctionVersion = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.SnapStartTimeoutException = exports.SnapStartNotReadyException = exports.SnapStartException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.KMSNotFoundException = exports.KMSInvalidStateException = void 0;
|
|
5
|
+
exports.GetProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.GetPolicyResponseFilterSensitiveLog = exports.GetPolicyRequestFilterSensitiveLog = exports.GetLayerVersionPolicyResponseFilterSensitiveLog = exports.GetLayerVersionPolicyRequestFilterSensitiveLog = exports.GetLayerVersionByArnRequestFilterSensitiveLog = exports.GetLayerVersionResponseFilterSensitiveLog = exports.LayerVersionContentOutputFilterSensitiveLog = exports.GetLayerVersionRequestFilterSensitiveLog = exports.GetFunctionUrlConfigResponseFilterSensitiveLog = exports.GetFunctionUrlConfigRequestFilterSensitiveLog = exports.GetFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.FunctionEventInvokeConfigFilterSensitiveLog = exports.GetFunctionConfigurationRequestFilterSensitiveLog = exports.GetFunctionConcurrencyResponseFilterSensitiveLog = exports.GetFunctionConcurrencyRequestFilterSensitiveLog = exports.GetFunctionCodeSigningConfigResponseFilterSensitiveLog = exports.GetFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.GetFunctionResponseFilterSensitiveLog = exports.ConcurrencyFilterSensitiveLog = exports.FunctionCodeLocationFilterSensitiveLog = exports.GetFunctionRequestFilterSensitiveLog = exports.GetEventSourceMappingRequestFilterSensitiveLog = exports.GetCodeSigningConfigResponseFilterSensitiveLog = exports.GetCodeSigningConfigRequestFilterSensitiveLog = exports.GetAliasRequestFilterSensitiveLog = exports.GetAccountSettingsResponseFilterSensitiveLog = exports.GetAccountSettingsRequestFilterSensitiveLog = exports.DeleteProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.DeleteLayerVersionRequestFilterSensitiveLog = exports.DeleteFunctionUrlConfigRequestFilterSensitiveLog = exports.DeleteFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.DeleteFunctionConcurrencyRequestFilterSensitiveLog = exports.DeleteFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.DeleteFunctionRequestFilterSensitiveLog = exports.DeleteEventSourceMappingRequestFilterSensitiveLog = exports.DeleteCodeSigningConfigResponseFilterSensitiveLog = exports.DeleteCodeSigningConfigRequestFilterSensitiveLog = exports.DeleteAliasRequestFilterSensitiveLog = exports.CreateFunctionUrlConfigResponseFilterSensitiveLog = exports.CreateFunctionUrlConfigRequestFilterSensitiveLog = exports.CorsFilterSensitiveLog = exports.FunctionConfigurationFilterSensitiveLog = exports.VpcConfigResponseFilterSensitiveLog = exports.TracingConfigResponseFilterSensitiveLog = exports.SnapStartResponseFilterSensitiveLog = exports.RuntimeVersionConfigFilterSensitiveLog = exports.RuntimeVersionErrorFilterSensitiveLog = exports.LayerFilterSensitiveLog = exports.ImageConfigResponseFilterSensitiveLog = void 0;
|
|
6
|
+
exports.TagResourceRequestFilterSensitiveLog = exports.RemovePermissionRequestFilterSensitiveLog = exports.RemoveLayerVersionPermissionRequestFilterSensitiveLog = exports.PutRuntimeManagementConfigResponseFilterSensitiveLog = exports.PutRuntimeManagementConfigRequestFilterSensitiveLog = exports.PutProvisionedConcurrencyConfigResponseFilterSensitiveLog = exports.PutProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.PutFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.PutFunctionConcurrencyRequestFilterSensitiveLog = exports.PutFunctionCodeSigningConfigResponseFilterSensitiveLog = exports.PutFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.PublishVersionRequestFilterSensitiveLog = exports.PublishLayerVersionResponseFilterSensitiveLog = exports.PublishLayerVersionRequestFilterSensitiveLog = exports.LayerVersionContentInputFilterSensitiveLog = exports.ListVersionsByFunctionResponseFilterSensitiveLog = exports.ListVersionsByFunctionRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListProvisionedConcurrencyConfigsResponseFilterSensitiveLog = exports.ProvisionedConcurrencyConfigListItemFilterSensitiveLog = exports.ListProvisionedConcurrencyConfigsRequestFilterSensitiveLog = exports.ListLayerVersionsResponseFilterSensitiveLog = exports.ListLayerVersionsRequestFilterSensitiveLog = exports.ListLayersResponseFilterSensitiveLog = exports.LayersListItemFilterSensitiveLog = exports.LayerVersionsListItemFilterSensitiveLog = exports.ListLayersRequestFilterSensitiveLog = exports.ListFunctionUrlConfigsResponseFilterSensitiveLog = exports.FunctionUrlConfigFilterSensitiveLog = exports.ListFunctionUrlConfigsRequestFilterSensitiveLog = exports.ListFunctionsByCodeSigningConfigResponseFilterSensitiveLog = exports.ListFunctionsByCodeSigningConfigRequestFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.ListFunctionsRequestFilterSensitiveLog = exports.ListFunctionEventInvokeConfigsResponseFilterSensitiveLog = exports.ListFunctionEventInvokeConfigsRequestFilterSensitiveLog = exports.ListEventSourceMappingsResponseFilterSensitiveLog = exports.ListEventSourceMappingsRequestFilterSensitiveLog = exports.ListCodeSigningConfigsResponseFilterSensitiveLog = exports.ListCodeSigningConfigsRequestFilterSensitiveLog = exports.ListAliasesResponseFilterSensitiveLog = exports.ListAliasesRequestFilterSensitiveLog = exports.InvokeAsyncResponseFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = exports.GetRuntimeManagementConfigResponseFilterSensitiveLog = exports.GetRuntimeManagementConfigRequestFilterSensitiveLog = exports.GetProvisionedConcurrencyConfigResponseFilterSensitiveLog = void 0;
|
|
7
|
+
exports.UpdateFunctionUrlConfigResponseFilterSensitiveLog = exports.UpdateFunctionUrlConfigRequestFilterSensitiveLog = exports.UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.UpdateEventSourceMappingRequestFilterSensitiveLog = exports.UpdateCodeSigningConfigResponseFilterSensitiveLog = exports.UpdateCodeSigningConfigRequestFilterSensitiveLog = exports.UpdateAliasRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const LambdaServiceException_1 = require("./LambdaServiceException");
|
|
10
10
|
class InvalidParameterValueException extends LambdaServiceException_1.LambdaServiceException {
|
|
@@ -133,6 +133,11 @@ var CodeSigningPolicy;
|
|
|
133
133
|
CodeSigningPolicy["Enforce"] = "Enforce";
|
|
134
134
|
CodeSigningPolicy["Warn"] = "Warn";
|
|
135
135
|
})(CodeSigningPolicy = exports.CodeSigningPolicy || (exports.CodeSigningPolicy = {}));
|
|
136
|
+
var FullDocument;
|
|
137
|
+
(function (FullDocument) {
|
|
138
|
+
FullDocument["Default"] = "Default";
|
|
139
|
+
FullDocument["UpdateLookup"] = "UpdateLookup";
|
|
140
|
+
})(FullDocument = exports.FullDocument || (exports.FullDocument = {}));
|
|
136
141
|
var FunctionResponseType;
|
|
137
142
|
(function (FunctionResponseType) {
|
|
138
143
|
FunctionResponseType["ReportBatchItemFailures"] = "ReportBatchItemFailures";
|
|
@@ -817,6 +822,10 @@ const DestinationConfigFilterSensitiveLog = (obj) => ({
|
|
|
817
822
|
...obj,
|
|
818
823
|
});
|
|
819
824
|
exports.DestinationConfigFilterSensitiveLog = DestinationConfigFilterSensitiveLog;
|
|
825
|
+
const DocumentDBEventSourceConfigFilterSensitiveLog = (obj) => ({
|
|
826
|
+
...obj,
|
|
827
|
+
});
|
|
828
|
+
exports.DocumentDBEventSourceConfigFilterSensitiveLog = DocumentDBEventSourceConfigFilterSensitiveLog;
|
|
820
829
|
const FilterFilterSensitiveLog = (obj) => ({
|
|
821
830
|
...obj,
|
|
822
831
|
});
|
|
@@ -144,6 +144,9 @@ const serializeAws_restJson1CreateEventSourceMappingCommand = async (input, cont
|
|
|
144
144
|
...(input.DestinationConfig != null && {
|
|
145
145
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
146
146
|
}),
|
|
147
|
+
...(input.DocumentDBEventSourceConfig != null && {
|
|
148
|
+
DocumentDBEventSourceConfig: serializeAws_restJson1DocumentDBEventSourceConfig(input.DocumentDBEventSourceConfig, context),
|
|
149
|
+
}),
|
|
147
150
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
148
151
|
...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
|
|
149
152
|
...(input.FilterCriteria != null && {
|
|
@@ -1465,6 +1468,9 @@ const serializeAws_restJson1UpdateEventSourceMappingCommand = async (input, cont
|
|
|
1465
1468
|
...(input.DestinationConfig != null && {
|
|
1466
1469
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
1467
1470
|
}),
|
|
1471
|
+
...(input.DocumentDBEventSourceConfig != null && {
|
|
1472
|
+
DocumentDBEventSourceConfig: serializeAws_restJson1DocumentDBEventSourceConfig(input.DocumentDBEventSourceConfig, context),
|
|
1473
|
+
}),
|
|
1468
1474
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1469
1475
|
...(input.FilterCriteria != null && {
|
|
1470
1476
|
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
@@ -1860,6 +1866,9 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
|
|
|
1860
1866
|
if (data.DestinationConfig != null) {
|
|
1861
1867
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
1862
1868
|
}
|
|
1869
|
+
if (data.DocumentDBEventSourceConfig != null) {
|
|
1870
|
+
contents.DocumentDBEventSourceConfig = deserializeAws_restJson1DocumentDBEventSourceConfig(data.DocumentDBEventSourceConfig, context);
|
|
1871
|
+
}
|
|
1863
1872
|
if (data.EventSourceArn != null) {
|
|
1864
1873
|
contents.EventSourceArn = (0, smithy_client_1.expectString)(data.EventSourceArn);
|
|
1865
1874
|
}
|
|
@@ -2279,6 +2288,9 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
|
|
|
2279
2288
|
if (data.DestinationConfig != null) {
|
|
2280
2289
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
2281
2290
|
}
|
|
2291
|
+
if (data.DocumentDBEventSourceConfig != null) {
|
|
2292
|
+
contents.DocumentDBEventSourceConfig = deserializeAws_restJson1DocumentDBEventSourceConfig(data.DocumentDBEventSourceConfig, context);
|
|
2293
|
+
}
|
|
2282
2294
|
if (data.EventSourceArn != null) {
|
|
2283
2295
|
contents.EventSourceArn = (0, smithy_client_1.expectString)(data.EventSourceArn);
|
|
2284
2296
|
}
|
|
@@ -2830,6 +2842,9 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
|
|
|
2830
2842
|
if (data.DestinationConfig != null) {
|
|
2831
2843
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
2832
2844
|
}
|
|
2845
|
+
if (data.DocumentDBEventSourceConfig != null) {
|
|
2846
|
+
contents.DocumentDBEventSourceConfig = deserializeAws_restJson1DocumentDBEventSourceConfig(data.DocumentDBEventSourceConfig, context);
|
|
2847
|
+
}
|
|
2833
2848
|
if (data.EventSourceArn != null) {
|
|
2834
2849
|
contents.EventSourceArn = (0, smithy_client_1.expectString)(data.EventSourceArn);
|
|
2835
2850
|
}
|
|
@@ -3622,6 +3637,9 @@ const deserializeAws_restJson1GetRuntimeManagementConfigCommand = async (output,
|
|
|
3622
3637
|
$metadata: deserializeMetadata(output),
|
|
3623
3638
|
});
|
|
3624
3639
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3640
|
+
if (data.FunctionArn != null) {
|
|
3641
|
+
contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
|
|
3642
|
+
}
|
|
3625
3643
|
if (data.RuntimeVersionArn != null) {
|
|
3626
3644
|
contents.RuntimeVersionArn = (0, smithy_client_1.expectString)(data.RuntimeVersionArn);
|
|
3627
3645
|
}
|
|
@@ -5151,6 +5169,9 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
|
|
|
5151
5169
|
if (data.DestinationConfig != null) {
|
|
5152
5170
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
5153
5171
|
}
|
|
5172
|
+
if (data.DocumentDBEventSourceConfig != null) {
|
|
5173
|
+
contents.DocumentDBEventSourceConfig = deserializeAws_restJson1DocumentDBEventSourceConfig(data.DocumentDBEventSourceConfig, context);
|
|
5174
|
+
}
|
|
5154
5175
|
if (data.EventSourceArn != null) {
|
|
5155
5176
|
contents.EventSourceArn = (0, smithy_client_1.expectString)(data.EventSourceArn);
|
|
5156
5177
|
}
|
|
@@ -6358,6 +6379,13 @@ const serializeAws_restJson1DestinationConfig = (input, context) => {
|
|
|
6358
6379
|
...(input.OnSuccess != null && { OnSuccess: serializeAws_restJson1OnSuccess(input.OnSuccess, context) }),
|
|
6359
6380
|
};
|
|
6360
6381
|
};
|
|
6382
|
+
const serializeAws_restJson1DocumentDBEventSourceConfig = (input, context) => {
|
|
6383
|
+
return {
|
|
6384
|
+
...(input.CollectionName != null && { CollectionName: input.CollectionName }),
|
|
6385
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
6386
|
+
...(input.FullDocument != null && { FullDocument: input.FullDocument }),
|
|
6387
|
+
};
|
|
6388
|
+
};
|
|
6361
6389
|
const serializeAws_restJson1EndpointLists = (input, context) => {
|
|
6362
6390
|
return input
|
|
6363
6391
|
.filter((e) => e != null)
|
|
@@ -6752,6 +6780,13 @@ const deserializeAws_restJson1DestinationConfig = (output, context) => {
|
|
|
6752
6780
|
OnSuccess: output.OnSuccess != null ? deserializeAws_restJson1OnSuccess(output.OnSuccess, context) : undefined,
|
|
6753
6781
|
};
|
|
6754
6782
|
};
|
|
6783
|
+
const deserializeAws_restJson1DocumentDBEventSourceConfig = (output, context) => {
|
|
6784
|
+
return {
|
|
6785
|
+
CollectionName: (0, smithy_client_1.expectString)(output.CollectionName),
|
|
6786
|
+
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
6787
|
+
FullDocument: (0, smithy_client_1.expectString)(output.FullDocument),
|
|
6788
|
+
};
|
|
6789
|
+
};
|
|
6755
6790
|
const deserializeAws_restJson1EndpointLists = (output, context) => {
|
|
6756
6791
|
const retVal = (output || [])
|
|
6757
6792
|
.filter((e) => e != null)
|
|
@@ -6808,6 +6843,9 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
|
|
|
6808
6843
|
DestinationConfig: output.DestinationConfig != null
|
|
6809
6844
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
6810
6845
|
: undefined,
|
|
6846
|
+
DocumentDBEventSourceConfig: output.DocumentDBEventSourceConfig != null
|
|
6847
|
+
? deserializeAws_restJson1DocumentDBEventSourceConfig(output.DocumentDBEventSourceConfig, context)
|
|
6848
|
+
: undefined,
|
|
6811
6849
|
EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
|
|
6812
6850
|
FilterCriteria: output.FilterCriteria != null
|
|
6813
6851
|
? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -119,6 +119,11 @@ export var CodeSigningPolicy;
|
|
|
119
119
|
CodeSigningPolicy["Enforce"] = "Enforce";
|
|
120
120
|
CodeSigningPolicy["Warn"] = "Warn";
|
|
121
121
|
})(CodeSigningPolicy || (CodeSigningPolicy = {}));
|
|
122
|
+
export var FullDocument;
|
|
123
|
+
(function (FullDocument) {
|
|
124
|
+
FullDocument["Default"] = "Default";
|
|
125
|
+
FullDocument["UpdateLookup"] = "UpdateLookup";
|
|
126
|
+
})(FullDocument || (FullDocument = {}));
|
|
122
127
|
export var FunctionResponseType;
|
|
123
128
|
(function (FunctionResponseType) {
|
|
124
129
|
FunctionResponseType["ReportBatchItemFailures"] = "ReportBatchItemFailures";
|
|
@@ -755,6 +760,9 @@ export const OnSuccessFilterSensitiveLog = (obj) => ({
|
|
|
755
760
|
export const DestinationConfigFilterSensitiveLog = (obj) => ({
|
|
756
761
|
...obj,
|
|
757
762
|
});
|
|
763
|
+
export const DocumentDBEventSourceConfigFilterSensitiveLog = (obj) => ({
|
|
764
|
+
...obj,
|
|
765
|
+
});
|
|
758
766
|
export const FilterFilterSensitiveLog = (obj) => ({
|
|
759
767
|
...obj,
|
|
760
768
|
});
|
|
@@ -135,6 +135,9 @@ export const serializeAws_restJson1CreateEventSourceMappingCommand = async (inpu
|
|
|
135
135
|
...(input.DestinationConfig != null && {
|
|
136
136
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
137
137
|
}),
|
|
138
|
+
...(input.DocumentDBEventSourceConfig != null && {
|
|
139
|
+
DocumentDBEventSourceConfig: serializeAws_restJson1DocumentDBEventSourceConfig(input.DocumentDBEventSourceConfig, context),
|
|
140
|
+
}),
|
|
138
141
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
139
142
|
...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
|
|
140
143
|
...(input.FilterCriteria != null && {
|
|
@@ -1400,6 +1403,9 @@ export const serializeAws_restJson1UpdateEventSourceMappingCommand = async (inpu
|
|
|
1400
1403
|
...(input.DestinationConfig != null && {
|
|
1401
1404
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
1402
1405
|
}),
|
|
1406
|
+
...(input.DocumentDBEventSourceConfig != null && {
|
|
1407
|
+
DocumentDBEventSourceConfig: serializeAws_restJson1DocumentDBEventSourceConfig(input.DocumentDBEventSourceConfig, context),
|
|
1408
|
+
}),
|
|
1403
1409
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1404
1410
|
...(input.FilterCriteria != null && {
|
|
1405
1411
|
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
@@ -1786,6 +1792,9 @@ export const deserializeAws_restJson1CreateEventSourceMappingCommand = async (ou
|
|
|
1786
1792
|
if (data.DestinationConfig != null) {
|
|
1787
1793
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
1788
1794
|
}
|
|
1795
|
+
if (data.DocumentDBEventSourceConfig != null) {
|
|
1796
|
+
contents.DocumentDBEventSourceConfig = deserializeAws_restJson1DocumentDBEventSourceConfig(data.DocumentDBEventSourceConfig, context);
|
|
1797
|
+
}
|
|
1789
1798
|
if (data.EventSourceArn != null) {
|
|
1790
1799
|
contents.EventSourceArn = __expectString(data.EventSourceArn);
|
|
1791
1800
|
}
|
|
@@ -2200,6 +2209,9 @@ export const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (ou
|
|
|
2200
2209
|
if (data.DestinationConfig != null) {
|
|
2201
2210
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
2202
2211
|
}
|
|
2212
|
+
if (data.DocumentDBEventSourceConfig != null) {
|
|
2213
|
+
contents.DocumentDBEventSourceConfig = deserializeAws_restJson1DocumentDBEventSourceConfig(data.DocumentDBEventSourceConfig, context);
|
|
2214
|
+
}
|
|
2203
2215
|
if (data.EventSourceArn != null) {
|
|
2204
2216
|
contents.EventSourceArn = __expectString(data.EventSourceArn);
|
|
2205
2217
|
}
|
|
@@ -2740,6 +2752,9 @@ export const deserializeAws_restJson1GetEventSourceMappingCommand = async (outpu
|
|
|
2740
2752
|
if (data.DestinationConfig != null) {
|
|
2741
2753
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
2742
2754
|
}
|
|
2755
|
+
if (data.DocumentDBEventSourceConfig != null) {
|
|
2756
|
+
contents.DocumentDBEventSourceConfig = deserializeAws_restJson1DocumentDBEventSourceConfig(data.DocumentDBEventSourceConfig, context);
|
|
2757
|
+
}
|
|
2743
2758
|
if (data.EventSourceArn != null) {
|
|
2744
2759
|
contents.EventSourceArn = __expectString(data.EventSourceArn);
|
|
2745
2760
|
}
|
|
@@ -3520,6 +3535,9 @@ export const deserializeAws_restJson1GetRuntimeManagementConfigCommand = async (
|
|
|
3520
3535
|
$metadata: deserializeMetadata(output),
|
|
3521
3536
|
});
|
|
3522
3537
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3538
|
+
if (data.FunctionArn != null) {
|
|
3539
|
+
contents.FunctionArn = __expectString(data.FunctionArn);
|
|
3540
|
+
}
|
|
3523
3541
|
if (data.RuntimeVersionArn != null) {
|
|
3524
3542
|
contents.RuntimeVersionArn = __expectString(data.RuntimeVersionArn);
|
|
3525
3543
|
}
|
|
@@ -5021,6 +5039,9 @@ export const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (ou
|
|
|
5021
5039
|
if (data.DestinationConfig != null) {
|
|
5022
5040
|
contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
|
|
5023
5041
|
}
|
|
5042
|
+
if (data.DocumentDBEventSourceConfig != null) {
|
|
5043
|
+
contents.DocumentDBEventSourceConfig = deserializeAws_restJson1DocumentDBEventSourceConfig(data.DocumentDBEventSourceConfig, context);
|
|
5044
|
+
}
|
|
5024
5045
|
if (data.EventSourceArn != null) {
|
|
5025
5046
|
contents.EventSourceArn = __expectString(data.EventSourceArn);
|
|
5026
5047
|
}
|
|
@@ -6223,6 +6244,13 @@ const serializeAws_restJson1DestinationConfig = (input, context) => {
|
|
|
6223
6244
|
...(input.OnSuccess != null && { OnSuccess: serializeAws_restJson1OnSuccess(input.OnSuccess, context) }),
|
|
6224
6245
|
};
|
|
6225
6246
|
};
|
|
6247
|
+
const serializeAws_restJson1DocumentDBEventSourceConfig = (input, context) => {
|
|
6248
|
+
return {
|
|
6249
|
+
...(input.CollectionName != null && { CollectionName: input.CollectionName }),
|
|
6250
|
+
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
6251
|
+
...(input.FullDocument != null && { FullDocument: input.FullDocument }),
|
|
6252
|
+
};
|
|
6253
|
+
};
|
|
6226
6254
|
const serializeAws_restJson1EndpointLists = (input, context) => {
|
|
6227
6255
|
return input
|
|
6228
6256
|
.filter((e) => e != null)
|
|
@@ -6617,6 +6645,13 @@ const deserializeAws_restJson1DestinationConfig = (output, context) => {
|
|
|
6617
6645
|
OnSuccess: output.OnSuccess != null ? deserializeAws_restJson1OnSuccess(output.OnSuccess, context) : undefined,
|
|
6618
6646
|
};
|
|
6619
6647
|
};
|
|
6648
|
+
const deserializeAws_restJson1DocumentDBEventSourceConfig = (output, context) => {
|
|
6649
|
+
return {
|
|
6650
|
+
CollectionName: __expectString(output.CollectionName),
|
|
6651
|
+
DatabaseName: __expectString(output.DatabaseName),
|
|
6652
|
+
FullDocument: __expectString(output.FullDocument),
|
|
6653
|
+
};
|
|
6654
|
+
};
|
|
6620
6655
|
const deserializeAws_restJson1EndpointLists = (output, context) => {
|
|
6621
6656
|
const retVal = (output || [])
|
|
6622
6657
|
.filter((e) => e != null)
|
|
@@ -6673,6 +6708,9 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
|
|
|
6673
6708
|
DestinationConfig: output.DestinationConfig != null
|
|
6674
6709
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
6675
6710
|
: undefined,
|
|
6711
|
+
DocumentDBEventSourceConfig: output.DocumentDBEventSourceConfig != null
|
|
6712
|
+
? deserializeAws_restJson1DocumentDBEventSourceConfig(output.DocumentDBEventSourceConfig, context)
|
|
6713
|
+
: undefined,
|
|
6676
6714
|
EventSourceArn: __expectString(output.EventSourceArn),
|
|
6677
6715
|
FilterCriteria: output.FilterCriteria != null
|
|
6678
6716
|
? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -271,7 +271,7 @@ export interface AddPermissionRequest {
|
|
|
271
271
|
PrincipalOrgID?: string;
|
|
272
272
|
/**
|
|
273
273
|
* <p>The type of authentication that your function URL uses. Set to <code>AWS_IAM</code> if you want to restrict access to authenticated
|
|
274
|
-
*
|
|
274
|
+
* users only. Set to <code>NONE</code> if you want to bypass IAM authentication to create a public endpoint. For more information,
|
|
275
275
|
* see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and auth model for Lambda function URLs</a>.</p>
|
|
276
276
|
*/
|
|
277
277
|
FunctionUrlAuthType?: FunctionUrlAuthType | string;
|
|
@@ -486,6 +486,35 @@ export interface DestinationConfig {
|
|
|
486
486
|
*/
|
|
487
487
|
OnFailure?: OnFailure;
|
|
488
488
|
}
|
|
489
|
+
export declare enum FullDocument {
|
|
490
|
+
Default = "Default",
|
|
491
|
+
UpdateLookup = "UpdateLookup"
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* <p>
|
|
495
|
+
* Specific configuration settings for a DocumentDB event source.
|
|
496
|
+
* </p>
|
|
497
|
+
*/
|
|
498
|
+
export interface DocumentDBEventSourceConfig {
|
|
499
|
+
/**
|
|
500
|
+
* <p>
|
|
501
|
+
* The name of the database to consume within the DocumentDB cluster.
|
|
502
|
+
* </p>
|
|
503
|
+
*/
|
|
504
|
+
DatabaseName?: string;
|
|
505
|
+
/**
|
|
506
|
+
* <p>
|
|
507
|
+
* The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
|
|
508
|
+
* </p>
|
|
509
|
+
*/
|
|
510
|
+
CollectionName?: string;
|
|
511
|
+
/**
|
|
512
|
+
* <p>
|
|
513
|
+
* Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
|
|
514
|
+
* </p>
|
|
515
|
+
*/
|
|
516
|
+
FullDocument?: FullDocument | string;
|
|
517
|
+
}
|
|
489
518
|
/**
|
|
490
519
|
* <p>
|
|
491
520
|
* A structure within a <code>FilterCriteria</code> object that defines an event filtering pattern.
|
|
@@ -790,6 +819,10 @@ export interface CreateEventSourceMappingRequest {
|
|
|
790
819
|
* <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
791
820
|
*/
|
|
792
821
|
ScalingConfig?: ScalingConfig;
|
|
822
|
+
/**
|
|
823
|
+
* <p>Specific configuration settings for a DocumentDB event source.</p>
|
|
824
|
+
*/
|
|
825
|
+
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
793
826
|
}
|
|
794
827
|
/**
|
|
795
828
|
* <p>A mapping between an Amazon Web Services resource and a Lambda function. For details, see <a>CreateEventSourceMapping</a>.</p>
|
|
@@ -913,6 +946,10 @@ export interface EventSourceMappingConfiguration {
|
|
|
913
946
|
* <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
914
947
|
*/
|
|
915
948
|
ScalingConfig?: ScalingConfig;
|
|
949
|
+
/**
|
|
950
|
+
* <p>Specific configuration settings for a DocumentDB event source.</p>
|
|
951
|
+
*/
|
|
952
|
+
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
916
953
|
}
|
|
917
954
|
/**
|
|
918
955
|
* <p>The specified code signing configuration does not exist.</p>
|
|
@@ -1153,8 +1190,8 @@ export interface CreateFunctionRequest {
|
|
|
1153
1190
|
*/
|
|
1154
1191
|
FunctionName: string | undefined;
|
|
1155
1192
|
/**
|
|
1156
|
-
* <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>. Runtime is required if the deployment package is a .zip file archive
|
|
1157
|
-
*
|
|
1193
|
+
* <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>. Runtime is required if the deployment package is a .zip file archive.</p>
|
|
1194
|
+
* <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy">Runtime deprecation policy</a>.</p>
|
|
1158
1195
|
*/
|
|
1159
1196
|
Runtime?: Runtime | string;
|
|
1160
1197
|
/**
|
|
@@ -1210,8 +1247,7 @@ export interface CreateFunctionRequest {
|
|
|
1210
1247
|
*/
|
|
1211
1248
|
Environment?: Environment;
|
|
1212
1249
|
/**
|
|
1213
|
-
* <p>The ARN of the Key Management Service (KMS) key that's used to encrypt your function's environment
|
|
1214
|
-
* variables. If it's not provided, Lambda uses a default service key.</p>
|
|
1250
|
+
* <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>. When <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> is activated, this key is also used to encrypt your function's snapshot. If you don't provide a customer managed key, Lambda uses a default service key.</p>
|
|
1215
1251
|
*/
|
|
1216
1252
|
KMSKeyArn?: string;
|
|
1217
1253
|
/**
|
|
@@ -1527,7 +1563,7 @@ export interface FunctionConfiguration {
|
|
|
1527
1563
|
*/
|
|
1528
1564
|
Environment?: EnvironmentResponse;
|
|
1529
1565
|
/**
|
|
1530
|
-
* <p>The KMS key that's used to encrypt the function's environment variables. This key is
|
|
1566
|
+
* <p>The KMS key that's used to encrypt the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>. When <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> is activated, this key is also used to encrypt the function's snapshot. This key is
|
|
1531
1567
|
* returned only if you've configured a customer managed key.</p>
|
|
1532
1568
|
*/
|
|
1533
1569
|
KMSKeyArn?: string;
|
|
@@ -1697,7 +1733,7 @@ export interface CreateFunctionUrlConfigRequest {
|
|
|
1697
1733
|
Qualifier?: string;
|
|
1698
1734
|
/**
|
|
1699
1735
|
* <p>The type of authentication that your function URL uses. Set to <code>AWS_IAM</code> if you want to restrict access to authenticated
|
|
1700
|
-
*
|
|
1736
|
+
* users only. Set to <code>NONE</code> if you want to bypass IAM authentication to create a public endpoint. For more information,
|
|
1701
1737
|
* see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and auth model for Lambda function URLs</a>.</p>
|
|
1702
1738
|
*/
|
|
1703
1739
|
AuthType: FunctionUrlAuthType | string | undefined;
|
|
@@ -1718,7 +1754,7 @@ export interface CreateFunctionUrlConfigResponse {
|
|
|
1718
1754
|
FunctionArn: string | undefined;
|
|
1719
1755
|
/**
|
|
1720
1756
|
* <p>The type of authentication that your function URL uses. Set to <code>AWS_IAM</code> if you want to restrict access to authenticated
|
|
1721
|
-
*
|
|
1757
|
+
* users only. Set to <code>NONE</code> if you want to bypass IAM authentication to create a public endpoint. For more information,
|
|
1722
1758
|
* see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and auth model for Lambda function URLs</a>.</p>
|
|
1723
1759
|
*/
|
|
1724
1760
|
AuthType: FunctionUrlAuthType | string | undefined;
|
|
@@ -2326,7 +2362,7 @@ export interface GetFunctionUrlConfigResponse {
|
|
|
2326
2362
|
FunctionArn: string | undefined;
|
|
2327
2363
|
/**
|
|
2328
2364
|
* <p>The type of authentication that your function URL uses. Set to <code>AWS_IAM</code> if you want to restrict access to authenticated
|
|
2329
|
-
*
|
|
2365
|
+
* users only. Set to <code>NONE</code> if you want to bypass IAM authentication to create a public endpoint. For more information,
|
|
2330
2366
|
* see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and auth model for Lambda function URLs</a>.</p>
|
|
2331
2367
|
*/
|
|
2332
2368
|
AuthType: FunctionUrlAuthType | string | undefined;
|
|
@@ -2598,9 +2634,13 @@ export interface GetRuntimeManagementConfigResponse {
|
|
|
2598
2634
|
UpdateRuntimeOn?: UpdateRuntimeOn | string;
|
|
2599
2635
|
/**
|
|
2600
2636
|
* <p>The ARN of the runtime the function is configured to use. If the runtime update mode is <b>Manual</b>, the ARN is returned, otherwise <code>null</code>
|
|
2601
|
-
*
|
|
2637
|
+
* is returned.</p>
|
|
2602
2638
|
*/
|
|
2603
2639
|
RuntimeVersionArn?: string;
|
|
2640
|
+
/**
|
|
2641
|
+
* <p>The Amazon Resource Name (ARN) of your function.</p>
|
|
2642
|
+
*/
|
|
2643
|
+
FunctionArn?: string;
|
|
2604
2644
|
}
|
|
2605
2645
|
/**
|
|
2606
2646
|
* <p>Need additional permissions to configure VPC settings.</p>
|
|
@@ -3378,7 +3418,7 @@ export interface FunctionUrlConfig {
|
|
|
3378
3418
|
Cors?: Cors;
|
|
3379
3419
|
/**
|
|
3380
3420
|
* <p>The type of authentication that your function URL uses. Set to <code>AWS_IAM</code> if you want to restrict access to authenticated
|
|
3381
|
-
*
|
|
3421
|
+
* users only. Set to <code>NONE</code> if you want to bypass IAM authentication to create a public endpoint. For more information,
|
|
3382
3422
|
* see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and auth model for Lambda function URLs</a>.</p>
|
|
3383
3423
|
*/
|
|
3384
3424
|
AuthType: FunctionUrlAuthType | string | undefined;
|
|
@@ -4334,6 +4374,10 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
4334
4374
|
* <p>(Amazon SQS only) The scaling configuration for the event source. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring maximum concurrency for Amazon SQS event sources</a>.</p>
|
|
4335
4375
|
*/
|
|
4336
4376
|
ScalingConfig?: ScalingConfig;
|
|
4377
|
+
/**
|
|
4378
|
+
* <p>Specific configuration settings for a DocumentDB event source.</p>
|
|
4379
|
+
*/
|
|
4380
|
+
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
4337
4381
|
}
|
|
4338
4382
|
export interface UpdateFunctionCodeRequest {
|
|
4339
4383
|
/**
|
|
@@ -4463,8 +4507,8 @@ export interface UpdateFunctionConfigurationRequest {
|
|
|
4463
4507
|
*/
|
|
4464
4508
|
Environment?: Environment;
|
|
4465
4509
|
/**
|
|
4466
|
-
* <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>. Runtime is required if the deployment package is a .zip file archive
|
|
4467
|
-
*
|
|
4510
|
+
* <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>. Runtime is required if the deployment package is a .zip file archive.</p>
|
|
4511
|
+
* <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy">Runtime deprecation policy</a>.</p>
|
|
4468
4512
|
*/
|
|
4469
4513
|
Runtime?: Runtime | string;
|
|
4470
4514
|
/**
|
|
@@ -4473,8 +4517,7 @@ export interface UpdateFunctionConfigurationRequest {
|
|
|
4473
4517
|
*/
|
|
4474
4518
|
DeadLetterConfig?: DeadLetterConfig;
|
|
4475
4519
|
/**
|
|
4476
|
-
* <p>The ARN of the Key Management Service (KMS) key that's used to encrypt your function's environment
|
|
4477
|
-
* variables. If it's not provided, Lambda uses a default service key.</p>
|
|
4520
|
+
* <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>. When <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> is activated, this key is also used to encrypt your function's snapshot. If you don't provide a customer managed key, Lambda uses a default service key.</p>
|
|
4478
4521
|
*/
|
|
4479
4522
|
KMSKeyArn?: string;
|
|
4480
4523
|
/**
|
|
@@ -4604,7 +4647,7 @@ export interface UpdateFunctionUrlConfigRequest {
|
|
|
4604
4647
|
Qualifier?: string;
|
|
4605
4648
|
/**
|
|
4606
4649
|
* <p>The type of authentication that your function URL uses. Set to <code>AWS_IAM</code> if you want to restrict access to authenticated
|
|
4607
|
-
*
|
|
4650
|
+
* users only. Set to <code>NONE</code> if you want to bypass IAM authentication to create a public endpoint. For more information,
|
|
4608
4651
|
* see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and auth model for Lambda function URLs</a>.</p>
|
|
4609
4652
|
*/
|
|
4610
4653
|
AuthType?: FunctionUrlAuthType | string;
|
|
@@ -4625,7 +4668,7 @@ export interface UpdateFunctionUrlConfigResponse {
|
|
|
4625
4668
|
FunctionArn: string | undefined;
|
|
4626
4669
|
/**
|
|
4627
4670
|
* <p>The type of authentication that your function URL uses. Set to <code>AWS_IAM</code> if you want to restrict access to authenticated
|
|
4628
|
-
*
|
|
4671
|
+
* users only. Set to <code>NONE</code> if you want to bypass IAM authentication to create a public endpoint. For more information,
|
|
4629
4672
|
* see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and auth model for Lambda function URLs</a>.</p>
|
|
4630
4673
|
*/
|
|
4631
4674
|
AuthType: FunctionUrlAuthType | string | undefined;
|
|
@@ -4715,6 +4758,10 @@ export declare const OnSuccessFilterSensitiveLog: (obj: OnSuccess) => any;
|
|
|
4715
4758
|
* @internal
|
|
4716
4759
|
*/
|
|
4717
4760
|
export declare const DestinationConfigFilterSensitiveLog: (obj: DestinationConfig) => any;
|
|
4761
|
+
/**
|
|
4762
|
+
* @internal
|
|
4763
|
+
*/
|
|
4764
|
+
export declare const DocumentDBEventSourceConfigFilterSensitiveLog: (obj: DocumentDBEventSourceConfig) => any;
|
|
4718
4765
|
/**
|
|
4719
4766
|
* @internal
|
|
4720
4767
|
*/
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region?: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -172,6 +172,15 @@ export interface DestinationConfig {
|
|
|
172
172
|
OnSuccess?: OnSuccess;
|
|
173
173
|
OnFailure?: OnFailure;
|
|
174
174
|
}
|
|
175
|
+
export declare enum FullDocument {
|
|
176
|
+
Default = "Default",
|
|
177
|
+
UpdateLookup = "UpdateLookup",
|
|
178
|
+
}
|
|
179
|
+
export interface DocumentDBEventSourceConfig {
|
|
180
|
+
DatabaseName?: string;
|
|
181
|
+
CollectionName?: string;
|
|
182
|
+
FullDocument?: FullDocument | string;
|
|
183
|
+
}
|
|
175
184
|
export interface Filter {
|
|
176
185
|
Pattern?: string;
|
|
177
186
|
}
|
|
@@ -235,6 +244,7 @@ export interface CreateEventSourceMappingRequest {
|
|
|
235
244
|
AmazonManagedKafkaEventSourceConfig?: AmazonManagedKafkaEventSourceConfig;
|
|
236
245
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
237
246
|
ScalingConfig?: ScalingConfig;
|
|
247
|
+
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
238
248
|
}
|
|
239
249
|
export interface EventSourceMappingConfiguration {
|
|
240
250
|
UUID?: string;
|
|
@@ -263,6 +273,7 @@ export interface EventSourceMappingConfiguration {
|
|
|
263
273
|
AmazonManagedKafkaEventSourceConfig?: AmazonManagedKafkaEventSourceConfig;
|
|
264
274
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
265
275
|
ScalingConfig?: ScalingConfig;
|
|
276
|
+
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
266
277
|
}
|
|
267
278
|
export declare class CodeSigningConfigNotFoundException extends __BaseException {
|
|
268
279
|
readonly name: "CodeSigningConfigNotFoundException";
|
|
@@ -775,6 +786,7 @@ export declare enum UpdateRuntimeOn {
|
|
|
775
786
|
export interface GetRuntimeManagementConfigResponse {
|
|
776
787
|
UpdateRuntimeOn?: UpdateRuntimeOn | string;
|
|
777
788
|
RuntimeVersionArn?: string;
|
|
789
|
+
FunctionArn?: string;
|
|
778
790
|
}
|
|
779
791
|
export declare class EC2AccessDeniedException extends __BaseException {
|
|
780
792
|
readonly name: "EC2AccessDeniedException";
|
|
@@ -1293,6 +1305,7 @@ export interface UpdateEventSourceMappingRequest {
|
|
|
1293
1305
|
TumblingWindowInSeconds?: number;
|
|
1294
1306
|
FunctionResponseTypes?: (FunctionResponseType | string)[];
|
|
1295
1307
|
ScalingConfig?: ScalingConfig;
|
|
1308
|
+
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
1296
1309
|
}
|
|
1297
1310
|
export interface UpdateFunctionCodeRequest {
|
|
1298
1311
|
FunctionName: string | undefined;
|
|
@@ -1393,6 +1406,9 @@ export declare const OnSuccessFilterSensitiveLog: (obj: OnSuccess) => any;
|
|
|
1393
1406
|
export declare const DestinationConfigFilterSensitiveLog: (
|
|
1394
1407
|
obj: DestinationConfig
|
|
1395
1408
|
) => any;
|
|
1409
|
+
export declare const DocumentDBEventSourceConfigFilterSensitiveLog: (
|
|
1410
|
+
obj: DocumentDBEventSourceConfig
|
|
1411
|
+
) => any;
|
|
1396
1412
|
export declare const FilterFilterSensitiveLog: (obj: Filter) => any;
|
|
1397
1413
|
export declare const FilterCriteriaFilterSensitiveLog: (
|
|
1398
1414
|
obj: FilterCriteria
|
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.280.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",
|