@aws-sdk/client-opensearch 3.348.0 → 3.351.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,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EngineType = exports.UpgradeStatus = exports.UpgradeStep = exports.VpcEndpointErrorCode = exports.ReservedInstancePaymentOption = exports.DescribePackagesFilterName = exports.InvalidPaginationTokenException = exports.NodeType = exports.NodeStatus = exports.DependencyFailureException = exports.MasterNodeStatus = exports.ZoneStatus = exports.DomainState = exports.DomainHealth = exports.RollbackOnDisable = exports.OverallChangeStatus = exports.AutoTuneType = exports.ScheduledAutoTuneSeverityType = exports.ScheduledAutoTuneActionType = exports.VpcEndpointStatus = exports.PackageStatus = exports.OutboundConnectionStatusCode = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.AutoTuneState = exports.LogType = exports.VolumeType = exports.TLSSecurityPolicy = exports.OpenSearchWarmPartitionInstanceType = exports.OpenSearchPartitionInstanceType = exports.TimeUnit = exports.AutoTuneDesiredState = exports.DeploymentStatus = exports.PrincipalType = exports.ConflictException = exports.PackageType = exports.DomainPackageStatus = exports.ValidationException = exports.InternalException = exports.BaseException = exports.ActionType = exports.ActionStatus = exports.ActionSeverity = exports.OptionState = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = exports.InboundConnectionStatusCode = exports.ConnectionMode = void 0;
4
- exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = void 0;
3
+ exports.UpgradeStatus = exports.UpgradeStep = exports.VpcEndpointErrorCode = exports.ReservedInstancePaymentOption = exports.DescribePackagesFilterName = exports.InvalidPaginationTokenException = exports.NodeType = exports.NodeStatus = exports.DependencyFailureException = exports.MasterNodeStatus = exports.ZoneStatus = exports.DomainState = exports.DomainHealth = exports.RollbackOnDisable = exports.OverallChangeStatus = exports.AutoTuneType = exports.ScheduledAutoTuneSeverityType = exports.ScheduledAutoTuneActionType = exports.VpcEndpointStatus = exports.PackageStatus = exports.OutboundConnectionStatusCode = exports.SkipUnavailableStatus = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.AutoTuneState = exports.LogType = exports.VolumeType = exports.TLSSecurityPolicy = exports.OpenSearchWarmPartitionInstanceType = exports.OpenSearchPartitionInstanceType = exports.TimeUnit = exports.AutoTuneDesiredState = exports.DeploymentStatus = exports.PrincipalType = exports.ConflictException = exports.PackageType = exports.DomainPackageStatus = exports.ValidationException = exports.InternalException = exports.BaseException = exports.ActionType = exports.ActionStatus = exports.ActionSeverity = exports.OptionState = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = exports.InboundConnectionStatusCode = exports.ConnectionMode = void 0;
4
+ exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = exports.EngineType = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const OpenSearchServiceException_1 = require("./OpenSearchServiceException");
7
7
  exports.ConnectionMode = {
@@ -328,6 +328,10 @@ class ResourceAlreadyExistsException extends OpenSearchServiceException_1.OpenSe
328
328
  }
329
329
  }
330
330
  exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
