@aws-sdk/client-lambda 3.42.0 → 3.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -63,9 +63,68 @@ import { LambdaClient } from "./LambdaClient";
63
63
  * <p>
64
64
  * <b>Overview</b>
65
65
  * </p>
66
- * <p>This is the <i>Lambda API Reference</i>. The Lambda Developer Guide provides additional
67
- * information. For the service overview, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is
68
- * 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>
66
+ * <p>Lambda is a compute service that lets you run code without provisioning or managing servers.
67
+ * Lambda runs your code on a high-availability compute infrastructure and performs all of the
68
+ * administration of the compute resources, including server and operating system maintenance, capacity provisioning
69
+ * and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any
70
+ * 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>
71
+ * <p>The <i>Lambda API Reference</i> provides information about
72
+ * each of the API methods, including details about the parameters in each API request and
73
+ * response. </p>
74
+ * <p></p>
75
+ * <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command
76
+ * line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
77
+ * Amazon Web Services</a>. </p>
78
+ * <p>For a list of Region-specific endpoints that Lambda supports,
79
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html/">Lambda
80
+ * endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
81
+ * <p>When making the API calls, you will need to
82
+ * authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
83
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the
84
+ * <i>Amazon Web Services General Reference.</i>. </p>
85
+ * <p>
86
+ * <b>CA certificates</b>
87
+ * </p>
88
+ *
89
+ * <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
90
+ * can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
91
+ * computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
92
+ * environment and do not manage your own computer, you might need to ask an administrator to assist with the
93
+ * update process. The following list shows minimum operating system and Java versions:</p>
94
+ * <ul>
95
+ * <li>
96
+ * <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one
97
+ * of the required CAs in their trust list. </p>
98
+ * </li>
99
+ * <li>
100
+ * <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
101
+ * later versions contain at least one of the required CAs in their trust list. </p>
102
+ * </li>
103
+ * <li>
104
+ * <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the
105
+ * required CAs in their default trusted CA list. </p>
106
+ * </li>
107
+ * <li>
108
+ * <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December
109
+ * 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p>
110
+ * </li>
111
+ * </ul>
112
+ * <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or
113
+ * programmatically, you will need to ensure your client machines support any of the following CAs: </p>
114
+ * <ul>
115
+ * <li>
116
+ * <p>Amazon Root CA 1</p>
117
+ * </li>
118
+ * <li>
119
+ * <p>Starfield Services Root Certificate Authority - G2</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>Starfield Class 2 Certification Authority</p>
123
+ * </li>
124
+ * </ul>
125
+ * <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
126
+ * 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>
127
+ * </p>
69
128
  */
