@aws-sdk/client-lambda 3.100.0 → 3.105.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.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-lambda
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
7
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
8
9
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
10
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
11
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
@@ -25,6 +26,7 @@ class LambdaClient extends smithy_client_1.Client {
25
26
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
27
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
28
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
28
30
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
31
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
32
  }
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var LambdaClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
31
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
32
  return _this;
@@ -325,9 +325,7 @@ export interface AliasRoutingConfiguration {
325
325
  /**
326
326
  * <p>The second version, and the percentage of traffic that's routed to it.</p>
327
327
  */
328
- AdditionalVersionWeights?: {
329
- [key: string]: number;
330
- };
328
+ AdditionalVersionWeights?: Record<string, number>;
331
329
  }
332
330
  export declare namespace AliasRoutingConfiguration {
333
331
  /**
@@ -633,9 +631,7 @@ export interface SelfManagedEventSource {
633
631
  * <p>The list of bootstrap servers for your Kafka brokers in the following format: <code>"KAFKA_BOOTSTRAP_SERVERS":
634
632
  * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]</code>.</p>
635
633
  */
636
- Endpoints?: {
637
- [key: string]: string[];
638
- };
634
+ Endpoints?: Record<string, string[]>;
639
635
  }
640
636
  export declare namespace SelfManagedEventSource {
641
637
  /**
@@ -1092,9 +1088,7 @@ export interface Environment {
1092
1088
  * <p>Environment variable key-value pairs. For more information, see
1093
1089
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">Using Lambda environment variables</a>.</p>
1094
1090
  */
1095
- Variables?: {
1096
- [key: string]: string;
1097
- };
1091
+ Variables?: Record<string, string>;
1098
1092
  }
