@aws-sdk/client-opensearch 3.41.0 → 3.46.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 +48 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +17 -0
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +18 -3
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/models/models_0.d.ts +39 -0
- package/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/package.json +36 -43
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,54 @@
|
|
|
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
17
|
+
* **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
|
|
18
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @aws-sdk/client-opensearch
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
6
54
|
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
55
|
|
|
8
56
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CognitoOptions = exports.ClusterConfig = exports.ZoneAwarenessConfig = exports.OpenSearchWarmPartitionInstanceType = exports.OpenSearchPartitionInstanceType = exports.ColdStorageOptions = exports.AutoTuneOptionsInput = exports.AutoTuneMaintenanceSchedule = exports.Duration = exports.TimeUnit = exports.AutoTuneDesiredState = exports.CancelServiceSoftwareUpdateResponse = exports.ServiceSoftwareOptions = exports.DeploymentStatus = exports.CancelServiceSoftwareUpdateRequest = exports.ConflictException = exports.AssociatePackageResponse = exports.DomainPackageDetails = exports.PackageType = exports.ErrorDetails = exports.DomainPackageStatus = exports.AssociatePackageRequest = exports.AdvancedSecurityOptionsStatus = exports.AdvancedSecurityOptionsInput = exports.SAMLOptionsInput = exports.MasterUserOptions = exports.AdvancedSecurityOptions = exports.SAMLOptionsOutput = exports.SAMLIdp = exports.AdvancedOptionsStatus = exports.ValidationException = exports.InternalException = exports.BaseException = exports.AddTagsRequest = exports.Tag = exports.AdditionalLimit = exports.AccessPoliciesStatus = exports.OptionStatus = exports.OptionState = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = exports.AcceptInboundConnectionResponse = exports.InboundConnection = exports.DomainInformationContainer = exports.AWSDomainInformation = exports.InboundConnectionStatus = exports.InboundConnectionStatusCode = exports.AcceptInboundConnectionRequest = void 0;
|
|
4
4
|
exports.AutoTuneStatus = exports.AutoTuneOptions = exports.RollbackOnDisable = exports.DescribeDomainConfigRequest = exports.DescribeDomainAutoTunesResponse = exports.AutoTune = exports.AutoTuneType = exports.AutoTuneDetails = exports.ScheduledAutoTuneDetails = exports.ScheduledAutoTuneSeverityType = exports.ScheduledAutoTuneActionType = exports.DescribeDomainAutoTunesRequest = exports.DescribeDomainResponse = exports.DescribeDomainRequest = exports.DeletePackageResponse = exports.DeletePackageRequest = exports.DeleteOutboundConnectionResponse = exports.OutboundConnection = exports.DeleteOutboundConnectionRequest = exports.DeleteInboundConnectionResponse = exports.DeleteInboundConnectionRequest = exports.DeleteDomainResponse = exports.DeleteDomainRequest = exports.CreatePackageResponse = exports.PackageDetails = exports.PackageStatus = exports.CreatePackageRequest = exports.PackageSource = exports.CreateOutboundConnectionResponse = exports.OutboundConnectionStatus = exports.OutboundConnectionStatusCode = exports.CreateOutboundConnectionRequest = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.CreateDomainResponse = exports.DomainStatus = exports.VPCDerivedInfo = exports.AutoTuneOptionsOutput = exports.AutoTuneState = exports.CreateDomainRequest = exports.VPCOptions = exports.SnapshotOptions = exports.NodeToNodeEncryptionOptions = exports.LogPublishingOption = exports.LogType = exports.EncryptionAtRestOptions = exports.EBSOptions = exports.VolumeType = exports.DomainEndpointOptions = exports.TLSSecurityPolicy = void 0;
|
|
5
5
|
exports.UpgradeStep = exports.GetUpgradeHistoryRequest = exports.GetPackageVersionHistoryResponse = exports.PackageVersionHistory = exports.GetPackageVersionHistoryRequest = exports.GetCompatibleVersionsResponse = exports.CompatibleVersionsMap = exports.GetCompatibleVersionsRequest = exports.DissociatePackageResponse = exports.DissociatePackageRequest = exports.DescribeReservedInstancesResponse = exports.ReservedInstance = exports.DescribeReservedInstancesRequest = exports.DescribeReservedInstanceOfferingsResponse = exports.ReservedInstanceOffering = exports.RecurringCharge = exports.ReservedInstancePaymentOption = exports.DescribeReservedInstanceOfferingsRequest = exports.DescribePackagesResponse = exports.DescribePackagesRequest = exports.DescribePackagesFilter = exports.DescribePackagesFilterName = exports.DescribeOutboundConnectionsResponse = exports.DescribeOutboundConnectionsRequest = exports.DescribeInstanceTypeLimitsResponse = exports.Limits = exports.StorageType = exports.StorageTypeLimit = exports.InstanceLimits = exports.InstanceCountLimits = exports.DescribeInstanceTypeLimitsRequest = exports.InvalidPaginationTokenException = exports.DescribeInboundConnectionsResponse = exports.DescribeInboundConnectionsRequest = exports.Filter = exports.DescribeDomainsResponse = exports.DescribeDomainsRequest = exports.DescribeDomainConfigResponse = exports.DomainConfig = exports.VPCDerivedInfoStatus = exports.SnapshotOptionsStatus = exports.NodeToNodeEncryptionOptionsStatus = exports.LogPublishingOptionsStatus = exports.VersionStatus = exports.EncryptionAtRestOptionsStatus = exports.EBSOptionsStatus = exports.DomainEndpointOptionsStatus = exports.CognitoOptionsStatus = exports.ClusterConfigStatus = exports.AutoTuneOptionsStatus = void 0;
|
|
6
|
-
exports.UpgradeDomainResponse = exports.UpgradeDomainRequest = exports.UpdatePackageResponse = exports.UpdatePackageRequest = exports.UpdateDomainConfigResponse = exports.UpdateDomainConfigRequest = exports.StartServiceSoftwareUpdateResponse = exports.StartServiceSoftwareUpdateRequest = exports.RemoveTagsRequest = exports.RejectInboundConnectionResponse = exports.RejectInboundConnectionRequest = exports.PurchaseReservedInstanceOfferingResponse = exports.PurchaseReservedInstanceOfferingRequest = exports.ListVersionsResponse = exports.ListVersionsRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListPackagesForDomainResponse = exports.ListPackagesForDomainRequest = exports.ListInstanceTypeDetailsResponse = exports.InstanceTypeDetails = exports.ListInstanceTypeDetailsRequest = exports.ListDomainsForPackageResponse = exports.ListDomainsForPackageRequest = exports.ListDomainNamesResponse = exports.DomainInfo = exports.ListDomainNamesRequest = exports.EngineType = exports.GetUpgradeStatusResponse = exports.GetUpgradeStatusRequest = exports.GetUpgradeHistoryResponse = exports.UpgradeHistory = exports.UpgradeStepItem = exports.UpgradeStatus = void 0;
|
|
6
|
+
exports.UpgradeDomainResponse = exports.UpgradeDomainRequest = exports.UpdatePackageResponse = exports.UpdatePackageRequest = exports.UpdateDomainConfigResponse = exports.DryRunResults = exports.UpdateDomainConfigRequest = exports.StartServiceSoftwareUpdateResponse = exports.StartServiceSoftwareUpdateRequest = exports.RemoveTagsRequest = exports.RejectInboundConnectionResponse = exports.RejectInboundConnectionRequest = exports.PurchaseReservedInstanceOfferingResponse = exports.PurchaseReservedInstanceOfferingRequest = exports.ListVersionsResponse = exports.ListVersionsRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListPackagesForDomainResponse = exports.ListPackagesForDomainRequest = exports.ListInstanceTypeDetailsResponse = exports.InstanceTypeDetails = exports.ListInstanceTypeDetailsRequest = exports.ListDomainsForPackageResponse = exports.ListDomainsForPackageRequest = exports.ListDomainNamesResponse = exports.DomainInfo = exports.ListDomainNamesRequest = exports.EngineType = exports.GetUpgradeStatusResponse = exports.GetUpgradeStatusRequest = exports.GetUpgradeHistoryResponse = exports.UpgradeHistory = exports.UpgradeStepItem = exports.UpgradeStatus = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
var AcceptInboundConnectionRequest;
|
|
9
9
|
(function (AcceptInboundConnectionRequest) {
|
|
@@ -1200,6 +1200,12 @@ var UpdateDomainConfigRequest;
|
|
|
1200
1200
|
}),
|
|
1201
1201
|
});
|
|
1202
1202
|
})(UpdateDomainConfigRequest = exports.UpdateDomainConfigRequest || (exports.UpdateDomainConfigRequest = {}));
|
|
1203
|
+
var DryRunResults;
|
|
1204
|
+
(function (DryRunResults) {
|
|
1205
|
+
DryRunResults.filterSensitiveLog = (obj) => ({
|
|
1206
|
+
...obj,
|
|
1207
|
+
});
|
|
1208
|
+
})(DryRunResults = exports.DryRunResults || (exports.DryRunResults = {}));
|
|
1203
1209
|
var UpdateDomainConfigResponse;
|
|
1204
1210
|
(function (UpdateDomainConfigResponse) {
|
|
1205
1211
|
UpdateDomainConfigResponse.filterSensitiveLog = (obj) => ({
|
|
@@ -1064,6 +1064,7 @@ const serializeAws_restJson1UpdateDomainConfigCommand = async (input, context) =
|
|
|
1064
1064
|
input.DomainEndpointOptions !== null && {
|
|
1065
1065
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
1066
1066
|
}),
|
|
1067
|
+
...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
|
|
1067
1068
|
...(input.EBSOptions !== undefined &&
|
|
1068
1069
|
input.EBSOptions !== null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) }),
|
|
1069
1070
|
...(input.EncryptionAtRestOptions !== undefined &&
|
|
@@ -3887,11 +3888,15 @@ const deserializeAws_restJson1UpdateDomainConfigCommand = async (output, context
|
|
|
3887
3888
|
const contents = {
|
|
3888
3889
|
$metadata: deserializeMetadata(output),
|
|
3889
3890
|
DomainConfig: undefined,
|
|
3891
|
+
DryRunResults: undefined,
|
|
3890
3892
|
};
|
|
3891
3893
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3892
3894
|
if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
|
|
3893
3895
|
contents.DomainConfig = deserializeAws_restJson1DomainConfig(data.DomainConfig, context);
|
|
3894
3896
|
}
|
|
3897
|
+
if (data.DryRunResults !== undefined && data.DryRunResults !== null) {
|
|
3898
|
+
contents.DryRunResults = deserializeAws_restJson1DryRunResults(data.DryRunResults, context);
|
|
3899
|
+
}
|
|
3895
3900
|
return Promise.resolve(contents);
|
|
3896
3901
|
};
|
|
3897
3902
|
exports.deserializeAws_restJson1UpdateDomainConfigCommand = deserializeAws_restJson1UpdateDomainConfigCommand;
|
|
@@ -4316,6 +4321,8 @@ const serializeAws_restJson1AdvancedOptions = (input, context) => {
|
|
|
4316
4321
|
};
|
|
4317
4322
|
const serializeAws_restJson1AdvancedSecurityOptionsInput = (input, context) => {
|
|
4318
4323
|
return {
|
|
4324
|
+
...(input.AnonymousAuthEnabled !== undefined &&
|
|
4325
|
+
input.AnonymousAuthEnabled !== null && { AnonymousAuthEnabled: input.AnonymousAuthEnabled }),
|
|
4319
4326
|
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
4320
4327
|
...(input.InternalUserDatabaseEnabled !== undefined &&
|
|
4321
4328
|
input.InternalUserDatabaseEnabled !== null && { InternalUserDatabaseEnabled: input.InternalUserDatabaseEnabled }),
|
|
@@ -4678,6 +4685,10 @@ const deserializeAws_restJson1AdvancedOptionsStatus = (output, context) => {
|
|
|
4678
4685
|
};
|
|
4679
4686
|
const deserializeAws_restJson1AdvancedSecurityOptions = (output, context) => {
|
|
4680
4687
|
return {
|
|
4688
|
+
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate !== undefined && output.AnonymousAuthDisableDate !== null
|
|
4689
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AnonymousAuthDisableDate)))
|
|
4690
|
+
: undefined,
|
|
4691
|
+
AnonymousAuthEnabled: smithy_client_1.expectBoolean(output.AnonymousAuthEnabled),
|
|
4681
4692
|
Enabled: smithy_client_1.expectBoolean(output.Enabled),
|
|
4682
4693
|
InternalUserDatabaseEnabled: smithy_client_1.expectBoolean(output.InternalUserDatabaseEnabled),
|
|
4683
4694
|
SAMLOptions: output.SAMLOptions !== undefined && output.SAMLOptions !== null
|
|
@@ -5038,6 +5049,12 @@ const deserializeAws_restJson1DomainStatusList = (output, context) => {
|
|
|
5038
5049
|
return deserializeAws_restJson1DomainStatus(entry, context);
|
|
5039
5050
|
});
|
|
5040
5051
|
};
|
|
5052
|
+
const deserializeAws_restJson1DryRunResults = (output, context) => {
|
|
5053
|
+
return {
|
|
5054
|
+
DeploymentType: smithy_client_1.expectString(output.DeploymentType),
|
|
5055
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
5056
|
+
};
|
|
5057
|
+
};
|
|
5041
5058
|
const deserializeAws_restJson1Duration = (output, context) => {
|
|
5042
5059
|
return {
|
|
5043
5060
|
Unit: smithy_client_1.expectString(output.Unit),
|
|
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
18
|
const getRuntimeConfig = (config) => {
|
|
20
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
20
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|
package/dist-es/endpoints.js
CHANGED
|
@@ -878,6 +878,10 @@ export var UpdateDomainConfigRequest;
|
|
|
878
878
|
AdvancedSecurityOptions: AdvancedSecurityOptionsInput.filterSensitiveLog(obj.AdvancedSecurityOptions),
|
|
879
879
|
}))); };
|
|
880
880
|
})(UpdateDomainConfigRequest || (UpdateDomainConfigRequest = {}));
|
|
881
|
+
export var DryRunResults;
|
|
882
|
+
(function (DryRunResults) {
|
|
883
|
+
DryRunResults.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
884
|
+
})(DryRunResults || (DryRunResults = {}));
|
|
881
885
|
export var UpdateDomainConfigResponse;
|
|
882
886
|
(function (UpdateDomainConfigResponse) {
|
|
883
887
|
UpdateDomainConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1126,7 +1126,7 @@ export var serializeAws_restJson1UpdateDomainConfigCommand = function (input, co
|
|
|
1126
1126
|
else {
|
|
1127
1127
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
1128
1128
|
}
|
|
1129
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies !== undefined &&
|
|
1129
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies !== undefined &&
|
|
1130
1130
|
input.AccessPolicies !== null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions !== undefined &&
|
|
1131
1131
|
input.AdvancedOptions !== null && {
|
|
1132
1132
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
@@ -1145,7 +1145,7 @@ export var serializeAws_restJson1UpdateDomainConfigCommand = function (input, co
|
|
|
1145
1145
|
})), (input.DomainEndpointOptions !== undefined &&
|
|
1146
1146
|
input.DomainEndpointOptions !== null && {
|
|
1147
1147
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
1148
|
-
})), (input.EBSOptions !== undefined &&
|
|
1148
|
+
})), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EBSOptions !== undefined &&
|
|
1149
1149
|
input.EBSOptions !== null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.EncryptionAtRestOptions !== undefined &&
|
|
1150
1150
|
input.EncryptionAtRestOptions !== null && {
|
|
1151
1151
|
EncryptionAtRestOptions: serializeAws_restJson1EncryptionAtRestOptions(input.EncryptionAtRestOptions, context),
|
|
@@ -4467,6 +4467,7 @@ export var deserializeAws_restJson1UpdateDomainConfigCommand = function (output,
|
|
|
4467
4467
|
contents = {
|
|
4468
4468
|
$metadata: deserializeMetadata(output),
|
|
4469
4469
|
DomainConfig: undefined,
|
|
4470
|
+
DryRunResults: undefined,
|
|
4470
4471
|
};
|
|
4471
4472
|
_a = __expectNonNull;
|
|
4472
4473
|
_b = __expectObject;
|
|
@@ -4476,6 +4477,9 @@ export var deserializeAws_restJson1UpdateDomainConfigCommand = function (output,
|
|
|
4476
4477
|
if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
|
|
4477
4478
|
contents.DomainConfig = deserializeAws_restJson1DomainConfig(data.DomainConfig, context);
|
|
4478
4479
|
}
|
|
4480
|
+
if (data.DryRunResults !== undefined && data.DryRunResults !== null) {
|
|
4481
|
+
contents.DryRunResults = deserializeAws_restJson1DryRunResults(data.DryRunResults, context);
|
|
4482
|
+
}
|
|
4479
4483
|
return [2, Promise.resolve(contents)];
|
|
4480
4484
|
}
|
|
4481
4485
|
});
|
|
@@ -4965,7 +4969,8 @@ var serializeAws_restJson1AdvancedOptions = function (input, context) {
|
|
|
4965
4969
|
}, {});
|
|
4966
4970
|
};
|
|
4967
4971
|
var serializeAws_restJson1AdvancedSecurityOptionsInput = function (input, context) {
|
|
4968
|
-
return __assign(__assign(__assign(__assign(
|
|
4972
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AnonymousAuthEnabled !== undefined &&
|
|
4973
|
+
input.AnonymousAuthEnabled !== null && { AnonymousAuthEnabled: input.AnonymousAuthEnabled })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.InternalUserDatabaseEnabled !== undefined &&
|
|
4969
4974
|
input.InternalUserDatabaseEnabled !== null && { InternalUserDatabaseEnabled: input.InternalUserDatabaseEnabled })), (input.MasterUserOptions !== undefined &&
|
|
4970
4975
|
input.MasterUserOptions !== null && {
|
|
4971
4976
|
MasterUserOptions: serializeAws_restJson1MasterUserOptions(input.MasterUserOptions, context),
|
|
@@ -5229,6 +5234,10 @@ var deserializeAws_restJson1AdvancedOptionsStatus = function (output, context) {
|
|
|
5229
5234
|
};
|
|
5230
5235
|
var deserializeAws_restJson1AdvancedSecurityOptions = function (output, context) {
|
|
5231
5236
|
return {
|
|
5237
|
+
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate !== undefined && output.AnonymousAuthDisableDate !== null
|
|
5238
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AnonymousAuthDisableDate)))
|
|
5239
|
+
: undefined,
|
|
5240
|
+
AnonymousAuthEnabled: __expectBoolean(output.AnonymousAuthEnabled),
|
|
5232
5241
|
Enabled: __expectBoolean(output.Enabled),
|
|
5233
5242
|
InternalUserDatabaseEnabled: __expectBoolean(output.InternalUserDatabaseEnabled),
|
|
5234
5243
|
SAMLOptions: output.SAMLOptions !== undefined && output.SAMLOptions !== null
|
|
@@ -5589,6 +5598,12 @@ var deserializeAws_restJson1DomainStatusList = function (output, context) {
|
|
|
5589
5598
|
return deserializeAws_restJson1DomainStatus(entry, context);
|
|
5590
5599
|
});
|
|
5591
5600
|
};
|
|
5601
|
+
var deserializeAws_restJson1DryRunResults = function (output, context) {
|
|
5602
|
+
return {
|
|
5603
|
+
DeploymentType: __expectString(output.DeploymentType),
|
|
5604
|
+
Message: __expectString(output.Message),
|
|
5605
|
+
};
|
|
5606
|
+
};
|
|
5592
5607
|
var deserializeAws_restJson1Duration = function (output, context) {
|
|
5593
5608
|
return {
|
|
5594
5609
|
Unit: __expectString(output.Unit),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -12,10 +12,8 @@ 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";
|
|
16
15
|
export var getRuntimeConfig = function (config) {
|
|
17
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
19
17
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
18
|
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 });
|
|
21
19
|
};
|
|
@@ -545,6 +545,14 @@ export interface AdvancedSecurityOptions {
|
|
|
545
545
|
* <p>Describes the SAML application configured for a domain.</p>
|
|
546
546
|
*/
|
|
547
547
|
SAMLOptions?: SAMLOptionsOutput;
|
|
548
|
+
/**
|
|
549
|
+
* <p>Specifies the Anonymous Auth Disable Date when Anonymous Auth is enabled.</p>
|
|
550
|
+
*/
|
|
551
|
+
AnonymousAuthDisableDate?: Date;
|
|
552
|
+
/**
|
|
553
|
+
* <p>True if Anonymous auth is enabled. Anonymous auth can be enabled only when AdvancedSecurity is enabled on existing domains.</p>
|
|
554
|
+
*/
|
|
555
|
+
AnonymousAuthEnabled?: boolean;
|
|
548
556
|
}
|
|
549
557
|
export declare namespace AdvancedSecurityOptions {
|
|
550
558
|
/**
|
|
@@ -639,6 +647,10 @@ export interface AdvancedSecurityOptionsInput {
|
|
|
639
647
|
* <p>The SAML application configuration for the domain.</p>
|
|
640
648
|
*/
|
|
641
649
|
SAMLOptions?: SAMLOptionsInput;
|
|
650
|
+
/**
|
|
651
|
+
* <p>True if Anonymous auth is enabled. Anonymous auth can be enabled only when AdvancedSecurity is enabled on existing domains.</p>
|
|
652
|
+
*/
|
|
653
|
+
AnonymousAuthEnabled?: boolean;
|
|
642
654
|
}
|
|
643
655
|
export declare namespace AdvancedSecurityOptionsInput {
|
|
644
656
|
/**
|
|
@@ -4616,6 +4628,10 @@ export interface UpdateDomainConfigRequest {
|
|
|
4616
4628
|
* <p>Specifies Auto-Tune options.</p>
|
|
4617
4629
|
*/
|
|
4618
4630
|
AutoTuneOptions?: AutoTuneOptions;
|
|
4631
|
+
/**
|
|
4632
|
+
* <p>This flag, when set to True, specifies whether the <code>UpdateDomain</code> request should return the results of validation checks (DryRunResults) without actually applying the change.</p>
|
|
4633
|
+
*/
|
|
4634
|
+
DryRun?: boolean;
|
|
4619
4635
|
}
|
|
4620
4636
|
export declare namespace UpdateDomainConfigRequest {
|
|
4621
4637
|
/**
|
|
@@ -4623,6 +4639,25 @@ export declare namespace UpdateDomainConfigRequest {
|
|
|
4623
4639
|
*/
|
|
4624
4640
|
const filterSensitiveLog: (obj: UpdateDomainConfigRequest) => any;
|
|
4625
4641
|
}
|
|
4642
|
+
export interface DryRunResults {
|
|
4643
|
+
/**
|
|
4644
|
+
* <p>
|
|
4645
|
+
* Specifies the way in which Amazon OpenSearch Service applies the update.
|
|
4646
|
+
* Possible responses are <code>Blue/Green</code> (the update requires a blue/green deployment), <code>DynamicUpdate</code> (no blue/green required), <code>Undetermined</code> (the domain is undergoing an update and can't predict the deployment type; try again after the update is complete), and <code>None</code> (the request doesn't include any configuration changes).
|
|
4647
|
+
* </p>
|
|
4648
|
+
*/
|
|
4649
|
+
DeploymentType?: string;
|
|
4650
|
+
/**
|
|
4651
|
+
* <p>Contains an optional message associated with the DryRunResults.</p>
|
|
4652
|
+
*/
|
|
4653
|
+
Message?: string;
|
|
4654
|
+
}
|
|
4655
|
+
export declare namespace DryRunResults {
|
|
4656
|
+
/**
|
|
4657
|
+
* @internal
|
|
4658
|
+
*/
|
|
4659
|
+
const filterSensitiveLog: (obj: DryRunResults) => any;
|
|
4660
|
+
}
|
|
4626
4661
|
/**
|
|
4627
4662
|
* <p>The result of an <code>UpdateDomain</code> request. Contains the status of the domain
|
|
4628
4663
|
* being updated.
|
|
@@ -4633,6 +4668,10 @@ export interface UpdateDomainConfigResponse {
|
|
|
4633
4668
|
* <p>The status of the updated domain.</p>
|
|
4634
4669
|
*/
|
|
4635
4670
|
DomainConfig: DomainConfig | undefined;
|
|
4671
|
+
/**
|
|
4672
|
+
* <p>Contains result of DryRun. </p>
|
|
4673
|
+
*/
|
|
4674
|
+
DryRunResults?: DryRunResults;
|
|
4636
4675
|
}
|
|
4637
4676
|
export declare namespace UpdateDomainConfigResponse {
|
|
4638
4677
|
/**
|
|
@@ -262,6 +262,10 @@ export interface AdvancedSecurityOptions {
|
|
|
262
262
|
InternalUserDatabaseEnabled?: boolean;
|
|
263
263
|
|
|
264
264
|
SAMLOptions?: SAMLOptionsOutput;
|
|
265
|
+
|
|
266
|
+
AnonymousAuthDisableDate?: Date;
|
|
267
|
+
|
|
268
|
+
AnonymousAuthEnabled?: boolean;
|
|
265
269
|
}
|
|
266
270
|
export declare namespace AdvancedSecurityOptions {
|
|
267
271
|
|
|
@@ -311,6 +315,8 @@ export interface AdvancedSecurityOptionsInput {
|
|
|
311
315
|
MasterUserOptions?: MasterUserOptions;
|
|
312
316
|
|
|
313
317
|
SAMLOptions?: SAMLOptionsInput;
|
|
318
|
+
|
|
319
|
+
AnonymousAuthEnabled?: boolean;
|
|
314
320
|
}
|
|
315
321
|
export declare namespace AdvancedSecurityOptionsInput {
|
|
316
322
|
|
|
@@ -2194,15 +2200,29 @@ export interface UpdateDomainConfigRequest {
|
|
|
2194
2200
|
AdvancedSecurityOptions?: AdvancedSecurityOptionsInput;
|
|
2195
2201
|
|
|
2196
2202
|
AutoTuneOptions?: AutoTuneOptions;
|
|
2203
|
+
|
|
2204
|
+
DryRun?: boolean;
|
|
2197
2205
|
}
|
|
2198
2206
|
export declare namespace UpdateDomainConfigRequest {
|
|
2199
2207
|
|
|
2200
2208
|
const filterSensitiveLog: (obj: UpdateDomainConfigRequest) => any;
|
|
2201
2209
|
}
|
|
2210
|
+
export interface DryRunResults {
|
|
2211
|
+
|
|
2212
|
+
DeploymentType?: string;
|
|
2213
|
+
|
|
2214
|
+
Message?: string;
|
|
2215
|
+
}
|
|
2216
|
+
export declare namespace DryRunResults {
|
|
2217
|
+
|
|
2218
|
+
const filterSensitiveLog: (obj: DryRunResults) => any;
|
|
2219
|
+
}
|
|
2202
2220
|
|
|
2203
2221
|
export interface UpdateDomainConfigResponse {
|
|
2204
2222
|
|
|
2205
2223
|
DomainConfig: DomainConfig | undefined;
|
|
2224
|
+
|
|
2225
|
+
DryRunResults?: DryRunResults;
|
|
2206
2226
|
}
|
|
2207
2227
|
export declare namespace UpdateDomainConfigResponse {
|
|
2208
2228
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
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.46.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
12
|
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
-
"clean:dist": "rimraf ./dist",
|
|
13
|
-
"clean:docs": "rimraf ./docs"
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "jest --coverage --passWithNoTests"
|
|
13
|
+
"clean:dist": "rimraf ./dist-*",
|
|
14
|
+
"clean:docs": "rimraf ./docs"
|
|
16
15
|
},
|
|
17
16
|
"main": "./dist-cjs/index.js",
|
|
18
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,48 +20,42 @@
|
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.46.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.46.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.46.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.46.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.46.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.46.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.46.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.46.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.46.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.46.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.46.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.46.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.46.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.46.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.46.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.46.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.46.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.46.0",
|
|
41
|
+
"@aws-sdk/types": "3.46.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.46.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.46.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.46.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.46.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.46.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.46.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.46.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.46.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.46.0",
|
|
52
51
|
"tslib": "^2.3.0"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
-
"@types/node": "^12.7.5"
|
|
57
|
-
"downlevel-dts": "0.7.0",
|
|
58
|
-
"jest": "^26.1.0",
|
|
59
|
-
"rimraf": "^3.0.0",
|
|
60
|
-
"ts-jest": "^26.4.1",
|
|
61
|
-
"typedoc": "^0.19.2",
|
|
62
|
-
"typescript": "~4.3.5"
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.46.0",
|
|
55
|
+
"@types/node": "^12.7.5"
|
|
63
56
|
},
|
|
64
57
|
"engines": {
|
|
65
|
-
"node": ">=
|
|
58
|
+
"node": ">=12.0.0"
|
|
66
59
|
},
|
|
67
60
|
"typesVersions": {
|
|
68
61
|
"<4.0": {
|