331
+ exports.SkipUnavailableStatus = {
332
+ DISABLED: "DISABLED",
333
+ ENABLED: "ENABLED",
334
+ };
331
335
  exports.OutboundConnectionStatusCode = {
332
336
  ACTIVE: "ACTIVE",
333
337
  APPROVED: "APPROVED",
@@ -160,6 +160,7 @@ const se_CreateOutboundConnectionCommand = async (input, context) => {
160
160
  body = JSON.stringify((0, smithy_client_1.take)(input, {
161
161
  ConnectionAlias: [],
162
162
  ConnectionMode: [],
163
+ ConnectionProperties: (_) => (0, smithy_client_1._json)(_),
163
164
  LocalDomainInfo: (_) => (0, smithy_client_1._json)(_),
164
165
  RemoteDomainInfo: (_) => (0, smithy_client_1._json)(_),
165
166
  }));
@@ -314,6 +314,10 @@ export class ResourceAlreadyExistsException extends __BaseException {
314
314
  Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
315
315
  }
316
316
  }
317
+ export const SkipUnavailableStatus = {
318
+ DISABLED: "DISABLED",
319
+ ENABLED: "ENABLED",
320
+ };
317
321
  export const OutboundConnectionStatusCode = {
318
322
  ACTIVE: "ACTIVE",
319
323
  APPROVED: "APPROVED",
@@ -149,6 +149,7 @@ export const se_CreateOutboundConnectionCommand = async (input, context) => {
149
149
  body = JSON.stringify(take(input, {
150
150
  ConnectionAlias: [],
151
151
  ConnectionMode: [],
152
+ ConnectionProperties: (_) => _json(_),
152
153
  LocalDomainInfo: (_) => _json(_),
153
154
  RemoteDomainInfo: (_) => _json(_),
154
155
  }));
@@ -49,6 +49,12 @@ export interface CreateOutboundConnectionCommandOutput extends CreateOutboundCon
49
49
  * },
50
50
  * ConnectionAlias: "STRING_VALUE", // required
51
51
  * ConnectionMode: "DIRECT" || "VPC_ENDPOINT",
52
+ * ConnectionProperties: { // ConnectionProperties
53
+ * Endpoint: "STRING_VALUE",
54
+ * CrossClusterSearch: { // CrossClusterSearchConnectionProperties
55
+ * SkipUnavailable: "ENABLED" || "DISABLED",
56
+ * },
57
+ * },
52
58
  * };
53
59
  * const command = new CreateOutboundConnectionCommand(input);
54
60
  * const response = await client.send(command);
@@ -76,6 +82,9 @@ export interface CreateOutboundConnectionCommandOutput extends CreateOutboundCon
76
82
  * // ConnectionMode: "DIRECT" || "VPC_ENDPOINT",
77
83
  * // ConnectionProperties: { // ConnectionProperties
78
84
  * // Endpoint: "STRING_VALUE",
85
+ * // CrossClusterSearch: { // CrossClusterSearchConnectionProperties
86
+ * // SkipUnavailable: "ENABLED" || "DISABLED",
87
+ * // },
79
88
  * // },
80
89
  * // };
81
90
  *
@@ -62,6 +62,9 @@ export interface DeleteOutboundConnectionCommandOutput extends DeleteOutboundCon
62
62
  * // ConnectionMode: "DIRECT" || "VPC_ENDPOINT",
63
63
  * // ConnectionProperties: { // ConnectionProperties
64
64
  * // Endpoint: "STRING_VALUE",
65
+ * // CrossClusterSearch: { // CrossClusterSearchConnectionProperties
66
+ * // SkipUnavailable: "ENABLED" || "DISABLED",
67
+ * // },
65
68
  * // },
66
69
  * // },
67
70
  * // };
@@ -72,6 +72,9 @@ export interface DescribeOutboundConnectionsCommandOutput extends DescribeOutbou
72
72
  * // ConnectionMode: "DIRECT" || "VPC_ENDPOINT",
73
73
  * // ConnectionProperties: { // ConnectionProperties
74
74
  * // Endpoint: "STRING_VALUE",
75
+ * // CrossClusterSearch: { // CrossClusterSearchConnectionProperties
76
+ * // SkipUnavailable: "ENABLED" || "DISABLED",
77
+ * // },
75
78
  * // },
76
79
  * // },
77
80
  * // ],
@@ -1796,6 +1796,45 @@ export declare class ResourceAlreadyExistsException extends __BaseException {
1796
1796
  */
1797
1797
  constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
1798
1798
  }
1799
+ /**
1800
+ * @public
1801
+ * @enum
1802
+ */
1803
+ export declare const SkipUnavailableStatus: {
1804
+ readonly DISABLED: "DISABLED";
1805
+ readonly ENABLED: "ENABLED";
1806
+ };
1807
+ /**
1808
+ * @public
1809
+ */
1810
+ export type SkipUnavailableStatus = (typeof SkipUnavailableStatus)[keyof typeof SkipUnavailableStatus];
1811
+ /**
1812
+ * @public
1813
+ * <p>Cross cluster search specific connection properties.</p>
1814
+ */
1815
+ export interface CrossClusterSearchConnectionProperties {
1816
+ /**
1817
+ * <p>Status of SkipUnavailable param for outbound connection.</p>
1818
+ */
1819
+ SkipUnavailable?: SkipUnavailableStatus | string;
1820
+ }
1821
+ /**
1822
+ * @public
1823
+ * <p>The connection properties of an outbound connection.</p>
1824
+ */
1825
+ export interface ConnectionProperties {
1826
+ /**
1827
+ * <important>
1828
+ * <p>The Endpoint attribute cannot be modified. </p>
1829
+ * </important>
1830
+ * <p>The endpoint of the remote domain. Applicable for VPC_ENDPOINT connection mode.</p>
1831
+ */
1832
+ Endpoint?: string;
1833
+ /**
1834
+ * <p>The connection properties for cross cluster search.</p>
1835
+ */
1836
+ CrossClusterSearch?: CrossClusterSearchConnectionProperties;
1837
+ }
1799
1838
  /**
1800
1839
  * @public
1801
1840
  * <p>Container for the parameters to the <code>CreateOutboundConnection</code> operation.</p>
@@ -1817,16 +1856,10 @@ export interface CreateOutboundConnectionRequest {
1817
1856
  * <p>The connection mode.</p>
1818
1857
  */
1819
1858
  ConnectionMode?: ConnectionMode | string;
1820
- }
1821
- /**
1822
- * @public
1823
- * <p>The connection properties of an outbound connection.</p>
1824
- */
1825
- export interface ConnectionProperties {
1826
1859
  /**
1827
- * <p>The endpoint of the remote domain.</p>
1860
+ * <p>The <code>ConnectionProperties</code> for the outbound connection.</p>
1828
1861
  */
1829
- Endpoint?: string;
1862
+ ConnectionProperties?: ConnectionProperties;
1830
1863
  }