1099
1093
  export declare namespace Environment {
1100
1094
  /**
@@ -1329,9 +1323,7 @@ export interface CreateFunctionRequest {
1329
1323
  * <p>A list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> to apply to the
1330
1324
  * function.</p>
1331
1325
  */
1332
- Tags?: {
1333
- [key: string]: string;
1334
- };
1326
+ Tags?: Record<string, string>;
1335
1327
  /**
1336
1328
  * <p>A list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">function layers</a>
1337
1329
  * to add to the function's execution environment. Specify each layer by its ARN, including the version.</p>
@@ -1394,9 +1386,7 @@ export interface EnvironmentResponse {
1394
1386
  /**
1395
1387
  * <p>Environment variable key-value pairs.</p>
1396
1388
  */
1397
- Variables?: {
1398
- [key: string]: string;
1399
- };
1389
+ Variables?: Record<string, string>;
1400
1390
  /**
1401
1391
  * <p>Error messages for environment variables that couldn't be applied.</p>
1402
1392
  */
@@ -2315,9 +2305,7 @@ export interface GetFunctionResponse {
2315
2305
  /**
2316
2306
  * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>.</p>
2317
2307
  */
2318
- Tags?: {
2319
- [key: string]: string;
2320
- };
2308
+ Tags?: Record<string, string>;
2321
2309
  /**
2322
2310
  * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">reserved
2323
2311
  * concurrency</a>.</p>
@@ -4021,9 +4009,7 @@ export interface ListTagsResponse {
4021
4009
  /**
4022
4010
  * <p>The function's tags.</p>
4023
4011
  */
4024
- Tags?: {
4025
- [key: string]: string;
4026
- };
4012
+ Tags?: Record<string, string>;
4027
4013
  }
4028
4014
  export declare namespace ListTagsResponse {
4029
4015
  /**
@@ -4576,9 +4562,7 @@ export interface TagResourceRequest {
4576
4562
  /**
4577
4563
  * <p>A list of tags to apply to the function.</p>
4578
4564
  */
4579
- Tags: {
4580
- [key: string]: string;
4581
- } | undefined;
4565
+ Tags: Record<string, string> | undefined;
4582
4566
  }
4583
4567
  export declare namespace TagResourceRequest {
4584
4568
  /**
@@ -174,9 +174,7 @@ export declare namespace AddPermissionResponse {
174
174
 
175
175
  export interface AliasRoutingConfiguration {
176
176
 
177
- AdditionalVersionWeights?: {
178
- [key: string]: number;
179
- };
177
+ AdditionalVersionWeights?: Record<string, number>;
180
178
  }
181
179
  export declare namespace AliasRoutingConfiguration {
182
180
 
@@ -338,9 +336,7 @@ export declare enum EndPointType {
338
336
 
339
337
  export interface SelfManagedEventSource {
340
338
 
341
- Endpoints?: {
342
- [key: string]: string[];
343
- };
339
+ Endpoints?: Record<string, string[]>;
344
340
  }
345
341
  export declare namespace SelfManagedEventSource {
346
342
 
@@ -525,9 +521,7 @@ export declare namespace DeadLetterConfig {
525
521
 
526
522
  export interface Environment {
527
523
 
528
- Variables?: {
529
- [key: string]: string;
530
- };
524
+ Variables?: Record<string, string>;
531
525
  }
532
526
  export declare namespace Environment {
533
527
 
@@ -655,9 +649,7 @@ export interface CreateFunctionRequest {
655
649
 
656
650
  TracingConfig?: TracingConfig;
657
651
 
658
- Tags?: {
659
- [key: string]: string;
660
- };
652
+ Tags?: Record<string, string>;
661
653
 
662
654
  Layers?: string[];
663
655
 
@@ -689,9 +681,7 @@ export declare namespace EnvironmentError {
689
681
 
690
682
  export interface EnvironmentResponse {
691
683
 
692
- Variables?: {
693
- [key: string]: string;
694
- };
684
+ Variables?: Record<string, string>;
695
685
 
696
686
  Error?: EnvironmentError;
697
687
  }
@@ -1123,9 +1113,7 @@ export interface GetFunctionResponse {
1123
1113
 
1124
1114
  Code?: FunctionCodeLocation;
1125
1115
 
1126
- Tags?: {
1127
- [key: string]: string;
1128
- };
1116
+ Tags?: Record<string, string>;
1129
1117
 
1130
1118
  Concurrency?: Concurrency;
1131
1119
  }
@@ -1939,9 +1927,7 @@ export declare namespace ListTagsRequest {
1939
1927
  }
1940
1928
  export interface ListTagsResponse {
1941
1929
 
1942
- Tags?: {
1943
- [key: string]: string;
1944
- };
1930
+ Tags?: Record<string, string>;
1945
1931
  }
1946
1932
  export declare namespace ListTagsResponse {
1947
1933
 
@@ -2148,9 +2134,7 @@ export interface TagResourceRequest {
2148
2134
 
2149
2135
  Resource: string | undefined;
2150
2136
 
2151
- Tags: {
2152
- [key: string]: string;
2153
- } | undefined;
2137
+ Tags: Record<string, string> | undefined;
2154
2138
  }
2155
2139
  export declare namespace TagResourceRequest {
2156
2140
 
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.100.0",
4
+ "version": "3.105.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",
@@ -18,15 +18,16 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.100.0",
21
+ "@aws-sdk/client-sts": "3.105.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.100.0",
23
+ "@aws-sdk/credential-provider-node": "3.105.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.78.0",
25
25
  "@aws-sdk/hash-node": "3.78.0",
26
26
  "@aws-sdk/invalid-dependency": "3.78.0",
27
27
  "@aws-sdk/middleware-content-length": "3.78.0",
28
28
  "@aws-sdk/middleware-host-header": "3.78.0",
29
29
  "@aws-sdk/middleware-logger": "3.78.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.105.0",
30
31
  "@aws-sdk/middleware-retry": "3.80.0",
31
32
  "@aws-sdk/middleware-serde": "3.78.0",
32
33
  "@aws-sdk/middleware-signing": "3.78.0",