@aws-sdk/client-opensearch 3.435.0 → 3.437.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/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +6 -2
- package/dist-cjs/protocols/Aws_restJson1.js +11 -0
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-cjs/runtimeConfig.shared.js +15 -13
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +11 -0
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-es/runtimeConfig.shared.js +15 -13
- package/dist-types/commands/CreateDomainCommand.d.ts +3 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +2 -0
- package/dist-types/commands/DescribeDomainCommand.d.ts +2 -0
- package/dist-types/commands/DescribeDomainConfigCommand.d.ts +8 -4
- package/dist-types/commands/DescribeDomainsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeDryRunProgressCommand.d.ts +2 -0
- package/dist-types/commands/GetDomainMaintenanceStatusCommand.d.ts +1 -1
- package/dist-types/commands/ListDomainMaintenancesCommand.d.ts +1 -1
- package/dist-types/commands/StartDomainMaintenanceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateDomainConfigCommand.d.ts +9 -4
- package/dist-types/models/models_0.d.ts +74 -19
- package/dist-types/ts3.4/models/models_0.d.ts +14 -0
- package/package.json +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const v = "required", w = "fn", x = "argv", y = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [v]: false, "type": "String" }, j = { [v]: true, "default": false, "type": "Boolean" }, k = { [y]: "Endpoint" }, l = { [w]: c, [x]: [{ [y]: "UseFIPS" }, true] }, m = { [w]: c, [x]: [{ [y]: "UseDualStack" }, true] }, n = {}, o = { [w]: "getAttr", [x]: [{ [y]: g }, "supportsFIPS"] }, p = { [w]: c, [x]: [true, { [w]: "getAttr", [x]: [{ [y]: g }, "supportsDualStack"] }] }, q = { [w]: "getAttr", [x]: [{ [y]: g }, "name"] }, r = { "url": "https://aos.{Region}.api.aws", "properties": {}, "headers": {} }, s = [l], t = [m], u = [{ [y]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [w]: b, [x]: [k] }], rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [w]: b, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [w]: c, [x]: [a, o] }, p], rules: [{ endpoint: { url: "https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: s, rules: [{ conditions: [{ [w]: c, [x]: [o, a] }], rules: [{ endpoint: { url: "https://es-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: t, rules: [{ conditions: [p], rules: [{ conditions: [{ [w]: h, [x]: ["aws", q] }], endpoint: r, type: e }, { conditions: [{ [w]: h, [x]: ["aws-cn", q] }], endpoint: { url: "https://aos.{Region}.api.amazonwebservices.com.cn", properties: n, headers: n }, type: e }, { conditions: [{ [w]: h, [x]: ["aws-us-gov", q] }], endpoint: r, type: e }, { endpoint: { url: "https://es.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://es.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = exports.EngineType = exports.UpgradeStatus = exports.UpgradeStep = void 0;
|
|
3
|
+
exports.MaintenanceType = 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.IPAddressType = 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 = exports.UpgradeStatus = exports.UpgradeStep = exports.MaintenanceStatus = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const OpenSearchServiceException_1 = require("./OpenSearchServiceException");
|
|
7
7
|
exports.ConnectionMode = {
|
|
@@ -286,6 +286,10 @@ exports.VolumeType = {
|
|
|
286
286
|
io1: "io1",
|
|
287
287
|
standard: "standard",
|
|
288
288
|
};
|
|
289
|
+
exports.IPAddressType = {
|
|
290
|
+
DUALSTACK: "dualstack",
|
|
291
|
+
IPV4: "ipv4",
|
|
292
|
+
};
|
|
289
293
|
exports.LogType = {
|
|
290
294
|
AUDIT_LOGS: "AUDIT_LOGS",
|
|
291
295
|
ES_APPLICATION_LOGS: "ES_APPLICATION_LOGS",
|
|
@@ -130,6 +130,7 @@ const se_CreateDomainCommand = async (input, context) => {
|
|
|
130
130
|
EBSOptions: (_) => (0, smithy_client_1._json)(_),
|
|
131
131
|
EncryptionAtRestOptions: (_) => (0, smithy_client_1._json)(_),
|
|
132
132
|
EngineVersion: [],
|
|
133
|
+
IPAddressType: [],
|
|
133
134
|
LogPublishingOptions: (_) => (0, smithy_client_1._json)(_),
|
|
134
135
|
NodeToNodeEncryptionOptions: (_) => (0, smithy_client_1._json)(_),
|
|
135
136
|
OffPeakWindowOptions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1157,6 +1158,7 @@ const se_UpdateDomainConfigCommand = async (input, context) => {
|
|
|
1157
1158
|
DryRunMode: [],
|
|
1158
1159
|
EBSOptions: (_) => (0, smithy_client_1._json)(_),
|
|
1159
1160
|
EncryptionAtRestOptions: (_) => (0, smithy_client_1._json)(_),
|
|
1161
|
+
IPAddressType: [],
|
|
1160
1162
|
LogPublishingOptions: (_) => (0, smithy_client_1._json)(_),
|
|
1161
1163
|
NodeToNodeEncryptionOptions: (_) => (0, smithy_client_1._json)(_),
|
|
1162
1164
|
OffPeakWindowOptions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -4195,6 +4197,7 @@ const de_DomainConfig = (output, context) => {
|
|
|
4195
4197
|
EBSOptions: (_) => de_EBSOptionsStatus(_, context),
|
|
4196
4198
|
EncryptionAtRestOptions: (_) => de_EncryptionAtRestOptionsStatus(_, context),
|
|
4197
4199
|
EngineVersion: (_) => de_VersionStatus(_, context),
|
|
4200
|
+
IPAddressType: (_) => de_IPAddressTypeStatus(_, context),
|
|
4198
4201
|
LogPublishingOptions: (_) => de_LogPublishingOptionsStatus(_, context),
|
|
4199
4202
|
NodeToNodeEncryptionOptions: (_) => de_NodeToNodeEncryptionOptionsStatus(_, context),
|
|
4200
4203
|
OffPeakWindowOptions: (_) => de_OffPeakWindowOptionsStatus(_, context),
|
|
@@ -4268,8 +4271,10 @@ const de_DomainStatus = (output, context) => {
|
|
|
4268
4271
|
EBSOptions: smithy_client_1._json,
|
|
4269
4272
|
EncryptionAtRestOptions: smithy_client_1._json,
|
|
4270
4273
|
Endpoint: smithy_client_1.expectString,
|
|
4274
|
+
EndpointV2: smithy_client_1.expectString,
|
|
4271
4275
|
Endpoints: smithy_client_1._json,
|
|
4272
4276
|
EngineVersion: smithy_client_1.expectString,
|
|
4277
|
+
IPAddressType: smithy_client_1.expectString,
|
|
4273
4278
|
LogPublishingOptions: smithy_client_1._json,
|
|
4274
4279
|
NodeToNodeEncryptionOptions: smithy_client_1._json,
|
|
4275
4280
|
OffPeakWindowOptions: smithy_client_1._json,
|
|
@@ -4301,6 +4306,12 @@ const de_EncryptionAtRestOptionsStatus = (output, context) => {
|
|
|
4301
4306
|
Status: (_) => de_OptionStatus(_, context),
|
|
4302
4307
|
});
|
|
4303
4308
|
};
|
|
4309
|
+
const de_IPAddressTypeStatus = (output, context) => {
|
|
4310
|
+
return (0, smithy_client_1.take)(output, {
|
|
4311
|
+
Options: smithy_client_1.expectString,
|
|
4312
|
+
Status: (_) => de_OptionStatus(_, context),
|
|
4313
|
+
});
|
|
4314
|
+
};
|
|
4304
4315
|
const de_LogPublishingOptionsStatus = (output, context) => {
|
|
4305
4316
|
return (0, smithy_client_1.take)(output, {
|
|
4306
4317
|
Options: smithy_client_1._json,
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
@@ -22,6 +23,7 @@ const getRuntimeConfig = (config) => {
|
|
|
22
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
25
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
27
|
return {
|
|
26
28
|
...clientSharedValues,
|
|
27
29
|
...config,
|
|
@@ -6,17 +6,19 @@ const url_parser_1 = require("@smithy/url-parser");
|
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
8
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
-
const getRuntimeConfig = (config) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2021-01-01",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
|
+
serviceId: config?.serviceId ?? "OpenSearch",
|
|
19
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
20
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
21
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
22
24
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const v = "required", w = "fn", x = "argv", y = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [v]: false, "type": "String" }, j = { [v]: true, "default": false, "type": "Boolean" }, k = { [y]: "Endpoint" }, l = { [w]: c, [x]: [{ [y]: "UseFIPS" }, true] }, m = { [w]: c, [x]: [{ [y]: "UseDualStack" }, true] }, n = {}, o = { [w]: "getAttr", [x]: [{ [y]: g }, "supportsFIPS"] }, p = { [w]: c, [x]: [true, { [w]: "getAttr", [x]: [{ [y]: g }, "supportsDualStack"] }] }, q = { [w]: "getAttr", [x]: [{ [y]: g }, "name"] }, r = { "url": "https://aos.{Region}.api.aws", "properties": {}, "headers": {} }, s = [l], t = [m], u = [{ [y]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [w]: b, [x]: [k] }], rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [w]: b, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [w]: c, [x]: [a, o] }, p], rules: [{ endpoint: { url: "https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: s, rules: [{ conditions: [{ [w]: c, [x]: [o, a] }], rules: [{ endpoint: { url: "https://es-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: t, rules: [{ conditions: [p], rules: [{ conditions: [{ [w]: h, [x]: ["aws", q] }], endpoint: r, type: e }, { conditions: [{ [w]: h, [x]: ["aws-cn", q] }], endpoint: { url: "https://aos.{Region}.api.amazonwebservices.com.cn", properties: n, headers: n }, type: e }, { conditions: [{ [w]: h, [x]: ["aws-us-gov", q] }], endpoint: r, type: e }, { endpoint: { url: "https://es.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://es.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -274,6 +274,10 @@ export const VolumeType = {
|
|
|
274
274
|
io1: "io1",
|
|
275
275
|
standard: "standard",
|
|
276
276
|
};
|
|
277
|
+
export const IPAddressType = {
|
|
278
|
+
DUALSTACK: "dualstack",
|
|
279
|
+
IPV4: "ipv4",
|
|
280
|
+
};
|
|
277
281
|
export const LogType = {
|
|
278
282
|
AUDIT_LOGS: "AUDIT_LOGS",
|
|
279
283
|
ES_APPLICATION_LOGS: "ES_APPLICATION_LOGS",
|
|
@@ -120,6 +120,7 @@ export const se_CreateDomainCommand = async (input, context) => {
|
|
|
120
120
|
EBSOptions: (_) => _json(_),
|
|
121
121
|
EncryptionAtRestOptions: (_) => _json(_),
|
|
122
122
|
EngineVersion: [],
|
|
123
|
+
IPAddressType: [],
|
|
123
124
|
LogPublishingOptions: (_) => _json(_),
|
|
124
125
|
NodeToNodeEncryptionOptions: (_) => _json(_),
|
|
125
126
|
OffPeakWindowOptions: (_) => _json(_),
|
|
@@ -1100,6 +1101,7 @@ export const se_UpdateDomainConfigCommand = async (input, context) => {
|
|
|
1100
1101
|
DryRunMode: [],
|
|
1101
1102
|
EBSOptions: (_) => _json(_),
|
|
1102
1103
|
EncryptionAtRestOptions: (_) => _json(_),
|
|
1104
|
+
IPAddressType: [],
|
|
1103
1105
|
LogPublishingOptions: (_) => _json(_),
|
|
1104
1106
|
NodeToNodeEncryptionOptions: (_) => _json(_),
|
|
1105
1107
|
OffPeakWindowOptions: (_) => _json(_),
|
|
@@ -4076,6 +4078,7 @@ const de_DomainConfig = (output, context) => {
|
|
|
4076
4078
|
EBSOptions: (_) => de_EBSOptionsStatus(_, context),
|
|
4077
4079
|
EncryptionAtRestOptions: (_) => de_EncryptionAtRestOptionsStatus(_, context),
|
|
4078
4080
|
EngineVersion: (_) => de_VersionStatus(_, context),
|
|
4081
|
+
IPAddressType: (_) => de_IPAddressTypeStatus(_, context),
|
|
4079
4082
|
LogPublishingOptions: (_) => de_LogPublishingOptionsStatus(_, context),
|
|
4080
4083
|
NodeToNodeEncryptionOptions: (_) => de_NodeToNodeEncryptionOptionsStatus(_, context),
|
|
4081
4084
|
OffPeakWindowOptions: (_) => de_OffPeakWindowOptionsStatus(_, context),
|
|
@@ -4149,8 +4152,10 @@ const de_DomainStatus = (output, context) => {
|
|
|
4149
4152
|
EBSOptions: _json,
|
|
4150
4153
|
EncryptionAtRestOptions: _json,
|
|
4151
4154
|
Endpoint: __expectString,
|
|
4155
|
+
EndpointV2: __expectString,
|
|
4152
4156
|
Endpoints: _json,
|
|
4153
4157
|
EngineVersion: __expectString,
|
|
4158
|
+
IPAddressType: __expectString,
|
|
4154
4159
|
LogPublishingOptions: _json,
|
|
4155
4160
|
NodeToNodeEncryptionOptions: _json,
|
|
4156
4161
|
OffPeakWindowOptions: _json,
|
|
@@ -4182,6 +4187,12 @@ const de_EncryptionAtRestOptionsStatus = (output, context) => {
|
|
|
4182
4187
|
Status: (_) => de_OptionStatus(_, context),
|
|
4183
4188
|
});
|
|
4184
4189
|
};
|
|
4190
|
+
const de_IPAddressTypeStatus = (output, context) => {
|
|
4191
|
+
return take(output, {
|
|
4192
|
+
Options: __expectString,
|
|
4193
|
+
Status: (_) => de_OptionStatus(_, context),
|
|
4194
|
+
});
|
|
4195
|
+
};
|
|
4185
4196
|
const de_LogPublishingOptionsStatus = (output, context) => {
|
|
4186
4197
|
return take(output, {
|
|
4187
4198
|
Options: _json,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
5
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -18,6 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
19
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
20
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
21
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
21
23
|
return {
|
|
22
24
|
...clientSharedValues,
|
|
23
25
|
...config,
|
|
@@ -3,16 +3,18 @@ import { parseUrl } from "@smithy/url-parser";
|
|
|
3
3
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
4
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
5
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
-
export const getRuntimeConfig = (config) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2021-01-01",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "OpenSearch",
|
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -59,6 +59,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
|
|
|
59
59
|
* Throughput: Number("int"),
|
|
60
60
|
* },
|
|
61
61
|
* AccessPolicies: "STRING_VALUE",
|
|
62
|
+
* IPAddressType: "ipv4" || "dualstack",
|
|
62
63
|
* SnapshotOptions: { // SnapshotOptions
|
|
63
64
|
* AutomatedSnapshotStartHour: Number("int"),
|
|
64
65
|
* },
|
|
@@ -164,6 +165,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
|
|
|
164
165
|
* // Created: true || false,
|
|
165
166
|
* // Deleted: true || false,
|
|
166
167
|
* // Endpoint: "STRING_VALUE",
|
|
168
|
+
* // EndpointV2: "STRING_VALUE",
|
|
167
169
|
* // Endpoints: { // EndpointsMap
|
|
168
170
|
* // "<keys>": "STRING_VALUE",
|
|
169
171
|
* // },
|
|
@@ -196,6 +198,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
|
|
|
196
198
|
* // Throughput: Number("int"),
|
|
197
199
|
* // },
|
|
198
200
|
* // AccessPolicies: "STRING_VALUE",
|
|
201
|
+
* // IPAddressType: "ipv4" || "dualstack",
|
|
199
202
|
* // SnapshotOptions: { // SnapshotOptions
|
|
200
203
|
* // AutomatedSnapshotStartHour: Number("int"),
|
|
201
204
|
* // },
|
|
@@ -44,6 +44,7 @@ export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __Metad
|
|
|
44
44
|
* // Created: true || false,
|
|
45
45
|
* // Deleted: true || false,
|
|
46
46
|
* // Endpoint: "STRING_VALUE",
|
|
47
|
+
* // EndpointV2: "STRING_VALUE",
|
|
47
48
|
* // Endpoints: { // EndpointsMap
|
|
48
49
|
* // "<keys>": "STRING_VALUE",
|
|
49
50
|
* // },
|
|
@@ -76,6 +77,7 @@ export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __Metad
|
|
|
76
77
|
* // Throughput: Number("int"),
|
|
77
78
|
* // },
|
|
78
79
|
* // AccessPolicies: "STRING_VALUE",
|
|
80
|
+
* // IPAddressType: "ipv4" || "dualstack",
|
|
79
81
|
* // SnapshotOptions: { // SnapshotOptions
|
|
80
82
|
* // AutomatedSnapshotStartHour: Number("int"),
|
|
81
83
|
* // },
|
|
@@ -44,6 +44,7 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
|
|
|
44
44
|
* // Created: true || false,
|
|
45
45
|
* // Deleted: true || false,
|
|
46
46
|
* // Endpoint: "STRING_VALUE",
|
|
47
|
+
* // EndpointV2: "STRING_VALUE",
|
|
47
48
|
* // Endpoints: { // EndpointsMap
|
|
48
49
|
* // "<keys>": "STRING_VALUE",
|
|
49
50
|
* // },
|
|
@@ -76,6 +77,7 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
|
|
|
76
77
|
* // Throughput: Number("int"),
|
|
77
78
|
* // },
|
|
78
79
|
* // AccessPolicies: "STRING_VALUE",
|
|
80
|
+
* // IPAddressType: "ipv4" || "dualstack",
|
|
79
81
|
* // SnapshotOptions: { // SnapshotOptions
|
|
80
82
|
* // AutomatedSnapshotStartHour: Number("int"),
|
|
81
83
|
* // },
|
|
@@ -100,10 +100,8 @@ export interface DescribeDomainConfigCommandOutput extends DescribeDomainConfigR
|
|
|
100
100
|
* // PendingDeletion: true || false,
|
|
101
101
|
* // },
|
|
102
102
|
* // },
|
|
103
|
-
* //
|
|
104
|
-
* // Options:
|
|
105
|
-
* // AutomatedSnapshotStartHour: Number("int"),
|
|
106
|
-
* // },
|
|
103
|
+
* // IPAddressType: { // IPAddressTypeStatus
|
|
104
|
+
* // Options: "ipv4" || "dualstack", // required
|
|
107
105
|
* // Status: {
|
|
108
106
|
* // CreationDate: new Date("TIMESTAMP"), // required
|
|
109
107
|
* // UpdateDate: new Date("TIMESTAMP"), // required
|
|
@@ -112,6 +110,12 @@ export interface DescribeDomainConfigCommandOutput extends DescribeDomainConfigR
|
|
|
112
110
|
* // PendingDeletion: true || false,
|
|
113
111
|
* // },
|
|
114
112
|
* // },
|
|
113
|
+
* // SnapshotOptions: { // SnapshotOptionsStatus
|
|
114
|
+
* // Options: { // SnapshotOptions
|
|
115
|
+
* // AutomatedSnapshotStartHour: Number("int"),
|
|
116
|
+
* // },
|
|
117
|
+
* // Status: "<OptionStatus>", // required
|
|
118
|
+
* // },
|
|
115
119
|
* // VPCOptions: { // VPCDerivedInfoStatus
|
|
116
120
|
* // Options: { // VPCDerivedInfo
|
|
117
121
|
* // VPCId: "STRING_VALUE",
|
|
@@ -47,6 +47,7 @@ export interface DescribeDomainsCommandOutput extends DescribeDomainsResponse, _
|
|
|
47
47
|
* // Created: true || false,
|
|
48
48
|
* // Deleted: true || false,
|
|
49
49
|
* // Endpoint: "STRING_VALUE",
|
|
50
|
+
* // EndpointV2: "STRING_VALUE",
|
|
50
51
|
* // Endpoints: { // EndpointsMap
|
|
51
52
|
* // "<keys>": "STRING_VALUE",
|
|
52
53
|
* // },
|
|
@@ -79,6 +80,7 @@ export interface DescribeDomainsCommandOutput extends DescribeDomainsResponse, _
|
|
|
79
80
|
* // Throughput: Number("int"),
|
|
80
81
|
* // },
|
|
81
82
|
* // AccessPolicies: "STRING_VALUE",
|
|
83
|
+
* // IPAddressType: "ipv4" || "dualstack",
|
|
82
84
|
* // SnapshotOptions: { // SnapshotOptions
|
|
83
85
|
* // AutomatedSnapshotStartHour: Number("int"),
|
|
84
86
|
* // },
|
|
@@ -58,6 +58,7 @@ export interface DescribeDryRunProgressCommandOutput extends DescribeDryRunProgr
|
|
|
58
58
|
* // Created: true || false,
|
|
59
59
|
* // Deleted: true || false,
|
|
60
60
|
* // Endpoint: "STRING_VALUE",
|
|
61
|
+
* // EndpointV2: "STRING_VALUE",
|
|
61
62
|
* // Endpoints: { // EndpointsMap
|
|
62
63
|
* // "<keys>": "STRING_VALUE",
|
|
63
64
|
* // },
|
|
@@ -90,6 +91,7 @@ export interface DescribeDryRunProgressCommandOutput extends DescribeDryRunProgr
|
|
|
90
91
|
* // Throughput: Number("int"),
|
|
91
92
|
* // },
|
|
92
93
|
* // AccessPolicies: "STRING_VALUE",
|
|
94
|
+
* // IPAddressType: "ipv4" || "dualstack",
|
|
93
95
|
* // SnapshotOptions: { // SnapshotOptions
|
|
94
96
|
* // AutomatedSnapshotStartHour: Number("int"),
|
|
95
97
|
* // },
|
|
@@ -23,7 +23,7 @@ export interface GetDomainMaintenanceStatusCommandOutput extends GetDomainMainte
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>
|
|
26
|
+
* <p>The status of the maintenance action.</p>
|
|
27
27
|
* @example
|
|
28
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
29
|
* ```javascript
|
|
@@ -23,7 +23,7 @@ export interface ListDomainMaintenancesCommandOutput extends ListDomainMaintenan
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>
|
|
26
|
+
* <p>A list of maintenance actions for the domain.</p>
|
|
27
27
|
* @example
|
|
28
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
29
|
* ```javascript
|
|
@@ -23,8 +23,8 @@ export interface StartDomainMaintenanceCommandOutput extends StartDomainMaintena
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Starts the node maintenance
|
|
27
|
-
*
|
|
26
|
+
* <p>Starts the node maintenance process on the data node. These processes can include a node reboot, an Opensearch or Elasticsearch process restart,
|
|
27
|
+
* or a Dashboard or Kibana restart.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -79,6 +79,7 @@ export interface UpdateDomainConfigCommandOutput extends UpdateDomainConfigRespo
|
|
|
79
79
|
* "<keys>": "STRING_VALUE",
|
|
80
80
|
* },
|
|
81
81
|
* AccessPolicies: "STRING_VALUE",
|
|
82
|
+
* IPAddressType: "ipv4" || "dualstack",
|
|
82
83
|
* LogPublishingOptions: { // LogPublishingOptions
|
|
83
84
|
* "<keys>": { // LogPublishingOption
|
|
84
85
|
* CloudWatchLogsLogGroupArn: "STRING_VALUE",
|
|
@@ -218,10 +219,8 @@ export interface UpdateDomainConfigCommandOutput extends UpdateDomainConfigRespo
|
|
|
218
219
|
* // PendingDeletion: true || false,
|
|
219
220
|
* // },
|
|
220
221
|
* // },
|
|
221
|
-
* //
|
|
222
|
-
* // Options:
|
|
223
|
-
* // AutomatedSnapshotStartHour: Number("int"),
|
|
224
|
-
* // },
|
|
222
|
+
* // IPAddressType: { // IPAddressTypeStatus
|
|
223
|
+
* // Options: "ipv4" || "dualstack", // required
|
|
225
224
|
* // Status: {
|
|
226
225
|
* // CreationDate: new Date("TIMESTAMP"), // required
|
|
227
226
|
* // UpdateDate: new Date("TIMESTAMP"), // required
|
|
@@ -230,6 +229,12 @@ export interface UpdateDomainConfigCommandOutput extends UpdateDomainConfigRespo
|
|
|
230
229
|
* // PendingDeletion: true || false,
|
|
231
230
|
* // },
|
|
232
231
|
* // },
|
|
232
|
+
* // SnapshotOptions: { // SnapshotOptionsStatus
|
|
233
|
+
* // Options: { // SnapshotOptions
|
|
234
|
+
* // AutomatedSnapshotStartHour: Number("int"),
|
|
235
|
+
* // },
|
|
236
|
+
* // Status: "<OptionStatus>", // required
|
|
237
|
+
* // },
|
|
233
238
|
* // VPCOptions: { // VPCDerivedInfoStatus
|
|
234
239
|
* // Options: { // VPCDerivedInfo
|
|
235
240
|
* // VPCId: "STRING_VALUE",
|
|
@@ -1420,6 +1420,18 @@ export interface EncryptionAtRestOptions {
|
|
|
1420
1420
|
*/
|
|
1421
1421
|
KmsKeyId?: string;
|
|
1422
1422
|
}
|
|
1423
|
+
/**
|
|
1424
|
+
* @public
|
|
1425
|
+
* @enum
|
|
1426
|
+
*/
|
|
1427
|
+
export declare const IPAddressType: {
|
|
1428
|
+
readonly DUALSTACK: "dualstack";
|
|
1429
|
+
readonly IPV4: "ipv4";
|
|
1430
|
+
};
|
|
1431
|
+
/**
|
|
1432
|
+
* @public
|
|
1433
|
+
*/
|
|
1434
|
+
export type IPAddressType = (typeof IPAddressType)[keyof typeof IPAddressType];
|
|
1423
1435
|
/**
|
|
1424
1436
|
* @public
|
|
1425
1437
|
* @enum
|
|
@@ -1603,6 +1615,11 @@ export interface CreateDomainRequest {
|
|
|
1603
1615
|
* new domain.</p>
|
|
1604
1616
|
*/
|
|
1605
1617
|
AccessPolicies?: string;
|
|
1618
|
+
/**
|
|
1619
|
+
* @public
|
|
1620
|
+
* <p>The type of IP addresses supported by the endpoint for the domain.</p>
|
|
1621
|
+
*/
|
|
1622
|
+
IPAddressType?: IPAddressType;
|
|
1606
1623
|
/**
|
|
1607
1624
|
* @public
|
|
1608
1625
|
* <p>DEPRECATED. Container for the parameters required to configure automated snapshots of domain
|
|
@@ -1836,6 +1853,13 @@ export interface DomainStatus {
|
|
|
1836
1853
|
* domain.</p>
|
|
1837
1854
|
*/
|
|
1838
1855
|
Endpoint?: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* @public
|
|
1858
|
+
* <p>The domain endpoint to which index and search requests are submitted. For example,
|
|
1859
|
+
* <code>search-imdb-movies-oopcnjfn6ugo.eu-west-1.es.amazonaws.com</code> or
|
|
1860
|
+
* <code>doc-imdb-movies-oopcnjfn6u.eu-west-1.es.amazonaws.com</code>.</p>
|
|
1861
|
+
*/
|
|
1862
|
+
EndpointV2?: string;
|
|
1839
1863
|
/**
|
|
1840
1864
|
* @public
|
|
1841
1865
|
* <p>The key-value pair that exists if the OpenSearch Service domain uses VPC endpoints.. Example
|
|
@@ -1878,6 +1902,11 @@ export interface DomainStatus {
|
|
|
1878
1902
|
* domain.</p>
|
|
1879
1903
|
*/
|
|
1880
1904
|
AccessPolicies?: string;
|
|
1905
|
+
/**
|
|
1906
|
+
* @public
|
|
1907
|
+
* <p>The type of IP addresses supported by the endpoint for the domain.</p>
|
|
1908
|
+
*/
|
|
1909
|
+
IPAddressType?: IPAddressType;
|
|
1881
1910
|
/**
|
|
1882
1911
|
* @public
|
|
1883
1912
|
* <p>DEPRECATED. Container for parameters required to configure automated snapshots of domain
|
|
@@ -3093,6 +3122,22 @@ export interface VersionStatus {
|
|
|
3093
3122
|
*/
|
|
3094
3123
|
Status: OptionStatus | undefined;
|
|
3095
3124
|
}
|
|
3125
|
+
/**
|
|
3126
|
+
* @public
|
|
3127
|
+
* <p>The IP address type status for the domain.</p>
|
|
3128
|
+
*/
|
|
3129
|
+
export interface IPAddressTypeStatus {
|
|
3130
|
+
/**
|
|
3131
|
+
* @public
|
|
3132
|
+
* <p>The IP address options for the domain.</p>
|
|
3133
|
+
*/
|
|
3134
|
+
Options: IPAddressType | undefined;
|
|
3135
|
+
/**
|
|
3136
|
+
* @public
|
|
3137
|
+
* <p>Provides the current status of an entity.</p>
|
|
3138
|
+
*/
|
|
3139
|
+
Status: OptionStatus | undefined;
|
|
3140
|
+
}
|
|
3096
3141
|
/**
|
|
3097
3142
|
* @public
|
|
3098
3143
|
* <p>The configured log publishing options for the domain and their current status.</p>
|
|
@@ -3216,6 +3261,11 @@ export interface DomainConfig {
|
|
|
3216
3261
|
* <p>Specifies the access policies for the domain.</p>
|
|
3217
3262
|
*/
|
|
3218
3263
|
AccessPolicies?: AccessPoliciesStatus;
|
|
3264
|
+
/**
|
|
3265
|
+
* @public
|
|
3266
|
+
* <p>The type of IP addresses supported by the endpoint for the domain.</p>
|
|
3267
|
+
*/
|
|
3268
|
+
IPAddressType?: IPAddressTypeStatus;
|
|
3219
3269
|
/**
|
|
3220
3270
|
* @public
|
|
3221
3271
|
* <p>DEPRECATED. Container for parameters required to configure automated snapshots of domain
|
|
@@ -4522,7 +4572,7 @@ export interface GetDomainMaintenanceStatusRequest {
|
|
|
4522
4572
|
DomainName: string | undefined;
|
|
4523
4573
|
/**
|
|
4524
4574
|
* @public
|
|
4525
|
-
* <p>The request
|
|
4575
|
+
* <p>The request ID of the maintenance action.</p>
|
|
4526
4576
|
*/
|
|
4527
4577
|
MaintenanceId: string | undefined;
|
|
4528
4578
|
}
|
|
@@ -4556,37 +4606,37 @@ export declare const MaintenanceStatus: {
|
|
|
4556
4606
|
export type MaintenanceStatus = (typeof MaintenanceStatus)[keyof typeof MaintenanceStatus];
|
|
4557
4607
|
/**
|
|
4558
4608
|
* @public
|
|
4559
|
-
* <p>The result of a <code>GetDomainMaintenanceStatus</code> request
|
|
4609
|
+
* <p>The result of a <code>GetDomainMaintenanceStatus</code> request that information about the requested action.</p>
|
|
4560
4610
|
*/
|
|
4561
4611
|
export interface GetDomainMaintenanceStatusResponse {
|
|
4562
4612
|
/**
|
|
4563
4613
|
* @public
|
|
4564
|
-
* <p>
|
|
4614
|
+
* <p>The status of the maintenance action.</p>
|
|
4565
4615
|
*/
|
|
4566
4616
|
Status?: MaintenanceStatus;
|
|
4567
4617
|
/**
|
|
4568
4618
|
* @public
|
|
4569
|
-
* <p>
|
|
4619
|
+
* <p>The status message of the maintenance action.</p>
|
|
4570
4620
|
*/
|
|
4571
4621
|
StatusMessage?: string;
|
|
4572
4622
|
/**
|
|
4573
4623
|
* @public
|
|
4574
|
-
* <p>
|
|
4624
|
+
* <p>The node ID of the maintenance action.</p>
|
|
4575
4625
|
*/
|
|
4576
4626
|
NodeId?: string;
|
|
4577
4627
|
/**
|
|
4578
4628
|
* @public
|
|
4579
|
-
* <p>
|
|
4629
|
+
* <p>The action name.</p>
|
|
4580
4630
|
*/
|
|
4581
4631
|
Action?: MaintenanceType;
|
|
4582
4632
|
/**
|
|
4583
4633
|
* @public
|
|
4584
|
-
* <p>
|
|
4634
|
+
* <p>The time at which the action was created.</p>
|
|
4585
4635
|
*/
|
|
4586
4636
|
CreatedAt?: Date;
|
|
4587
4637
|
/**
|
|
4588
4638
|
* @public
|
|
4589
|
-
* <p>
|
|
4639
|
+
* <p>The time at which the action was updated.</p>
|
|
4590
4640
|
*/
|
|
4591
4641
|
UpdatedAt?: Date;
|
|
4592
4642
|
}
|
|
@@ -4889,7 +4939,7 @@ export interface ListDomainMaintenancesRequest {
|
|
|
4889
4939
|
/**
|
|
4890
4940
|
* @public
|
|
4891
4941
|
* <p>If your initial <code>ListDomainMaintenances</code> operation returns a
|
|
4892
|
-
* <code>nextToken</code>,
|
|
4942
|
+
* <code>nextToken</code>, include the returned <code>nextToken</code> in subsequent
|
|
4893
4943
|
* <code>ListDomainMaintenances</code> operations, which returns results in the next page.</p>
|
|
4894
4944
|
*/
|
|
4895
4945
|
NextToken?: string;
|
|
@@ -4901,7 +4951,7 @@ export interface ListDomainMaintenancesRequest {
|
|
|
4901
4951
|
export interface DomainMaintenanceDetails {
|
|
4902
4952
|
/**
|
|
4903
4953
|
* @public
|
|
4904
|
-
* <p>
|
|
4954
|
+
* <p>The ID of the requested action.</p>
|
|
4905
4955
|
*/
|
|
4906
4956
|
MaintenanceId?: string;
|
|
4907
4957
|
/**
|
|
@@ -4916,7 +4966,7 @@ export interface DomainMaintenanceDetails {
|
|
|
4916
4966
|
Action?: MaintenanceType;
|
|
4917
4967
|
/**
|
|
4918
4968
|
* @public
|
|
4919
|
-
* <p>
|
|
4969
|
+
* <p>The ID of the data node.</p>
|
|
4920
4970
|
*/
|
|
4921
4971
|
NodeId?: string;
|
|
4922
4972
|
/**
|
|
@@ -4926,28 +4976,28 @@ export interface DomainMaintenanceDetails {
|
|
|
4926
4976
|
Status?: MaintenanceStatus;
|
|
4927
4977
|
/**
|
|
4928
4978
|
* @public
|
|
4929
|
-
* <p>The status message
|
|
4979
|
+
* <p>The status message for the action.</p>
|
|
4930
4980
|
*/
|
|
4931
4981
|
StatusMessage?: string;
|
|
4932
4982
|
/**
|
|
4933
4983
|
* @public
|
|
4934
|
-
* <p>
|
|
4984
|
+
* <p>The time at which the action was created.</p>
|
|
4935
4985
|
*/
|
|
4936
4986
|
CreatedAt?: Date;
|
|
4937
4987
|
/**
|
|
4938
4988
|
* @public
|
|
4939
|
-
* <p>
|
|
4989
|
+
* <p>The time at which the action was updated.</p>
|
|
4940
4990
|
*/
|
|
4941
4991
|
UpdatedAt?: Date;
|
|
4942
4992
|
}
|
|
4943
4993
|
/**
|
|
4944
4994
|
* @public
|
|
4945
|
-
* <p>The result of a <code>ListDomainMaintenances</code> request
|
|
4995
|
+
* <p>The result of a <code>ListDomainMaintenances</code> request that contains information about the requested actions. </p>
|
|
4946
4996
|
*/
|
|
4947
4997
|
export interface ListDomainMaintenancesResponse {
|
|
4948
4998
|
/**
|
|
4949
4999
|
* @public
|
|
4950
|
-
* <p>
|
|
5000
|
+
* <p>A list of the submitted maintenance actions.</p>
|
|
4951
5001
|
*/
|
|
4952
5002
|
DomainMaintenances?: DomainMaintenanceDetails[];
|
|
4953
5003
|
/**
|
|
@@ -5581,18 +5631,18 @@ export interface StartDomainMaintenanceRequest {
|
|
|
5581
5631
|
Action: MaintenanceType | undefined;
|
|
5582
5632
|
/**
|
|
5583
5633
|
* @public
|
|
5584
|
-
* <p>
|
|
5634
|
+
* <p>The ID of the data node.</p>
|
|
5585
5635
|
*/
|
|
5586
5636
|
NodeId?: string;
|
|
5587
5637
|
}
|
|
5588
5638
|
/**
|
|
5589
5639
|
* @public
|
|
5590
|
-
* <p>The result of a <code>StartDomainMaintenance</code> request
|
|
5640
|
+
* <p>The result of a <code>StartDomainMaintenance</code> request that information about the requested action. </p>
|
|
5591
5641
|
*/
|
|
5592
5642
|
export interface StartDomainMaintenanceResponse {
|
|
5593
5643
|
/**
|
|
5594
5644
|
* @public
|
|
5595
|
-
* <p>
|
|
5645
|
+
* <p>The request ID of requested action.</p>
|
|
5596
5646
|
*/
|
|
5597
5647
|
MaintenanceId?: string;
|
|
5598
5648
|
}
|
|
@@ -5750,6 +5800,11 @@ export interface UpdateDomainConfigRequest {
|
|
|
5750
5800
|
* <p>Identity and Access Management (IAM) access policy as a JSON-formatted string.</p>
|
|
5751
5801
|
*/
|
|
5752
5802
|
AccessPolicies?: string;
|
|
5803
|
+
/**
|
|
5804
|
+
* @public
|
|
5805
|
+
* <p>The type of IP addresses supported by the endpoint for the domain.</p>
|
|
5806
|
+
*/
|
|
5807
|
+
IPAddressType?: IPAddressType;
|
|
5753
5808
|
/**
|
|
5754
5809
|
* @public
|
|
5755
5810
|
* <p>Options to publish OpenSearch logs to Amazon CloudWatch Logs.</p>
|
|
@@ -455,6 +455,11 @@ export interface EncryptionAtRestOptions {
|
|
|
455
455
|
Enabled?: boolean;
|
|
456
456
|
KmsKeyId?: string;
|
|
457
457
|
}
|
|
458
|
+
export declare const IPAddressType: {
|
|
459
|
+
readonly DUALSTACK: "dualstack";
|
|
460
|
+
readonly IPV4: "ipv4";
|
|
461
|
+
};
|
|
462
|
+
export type IPAddressType = (typeof IPAddressType)[keyof typeof IPAddressType];
|
|
458
463
|
export declare const LogType: {
|
|
459
464
|
readonly AUDIT_LOGS: "AUDIT_LOGS";
|
|
460
465
|
readonly ES_APPLICATION_LOGS: "ES_APPLICATION_LOGS";
|
|
@@ -496,6 +501,7 @@ export interface CreateDomainRequest {
|
|
|
496
501
|
ClusterConfig?: ClusterConfig;
|
|
497
502
|
EBSOptions?: EBSOptions;
|
|
498
503
|
AccessPolicies?: string;
|
|
504
|
+
IPAddressType?: IPAddressType;
|
|
499
505
|
SnapshotOptions?: SnapshotOptions;
|
|
500
506
|
VPCOptions?: VPCOptions;
|
|
501
507
|
CognitoOptions?: CognitoOptions;
|
|
@@ -544,6 +550,7 @@ export interface DomainStatus {
|
|
|
544
550
|
Created?: boolean;
|
|
545
551
|
Deleted?: boolean;
|
|
546
552
|
Endpoint?: string;
|
|
553
|
+
EndpointV2?: string;
|
|
547
554
|
Endpoints?: Record<string, string>;
|
|
548
555
|
Processing?: boolean;
|
|
549
556
|
UpgradeProcessing?: boolean;
|
|
@@ -551,6 +558,7 @@ export interface DomainStatus {
|
|
|
551
558
|
ClusterConfig: ClusterConfig | undefined;
|
|
552
559
|
EBSOptions?: EBSOptions;
|
|
553
560
|
AccessPolicies?: string;
|
|
561
|
+
IPAddressType?: IPAddressType;
|
|
554
562
|
SnapshotOptions?: SnapshotOptions;
|
|
555
563
|
VPCOptions?: VPCDerivedInfo;
|
|
556
564
|
CognitoOptions?: CognitoOptions;
|
|
@@ -872,6 +880,10 @@ export interface VersionStatus {
|
|
|
872
880
|
Options: string | undefined;
|
|
873
881
|
Status: OptionStatus | undefined;
|
|
874
882
|
}
|
|
883
|
+
export interface IPAddressTypeStatus {
|
|
884
|
+
Options: IPAddressType | undefined;
|
|
885
|
+
Status: OptionStatus | undefined;
|
|
886
|
+
}
|
|
875
887
|
export interface LogPublishingOptionsStatus {
|
|
876
888
|
Options?: Partial<Record<LogType, LogPublishingOption>>;
|
|
877
889
|
Status?: OptionStatus;
|
|
@@ -901,6 +913,7 @@ export interface DomainConfig {
|
|
|
901
913
|
ClusterConfig?: ClusterConfigStatus;
|
|
902
914
|
EBSOptions?: EBSOptionsStatus;
|
|
903
915
|
AccessPolicies?: AccessPoliciesStatus;
|
|
916
|
+
IPAddressType?: IPAddressTypeStatus;
|
|
904
917
|
SnapshotOptions?: SnapshotOptionsStatus;
|
|
905
918
|
VPCOptions?: VPCDerivedInfoStatus;
|
|
906
919
|
CognitoOptions?: CognitoOptionsStatus;
|
|
@@ -1495,6 +1508,7 @@ export interface UpdateDomainConfigRequest {
|
|
|
1495
1508
|
CognitoOptions?: CognitoOptions;
|
|
1496
1509
|
AdvancedOptions?: Record<string, string>;
|
|
1497
1510
|
AccessPolicies?: string;
|
|
1511
|
+
IPAddressType?: IPAddressType;
|
|
1498
1512
|
LogPublishingOptions?: Partial<Record<LogType, LogPublishingOption>>;
|
|
1499
1513
|
EncryptionAtRestOptions?: EncryptionAtRestOptions;
|
|
1500
1514
|
DomainEndpointOptions?: DomainEndpointOptions;
|
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.
|
|
4
|
+
"version": "3.437.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,8 +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.
|
|
25
|
-
"@aws-sdk/
|
|
24
|
+
"@aws-sdk/client-sts": "3.437.0",
|
|
25
|
+
"@aws-sdk/core": "3.436.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.437.0",
|
|
26
27
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
27
28
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
28
29
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
"@aws-sdk/types": "3.433.0",
|
|
33
34
|
"@aws-sdk/util-endpoints": "3.433.0",
|
|
34
35
|
"@aws-sdk/util-user-agent-browser": "3.433.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.437.0",
|
|
36
37
|
"@smithy/config-resolver": "^2.0.16",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.2.4",
|
|
38
39
|
"@smithy/hash-node": "^2.0.12",
|