@aws-sdk/client-lambda 3.42.0 → 3.43.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 CHANGED
@@ -3,6 +3,17 @@
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-lambda
package/README.md CHANGED
@@ -12,9 +12,68 @@ AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native.
12
12
  <p>
13
13
  <b>Overview</b>
14
14
  </p>
15
- <p>This is the <i>Lambda API Reference</i>. The Lambda Developer Guide provides additional
16
- information. For the service overview, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is
17
- Lambda</a>, and for information about how the service works, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html">Lambda: How it Works</a> in the <b>Lambda Developer Guide</b>.</p>
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
 
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnvironmentError = exports.CreateFunctionRequest = 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.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.ProvisionedConcurrencyStatusEnum = exports.GetProvisionedConcurrencyConfigRequest = 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 = void 0;
5
- exports.ProvisionedConcurrencyConfigListItem = exports.ListProvisionedConcurrencyConfigsRequest = 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 = 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 = 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)
@@ -114,6 +114,14 @@ export var DestinationConfig;
114
114
  (function (DestinationConfig) {
115
115
  DestinationConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
116
116
  })(DestinationConfig || (DestinationConfig = {}));
117
+ export var Filter;
118
+ (function (Filter) {
119
+ Filter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
+ })(Filter || (Filter = {}));
121
+ export var FilterCriteria;
122
+ (function (FilterCriteria) {
123
+ FilterCriteria.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
+ })(FilterCriteria || (FilterCriteria = {}));
117
125
  export var FunctionResponseType;
118
126
  (function (FunctionResponseType) {
119
127
  FunctionResponseType["ReportBatchItemFailures"] = "ReportBatchItemFailures";
@@ -129,8 +137,10 @@ export var SelfManagedEventSource;
129
137
  export var SourceAccessType;
130
138
  (function (SourceAccessType) {
131
139
  SourceAccessType["BASIC_AUTH"] = "BASIC_AUTH";
140
+ SourceAccessType["CLIENT_CERTIFICATE_TLS_AUTH"] = "CLIENT_CERTIFICATE_TLS_AUTH";
132
141
  SourceAccessType["SASL_SCRAM_256_AUTH"] = "SASL_SCRAM_256_AUTH";
133
142
  SourceAccessType["SASL_SCRAM_512_AUTH"] = "SASL_SCRAM_512_AUTH";
143
+ SourceAccessType["SERVER_ROOT_CA_CERTIFICATE"] = "SERVER_ROOT_CA_CERTIFICATE";
134
144
  SourceAccessType["VIRTUAL_HOST"] = "VIRTUAL_HOST";
135
145
  SourceAccessType["VPC_SECURITY_GROUP"] = "VPC_SECURITY_GROUP";
136
146
  SourceAccessType["VPC_SUBNET"] = "VPC_SUBNET";
@@ -167,12 +167,15 @@ export var serializeAws_restJson1CreateEventSourceMappingCommand = function (inp
167
167
  "content-type": "application/json",
168
168
  };
169
169
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings";
170
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
170
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
171
171
  input.BisectBatchOnFunctionError !== null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig !== undefined &&
172
172
  input.DestinationConfig !== null && {
173
173
  DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
174
174
  })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.EventSourceArn !== undefined &&
175
- input.EventSourceArn !== null && { EventSourceArn: input.EventSourceArn })), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes !== undefined &&
175
+ input.EventSourceArn !== null && { EventSourceArn: input.EventSourceArn })), (input.FilterCriteria !== undefined &&
176
+ input.FilterCriteria !== null && {
177
+ FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
178
+ })), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes !== undefined &&
176
179
  input.FunctionResponseTypes !== null && {
177
180
  FunctionResponseTypes: serializeAws_restJson1FunctionResponseTypeList(input.FunctionResponseTypes, context),
178
181
  })), (input.MaximumBatchingWindowInSeconds !== undefined &&
@@ -1938,11 +1941,14 @@ export var serializeAws_restJson1UpdateEventSourceMappingCommand = function (inp
1938
1941
  else {
1939
1942
  throw new Error("No value provided for input HTTP label: UUID.");
1940
1943
  }
1941
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
1944
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize !== undefined && input.BatchSize !== null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError !== undefined &&
1942
1945
  input.BisectBatchOnFunctionError !== null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig !== undefined &&
1943
1946
  input.DestinationConfig !== null && {
1944
1947
  DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
1945
- })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes !== undefined &&
1948
+ })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.FilterCriteria !== undefined &&
1949
+ input.FilterCriteria !== null && {
1950
+ FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
1951
+ })), (input.FunctionName !== undefined && input.FunctionName !== null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes !== undefined &&
1946
1952
  input.FunctionResponseTypes !== null && {
1947
1953
  FunctionResponseTypes: serializeAws_restJson1FunctionResponseTypeList(input.FunctionResponseTypes, context),
1948
1954
  })), (input.MaximumBatchingWindowInSeconds !== undefined &&
@@ -2518,6 +2524,7 @@ export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (o
2518
2524
  BisectBatchOnFunctionError: undefined,
2519
2525
  DestinationConfig: undefined,
2520
2526
  EventSourceArn: undefined,
2527
+ FilterCriteria: undefined,
2521
2528
  FunctionArn: undefined,
2522
2529
  FunctionResponseTypes: undefined,
2523
2530
  LastModified: undefined,
@@ -2554,6 +2561,9 @@ export var deserializeAws_restJson1CreateEventSourceMappingCommand = function (o
2554
2561
  if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
2555
2562
  contents.EventSourceArn = __expectString(data.EventSourceArn);
2556
2563
  }
2564
+ if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
2565
+ contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
2566
+ }
2557
2567
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
2558
2568
  contents.FunctionArn = __expectString(data.FunctionArn);
2559
2569
  }