1831
1864
  /**
1832
1865
  * @public
@@ -582,14 +582,25 @@ export declare class ResourceAlreadyExistsException extends __BaseException {
582
582
  opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>
583
583
  );
584
584
  }
585
+ export declare const SkipUnavailableStatus: {
586
+ readonly DISABLED: "DISABLED";
587
+ readonly ENABLED: "ENABLED";
588
+ };
589
+ export type SkipUnavailableStatus =
590
+ (typeof SkipUnavailableStatus)[keyof typeof SkipUnavailableStatus];
591
+ export interface CrossClusterSearchConnectionProperties {
592
+ SkipUnavailable?: SkipUnavailableStatus | string;
593
+ }
594
+ export interface ConnectionProperties {
595
+ Endpoint?: string;
596
+ CrossClusterSearch?: CrossClusterSearchConnectionProperties;
597
+ }
585
598
  export interface CreateOutboundConnectionRequest {
586
599
  LocalDomainInfo: DomainInformationContainer | undefined;
587
600
  RemoteDomainInfo: DomainInformationContainer | undefined;
588
601
  ConnectionAlias: string | undefined;
589
602
  ConnectionMode?: ConnectionMode | string;
590
- }
591
- export interface ConnectionProperties {
592
- Endpoint?: string;
603
+ ConnectionProperties?: ConnectionProperties;
593
604
  }
594
605
  export declare const OutboundConnectionStatusCode: {
595
606
  readonly ACTIVE: "ACTIVE";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-opensearch",
3
3
  "description": "AWS SDK for JavaScript Opensearch Client for Node.js, Browser and React Native",
4
- "version": "3.348.0",
4
+ "version": "3.351.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.348.0",
24
+ "@aws-sdk/client-sts": "3.350.0",
25
25
  "@aws-sdk/config-resolver": "3.347.0",
26
- "@aws-sdk/credential-provider-node": "3.348.0",
26
+ "@aws-sdk/credential-provider-node": "3.350.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.347.0",
28
28
  "@aws-sdk/hash-node": "3.347.0",
29
29
  "@aws-sdk/invalid-dependency": "3.347.0",
@@ -38,7 +38,7 @@
38
38
  "@aws-sdk/middleware-stack": "3.347.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.347.0",
40
40
  "@aws-sdk/node-config-provider": "3.347.0",
41
- "@aws-sdk/node-http-handler": "3.348.0",
41
+ "@aws-sdk/node-http-handler": "3.350.0",
42
42
  "@aws-sdk/smithy-client": "3.347.0",
43
43
  "@aws-sdk/types": "3.347.0",
44
44
  "@aws-sdk/url-parser": "3.347.0",