@aws-sdk/client-elasticsearch-service 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 +47 -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-elasticsearch-service
|
|
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.SnapshotOptions = exports.NodeToNodeEncryptionOptions = exports.LogPublishingOption = exports.EncryptionAtRestOptions = exports.ElasticsearchClusterConfig = exports.ZoneAwarenessConfig = exports.ColdStorageOptions = exports.EBSOptions = exports.DomainEndpointOptions = exports.TLSSecurityPolicy = exports.CognitoOptions = exports.AutoTuneOptionsInput = exports.AutoTuneMaintenanceSchedule = exports.Duration = exports.TimeUnit = exports.AutoTuneDesiredState = exports.CancelElasticsearchServiceSoftwareUpdateResponse = exports.ServiceSoftwareOptions = exports.CancelElasticsearchServiceSoftwareUpdateRequest = exports.ConflictException = exports.AssociatePackageResponse = exports.DomainPackageDetails = exports.ErrorDetails = 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.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = exports.AcceptInboundCrossClusterSearchConnectionResponse = exports.InboundCrossClusterSearchConnection = exports.DomainInformation = exports.InboundCrossClusterSearchConnectionStatus = exports.InboundCrossClusterSearchConnectionStatusCode = exports.AcceptInboundCrossClusterSearchConnectionRequest = void 0;
|
|
4
4
|
exports.SnapshotOptionsStatus = exports.NodeToNodeEncryptionOptionsStatus = exports.LogPublishingOptionsStatus = exports.EncryptionAtRestOptionsStatus = exports.ElasticsearchVersionStatus = exports.ElasticsearchClusterConfigStatus = exports.EBSOptionsStatus = exports.DomainEndpointOptionsStatus = exports.CognitoOptionsStatus = exports.AutoTuneOptionsStatus = exports.AutoTuneStatus = exports.AutoTuneOptions = exports.RollbackOnDisable = exports.DescribeElasticsearchDomainConfigRequest = exports.DescribeElasticsearchDomainResponse = exports.DescribeElasticsearchDomainRequest = exports.DescribeDomainAutoTunesResponse = exports.AutoTune = exports.AutoTuneType = exports.AutoTuneDetails = exports.ScheduledAutoTuneDetails = exports.ScheduledAutoTuneSeverityType = exports.ScheduledAutoTuneActionType = exports.DescribeDomainAutoTunesRequest = exports.DeletePackageResponse = exports.DeletePackageRequest = exports.DeleteOutboundCrossClusterSearchConnectionResponse = exports.OutboundCrossClusterSearchConnection = exports.DeleteOutboundCrossClusterSearchConnectionRequest = exports.DeleteInboundCrossClusterSearchConnectionResponse = exports.DeleteInboundCrossClusterSearchConnectionRequest = exports.DeleteElasticsearchDomainResponse = exports.DeleteElasticsearchDomainRequest = exports.CreatePackageResponse = exports.PackageDetails = exports.CreatePackageRequest = exports.PackageSource = exports.CreateOutboundCrossClusterSearchConnectionResponse = exports.OutboundCrossClusterSearchConnectionStatus = exports.OutboundCrossClusterSearchConnectionStatusCode = exports.CreateOutboundCrossClusterSearchConnectionRequest = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.CreateElasticsearchDomainResponse = exports.ElasticsearchDomainStatus = exports.VPCDerivedInfo = exports.AutoTuneOptionsOutput = exports.AutoTuneState = exports.CreateElasticsearchDomainRequest = exports.VPCOptions = void 0;
|
|
5
5
|
exports.ListElasticsearchInstanceTypesRequest = exports.ListDomainsForPackageResponse = exports.ListDomainsForPackageRequest = exports.ListDomainNamesResponse = exports.DomainInfo = exports.ListDomainNamesRequest = exports.EngineType = exports.GetUpgradeStatusResponse = exports.GetUpgradeStatusRequest = exports.GetUpgradeHistoryResponse = exports.UpgradeHistory = exports.UpgradeStepItem = exports.GetUpgradeHistoryRequest = exports.GetPackageVersionHistoryResponse = exports.PackageVersionHistory = exports.GetPackageVersionHistoryRequest = exports.GetCompatibleElasticsearchVersionsResponse = exports.CompatibleVersionsMap = exports.GetCompatibleElasticsearchVersionsRequest = exports.DissociatePackageResponse = exports.DissociatePackageRequest = exports.DescribeReservedElasticsearchInstancesResponse = exports.ReservedElasticsearchInstance = exports.DescribeReservedElasticsearchInstancesRequest = exports.DescribeReservedElasticsearchInstanceOfferingsResponse = exports.ReservedElasticsearchInstanceOffering = exports.RecurringCharge = exports.DescribeReservedElasticsearchInstanceOfferingsRequest = exports.DescribePackagesResponse = exports.DescribePackagesRequest = exports.DescribePackagesFilter = exports.DescribePackagesFilterName = exports.DescribeOutboundCrossClusterSearchConnectionsResponse = exports.DescribeOutboundCrossClusterSearchConnectionsRequest = exports.InvalidPaginationTokenException = exports.DescribeInboundCrossClusterSearchConnectionsResponse = exports.DescribeInboundCrossClusterSearchConnectionsRequest = exports.Filter = exports.DescribeElasticsearchInstanceTypeLimitsResponse = exports.Limits = exports.StorageType = exports.StorageTypeLimit = exports.InstanceLimits = exports.InstanceCountLimits = exports.DescribeElasticsearchInstanceTypeLimitsRequest = exports.DescribeElasticsearchDomainsResponse = exports.DescribeElasticsearchDomainsRequest = exports.DescribeElasticsearchDomainConfigResponse = exports.ElasticsearchDomainConfig = exports.VPCDerivedInfoStatus = void 0;
|
|
6
|
-
exports.UpgradeElasticsearchDomainResponse = exports.UpgradeElasticsearchDomainRequest = exports.UpdatePackageResponse = exports.UpdatePackageRequest = exports.UpdateElasticsearchDomainConfigResponse = exports.UpdateElasticsearchDomainConfigRequest = exports.StartElasticsearchServiceSoftwareUpdateResponse = exports.StartElasticsearchServiceSoftwareUpdateRequest = exports.RemoveTagsRequest = exports.RejectInboundCrossClusterSearchConnectionResponse = exports.RejectInboundCrossClusterSearchConnectionRequest = exports.PurchaseReservedElasticsearchInstanceOfferingResponse = exports.PurchaseReservedElasticsearchInstanceOfferingRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListPackagesForDomainResponse = exports.ListPackagesForDomainRequest = exports.ListElasticsearchVersionsResponse = exports.ListElasticsearchVersionsRequest = exports.ListElasticsearchInstanceTypesResponse = void 0;
|
|
6
|
+
exports.UpgradeElasticsearchDomainResponse = exports.UpgradeElasticsearchDomainRequest = exports.UpdatePackageResponse = exports.UpdatePackageRequest = exports.UpdateElasticsearchDomainConfigResponse = exports.DryRunResults = exports.UpdateElasticsearchDomainConfigRequest = exports.StartElasticsearchServiceSoftwareUpdateResponse = exports.StartElasticsearchServiceSoftwareUpdateRequest = exports.RemoveTagsRequest = exports.RejectInboundCrossClusterSearchConnectionResponse = exports.RejectInboundCrossClusterSearchConnectionRequest = exports.PurchaseReservedElasticsearchInstanceOfferingResponse = exports.PurchaseReservedElasticsearchInstanceOfferingRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListPackagesForDomainResponse = exports.ListPackagesForDomainRequest = exports.ListElasticsearchVersionsResponse = exports.ListElasticsearchVersionsRequest = exports.ListElasticsearchInstanceTypesResponse = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
var AcceptInboundCrossClusterSearchConnectionRequest;
|
|
9
9
|
(function (AcceptInboundCrossClusterSearchConnectionRequest) {
|
|
@@ -1011,6 +1011,12 @@ var UpdateElasticsearchDomainConfigRequest;
|
|
|
1011
1011
|
}),
|
|
1012
1012
|
});
|
|
1013
1013
|
})(UpdateElasticsearchDomainConfigRequest = exports.UpdateElasticsearchDomainConfigRequest || (exports.UpdateElasticsearchDomainConfigRequest = {}));
|
|
1014
|
+
var DryRunResults;
|
|
1015
|
+
(function (DryRunResults) {
|
|
1016
|
+
DryRunResults.filterSensitiveLog = (obj) => ({
|
|
1017
|
+
...obj,
|
|
1018
|
+
});
|
|
1019
|
+
})(DryRunResults = exports.DryRunResults || (exports.DryRunResults = {}));
|
|
1014
1020
|
var UpdateElasticsearchDomainConfigResponse;
|
|
1015
1021
|
(function (UpdateElasticsearchDomainConfigResponse) {
|
|
1016
1022
|
UpdateElasticsearchDomainConfigResponse.filterSensitiveLog = (obj) => ({
|
|
@@ -1080,6 +1080,7 @@ const serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (inpu
|
|
|
1080
1080
|
input.DomainEndpointOptions !== null && {
|
|
1081
1081
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
1082
1082
|
}),
|
|
1083
|
+
...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
|
|
1083
1084
|
...(input.EBSOptions !== undefined &&
|
|
1084
1085
|
input.EBSOptions !== null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) }),
|
|
1085
1086
|
...(input.ElasticsearchClusterConfig !== undefined &&
|
|
@@ -3964,11 +3965,15 @@ const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (ou
|
|
|
3964
3965
|
const contents = {
|
|
3965
3966
|
$metadata: deserializeMetadata(output),
|
|
3966
3967
|
DomainConfig: undefined,
|
|
3968
|
+
DryRunResults: undefined,
|
|
3967
3969
|
};
|
|
3968
3970
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3969
3971
|
if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
|
|
3970
3972
|
contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
|
|
3971
3973
|
}
|
|
3974
|
+
if (data.DryRunResults !== undefined && data.DryRunResults !== null) {
|
|
3975
|
+
contents.DryRunResults = deserializeAws_restJson1DryRunResults(data.DryRunResults, context);
|
|
3976
|
+
}
|
|
3972
3977
|
return Promise.resolve(contents);
|
|
3973
3978
|
};
|
|
3974
3979
|
exports.deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand;
|
|
@@ -4385,6 +4390,8 @@ const serializeAws_restJson1AdvancedOptions = (input, context) => {
|
|
|
4385
4390
|
};
|
|
4386
4391
|
const serializeAws_restJson1AdvancedSecurityOptionsInput = (input, context) => {
|
|
4387
4392
|
return {
|
|
4393
|
+
...(input.AnonymousAuthEnabled !== undefined &&
|
|
4394
|
+
input.AnonymousAuthEnabled !== null && { AnonymousAuthEnabled: input.AnonymousAuthEnabled }),
|
|
4388
4395
|
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
4389
4396
|
...(input.InternalUserDatabaseEnabled !== undefined &&
|
|
4390
4397
|
input.InternalUserDatabaseEnabled !== null && { InternalUserDatabaseEnabled: input.InternalUserDatabaseEnabled }),
|
|
@@ -4739,6 +4746,10 @@ const deserializeAws_restJson1AdvancedOptionsStatus = (output, context) => {
|
|
|
4739
4746
|
};
|
|
4740
4747
|
const deserializeAws_restJson1AdvancedSecurityOptions = (output, context) => {
|
|
4741
4748
|
return {
|
|
4749
|
+
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate !== undefined && output.AnonymousAuthDisableDate !== null
|
|
4750
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.AnonymousAuthDisableDate)))
|
|
4751
|
+
: undefined,
|
|
4752
|
+
AnonymousAuthEnabled: smithy_client_1.expectBoolean(output.AnonymousAuthEnabled),
|
|
4742
4753
|
Enabled: smithy_client_1.expectBoolean(output.Enabled),
|
|
4743
4754
|
InternalUserDatabaseEnabled: smithy_client_1.expectBoolean(output.InternalUserDatabaseEnabled),
|
|
4744
4755
|
SAMLOptions: output.SAMLOptions !== undefined && output.SAMLOptions !== null
|
|
@@ -4951,6 +4962,12 @@ const deserializeAws_restJson1DomainPackageDetailsList = (output, context) => {
|
|
|
4951
4962
|
return deserializeAws_restJson1DomainPackageDetails(entry, context);
|
|
4952
4963
|
});
|
|
4953
4964
|
};
|
|
4965
|
+
const deserializeAws_restJson1DryRunResults = (output, context) => {
|
|
4966
|
+
return {
|
|
4967
|
+
DeploymentType: smithy_client_1.expectString(output.DeploymentType),
|
|
4968
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4969
|
+
};
|
|
4970
|
+
};
|
|
4954
4971
|
const deserializeAws_restJson1Duration = (output, context) => {
|
|
4955
4972
|
return {
|
|
4956
4973
|
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
|
@@ -693,6 +693,10 @@ export var UpdateElasticsearchDomainConfigRequest;
|
|
|
693
693
|
AdvancedSecurityOptions: AdvancedSecurityOptionsInput.filterSensitiveLog(obj.AdvancedSecurityOptions),
|
|
694
694
|
}))); };
|
|
695
695
|
})(UpdateElasticsearchDomainConfigRequest || (UpdateElasticsearchDomainConfigRequest = {}));
|
|
696
|
+
export var DryRunResults;
|
|
697
|
+
(function (DryRunResults) {
|
|
698
|
+
DryRunResults.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
699
|
+
})(DryRunResults || (DryRunResults = {}));
|
|
696
700
|
export var UpdateElasticsearchDomainConfigResponse;
|
|
697
701
|
(function (UpdateElasticsearchDomainConfigResponse) {
|
|
698
702
|
UpdateElasticsearchDomainConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1151,7 +1151,7 @@ export var serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = functi
|
|
|
1151
1151
|
else {
|
|
1152
1152
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
1153
1153
|
}
|
|
1154
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies !== undefined &&
|
|
1154
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies !== undefined &&
|
|
1155
1155
|
input.AccessPolicies !== null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions !== undefined &&
|
|
1156
1156
|
input.AdvancedOptions !== null && {
|
|
1157
1157
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
@@ -1167,7 +1167,7 @@ export var serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = functi
|
|
|
1167
1167
|
})), (input.DomainEndpointOptions !== undefined &&
|
|
1168
1168
|
input.DomainEndpointOptions !== null && {
|
|
1169
1169
|
DomainEndpointOptions: serializeAws_restJson1DomainEndpointOptions(input.DomainEndpointOptions, context),
|
|
1170
|
-
})), (input.EBSOptions !== undefined &&
|
|
1170
|
+
})), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EBSOptions !== undefined &&
|
|
1171
1171
|
input.EBSOptions !== null && { EBSOptions: serializeAws_restJson1EBSOptions(input.EBSOptions, context) })), (input.ElasticsearchClusterConfig !== undefined &&
|
|
1172
1172
|
input.ElasticsearchClusterConfig !== null && {
|
|
1173
1173
|
ElasticsearchClusterConfig: serializeAws_restJson1ElasticsearchClusterConfig(input.ElasticsearchClusterConfig, context),
|
|
@@ -4562,6 +4562,7 @@ export var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = func
|
|
|
4562
4562
|
contents = {
|
|
4563
4563
|
$metadata: deserializeMetadata(output),
|
|
4564
4564
|
DomainConfig: undefined,
|
|
4565
|
+
DryRunResults: undefined,
|
|
4565
4566
|
};
|
|
4566
4567
|
_a = __expectNonNull;
|
|
4567
4568
|
_b = __expectObject;
|
|
@@ -4571,6 +4572,9 @@ export var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = func
|
|
|
4571
4572
|
if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
|
|
4572
4573
|
contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
|
|
4573
4574
|
}
|
|
4575
|
+
if (data.DryRunResults !== undefined && data.DryRunResults !== null) {
|
|
4576
|
+
contents.DryRunResults = deserializeAws_restJson1DryRunResults(data.DryRunResults, context);
|
|
4577
|
+
}
|
|
4574
4578
|
return [2, Promise.resolve(contents)];
|
|
4575
4579
|
}
|
|
4576
4580
|
});
|
|
@@ -5052,7 +5056,8 @@ var serializeAws_restJson1AdvancedOptions = function (input, context) {
|
|
|
5052
5056
|
}, {});
|
|
5053
5057
|
};
|
|
5054
5058
|
var serializeAws_restJson1AdvancedSecurityOptionsInput = function (input, context) {
|
|
5055
|
-
return __assign(__assign(__assign(__assign(
|
|
5059
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AnonymousAuthEnabled !== undefined &&
|
|
5060
|
+
input.AnonymousAuthEnabled !== null && { AnonymousAuthEnabled: input.AnonymousAuthEnabled })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.InternalUserDatabaseEnabled !== undefined &&
|
|
5056
5061
|
input.InternalUserDatabaseEnabled !== null && { InternalUserDatabaseEnabled: input.InternalUserDatabaseEnabled })), (input.MasterUserOptions !== undefined &&
|
|
5057
5062
|
input.MasterUserOptions !== null && {
|
|
5058
5063
|
MasterUserOptions: serializeAws_restJson1MasterUserOptions(input.MasterUserOptions, context),
|
|
@@ -5310,6 +5315,10 @@ var deserializeAws_restJson1AdvancedOptionsStatus = function (output, context) {
|
|
|
5310
5315
|
};
|
|
5311
5316
|
var deserializeAws_restJson1AdvancedSecurityOptions = function (output, context) {
|
|
5312
5317
|
return {
|
|
5318
|
+
AnonymousAuthDisableDate: output.AnonymousAuthDisableDate !== undefined && output.AnonymousAuthDisableDate !== null
|
|
5319
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AnonymousAuthDisableDate)))
|
|
5320
|
+
: undefined,
|
|
5321
|
+
AnonymousAuthEnabled: __expectBoolean(output.AnonymousAuthEnabled),
|
|
5313
5322
|
Enabled: __expectBoolean(output.Enabled),
|
|
5314
5323
|
InternalUserDatabaseEnabled: __expectBoolean(output.InternalUserDatabaseEnabled),
|
|
5315
5324
|
SAMLOptions: output.SAMLOptions !== undefined && output.SAMLOptions !== null
|
|
@@ -5522,6 +5531,12 @@ var deserializeAws_restJson1DomainPackageDetailsList = function (output, context
|
|
|
5522
5531
|
return deserializeAws_restJson1DomainPackageDetails(entry, context);
|
|
5523
5532
|
});
|
|
5524
5533
|
};
|
|
5534
|
+
var deserializeAws_restJson1DryRunResults = function (output, context) {
|
|
5535
|
+
return {
|
|
5536
|
+
DeploymentType: __expectString(output.DeploymentType),
|
|
5537
|
+
Message: __expectString(output.Message),
|
|
5538
|
+
};
|
|
5539
|
+
};
|
|
5525
5540
|
var deserializeAws_restJson1Duration = function (output, context) {
|
|
5526
5541
|
return {
|
|
5527
5542
|
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
|
};
|
|
@@ -464,6 +464,14 @@ export interface AdvancedSecurityOptions {
|
|
|
464
464
|
* <p>Describes the SAML application configured for a domain.</p>
|
|
465
465
|
*/
|
|
466
466
|
SAMLOptions?: SAMLOptionsOutput;
|
|
467
|
+
/**
|
|
468
|
+
* <p>Specifies the Anonymous Auth Disable Date when Anonymous Auth is enabled.</p>
|
|
469
|
+
*/
|
|
470
|
+
AnonymousAuthDisableDate?: Date;
|
|
471
|
+
/**
|
|
472
|
+
* <p>True if Anonymous auth is enabled. Anonymous auth can be enabled only when AdvancedSecurity is enabled on existing domains.</p>
|
|
473
|
+
*/
|
|
474
|
+
AnonymousAuthEnabled?: boolean;
|
|
467
475
|
}
|
|
468
476
|
export declare namespace AdvancedSecurityOptions {
|
|
469
477
|
/**
|
|
@@ -553,6 +561,10 @@ export interface AdvancedSecurityOptionsInput {
|
|
|
553
561
|
* <p>Specifies the SAML application configuration for the domain.</p>
|
|
554
562
|
*/
|
|
555
563
|
SAMLOptions?: SAMLOptionsInput;
|
|
564
|
+
/**
|
|
565
|
+
* <p>True if Anonymous auth is enabled. Anonymous auth can be enabled only when AdvancedSecurity is enabled on existing domains.</p>
|
|
566
|
+
*/
|
|
567
|
+
AnonymousAuthEnabled?: boolean;
|
|
556
568
|
}
|
|
557
569
|
export declare namespace AdvancedSecurityOptionsInput {
|
|
558
570
|
/**
|
|
@@ -3969,6 +3981,14 @@ export interface UpdateElasticsearchDomainConfigRequest {
|
|
|
3969
3981
|
* <p>Specifies Auto-Tune options.</p>
|
|
3970
3982
|
*/
|
|
3971
3983
|
AutoTuneOptions?: AutoTuneOptions;
|
|
3984
|
+
/**
|
|
3985
|
+
* <p>
|
|
3986
|
+
* This flag, when set to True, specifies whether the <code>UpdateElasticsearchDomain</code> request should return the results of validation checks without actually applying the change.
|
|
3987
|
+
* This flag, when set to True, specifies the deployment mechanism through which the update shall be applied on the domain.
|
|
3988
|
+
* This will not actually perform the Update.
|
|
3989
|
+
* </p>
|
|
3990
|
+
*/
|
|
3991
|
+
DryRun?: boolean;
|
|
3972
3992
|
}
|
|
3973
3993
|
export declare namespace UpdateElasticsearchDomainConfigRequest {
|
|
3974
3994
|
/**
|
|
@@ -3976,6 +3996,29 @@ export declare namespace UpdateElasticsearchDomainConfigRequest {
|
|
|
3976
3996
|
*/
|
|
3977
3997
|
const filterSensitiveLog: (obj: UpdateElasticsearchDomainConfigRequest) => any;
|
|
3978
3998
|
}
|
|
3999
|
+
export interface DryRunResults {
|
|
4000
|
+
/**
|
|
4001
|
+
* <p>
|
|
4002
|
+
* Specifies the deployment mechanism through which the update shall be applied on the domain.
|
|
4003
|
+
* Possible responses are
|
|
4004
|
+
* <code>Blue/Green</code> (The update will require a blue/green deployment.)
|
|
4005
|
+
* <code>DynamicUpdate</code> (The update can be applied in-place without a Blue/Green deployment required.)
|
|
4006
|
+
* <code>Undetermined</code> (The domain is undergoing an update which needs to complete before the deployment type can be predicted.)
|
|
4007
|
+
* <code>None</code> (The configuration change matches the current configuration and will not result in any update.)
|
|
4008
|
+
* </p>
|
|
4009
|
+
*/
|
|
4010
|
+
DeploymentType?: string;
|
|
4011
|
+
/**
|
|
4012
|
+
* <p>Contains an optional message associated with the DryRunResults.</p>
|
|
4013
|
+
*/
|
|
4014
|
+
Message?: string;
|
|
4015
|
+
}
|
|
4016
|
+
export declare namespace DryRunResults {
|
|
4017
|
+
/**
|
|
4018
|
+
* @internal
|
|
4019
|
+
*/
|
|
4020
|
+
const filterSensitiveLog: (obj: DryRunResults) => any;
|
|
4021
|
+
}
|
|
3979
4022
|
/**
|
|
3980
4023
|
* <p>The result of an <code>UpdateElasticsearchDomain</code> request. Contains the status of the Elasticsearch domain being updated.</p>
|
|
3981
4024
|
*/
|
|
@@ -3984,6 +4027,10 @@ export interface UpdateElasticsearchDomainConfigResponse {
|
|
|
3984
4027
|
* <p>The status of the updated Elasticsearch domain. </p>
|
|
3985
4028
|
*/
|
|
3986
4029
|
DomainConfig: ElasticsearchDomainConfig | undefined;
|
|
4030
|
+
/**
|
|
4031
|
+
* <p>Contains result of DryRun. </p>
|
|
4032
|
+
*/
|
|
4033
|
+
DryRunResults?: DryRunResults;
|
|
3987
4034
|
}
|
|
3988
4035
|
export declare namespace UpdateElasticsearchDomainConfigResponse {
|
|
3989
4036
|
/**
|
|
@@ -249,6 +249,10 @@ export interface AdvancedSecurityOptions {
|
|
|
249
249
|
InternalUserDatabaseEnabled?: boolean;
|
|
250
250
|
|
|
251
251
|
SAMLOptions?: SAMLOptionsOutput;
|
|
252
|
+
|
|
253
|
+
AnonymousAuthDisableDate?: Date;
|
|
254
|
+
|
|
255
|
+
AnonymousAuthEnabled?: boolean;
|
|
252
256
|
}
|
|
253
257
|
export declare namespace AdvancedSecurityOptions {
|
|
254
258
|
|
|
@@ -298,6 +302,8 @@ export interface AdvancedSecurityOptionsInput {
|
|
|
298
302
|
MasterUserOptions?: MasterUserOptions;
|
|
299
303
|
|
|
300
304
|
SAMLOptions?: SAMLOptionsInput;
|
|
305
|
+
|
|
306
|
+
AnonymousAuthEnabled?: boolean;
|
|
301
307
|
}
|
|
302
308
|
export declare namespace AdvancedSecurityOptionsInput {
|
|
303
309
|
|
|
@@ -2024,15 +2030,29 @@ export interface UpdateElasticsearchDomainConfigRequest {
|
|
|
2024
2030
|
EncryptionAtRestOptions?: EncryptionAtRestOptions;
|
|
2025
2031
|
|
|
2026
2032
|
AutoTuneOptions?: AutoTuneOptions;
|
|
2033
|
+
|
|
2034
|
+
DryRun?: boolean;
|
|
2027
2035
|
}
|
|
2028
2036
|
export declare namespace UpdateElasticsearchDomainConfigRequest {
|
|
2029
2037
|
|
|
2030
2038
|
const filterSensitiveLog: (obj: UpdateElasticsearchDomainConfigRequest) => any;
|
|
2031
2039
|
}
|
|
2040
|
+
export interface DryRunResults {
|
|
2041
|
+
|
|
2042
|
+
DeploymentType?: string;
|
|
2043
|
+
|
|
2044
|
+
Message?: string;
|
|
2045
|
+
}
|
|
2046
|
+
export declare namespace DryRunResults {
|
|
2047
|
+
|
|
2048
|
+
const filterSensitiveLog: (obj: DryRunResults) => any;
|
|
2049
|
+
}
|
|
2032
2050
|
|
|
2033
2051
|
export interface UpdateElasticsearchDomainConfigResponse {
|
|
2034
2052
|
|
|
2035
2053
|
DomainConfig: ElasticsearchDomainConfig | undefined;
|
|
2054
|
+
|
|
2055
|
+
DryRunResults?: DryRunResults;
|
|
2036
2056
|
}
|
|
2037
2057
|
export declare namespace UpdateElasticsearchDomainConfigResponse {
|
|
2038
2058
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-elasticsearch-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Elasticsearch Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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": "exit 0"
|
|
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": {
|