@@ -3106,6 +3116,7 @@ export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (o
3106
3116
  BisectBatchOnFunctionError: undefined,
3107
3117
  DestinationConfig: undefined,
3108
3118
  EventSourceArn: undefined,
3119
+ FilterCriteria: undefined,
3109
3120
  FunctionArn: undefined,
3110
3121
  FunctionResponseTypes: undefined,
3111
3122
  LastModified: undefined,
@@ -3142,6 +3153,9 @@ export var deserializeAws_restJson1DeleteEventSourceMappingCommand = function (o
3142
3153
  if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
3143
3154
  contents.EventSourceArn = __expectString(data.EventSourceArn);
3144
3155
  }
3156
+ if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
3157
+ contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
3158
+ }
3145
3159
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
3146
3160
  contents.FunctionArn = __expectString(data.FunctionArn);
3147
3161
  }
@@ -4054,6 +4068,7 @@ export var deserializeAws_restJson1GetEventSourceMappingCommand = function (outp
4054
4068
  BisectBatchOnFunctionError: undefined,
4055
4069
  DestinationConfig: undefined,
4056
4070
  EventSourceArn: undefined,
4071
+ FilterCriteria: undefined,
4057
4072
  FunctionArn: undefined,
4058
4073
  FunctionResponseTypes: undefined,
4059
4074
  LastModified: undefined,
@@ -4090,6 +4105,9 @@ export var deserializeAws_restJson1GetEventSourceMappingCommand = function (outp
4090
4105
  if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
4091
4106
  contents.EventSourceArn = __expectString(data.EventSourceArn);
4092
4107
  }
4108
+ if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
4109
+ contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
4110
+ }
4093
4111
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
4094
4112
  contents.FunctionArn = __expectString(data.FunctionArn);
4095
4113
  }
