@aws-sdk/client-elasticsearch-service 3.95.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,33 @@
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
+
17
+ # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-elasticsearch-service
20
+
21
+
22
+
23
+
24
+
25
+ # [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-elasticsearch-service
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-elasticsearch-service
@@ -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 ElasticsearchServiceClient 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
  }
@@ -17,8 +17,10 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
+ const smithy_client_2 = require("@aws-sdk/smithy-client");
20
21
  const getRuntimeConfig = (config) => {
21
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
24
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
26
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -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 ElasticsearchServiceClient = (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;
@@ -14,8 +14,10 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
16
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
  export var getRuntimeConfig = function (config) {
18
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ emitWarningIfUnsupportedVersion(process.version);
19
21
  var defaultsMode = resolveDefaultsModeConfig(config);
20
22
  var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
21
23
  var clientSharedValues = getSharedRuntimeConfig(config);
@@ -343,9 +343,7 @@ export interface AdvancedOptionsStatus {
343
343
  /**
344
344
  * <p> Specifies the status of advanced options for the specified Elasticsearch domain.</p>
345
345
  */
346
- Options: {
347
- [key: string]: string;
348
- } | undefined;
346
+ Options: Record<string, string> | undefined;
349
347
  /**
350
348
  * <p> Specifies the status of <code>OptionStatus</code> for advanced options for the specified Elasticsearch domain.</p>
351
349
  */
@@ -1128,15 +1126,11 @@ export interface CreateElasticsearchDomainRequest {
1128
1126
  * <p> Option to allow references to indices in an HTTP request body. Must be <code>false</code> when configuring access to individual sub-resources. By default, the value is <code>true</code>.
1129
1127
  * See <a href="http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" target="_blank">Configuration Advanced Options</a> for more information.</p>
1130
1128
  */
1131
- AdvancedOptions?: {
1132
- [key: string]: string;
1133
- };
1129
+ AdvancedOptions?: Record<string, string>;
1134
1130
  /**
1135
1131
  * <p>Map of <code>LogType</code> and <code>LogPublishingOption</code>, each containing options to publish a given type of Elasticsearch log.</p>
1136
1132
  */
1137
- LogPublishingOptions?: {
1138
- [key: string]: LogPublishingOption;
1139
- };
1133
+ LogPublishingOptions?: Record<string, LogPublishingOption>;
1140
1134
  /**
1141
1135
  * <p>Options to specify configuration that will be applied to the domain endpoint.</p>
1142
1136
  */
@@ -1267,9 +1261,7 @@ export interface ElasticsearchDomainStatus {
1267
1261
  /**
1268
1262
  * <p>Map containing the Elasticsearch domain endpoints used to submit index and search requests. Example <code>key, value</code>: <code>'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com'</code>.</p>
1269
1263
  */
1270
- Endpoints?: {
1271
- [key: string]: string;
1272
- };
1264
+ Endpoints?: Record<string, string>;
1273
1265
  /**
1274
1266
  * <p>The status of the Elasticsearch domain configuration. <code>True</code> if Amazon Elasticsearch Service is processing configuration changes. <code>False</code> if the configuration is active.</p>
1275
1267
  */
@@ -1314,15 +1306,11 @@ export interface ElasticsearchDomainStatus {
1314
1306
  /**
1315
1307
  * <p>Specifies the status of the <code>AdvancedOptions</code></p>
1316
1308
  */
1317
- AdvancedOptions?: {
1318
- [key: string]: string;
1319
- };
1309
+ AdvancedOptions?: Record<string, string>;
1320
1310
  /**
1321
1311
  * <p>Log publishing options for the given domain.</p>
1322
1312
  */
1323
- LogPublishingOptions?: {
1324
- [key: string]: LogPublishingOption;
1325
- };
1313
+ LogPublishingOptions?: Record<string, LogPublishingOption>;
1326
1314
  /**
1327
1315
  * <p>The current status of the Elasticsearch domain's service software.</p>
1328
1316
  */
@@ -2233,9 +2221,7 @@ export interface LogPublishingOptionsStatus {
2233
2221
  /**
2234
2222
  * <p>The log publishing options configured for the Elasticsearch domain.</p>
2235
2223
  */
2236
- Options?: {
2237
- [key: string]: LogPublishingOption;
2238
- };
2224
+ Options?: Record<string, LogPublishingOption>;
2239
2225
  /**
2240
2226
  * <p>The status of the log publishing options for the Elasticsearch domain. See <code>OptionStatus</code> for the status information that's included. </p>
2241
2227
  */
@@ -2669,9 +2655,7 @@ export interface DescribeElasticsearchInstanceTypeLimitsResponse {
2669
2655
  * </ul>
2670
2656
  * </p>
2671
2657
  */
2672
- LimitsByRole?: {
2673
- [key: string]: Limits;
2674
- };
2658
+ LimitsByRole?: Record<string, Limits>;
2675
2659
  }
2676
2660
  export declare namespace DescribeElasticsearchInstanceTypeLimitsResponse {
2677
2661
  /**
@@ -4023,9 +4007,7 @@ export interface UpdateElasticsearchDomainConfigRequest {
4023
4007
  * <p>Modifies the advanced option to allow references to indices in an HTTP request body. Must be <code>false</code> when configuring access to individual sub-resources. By default, the value is <code>true</code>.
4024
4008
  * See <a href="http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" target="_blank">Configuration Advanced Options</a> for more information.</p>
4025
4009
  */
4026
- AdvancedOptions?: {
4027
- [key: string]: string;
4028
- };
4010
+ AdvancedOptions?: Record<string, string>;
4029
4011
  /**
4030
4012
  * <p>IAM access policy as a JSON-formatted string.</p>
4031
4013
  */
@@ -4033,9 +4015,7 @@ export interface UpdateElasticsearchDomainConfigRequest {
4033
4015
  /**
4034
4016
  * <p>Map of <code>LogType</code> and <code>LogPublishingOption</code>, each containing options to publish a given type of Elasticsearch log.</p>
4035
4017
  */
4036
- LogPublishingOptions?: {
4037
- [key: string]: LogPublishingOption;
4038
- };
4018
+ LogPublishingOptions?: Record<string, LogPublishingOption>;
4039
4019
  /**
4040
4020
  * <p>Options to specify configuration that will be applied to the domain endpoint.</p>
4041
4021
  */
@@ -176,9 +176,7 @@ export declare class ValidationException extends __BaseException {
176
176
 
177
177
  export interface AdvancedOptionsStatus {
178
178
 
179
- Options: {
180
- [key: string]: string;
181
- } | undefined;
179
+ Options: Record<string, string> | undefined;
182
180
 
183
181
  Status: OptionStatus | undefined;
184
182
  }
@@ -613,13 +611,9 @@ export interface CreateElasticsearchDomainRequest {
613
611
 
614
612
  NodeToNodeEncryptionOptions?: NodeToNodeEncryptionOptions;
615
613
 
616
- AdvancedOptions?: {
617
- [key: string]: string;
618
- };
614
+ AdvancedOptions?: Record<string, string>;
619
615
 
620
- LogPublishingOptions?: {
621
- [key: string]: LogPublishingOption;
622
- };
616
+ LogPublishingOptions?: Record<string, LogPublishingOption>;
623
617
 
624
618
  DomainEndpointOptions?: DomainEndpointOptions;
625
619
 
@@ -696,9 +690,7 @@ export interface ElasticsearchDomainStatus {
696
690
 
697
691
  Endpoint?: string;
698
692
 
699
- Endpoints?: {
700
- [key: string]: string;
701
- };
693
+ Endpoints?: Record<string, string>;
702
694
 
703
695
  Processing?: boolean;
704
696
 
@@ -721,13 +713,9 @@ export interface ElasticsearchDomainStatus {
721
713
 
722
714
  NodeToNodeEncryptionOptions?: NodeToNodeEncryptionOptions;
723
715
 
724
- AdvancedOptions?: {
725
- [key: string]: string;
726
- };
716
+ AdvancedOptions?: Record<string, string>;
727
717
 
728
- LogPublishingOptions?: {
729
- [key: string]: LogPublishingOption;
730
- };
718
+ LogPublishingOptions?: Record<string, LogPublishingOption>;
731
719
 
732
720
  ServiceSoftwareOptions?: ServiceSoftwareOptions;
733
721
 
@@ -1241,9 +1229,7 @@ export declare namespace EncryptionAtRestOptionsStatus {
1241
1229
 
1242
1230
  export interface LogPublishingOptionsStatus {
1243
1231
 
1244
- Options?: {
1245
- [key: string]: LogPublishingOption;
1246
- };
1232
+ Options?: Record<string, LogPublishingOption>;
1247
1233
 
1248
1234
  Status?: OptionStatus;
1249
1235
  }
@@ -1421,9 +1407,7 @@ export declare namespace Limits {
1421
1407
 
1422
1408
  export interface DescribeElasticsearchInstanceTypeLimitsResponse {
1423
1409
 
1424
- LimitsByRole?: {
1425
- [key: string]: Limits;
1426
- };
1410
+ LimitsByRole?: Record<string, Limits>;
1427
1411
  }
1428
1412
  export declare namespace DescribeElasticsearchInstanceTypeLimitsResponse {
1429
1413
 
@@ -2045,15 +2029,11 @@ export interface UpdateElasticsearchDomainConfigRequest {
2045
2029
 
2046
2030
  CognitoOptions?: CognitoOptions;
2047
2031
 
2048
- AdvancedOptions?: {
2049
- [key: string]: string;
2050
- };
2032
+ AdvancedOptions?: Record<string, string>;
2051
2033
 
2052
2034
  AccessPolicies?: string;
2053
2035
 
2054
- LogPublishingOptions?: {
2055
- [key: string]: LogPublishingOption;
2056
- };
2036
+ LogPublishingOptions?: Record<string, LogPublishingOption>;
2057
2037
 
2058
2038
  DomainEndpointOptions?: DomainEndpointOptions;
2059
2039
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elasticsearch-service",
3
3
  "description": "AWS SDK for JavaScript Elasticsearch Service Client for Node.js, Browser and React Native",
4
- "version": "3.95.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.95.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.95.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",
@@ -35,15 +36,15 @@
35
36
  "@aws-sdk/node-config-provider": "3.80.0",
36
37
  "@aws-sdk/node-http-handler": "3.94.0",
37
38
  "@aws-sdk/protocol-http": "3.78.0",
38
- "@aws-sdk/smithy-client": "3.85.0",
39
+ "@aws-sdk/smithy-client": "3.99.0",
39
40
  "@aws-sdk/types": "3.78.0",
40
41
  "@aws-sdk/url-parser": "3.78.0",
41
42
  "@aws-sdk/util-base64-browser": "3.58.0",
42
43
  "@aws-sdk/util-base64-node": "3.55.0",
43
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
45
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.85.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.85.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.99.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.99.0",
47
48
  "@aws-sdk/util-user-agent-browser": "3.78.0",
48
49
  "@aws-sdk/util-user-agent-node": "3.80.0",
49
50
  "@aws-sdk/util-utf8-browser": "3.55.0",