70
129
  export declare class Lambda extends LambdaClient {
71
130
  /**
@@ -119,42 +178,42 @@ export declare class Lambda extends LambdaClient {
119
178
  /**
120
179
  * <p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the
121
180
  * event source and triggers the function.</p>
122
- * <p>For details about each event source type, see the following topics. </p>
181
+ * <p>For details about how to configure different event sources, see the following topics. </p>
123
182
  * <ul>
124
183
  * <li>
125
184
  * <p>
126
185
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping">
127
- * Configuring a Dynamo DB stream as an event source</a>
186
+ * Amazon DynamoDB Streams</a>
128
187
  * </p>
129
188
  * </li>
130
189
  * <li>
131
190
  * <p>
132
191
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping">
133
- * Configuring a Kinesis stream as an event source</a>
192
+ * Amazon Kinesis</a>
134
193
  * </p>
135
194
  * </li>
136
195
  * <li>
137
196
  * <p>
138
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource"> Configuring an
139
- * Amazon SQS queue as an event source</a>
197
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource">
198
+ * Amazon SQS</a>
140
199
  * </p>
141
200
  * </li>
142
201
  * <li>
143
202
  * <p>
144
203
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping">
145
- * Configuring an MQ broker as an event source</a>
204
+ * Amazon MQ and RabbitMQ</a>
146
205
  * </p>
147
206
  * </li>
148
207
  * <li>
149
208
  * <p>
150
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html"> Configuring MSK as an event
151
- * source</a>
209
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html">
210
+ * Amazon MSK</a>
152
211
  * </p>
153
212
  * </li>
154
213
  * <li>
155
214
  * <p>
156
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html"> Configuring Self-Managed Apache Kafka
157
- * as an event source</a>
215
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html">
216
+ * Apache Kafka</a>
158
217
  * </p>
159
218
  * </li>
160
219
  * </ul>
@@ -182,6 +241,45 @@ export declare class Lambda extends LambdaClient {
182
241
  * <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
183
242
  * </li>
184
243
  * </ul>
244
+ * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
245
+ * <ul>
246
+ * <li>
247
+ * <p>
248
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params">
249
+ * Amazon DynamoDB Streams</a>
250
+ * </p>
251
+ * </li>
252
+ * <li>
253
+ * <p>
254
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params">
255
+ * Amazon Kinesis</a>
256
+ * </p>
257
+ * </li>
258
+ * <li>
259
+ * <p>
260
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params">
261
+ * Amazon SQS</a>
262
+ * </p>
263
+ * </li>
264
+ * <li>
265
+ * <p>
266
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params">
267
+ * Amazon MQ and RabbitMQ</a>
268
+ * </p>
269
+ * </li>
270
+ * <li>
271
+ * <p>
272
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms">
273
+ * Amazon MSK</a>
274
+ * </p>
275
+ * </li>
276
+ * <li>
277
+ * <p>
278
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms">
279
+ * Apache Kafka</a>
280
+ * </p>
281
+ * </li>
282
+ * </ul>
185
283
  */
186
284
  createEventSourceMapping(args: CreateEventSourceMappingCommandInput, options?: __HttpHandlerOptions): Promise<CreateEventSourceMappingCommandOutput>;
187
285
  createEventSourceMapping(args: CreateEventSourceMappingCommandInput, cb: (err: any, data?: CreateEventSourceMappingCommandOutput) => void): void;
@@ -642,6 +740,45 @@ export declare class Lambda extends LambdaClient {
642
740
  /**
643
741
  * <p>Updates an event source mapping. You can change the function that Lambda invokes, or pause
644
742
  * invocation and resume later from the same location.</p>
743
+ * <p>For details about how to configure different event sources, see the following topics. </p>
744
+ * <ul>
745
+ * <li>
746
+ * <p>
747
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping">
748
+ * Amazon DynamoDB Streams</a>
749
+ * </p>
750
+ * </li>
751
+ * <li>
752
+ * <p>
753
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping">
754
+ * Amazon Kinesis</a>
755
+ * </p>
756
+ * </li>
757
+ * <li>
758
+ * <p>
759
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource">
760
+ * Amazon SQS</a>
761
+ * </p>
762
+ * </li>
763
+ * <li>
764
+ * <p>
765
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping">
766
+ * Amazon MQ and RabbitMQ</a>
767
+ * </p>
768
+ * </li>
769
+ * <li>
770
+ * <p>
771
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html">
772
+ * Amazon MSK</a>
773
+ * </p>
774
+ * </li>
775
+ * <li>
776
+ * <p>
777
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html">
778
+ * Apache Kafka</a>
779
+ * </p>
780
+ * </li>
781
+ * </ul>
645
782
  *
646
783
  * <p>The following error handling options are only available for stream sources (DynamoDB and Kinesis):</p>
647
784
  * <ul>
@@ -666,6 +803,45 @@ export declare class Lambda extends LambdaClient {
666
803
  * <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
667
804
  * </li>
668
805
  * </ul>
806
+ * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
807
+ * <ul>
808
+ * <li>
809
+ * <p>
810
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params">
811
+ * Amazon DynamoDB Streams</a>
812
+ * </p>
813
+ * </li>
814
+ * <li>
815
+ * <p>
816
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params">
817
+ * Amazon Kinesis</a>
818
+ * </p>
819
+ * </li>
820
+ * <li>
821
+ * <p>
822
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params">
823
+ * Amazon SQS</a>
824
+ * </p>
825
+ * </li>
826
+ * <li>
827
+ * <p>
828
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params">
829
+ * Amazon MQ and RabbitMQ</a>
830
+ * </p>
831
+ * </li>
832
+ * <li>
833
+ * <p>
834
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms">
835
+ * Amazon MSK</a>
836
+ * </p>
837
+ * </li>
838
+ * <li>
839
+ * <p>
840
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms">
841
+ * Apache Kafka</a>
842
+ * </p>
843
+ * </li>
844
+ * </ul>
669
845
  */
670
846
  updateEventSourceMapping(args: UpdateEventSourceMappingCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEventSourceMappingCommandOutput>;
671
847
  updateEventSourceMapping(args: UpdateEventSourceMappingCommandInput, cb: (err: any, data?: UpdateEventSourceMappingCommandOutput) => void): void;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput } from "./commands/AddLayerVersionPermissionCommand";
10
10
  import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand";
@@ -166,6 +166,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
166
166
  * @internal
167
167
  */
168
168
  defaultUserAgentProvider?: Provider<__UserAgent>;
169
+ /**
170
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
171
+ */
172
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
169
173
  }
170
174
  declare type LambdaClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
171
175
  /**
@@ -184,9 +188,68 @@ export interface LambdaClientResolvedConfig extends LambdaClientResolvedConfigTy
184
188
  * <p>
185
189
  * <b>Overview</b>
186
190
  * </p>
187
- * <p>This is the <i>Lambda API Reference</i>. The Lambda Developer Guide provides additional
188
- * information. For the service overview, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is
189
- * 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>
191
+ * <p>Lambda is a compute service that lets you run code without provisioning or managing servers.
192
+ * Lambda runs your code on a high-availability compute infrastructure and performs all of the
193
+ * administration of the compute resources, including server and operating system maintenance, capacity provisioning
194
+ * and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any
195
+ * 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>
196
+ * <p>The <i>Lambda API Reference</i> provides information about
197
+ * each of the API methods, including details about the parameters in each API request and
198
+ * response. </p>
199
+ * <p></p>
200
+ * <p>You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command
201
+ * line tools to access the API. For installation instructions, see <a href="http://aws.amazon.com/tools/">Tools for
202
+ * Amazon Web Services</a>. </p>
203
+ * <p>For a list of Region-specific endpoints that Lambda supports,
204
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/lambda-service.html/">Lambda
205
+ * endpoints and quotas </a> in the <i>Amazon Web Services General Reference.</i>. </p>
206
+ * <p>When making the API calls, you will need to
207
+ * authenticate your request by providing a signature. Lambda supports signature version 4. For more information,
208
+ * see <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 signing process</a> in the
209
+ * <i>Amazon Web Services General Reference.</i>. </p>
210
+ * <p>
211
+ * <b>CA certificates</b>
212
+ * </p>
213
+ *
214
+ * <p>Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers
215
+ * can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your
216
+ * computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate
217
+ * environment and do not manage your own computer, you might need to ask an administrator to assist with the
218
+ * update process. The following list shows minimum operating system and Java versions:</p>
219
+ * <ul>
220
+ * <li>
221
+ * <p>Microsoft Windows versions that have updates from January 2005 or later installed contain at least one
222
+ * of the required CAs in their trust list. </p>
223
+ * </li>
224
+ * <li>
225
+ * <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
226
+ * later versions contain at least one of the required CAs in their trust list. </p>
227
+ * </li>
228
+ * <li>
229
+ * <p>Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the
230
+ * required CAs in their default trusted CA list. </p>
231
+ * </li>
232
+ * <li>
233
+ * <p>Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December
234
+ * 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list. </p>
235
+ * </li>
236
+ * </ul>
237
+ * <p>When accessing the Lambda management console or Lambda API endpoints, whether through browsers or
238
+ * programmatically, you will need to ensure your client machines support any of the following CAs: </p>
239
+ * <ul>
240
+ * <li>
241
+ * <p>Amazon Root CA 1</p>
242
+ * </li>
243
+ * <li>
244
+ * <p>Starfield Services Root Certificate Authority - G2</p>
245
+ * </li>
246
+ * <li>
247
+ * <p>Starfield Class 2 Certification Authority</p>
248
+ * </li>
249
+ * </ul>
250
+ * <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
251
+ * 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>
252
+ * </p>
190
253
  */
191
254
  export declare class LambdaClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LambdaClientResolvedConfig> {
192
255
  /**
@@ -9,42 +9,42 @@ export interface CreateEventSourceMappingCommandOutput extends EventSourceMappin
9
9
  /**
10
10
  * <p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the
11
11
  * event source and triggers the function.</p>
12
- * <p>For details about each event source type, see the following topics. </p>
12
+ * <p>For details about how to configure different event sources, see the following topics. </p>
13
13
  * <ul>
14
14
  * <li>
15
15
  * <p>
16
16
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping">
17
- * Configuring a Dynamo DB stream as an event source</a>
17
+ * Amazon DynamoDB Streams</a>
18
18
  * </p>
19
19
  * </li>
20
20
  * <li>
21
21
  * <p>
22
22
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping">
23
- * Configuring a Kinesis stream as an event source</a>
23
+ * Amazon Kinesis</a>
24
24
  * </p>
25
25
  * </li>
26
26
  * <li>
27
27
  * <p>
28
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource"> Configuring an
29
- * Amazon SQS queue as an event source</a>
28
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource">
29
+ * Amazon SQS</a>
30
30
  * </p>
31
31
  * </li>
32
32
  * <li>
33
33
  * <p>
34
34
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping">
35
- * Configuring an MQ broker as an event source</a>
35
+ * Amazon MQ and RabbitMQ</a>
36
36
  * </p>
37
37
  * </li>
38
38
  * <li>
39
39
  * <p>
40
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html"> Configuring MSK as an event
41
- * source</a>
40
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html">
41
+ * Amazon MSK</a>
42
42
  * </p>
43
43
  * </li>
44
44
  * <li>
45
45
  * <p>
46
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html"> Configuring Self-Managed Apache Kafka
47
- * as an event source</a>
46
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html">
47
+ * Apache Kafka</a>
48
48
  * </p>
49
49
  * </li>
50
50
  * </ul>
@@ -72,6 +72,45 @@ export interface CreateEventSourceMappingCommandOutput extends EventSourceMappin
72
72
  * <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
73
73
  * </li>
74
74
  * </ul>
75
+ * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
76
+ * <ul>
77
+ * <li>
78
+ * <p>
79
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params">
80
+ * Amazon DynamoDB Streams</a>
81
+ * </p>
82
+ * </li>
83
+ * <li>
84
+ * <p>
85
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params">
86
+ * Amazon Kinesis</a>
87
+ * </p>
88
+ * </li>
89
+ * <li>
90
+ * <p>
91
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params">
92
+ * Amazon SQS</a>
93
+ * </p>
94
+ * </li>
95
+ * <li>
96
+ * <p>
97
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params">
98
+ * Amazon MQ and RabbitMQ</a>
99
+ * </p>
100
+ * </li>
101
+ * <li>
102
+ * <p>
103
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms">
104
+ * Amazon MSK</a>
105
+ * </p>
106
+ * </li>
107
+ * <li>
108
+ * <p>
109
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms">
110
+ * Apache Kafka</a>
111
+ * </p>
112
+ * </li>
113
+ * </ul>
75
114
  * @example
76
115
  * Use a bare-bones client and the command you need to make an API call.
77
116
  * ```javascript
@@ -9,6 +9,45 @@ export interface UpdateEventSourceMappingCommandOutput extends EventSourceMappin
9
9
  /**
10
10
  * <p>Updates an event source mapping. You can change the function that Lambda invokes, or pause
11
11
  * invocation and resume later from the same location.</p>
12
+ * <p>For details about how to configure different event sources, see the following topics. </p>
13
+ * <ul>
14
+ * <li>
15
+ * <p>
16
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping">
17
+ * Amazon DynamoDB Streams</a>
18
+ * </p>
19
+ * </li>
20
+ * <li>
21
+ * <p>
22
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping">
23
+ * Amazon Kinesis</a>
24
+ * </p>
25
+ * </li>
26
+ * <li>
27
+ * <p>
28
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource">
29
+ * Amazon SQS</a>
30
+ * </p>
31
+ * </li>
32
+ * <li>
33
+ * <p>
34
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping">
35
+ * Amazon MQ and RabbitMQ</a>
36
+ * </p>
37
+ * </li>
38
+ * <li>
39
+ * <p>
40
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html">
41
+ * Amazon MSK</a>
42
+ * </p>
43
+ * </li>
44
+ * <li>
45
+ * <p>
46
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html">
47
+ * Apache Kafka</a>
48
+ * </p>
49
+ * </li>
50
+ * </ul>
12
51
  *
13
52
  * <p>The following error handling options are only available for stream sources (DynamoDB and Kinesis):</p>
14
53
  * <ul>
@@ -33,6 +72,45 @@ export interface UpdateEventSourceMappingCommandOutput extends EventSourceMappin
33
72
  * <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
34
73
  * </li>
35
74
  * </ul>
75
+ * <p>For information about which configuration parameters apply to each event source, see the following topics.</p>
76
+ * <ul>
77
+ * <li>
78
+ * <p>
79
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params">
80
+ * Amazon DynamoDB Streams</a>
81
+ * </p>
82
+ * </li>
83
+ * <li>
84
+ * <p>
85
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params">
86
+ * Amazon Kinesis</a>
87
+ * </p>
88
+ * </li>
89
+ * <li>
90
+ * <p>
91
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params">
92
+ * Amazon SQS</a>
93
+ * </p>
94
+ * </li>
95
+ * <li>
96
+ * <p>
97
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params">
98
+ * Amazon MQ and RabbitMQ</a>
99
+ * </p>
100
+ * </li>
101
+ * <li>
102
+ * <p>
103
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms">
104
+ * Amazon MSK</a>
105
+ * </p>
106
+ * </li>
107
+ * <li>
108
+ * <p>
109
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms">
110
+ * Apache Kafka</a>
111
+ * </p>
112
+ * </li>
113
+ * </ul>
36
114
  * @example
37
115
  * Use a bare-bones client and the command you need to make an API call.
38
116
  * ```javascript