@@ -7994,6 +8012,7 @@ export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (o
7994
8012
  BisectBatchOnFunctionError: undefined,
7995
8013
  DestinationConfig: undefined,
7996
8014
  EventSourceArn: undefined,
8015
+ FilterCriteria: undefined,
7997
8016
  FunctionArn: undefined,
7998
8017
  FunctionResponseTypes: undefined,
7999
8018
  LastModified: undefined,
@@ -8030,6 +8049,9 @@ export var deserializeAws_restJson1UpdateEventSourceMappingCommand = function (o
8030
8049
  if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
8031
8050
  contents.EventSourceArn = __expectString(data.EventSourceArn);
8032
8051
  }
8052
+ if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
8053
+ contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
8054
+ }
8033
8055
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
8034
8056
  contents.FunctionArn = __expectString(data.FunctionArn);
8035
8057
  }
@@ -9590,6 +9612,23 @@ var serializeAws_restJson1FileSystemConfigList = function (input, context) {
9590
9612
  return serializeAws_restJson1FileSystemConfig(entry, context);
9591
9613
  });
9592
9614
  };
9615
+ var serializeAws_restJson1Filter = function (input, context) {
9616
+ return __assign({}, (input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern }));
9617
+ };
9618
+ var serializeAws_restJson1FilterCriteria = function (input, context) {
9619
+ return __assign({}, (input.Filters !== undefined &&
9620
+ input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }));
9621
+ };
9622
+ var serializeAws_restJson1FilterList = function (input, context) {
9623
+ return input
9624
+ .filter(function (e) { return e != null; })
9625
+ .map(function (entry) {
9626
+ if (entry === null) {
9627
+ return null;
9628
+ }
9629
+ return serializeAws_restJson1Filter(entry, context);
9630
+ });
9631
+ };
9593
9632
  var serializeAws_restJson1FunctionCode = function (input, context) {
9594
9633
  return __assign(__assign(__assign(__assign(__assign({}, (input.ImageUri !== undefined && input.ImageUri !== null && { ImageUri: input.ImageUri })), (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key })), (input.S3ObjectVersion !== undefined &&
9595
9634
  input.S3ObjectVersion !== null && { S3ObjectVersion: input.S3ObjectVersion })), (input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }));
@@ -9921,6 +9960,9 @@ var deserializeAws_restJson1EventSourceMappingConfiguration = function (output,
9921
9960
  ? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
9922
9961
  : undefined,
9923
9962
  EventSourceArn: __expectString(output.EventSourceArn),
9963
+ FilterCriteria: output.FilterCriteria !== undefined && output.FilterCriteria !== null
9964
+ ? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
9965
+ : undefined,
9924
9966
  FunctionArn: __expectString(output.FunctionArn),
9925
9967
  FunctionResponseTypes: output.FunctionResponseTypes !== undefined && output.FunctionResponseTypes !== null
9926
9968
  ? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
@@ -9981,6 +10023,28 @@ var deserializeAws_restJson1FileSystemConfigList = function (output, context) {
9981
10023
  return deserializeAws_restJson1FileSystemConfig(entry, context);
9982
10024
  });
9983
10025
  };
10026
+ var deserializeAws_restJson1Filter = function (output, context) {
10027
+ return {
10028
+ Pattern: __expectString(output.Pattern),
10029
+ };
10030
+ };
10031
+ var deserializeAws_restJson1FilterCriteria = function (output, context) {
10032
+ return {
10033
+ Filters: output.Filters !== undefined && output.Filters !== null
10034
+ ? deserializeAws_restJson1FilterList(output.Filters, context)
10035
+ : undefined,
10036
+ };
10037
+ };
10038
+ var deserializeAws_restJson1FilterList = function (output, context) {
10039
+ return (output || [])
10040
+ .filter(function (e) { return e != null; })
10041
+ .map(function (entry) {
10042
+ if (entry === null) {
10043
+ return null;
10044
+ }
10045
+ return deserializeAws_restJson1Filter(entry, context);
10046
+ });
10047
+ };
9984
10048
  var deserializeAws_restJson1FunctionArnList = function (output, context) {
9985
10049
  return (output || [])
9986
10050
  .filter(function (e) { return e != null; })