@aws-sdk/client-elasticache 3.386.0 → 3.388.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/README.md +17 -9
- package/dist-cjs/ElastiCache.js +2 -0
- package/dist-cjs/ElastiCacheClient.js +2 -2
- package/dist-cjs/commands/TestMigrationCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_query.js +79 -2
- package/dist-es/ElastiCache.js +2 -0
- package/dist-es/ElastiCacheClient.js +2 -2
- package/dist-es/commands/TestMigrationCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_query.js +75 -0
- package/dist-types/ElastiCache.d.ts +16 -9
- package/dist-types/ElastiCacheClient.d.ts +14 -13
- package/dist-types/commands/AddTagsToResourceCommand.d.ts +23 -17
- package/dist-types/commands/AuthorizeCacheSecurityGroupIngressCommand.d.ts +8 -6
- package/dist-types/commands/BatchApplyUpdateActionCommand.d.ts +3 -1
- package/dist-types/commands/BatchStopUpdateActionCommand.d.ts +3 -1
- package/dist-types/commands/CopySnapshotCommand.d.ts +54 -50
- package/dist-types/commands/CreateCacheClusterCommand.d.ts +19 -12
- package/dist-types/commands/CreateCacheParameterGroupCommand.d.ts +16 -10
- package/dist-types/commands/CreateCacheSecurityGroupCommand.d.ts +10 -8
- package/dist-types/commands/CreateCacheSubnetGroupCommand.d.ts +15 -7
- package/dist-types/commands/CreateGlobalReplicationGroupCommand.d.ts +10 -9
- package/dist-types/commands/CreateReplicationGroupCommand.d.ts +45 -31
- package/dist-types/commands/CreateSnapshotCommand.d.ts +11 -7
- package/dist-types/commands/CreateUserCommand.d.ts +5 -2
- package/dist-types/commands/CreateUserGroupCommand.d.ts +5 -2
- package/dist-types/commands/DecreaseReplicaCountCommand.d.ts +12 -9
- package/dist-types/commands/DeleteCacheClusterCommand.d.ts +10 -9
- package/dist-types/commands/DeleteCacheParameterGroupCommand.d.ts +7 -5
- package/dist-types/commands/DeleteCacheSecurityGroupCommand.d.ts +4 -2
- package/dist-types/commands/DeleteCacheSubnetGroupCommand.d.ts +4 -2
- package/dist-types/commands/DeleteGlobalReplicationGroupCommand.d.ts +14 -7
- package/dist-types/commands/DeleteReplicationGroupCommand.d.ts +14 -10
- package/dist-types/commands/DeleteSnapshotCommand.d.ts +5 -4
- package/dist-types/commands/DeleteUserCommand.d.ts +3 -1
- package/dist-types/commands/DeleteUserGroupCommand.d.ts +3 -1
- package/dist-types/commands/DescribeCacheClustersCommand.d.ts +13 -13
- package/dist-types/commands/DescribeCacheEngineVersionsCommand.d.ts +1 -2
- package/dist-types/commands/DescribeCacheParameterGroupsCommand.d.ts +4 -4
- package/dist-types/commands/DescribeCacheParametersCommand.d.ts +3 -3
- package/dist-types/commands/DescribeCacheSecurityGroupsCommand.d.ts +5 -5
- package/dist-types/commands/DescribeCacheSubnetGroupsCommand.d.ts +6 -5
- package/dist-types/commands/DescribeEngineDefaultParametersCommand.d.ts +2 -2
- package/dist-types/commands/DescribeEventsCommand.d.ts +5 -6
- package/dist-types/commands/DescribeGlobalReplicationGroupsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeReplicationGroupsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeReservedCacheNodesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeReservedCacheNodesOfferingsCommand.d.ts +1 -2
- package/dist-types/commands/DescribeSnapshotsCommand.d.ts +2 -2
- package/dist-types/commands/DisassociateGlobalReplicationGroupCommand.d.ts +3 -1
- package/dist-types/commands/FailoverGlobalReplicationGroupCommand.d.ts +2 -1
- package/dist-types/commands/IncreaseReplicaCountCommand.d.ts +12 -9
- package/dist-types/commands/ListAllowedNodeTypeModificationsCommand.d.ts +6 -5
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +16 -10
- package/dist-types/commands/ModifyCacheClusterCommand.d.ts +12 -9
- package/dist-types/commands/ModifyCacheParameterGroupCommand.d.ts +6 -5
- package/dist-types/commands/ModifyCacheSubnetGroupCommand.d.ts +8 -4
- package/dist-types/commands/ModifyReplicationGroupCommand.d.ts +14 -10
- package/dist-types/commands/ModifyReplicationGroupShardConfigurationCommand.d.ts +8 -7
- package/dist-types/commands/PurchaseReservedCacheNodesOfferingCommand.d.ts +8 -6
- package/dist-types/commands/RebalanceSlotsInGlobalReplicationGroupCommand.d.ts +2 -1
- package/dist-types/commands/RebootCacheClusterCommand.d.ts +11 -10
- package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +13 -8
- package/dist-types/commands/ResetCacheParameterGroupCommand.d.ts +8 -6
- package/dist-types/commands/RevokeCacheSecurityGroupIngressCommand.d.ts +6 -5
- package/dist-types/commands/TestFailoverCommand.d.ts +38 -21
- package/dist-types/commands/TestMigrationCommand.d.ts +210 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +9 -9
- package/dist-types/models/models_0.d.ts +1496 -1152
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/ElastiCache.d.ts +17 -0
- package/dist-types/ts3.4/ElastiCacheClient.d.ts +12 -3
- package/dist-types/ts3.4/commands/TestMigrationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +29 -29
package/README.md
CHANGED
|
@@ -8,15 +8,15 @@ AWS SDK for JavaScript ElastiCache Client for Node.js, Browser and React Native.
|
|
|
8
8
|
|
|
9
9
|
<fullname>Amazon ElastiCache</fullname>
|
|
10
10
|
|
|
11
|
-
<p>Amazon ElastiCache is a web service that makes it easier to set up, operate,
|
|
12
|
-
|
|
13
|
-
<p>With ElastiCache, customers get all of the benefits of a high-performance,
|
|
14
|
-
|
|
15
|
-
The service makes setup, scaling,
|
|
16
|
-
|
|
17
|
-
<p>In addition, through integration with Amazon CloudWatch,
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
<p>Amazon ElastiCache is a web service that makes it easier to set up, operate, and scale
|
|
12
|
+
a distributed cache in the cloud.</p>
|
|
13
|
+
<p>With ElastiCache, customers get all of the benefits of a high-performance, in-memory
|
|
14
|
+
cache with less of the administrative burden involved in launching and managing a
|
|
15
|
+
distributed cache. The service makes setup, scaling, and cluster failure handling much
|
|
16
|
+
simpler than in a self-managed cache deployment.</p>
|
|
17
|
+
<p>In addition, through integration with Amazon CloudWatch, customers get enhanced
|
|
18
|
+
visibility into the key performance statistics associated with their cache and can
|
|
19
|
+
receive alarms if a part of their cache runs hot.</p>
|
|
20
20
|
|
|
21
21
|
## Installing
|
|
22
22
|
|
|
@@ -733,3 +733,11 @@ TestFailover
|
|
|
733
733
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-elasticache/classes/testfailovercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-elasticache/interfaces/testfailovercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-elasticache/interfaces/testfailovercommandoutput.html)
|
|
734
734
|
|
|
735
735
|
</details>
|
|
736
|
+
<details>
|
|
737
|
+
<summary>
|
|
738
|
+
TestMigration
|
|
739
|
+
</summary>
|
|
740
|
+
|
|
741
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-elasticache/classes/testmigrationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-elasticache/interfaces/testmigrationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-elasticache/interfaces/testmigrationcommandoutput.html)
|
|
742
|
+
|
|
743
|
+
</details>
|
package/dist-cjs/ElastiCache.js
CHANGED
|
@@ -67,6 +67,7 @@ const ResetCacheParameterGroupCommand_1 = require("./commands/ResetCacheParamete
|
|
|
67
67
|
const RevokeCacheSecurityGroupIngressCommand_1 = require("./commands/RevokeCacheSecurityGroupIngressCommand");
|
|
68
68
|
const StartMigrationCommand_1 = require("./commands/StartMigrationCommand");
|
|
69
69
|
const TestFailoverCommand_1 = require("./commands/TestFailoverCommand");
|
|
70
|
+
const TestMigrationCommand_1 = require("./commands/TestMigrationCommand");
|
|
70
71
|
const ElastiCacheClient_1 = require("./ElastiCacheClient");
|
|
71
72
|
const commands = {
|
|
72
73
|
AddTagsToResourceCommand: AddTagsToResourceCommand_1.AddTagsToResourceCommand,
|
|
@@ -134,6 +135,7 @@ const commands = {
|
|
|
134
135
|
RevokeCacheSecurityGroupIngressCommand: RevokeCacheSecurityGroupIngressCommand_1.RevokeCacheSecurityGroupIngressCommand,
|
|
135
136
|
StartMigrationCommand: StartMigrationCommand_1.StartMigrationCommand,
|
|
136
137
|
TestFailoverCommand: TestFailoverCommand_1.TestFailoverCommand,
|
|
138
|
+
TestMigrationCommand: TestMigrationCommand_1.TestMigrationCommand,
|
|
137
139
|
};
|
|
138
140
|
class ElastiCache extends ElastiCacheClient_1.ElastiCacheClient {
|
|
139
141
|
}
|
|
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__Client", { enumerable: true, get: function ()
|
|
|
15
15
|
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
16
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
17
|
class ElastiCacheClient extends smithy_client_1.Client {
|
|
18
|
-
constructor(configuration) {
|
|
19
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
18
|
+
constructor(...[configuration]) {
|
|
19
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
20
20
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
21
21
|
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
22
22
|
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestMigrationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
9
|
+
class TestMigrationCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TestMigrationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ElastiCacheClient";
|
|
28
|
+
const commandName = "TestMigrationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_query_1.se_TestMigrationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_query_1.de_TestMigrationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.TestMigrationCommand = TestMigrationCommand;
|
|
@@ -66,3 +66,4 @@ tslib_1.__exportStar(require("./ResetCacheParameterGroupCommand"), exports);
|
|
|
66
66
|
tslib_1.__exportStar(require("./RevokeCacheSecurityGroupIngressCommand"), exports);
|
|
67
67
|
tslib_1.__exportStar(require("./StartMigrationCommand"), exports);
|
|
68
68
|
tslib_1.__exportStar(require("./TestFailoverCommand"), exports);
|
|
69
|
+
tslib_1.__exportStar(require("./TestMigrationCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_ModifyCacheClusterCommand = exports.se_ListTagsForResourceCommand = exports.se_ListAllowedNodeTypeModificationsCommand = exports.se_IncreaseReplicaCountCommand = exports.se_IncreaseNodeGroupsInGlobalReplicationGroupCommand = exports.se_FailoverGlobalReplicationGroupCommand = exports.se_DisassociateGlobalReplicationGroupCommand = exports.se_DescribeUsersCommand = exports.se_DescribeUserGroupsCommand = exports.se_DescribeUpdateActionsCommand = exports.se_DescribeSnapshotsCommand = exports.se_DescribeServiceUpdatesCommand = exports.se_DescribeReservedCacheNodesOfferingsCommand = exports.se_DescribeReservedCacheNodesCommand = exports.se_DescribeReplicationGroupsCommand = exports.se_DescribeGlobalReplicationGroupsCommand = exports.se_DescribeEventsCommand = exports.se_DescribeEngineDefaultParametersCommand = exports.se_DescribeCacheSubnetGroupsCommand = exports.se_DescribeCacheSecurityGroupsCommand = exports.se_DescribeCacheParametersCommand = exports.se_DescribeCacheParameterGroupsCommand = exports.se_DescribeCacheEngineVersionsCommand = exports.se_DescribeCacheClustersCommand = exports.se_DeleteUserGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteSnapshotCommand = exports.se_DeleteReplicationGroupCommand = exports.se_DeleteGlobalReplicationGroupCommand = exports.se_DeleteCacheSubnetGroupCommand = exports.se_DeleteCacheSecurityGroupCommand = exports.se_DeleteCacheParameterGroupCommand = exports.se_DeleteCacheClusterCommand = exports.se_DecreaseReplicaCountCommand = exports.se_DecreaseNodeGroupsInGlobalReplicationGroupCommand = exports.se_CreateUserGroupCommand = exports.se_CreateUserCommand = exports.se_CreateSnapshotCommand = exports.se_CreateReplicationGroupCommand = exports.se_CreateGlobalReplicationGroupCommand = exports.se_CreateCacheSubnetGroupCommand = exports.se_CreateCacheSecurityGroupCommand = exports.se_CreateCacheParameterGroupCommand = exports.se_CreateCacheClusterCommand = exports.se_CopySnapshotCommand = exports.se_CompleteMigrationCommand = exports.se_BatchStopUpdateActionCommand = exports.se_BatchApplyUpdateActionCommand = exports.se_AuthorizeCacheSecurityGroupIngressCommand = exports.se_AddTagsToResourceCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_TestFailoverCommand = exports.de_StartMigrationCommand = exports.de_RevokeCacheSecurityGroupIngressCommand = exports.de_ResetCacheParameterGroupCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_RebootCacheClusterCommand = exports.de_RebalanceSlotsInGlobalReplicationGroupCommand = exports.de_PurchaseReservedCacheNodesOfferingCommand = exports.de_ModifyUserGroupCommand = exports.de_ModifyUserCommand = exports.de_ModifyReplicationGroupShardConfigurationCommand = exports.de_ModifyReplicationGroupCommand = exports.de_ModifyGlobalReplicationGroupCommand = exports.de_ModifyCacheSubnetGroupCommand = exports.de_ModifyCacheParameterGroupCommand = exports.de_ModifyCacheClusterCommand = exports.de_ListTagsForResourceCommand = exports.de_ListAllowedNodeTypeModificationsCommand = exports.de_IncreaseReplicaCountCommand = exports.de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = exports.de_FailoverGlobalReplicationGroupCommand = exports.de_DisassociateGlobalReplicationGroupCommand = exports.de_DescribeUsersCommand = exports.de_DescribeUserGroupsCommand = exports.de_DescribeUpdateActionsCommand = exports.de_DescribeSnapshotsCommand = exports.de_DescribeServiceUpdatesCommand = exports.de_DescribeReservedCacheNodesOfferingsCommand = exports.de_DescribeReservedCacheNodesCommand = exports.de_DescribeReplicationGroupsCommand = void 0;
|
|
4
|
+
exports.de_DescribeEventsCommand = exports.de_DescribeEngineDefaultParametersCommand = exports.de_DescribeCacheSubnetGroupsCommand = exports.de_DescribeCacheSecurityGroupsCommand = exports.de_DescribeCacheParametersCommand = exports.de_DescribeCacheParameterGroupsCommand = exports.de_DescribeCacheEngineVersionsCommand = exports.de_DescribeCacheClustersCommand = exports.de_DeleteUserGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteSnapshotCommand = exports.de_DeleteReplicationGroupCommand = exports.de_DeleteGlobalReplicationGroupCommand = exports.de_DeleteCacheSubnetGroupCommand = exports.de_DeleteCacheSecurityGroupCommand = exports.de_DeleteCacheParameterGroupCommand = exports.de_DeleteCacheClusterCommand = exports.de_DecreaseReplicaCountCommand = exports.de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = exports.de_CreateUserGroupCommand = exports.de_CreateUserCommand = exports.de_CreateSnapshotCommand = exports.de_CreateReplicationGroupCommand = exports.de_CreateGlobalReplicationGroupCommand = exports.de_CreateCacheSubnetGroupCommand = exports.de_CreateCacheSecurityGroupCommand = exports.de_CreateCacheParameterGroupCommand = exports.de_CreateCacheClusterCommand = exports.de_CopySnapshotCommand = exports.de_CompleteMigrationCommand = exports.de_BatchStopUpdateActionCommand = exports.de_BatchApplyUpdateActionCommand = exports.de_AuthorizeCacheSecurityGroupIngressCommand = exports.de_AddTagsToResourceCommand = exports.se_TestMigrationCommand = exports.se_TestFailoverCommand = exports.se_StartMigrationCommand = exports.se_RevokeCacheSecurityGroupIngressCommand = exports.se_ResetCacheParameterGroupCommand = exports.se_RemoveTagsFromResourceCommand = exports.se_RebootCacheClusterCommand = exports.se_RebalanceSlotsInGlobalReplicationGroupCommand = exports.se_PurchaseReservedCacheNodesOfferingCommand = exports.se_ModifyUserGroupCommand = exports.se_ModifyUserCommand = exports.se_ModifyReplicationGroupShardConfigurationCommand = exports.se_ModifyReplicationGroupCommand = exports.se_ModifyGlobalReplicationGroupCommand = exports.se_ModifyCacheSubnetGroupCommand = exports.se_ModifyCacheParameterGroupCommand = void 0;
|
|
5
|
+
exports.de_TestMigrationCommand = exports.de_TestFailoverCommand = exports.de_StartMigrationCommand = exports.de_RevokeCacheSecurityGroupIngressCommand = exports.de_ResetCacheParameterGroupCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_RebootCacheClusterCommand = exports.de_RebalanceSlotsInGlobalReplicationGroupCommand = exports.de_PurchaseReservedCacheNodesOfferingCommand = exports.de_ModifyUserGroupCommand = exports.de_ModifyUserCommand = exports.de_ModifyReplicationGroupShardConfigurationCommand = exports.de_ModifyReplicationGroupCommand = exports.de_ModifyGlobalReplicationGroupCommand = exports.de_ModifyCacheSubnetGroupCommand = exports.de_ModifyCacheParameterGroupCommand = exports.de_ModifyCacheClusterCommand = exports.de_ListTagsForResourceCommand = exports.de_ListAllowedNodeTypeModificationsCommand = exports.de_IncreaseReplicaCountCommand = exports.de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = exports.de_FailoverGlobalReplicationGroupCommand = exports.de_DisassociateGlobalReplicationGroupCommand = exports.de_DescribeUsersCommand = exports.de_DescribeUserGroupsCommand = exports.de_DescribeUpdateActionsCommand = exports.de_DescribeSnapshotsCommand = exports.de_DescribeServiceUpdatesCommand = exports.de_DescribeReservedCacheNodesOfferingsCommand = exports.de_DescribeReservedCacheNodesCommand = exports.de_DescribeReplicationGroupsCommand = exports.de_DescribeGlobalReplicationGroupsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
@@ -723,6 +723,17 @@ const se_TestFailoverCommand = async (input, context) => {
|
|
|
723
723
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
724
724
|
};
|
|
725
725
|
exports.se_TestFailoverCommand = se_TestFailoverCommand;
|
|
726
|
+
const se_TestMigrationCommand = async (input, context) => {
|
|
727
|
+
const headers = SHARED_HEADERS;
|
|
728
|
+
let body;
|
|
729
|
+
body = buildFormUrlencodedString({
|
|
730
|
+
...se_TestMigrationMessage(input, context),
|
|
731
|
+
Action: "TestMigration",
|
|
732
|
+
Version: "2015-02-02",
|
|
733
|
+
});
|
|
734
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
735
|
+
};
|
|
736
|
+
exports.se_TestMigrationCommand = se_TestMigrationCommand;
|
|
726
737
|
const de_AddTagsToResourceCommand = async (output, context) => {
|
|
727
738
|
if (output.statusCode >= 300) {
|
|
728
739
|
return de_AddTagsToResourceCommandError(output, context);
|
|
@@ -3735,6 +3746,48 @@ const de_TestFailoverCommandError = async (output, context) => {
|
|
|
3735
3746
|
});
|
|
3736
3747
|
}
|
|
3737
3748
|
};
|
|
3749
|
+
const de_TestMigrationCommand = async (output, context) => {
|
|
3750
|
+
if (output.statusCode >= 300) {
|
|
3751
|
+
return de_TestMigrationCommandError(output, context);
|
|
3752
|
+
}
|
|
3753
|
+
const data = await parseBody(output.body, context);
|
|
3754
|
+
let contents = {};
|
|
3755
|
+
contents = de_TestMigrationResponse(data.TestMigrationResult, context);
|
|
3756
|
+
const response = {
|
|
3757
|
+
$metadata: deserializeMetadata(output),
|
|
3758
|
+
...contents,
|
|
3759
|
+
};
|
|
3760
|
+
return response;
|
|
3761
|
+
};
|
|
3762
|
+
exports.de_TestMigrationCommand = de_TestMigrationCommand;
|
|
3763
|
+
const de_TestMigrationCommandError = async (output, context) => {
|
|
3764
|
+
const parsedOutput = {
|
|
3765
|
+
...output,
|
|
3766
|
+
body: await parseErrorBody(output.body, context),
|
|
3767
|
+
};
|
|
3768
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3769
|
+
switch (errorCode) {
|
|
3770
|
+
case "InvalidParameterValue":
|
|
3771
|
+
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3772
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3773
|
+
case "InvalidReplicationGroupState":
|
|
3774
|
+
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3775
|
+
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3776
|
+
case "ReplicationGroupAlreadyUnderMigrationFault":
|
|
3777
|
+
case "com.amazonaws.elasticache#ReplicationGroupAlreadyUnderMigrationFault":
|
|
3778
|
+
throw await de_ReplicationGroupAlreadyUnderMigrationFaultRes(parsedOutput, context);
|
|
3779
|
+
case "ReplicationGroupNotFoundFault":
|
|
3780
|
+
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3781
|
+
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3782
|
+
default:
|
|
3783
|
+
const parsedBody = parsedOutput.body;
|
|
3784
|
+
return throwDefaultError({
|
|
3785
|
+
output,
|
|
3786
|
+
parsedBody: parsedBody.Error,
|
|
3787
|
+
errorCode,
|
|
3788
|
+
});
|
|
3789
|
+
}
|
|
3790
|
+
};
|
|
3738
3791
|
const de_APICallRateForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
3739
3792
|
const body = parsedOutput.body;
|
|
3740
3793
|
const deserialized = de_APICallRateForCustomerExceededFault(body.Error, context);
|
|
@@ -6670,6 +6723,23 @@ const se_TestFailoverMessage = (input, context) => {
|
|
|
6670
6723
|
}
|
|
6671
6724
|
return entries;
|
|
6672
6725
|
};
|
|
6726
|
+
const se_TestMigrationMessage = (input, context) => {
|
|
6727
|
+
const entries = {};
|
|
6728
|
+
if (input.ReplicationGroupId != null) {
|
|
6729
|
+
entries["ReplicationGroupId"] = input.ReplicationGroupId;
|
|
6730
|
+
}
|
|
6731
|
+
if (input.CustomerNodeEndpointList != null) {
|
|
6732
|
+
const memberEntries = se_CustomerNodeEndpointList(input.CustomerNodeEndpointList, context);
|
|
6733
|
+
if (input.CustomerNodeEndpointList?.length === 0) {
|
|
6734
|
+
entries.CustomerNodeEndpointList = [];
|
|
6735
|
+
}
|
|
6736
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
6737
|
+
const loc = `CustomerNodeEndpointList.${key}`;
|
|
6738
|
+
entries[loc] = value;
|
|
6739
|
+
});
|
|
6740
|
+
}
|
|
6741
|
+
return entries;
|
|
6742
|
+
};
|
|
6673
6743
|
const se_TimeRangeFilter = (input, context) => {
|
|
6674
6744
|
const entries = {};
|
|
6675
6745
|
if (input.StartTime != null) {
|
|
@@ -9135,6 +9205,13 @@ const de_TestFailoverResult = (output, context) => {
|
|
|
9135
9205
|
}
|
|
9136
9206
|
return contents;
|
|
9137
9207
|
};
|
|
9208
|
+
const de_TestMigrationResponse = (output, context) => {
|
|
9209
|
+
const contents = {};
|
|
9210
|
+
if (output["ReplicationGroup"] !== undefined) {
|
|
9211
|
+
contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context);
|
|
9212
|
+
}
|
|
9213
|
+
return contents;
|
|
9214
|
+
};
|
|
9138
9215
|
const de_UGReplicationGroupIdList = (output, context) => {
|
|
9139
9216
|
return (output || [])
|
|
9140
9217
|
.filter((e) => e != null)
|
package/dist-es/ElastiCache.js
CHANGED
|
@@ -64,6 +64,7 @@ import { ResetCacheParameterGroupCommand, } from "./commands/ResetCacheParameter
|
|
|
64
64
|
import { RevokeCacheSecurityGroupIngressCommand, } from "./commands/RevokeCacheSecurityGroupIngressCommand";
|
|
65
65
|
import { StartMigrationCommand, } from "./commands/StartMigrationCommand";
|
|
66
66
|
import { TestFailoverCommand, } from "./commands/TestFailoverCommand";
|
|
67
|
+
import { TestMigrationCommand, } from "./commands/TestMigrationCommand";
|
|
67
68
|
import { ElastiCacheClient } from "./ElastiCacheClient";
|
|
68
69
|
const commands = {
|
|
69
70
|
AddTagsToResourceCommand,
|
|
@@ -131,6 +132,7 @@ const commands = {
|
|
|
131
132
|
RevokeCacheSecurityGroupIngressCommand,
|
|
132
133
|
StartMigrationCommand,
|
|
133
134
|
TestFailoverCommand,
|
|
135
|
+
TestMigrationCommand,
|
|
134
136
|
};
|
|
135
137
|
export class ElastiCache extends ElastiCacheClient {
|
|
136
138
|
}
|
|
@@ -12,8 +12,8 @@ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"
|
|
|
12
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
13
|
export { __Client };
|
|
14
14
|
export class ElastiCacheClient extends __Client {
|
|
15
|
-
constructor(configuration) {
|
|
16
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
15
|
+
constructor(...[configuration]) {
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
17
17
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
18
18
|
const _config_2 = resolveRegionConfig(_config_1);
|
|
19
19
|
const _config_3 = resolveEndpointConfig(_config_2);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_TestMigrationCommand, se_TestMigrationCommand } from "../protocols/Aws_query";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class TestMigrationCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, TestMigrationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ElastiCacheClient";
|
|
25
|
+
const commandName = "TestMigrationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_TestMigrationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_TestMigrationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -653,6 +653,16 @@ export const se_TestFailoverCommand = async (input, context) => {
|
|
|
653
653
|
});
|
|
654
654
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
655
655
|
};
|
|
656
|
+
export const se_TestMigrationCommand = async (input, context) => {
|
|
657
|
+
const headers = SHARED_HEADERS;
|
|
658
|
+
let body;
|
|
659
|
+
body = buildFormUrlencodedString({
|
|
660
|
+
...se_TestMigrationMessage(input, context),
|
|
661
|
+
Action: "TestMigration",
|
|
662
|
+
Version: "2015-02-02",
|
|
663
|
+
});
|
|
664
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
665
|
+
};
|
|
656
666
|
export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
657
667
|
if (output.statusCode >= 300) {
|
|
658
668
|
return de_AddTagsToResourceCommandError(output, context);
|
|
@@ -3600,6 +3610,47 @@ const de_TestFailoverCommandError = async (output, context) => {
|
|
|
3600
3610
|
});
|
|
3601
3611
|
}
|
|
3602
3612
|
};
|
|
3613
|
+
export const de_TestMigrationCommand = async (output, context) => {
|
|
3614
|
+
if (output.statusCode >= 300) {
|
|
3615
|
+
return de_TestMigrationCommandError(output, context);
|
|
3616
|
+
}
|
|
3617
|
+
const data = await parseBody(output.body, context);
|
|
3618
|
+
let contents = {};
|
|
3619
|
+
contents = de_TestMigrationResponse(data.TestMigrationResult, context);
|
|
3620
|
+
const response = {
|
|
3621
|
+
$metadata: deserializeMetadata(output),
|
|
3622
|
+
...contents,
|
|
3623
|
+
};
|
|
3624
|
+
return response;
|
|
3625
|
+
};
|
|
3626
|
+
const de_TestMigrationCommandError = async (output, context) => {
|
|
3627
|
+
const parsedOutput = {
|
|
3628
|
+
...output,
|
|
3629
|
+
body: await parseErrorBody(output.body, context),
|
|
3630
|
+
};
|
|
3631
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3632
|
+
switch (errorCode) {
|
|
3633
|
+
case "InvalidParameterValue":
|
|
3634
|
+
case "com.amazonaws.elasticache#InvalidParameterValueException":
|
|
3635
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3636
|
+
case "InvalidReplicationGroupState":
|
|
3637
|
+
case "com.amazonaws.elasticache#InvalidReplicationGroupStateFault":
|
|
3638
|
+
throw await de_InvalidReplicationGroupStateFaultRes(parsedOutput, context);
|
|
3639
|
+
case "ReplicationGroupAlreadyUnderMigrationFault":
|
|
3640
|
+
case "com.amazonaws.elasticache#ReplicationGroupAlreadyUnderMigrationFault":
|
|
3641
|
+
throw await de_ReplicationGroupAlreadyUnderMigrationFaultRes(parsedOutput, context);
|
|
3642
|
+
case "ReplicationGroupNotFoundFault":
|
|
3643
|
+
case "com.amazonaws.elasticache#ReplicationGroupNotFoundFault":
|
|
3644
|
+
throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
|
|
3645
|
+
default:
|
|
3646
|
+
const parsedBody = parsedOutput.body;
|
|
3647
|
+
return throwDefaultError({
|
|
3648
|
+
output,
|
|
3649
|
+
parsedBody: parsedBody.Error,
|
|
3650
|
+
errorCode,
|
|
3651
|
+
});
|
|
3652
|
+
}
|
|
3653
|
+
};
|
|
3603
3654
|
const de_APICallRateForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
3604
3655
|
const body = parsedOutput.body;
|
|
3605
3656
|
const deserialized = de_APICallRateForCustomerExceededFault(body.Error, context);
|
|
@@ -6535,6 +6586,23 @@ const se_TestFailoverMessage = (input, context) => {
|
|
|
6535
6586
|
}
|
|
6536
6587
|
return entries;
|
|
6537
6588
|
};
|
|
6589
|
+
const se_TestMigrationMessage = (input, context) => {
|
|
6590
|
+
const entries = {};
|
|
6591
|
+
if (input.ReplicationGroupId != null) {
|
|
6592
|
+
entries["ReplicationGroupId"] = input.ReplicationGroupId;
|
|
6593
|
+
}
|
|
6594
|
+
if (input.CustomerNodeEndpointList != null) {
|
|
6595
|
+
const memberEntries = se_CustomerNodeEndpointList(input.CustomerNodeEndpointList, context);
|
|
6596
|
+
if (input.CustomerNodeEndpointList?.length === 0) {
|
|
6597
|
+
entries.CustomerNodeEndpointList = [];
|
|
6598
|
+
}
|
|
6599
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
6600
|
+
const loc = `CustomerNodeEndpointList.${key}`;
|
|
6601
|
+
entries[loc] = value;
|
|
6602
|
+
});
|
|
6603
|
+
}
|
|
6604
|
+
return entries;
|
|
6605
|
+
};
|
|
6538
6606
|
const se_TimeRangeFilter = (input, context) => {
|
|
6539
6607
|
const entries = {};
|
|
6540
6608
|
if (input.StartTime != null) {
|
|
@@ -9000,6 +9068,13 @@ const de_TestFailoverResult = (output, context) => {
|
|
|
9000
9068
|
}
|
|
9001
9069
|
return contents;
|
|
9002
9070
|
};
|
|
9071
|
+
const de_TestMigrationResponse = (output, context) => {
|
|
9072
|
+
const contents = {};
|
|
9073
|
+
if (output["ReplicationGroup"] !== undefined) {
|
|
9074
|
+
contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context);
|
|
9075
|
+
}
|
|
9076
|
+
return contents;
|
|
9077
|
+
};
|
|
9003
9078
|
const de_UGReplicationGroupIdList = (output, context) => {
|
|
9004
9079
|
return (output || [])
|
|
9005
9080
|
.filter((e) => e != null)
|
|
@@ -64,6 +64,7 @@ import { ResetCacheParameterGroupCommandInput, ResetCacheParameterGroupCommandOu
|
|
|
64
64
|
import { RevokeCacheSecurityGroupIngressCommandInput, RevokeCacheSecurityGroupIngressCommandOutput } from "./commands/RevokeCacheSecurityGroupIngressCommand";
|
|
65
65
|
import { StartMigrationCommandInput, StartMigrationCommandOutput } from "./commands/StartMigrationCommand";
|
|
66
66
|
import { TestFailoverCommandInput, TestFailoverCommandOutput } from "./commands/TestFailoverCommand";
|
|
67
|
+
import { TestMigrationCommandInput, TestMigrationCommandOutput } from "./commands/TestMigrationCommand";
|
|
67
68
|
import { ElastiCacheClient } from "./ElastiCacheClient";
|
|
68
69
|
export interface ElastiCache {
|
|
69
70
|
/**
|
|
@@ -456,19 +457,25 @@ export interface ElastiCache {
|
|
|
456
457
|
testFailover(args: TestFailoverCommandInput, options?: __HttpHandlerOptions): Promise<TestFailoverCommandOutput>;
|
|
457
458
|
testFailover(args: TestFailoverCommandInput, cb: (err: any, data?: TestFailoverCommandOutput) => void): void;
|
|
458
459
|
testFailover(args: TestFailoverCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TestFailoverCommandOutput) => void): void;
|
|
460
|
+
/**
|
|
461
|
+
* @see {@link TestMigrationCommand}
|
|
462
|
+
*/
|
|
463
|
+
testMigration(args: TestMigrationCommandInput, options?: __HttpHandlerOptions): Promise<TestMigrationCommandOutput>;
|
|
464
|
+
testMigration(args: TestMigrationCommandInput, cb: (err: any, data?: TestMigrationCommandOutput) => void): void;
|
|
465
|
+
testMigration(args: TestMigrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TestMigrationCommandOutput) => void): void;
|
|
459
466
|
}
|
|
460
467
|
/**
|
|
461
468
|
* @public
|
|
462
469
|
* <fullname>Amazon ElastiCache</fullname>
|
|
463
|
-
* <p>Amazon ElastiCache is a web service that makes it easier to set up, operate,
|
|
464
|
-
*
|
|
465
|
-
* <p>With ElastiCache, customers get all of the benefits of a high-performance,
|
|
466
|
-
*
|
|
467
|
-
* The service makes setup, scaling,
|
|
468
|
-
*
|
|
469
|
-
* <p>In addition, through integration with Amazon CloudWatch,
|
|
470
|
-
*
|
|
471
|
-
*
|
|
470
|
+
* <p>Amazon ElastiCache is a web service that makes it easier to set up, operate, and scale
|
|
471
|
+
* a distributed cache in the cloud.</p>
|
|
472
|
+
* <p>With ElastiCache, customers get all of the benefits of a high-performance, in-memory
|
|
473
|
+
* cache with less of the administrative burden involved in launching and managing a
|
|
474
|
+
* distributed cache. The service makes setup, scaling, and cluster failure handling much
|
|
475
|
+
* simpler than in a self-managed cache deployment.</p>
|
|
476
|
+
* <p>In addition, through integration with Amazon CloudWatch, customers get enhanced
|
|
477
|
+
* visibility into the key performance statistics associated with their cache and can
|
|
478
|
+
* receive alarms if a part of their cache runs hot.</p>
|
|
472
479
|
*/
|
|
473
480
|
export declare class ElastiCache extends ElastiCacheClient implements ElastiCache {
|
|
474
481
|
}
|
|
@@ -7,7 +7,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
7
7
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
8
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
9
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
10
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
11
11
|
import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "./commands/AddTagsToResourceCommand";
|
|
12
12
|
import { AuthorizeCacheSecurityGroupIngressCommandInput, AuthorizeCacheSecurityGroupIngressCommandOutput } from "./commands/AuthorizeCacheSecurityGroupIngressCommand";
|
|
13
13
|
import { BatchApplyUpdateActionCommandInput, BatchApplyUpdateActionCommandOutput } from "./commands/BatchApplyUpdateActionCommand";
|
|
@@ -73,16 +73,17 @@ import { ResetCacheParameterGroupCommandInput, ResetCacheParameterGroupCommandOu
|
|
|
73
73
|
import { RevokeCacheSecurityGroupIngressCommandInput, RevokeCacheSecurityGroupIngressCommandOutput } from "./commands/RevokeCacheSecurityGroupIngressCommand";
|
|
74
74
|
import { StartMigrationCommandInput, StartMigrationCommandOutput } from "./commands/StartMigrationCommand";
|
|
75
75
|
import { TestFailoverCommandInput, TestFailoverCommandOutput } from "./commands/TestFailoverCommand";
|
|
76
|
+
import { TestMigrationCommandInput, TestMigrationCommandOutput } from "./commands/TestMigrationCommand";
|
|
76
77
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
77
78
|
export { __Client };
|
|
78
79
|
/**
|
|
79
80
|
* @public
|
|
80
81
|
*/
|
|
81
|
-
export type ServiceInputTypes = AddTagsToResourceCommandInput | AuthorizeCacheSecurityGroupIngressCommandInput | BatchApplyUpdateActionCommandInput | BatchStopUpdateActionCommandInput | CompleteMigrationCommandInput | CopySnapshotCommandInput | CreateCacheClusterCommandInput | CreateCacheParameterGroupCommandInput | CreateCacheSecurityGroupCommandInput | CreateCacheSubnetGroupCommandInput | CreateGlobalReplicationGroupCommandInput | CreateReplicationGroupCommandInput | CreateSnapshotCommandInput | CreateUserCommandInput | CreateUserGroupCommandInput | DecreaseNodeGroupsInGlobalReplicationGroupCommandInput | DecreaseReplicaCountCommandInput | DeleteCacheClusterCommandInput | DeleteCacheParameterGroupCommandInput | DeleteCacheSecurityGroupCommandInput | DeleteCacheSubnetGroupCommandInput | DeleteGlobalReplicationGroupCommandInput | DeleteReplicationGroupCommandInput | DeleteSnapshotCommandInput | DeleteUserCommandInput | DeleteUserGroupCommandInput | DescribeCacheClustersCommandInput | DescribeCacheEngineVersionsCommandInput | DescribeCacheParameterGroupsCommandInput | DescribeCacheParametersCommandInput | DescribeCacheSecurityGroupsCommandInput | DescribeCacheSubnetGroupsCommandInput | DescribeEngineDefaultParametersCommandInput | DescribeEventsCommandInput | DescribeGlobalReplicationGroupsCommandInput | DescribeReplicationGroupsCommandInput | DescribeReservedCacheNodesCommandInput | DescribeReservedCacheNodesOfferingsCommandInput | DescribeServiceUpdatesCommandInput | DescribeSnapshotsCommandInput | DescribeUpdateActionsCommandInput | DescribeUserGroupsCommandInput | DescribeUsersCommandInput | DisassociateGlobalReplicationGroupCommandInput | FailoverGlobalReplicationGroupCommandInput | IncreaseNodeGroupsInGlobalReplicationGroupCommandInput | IncreaseReplicaCountCommandInput | ListAllowedNodeTypeModificationsCommandInput | ListTagsForResourceCommandInput | ModifyCacheClusterCommandInput | ModifyCacheParameterGroupCommandInput | ModifyCacheSubnetGroupCommandInput | ModifyGlobalReplicationGroupCommandInput | ModifyReplicationGroupCommandInput | ModifyReplicationGroupShardConfigurationCommandInput | ModifyUserCommandInput | ModifyUserGroupCommandInput | PurchaseReservedCacheNodesOfferingCommandInput | RebalanceSlotsInGlobalReplicationGroupCommandInput | RebootCacheClusterCommandInput | RemoveTagsFromResourceCommandInput | ResetCacheParameterGroupCommandInput | RevokeCacheSecurityGroupIngressCommandInput | StartMigrationCommandInput | TestFailoverCommandInput;
|
|
82
|
+
export type ServiceInputTypes = AddTagsToResourceCommandInput | AuthorizeCacheSecurityGroupIngressCommandInput | BatchApplyUpdateActionCommandInput | BatchStopUpdateActionCommandInput | CompleteMigrationCommandInput | CopySnapshotCommandInput | CreateCacheClusterCommandInput | CreateCacheParameterGroupCommandInput | CreateCacheSecurityGroupCommandInput | CreateCacheSubnetGroupCommandInput | CreateGlobalReplicationGroupCommandInput | CreateReplicationGroupCommandInput | CreateSnapshotCommandInput | CreateUserCommandInput | CreateUserGroupCommandInput | DecreaseNodeGroupsInGlobalReplicationGroupCommandInput | DecreaseReplicaCountCommandInput | DeleteCacheClusterCommandInput | DeleteCacheParameterGroupCommandInput | DeleteCacheSecurityGroupCommandInput | DeleteCacheSubnetGroupCommandInput | DeleteGlobalReplicationGroupCommandInput | DeleteReplicationGroupCommandInput | DeleteSnapshotCommandInput | DeleteUserCommandInput | DeleteUserGroupCommandInput | DescribeCacheClustersCommandInput | DescribeCacheEngineVersionsCommandInput | DescribeCacheParameterGroupsCommandInput | DescribeCacheParametersCommandInput | DescribeCacheSecurityGroupsCommandInput | DescribeCacheSubnetGroupsCommandInput | DescribeEngineDefaultParametersCommandInput | DescribeEventsCommandInput | DescribeGlobalReplicationGroupsCommandInput | DescribeReplicationGroupsCommandInput | DescribeReservedCacheNodesCommandInput | DescribeReservedCacheNodesOfferingsCommandInput | DescribeServiceUpdatesCommandInput | DescribeSnapshotsCommandInput | DescribeUpdateActionsCommandInput | DescribeUserGroupsCommandInput | DescribeUsersCommandInput | DisassociateGlobalReplicationGroupCommandInput | FailoverGlobalReplicationGroupCommandInput | IncreaseNodeGroupsInGlobalReplicationGroupCommandInput | IncreaseReplicaCountCommandInput | ListAllowedNodeTypeModificationsCommandInput | ListTagsForResourceCommandInput | ModifyCacheClusterCommandInput | ModifyCacheParameterGroupCommandInput | ModifyCacheSubnetGroupCommandInput | ModifyGlobalReplicationGroupCommandInput | ModifyReplicationGroupCommandInput | ModifyReplicationGroupShardConfigurationCommandInput | ModifyUserCommandInput | ModifyUserGroupCommandInput | PurchaseReservedCacheNodesOfferingCommandInput | RebalanceSlotsInGlobalReplicationGroupCommandInput | RebootCacheClusterCommandInput | RemoveTagsFromResourceCommandInput | ResetCacheParameterGroupCommandInput | RevokeCacheSecurityGroupIngressCommandInput | StartMigrationCommandInput | TestFailoverCommandInput | TestMigrationCommandInput;
|
|
82
83
|
/**
|
|
83
84
|
* @public
|
|
84
85
|
*/
|
|
85
|
-
export type ServiceOutputTypes = AddTagsToResourceCommandOutput | AuthorizeCacheSecurityGroupIngressCommandOutput | BatchApplyUpdateActionCommandOutput | BatchStopUpdateActionCommandOutput | CompleteMigrationCommandOutput | CopySnapshotCommandOutput | CreateCacheClusterCommandOutput | CreateCacheParameterGroupCommandOutput | CreateCacheSecurityGroupCommandOutput | CreateCacheSubnetGroupCommandOutput | CreateGlobalReplicationGroupCommandOutput | CreateReplicationGroupCommandOutput | CreateSnapshotCommandOutput | CreateUserCommandOutput | CreateUserGroupCommandOutput | DecreaseNodeGroupsInGlobalReplicationGroupCommandOutput | DecreaseReplicaCountCommandOutput | DeleteCacheClusterCommandOutput | DeleteCacheParameterGroupCommandOutput | DeleteCacheSecurityGroupCommandOutput | DeleteCacheSubnetGroupCommandOutput | DeleteGlobalReplicationGroupCommandOutput | DeleteReplicationGroupCommandOutput | DeleteSnapshotCommandOutput | DeleteUserCommandOutput | DeleteUserGroupCommandOutput | DescribeCacheClustersCommandOutput | DescribeCacheEngineVersionsCommandOutput | DescribeCacheParameterGroupsCommandOutput | DescribeCacheParametersCommandOutput | DescribeCacheSecurityGroupsCommandOutput | DescribeCacheSubnetGroupsCommandOutput | DescribeEngineDefaultParametersCommandOutput | DescribeEventsCommandOutput | DescribeGlobalReplicationGroupsCommandOutput | DescribeReplicationGroupsCommandOutput | DescribeReservedCacheNodesCommandOutput | DescribeReservedCacheNodesOfferingsCommandOutput | DescribeServiceUpdatesCommandOutput | DescribeSnapshotsCommandOutput | DescribeUpdateActionsCommandOutput | DescribeUserGroupsCommandOutput | DescribeUsersCommandOutput | DisassociateGlobalReplicationGroupCommandOutput | FailoverGlobalReplicationGroupCommandOutput | IncreaseNodeGroupsInGlobalReplicationGroupCommandOutput | IncreaseReplicaCountCommandOutput | ListAllowedNodeTypeModificationsCommandOutput | ListTagsForResourceCommandOutput | ModifyCacheClusterCommandOutput | ModifyCacheParameterGroupCommandOutput | ModifyCacheSubnetGroupCommandOutput | ModifyGlobalReplicationGroupCommandOutput | ModifyReplicationGroupCommandOutput | ModifyReplicationGroupShardConfigurationCommandOutput | ModifyUserCommandOutput | ModifyUserGroupCommandOutput | PurchaseReservedCacheNodesOfferingCommandOutput | RebalanceSlotsInGlobalReplicationGroupCommandOutput | RebootCacheClusterCommandOutput | RemoveTagsFromResourceCommandOutput | ResetCacheParameterGroupCommandOutput | RevokeCacheSecurityGroupIngressCommandOutput | StartMigrationCommandOutput | TestFailoverCommandOutput;
|
|
86
|
+
export type ServiceOutputTypes = AddTagsToResourceCommandOutput | AuthorizeCacheSecurityGroupIngressCommandOutput | BatchApplyUpdateActionCommandOutput | BatchStopUpdateActionCommandOutput | CompleteMigrationCommandOutput | CopySnapshotCommandOutput | CreateCacheClusterCommandOutput | CreateCacheParameterGroupCommandOutput | CreateCacheSecurityGroupCommandOutput | CreateCacheSubnetGroupCommandOutput | CreateGlobalReplicationGroupCommandOutput | CreateReplicationGroupCommandOutput | CreateSnapshotCommandOutput | CreateUserCommandOutput | CreateUserGroupCommandOutput | DecreaseNodeGroupsInGlobalReplicationGroupCommandOutput | DecreaseReplicaCountCommandOutput | DeleteCacheClusterCommandOutput | DeleteCacheParameterGroupCommandOutput | DeleteCacheSecurityGroupCommandOutput | DeleteCacheSubnetGroupCommandOutput | DeleteGlobalReplicationGroupCommandOutput | DeleteReplicationGroupCommandOutput | DeleteSnapshotCommandOutput | DeleteUserCommandOutput | DeleteUserGroupCommandOutput | DescribeCacheClustersCommandOutput | DescribeCacheEngineVersionsCommandOutput | DescribeCacheParameterGroupsCommandOutput | DescribeCacheParametersCommandOutput | DescribeCacheSecurityGroupsCommandOutput | DescribeCacheSubnetGroupsCommandOutput | DescribeEngineDefaultParametersCommandOutput | DescribeEventsCommandOutput | DescribeGlobalReplicationGroupsCommandOutput | DescribeReplicationGroupsCommandOutput | DescribeReservedCacheNodesCommandOutput | DescribeReservedCacheNodesOfferingsCommandOutput | DescribeServiceUpdatesCommandOutput | DescribeSnapshotsCommandOutput | DescribeUpdateActionsCommandOutput | DescribeUserGroupsCommandOutput | DescribeUsersCommandOutput | DisassociateGlobalReplicationGroupCommandOutput | FailoverGlobalReplicationGroupCommandOutput | IncreaseNodeGroupsInGlobalReplicationGroupCommandOutput | IncreaseReplicaCountCommandOutput | ListAllowedNodeTypeModificationsCommandOutput | ListTagsForResourceCommandOutput | ModifyCacheClusterCommandOutput | ModifyCacheParameterGroupCommandOutput | ModifyCacheSubnetGroupCommandOutput | ModifyGlobalReplicationGroupCommandOutput | ModifyReplicationGroupCommandOutput | ModifyReplicationGroupShardConfigurationCommandOutput | ModifyUserCommandOutput | ModifyUserGroupCommandOutput | PurchaseReservedCacheNodesOfferingCommandOutput | RebalanceSlotsInGlobalReplicationGroupCommandOutput | RebootCacheClusterCommandOutput | RemoveTagsFromResourceCommandOutput | ResetCacheParameterGroupCommandOutput | RevokeCacheSecurityGroupIngressCommandOutput | StartMigrationCommandOutput | TestFailoverCommandOutput | TestMigrationCommandOutput;
|
|
86
87
|
/**
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
@@ -211,22 +212,22 @@ export interface ElastiCacheClientResolvedConfig extends ElastiCacheClientResolv
|
|
|
211
212
|
/**
|
|
212
213
|
* @public
|
|
213
214
|
* <fullname>Amazon ElastiCache</fullname>
|
|
214
|
-
* <p>Amazon ElastiCache is a web service that makes it easier to set up, operate,
|
|
215
|
-
*
|
|
216
|
-
* <p>With ElastiCache, customers get all of the benefits of a high-performance,
|
|
217
|
-
*
|
|
218
|
-
* The service makes setup, scaling,
|
|
219
|
-
*
|
|
220
|
-
* <p>In addition, through integration with Amazon CloudWatch,
|
|
221
|
-
*
|
|
222
|
-
*
|
|
215
|
+
* <p>Amazon ElastiCache is a web service that makes it easier to set up, operate, and scale
|
|
216
|
+
* a distributed cache in the cloud.</p>
|
|
217
|
+
* <p>With ElastiCache, customers get all of the benefits of a high-performance, in-memory
|
|
218
|
+
* cache with less of the administrative burden involved in launching and managing a
|
|
219
|
+
* distributed cache. The service makes setup, scaling, and cluster failure handling much
|
|
220
|
+
* simpler than in a self-managed cache deployment.</p>
|
|
221
|
+
* <p>In addition, through integration with Amazon CloudWatch, customers get enhanced
|
|
222
|
+
* visibility into the key performance statistics associated with their cache and can
|
|
223
|
+
* receive alarms if a part of their cache runs hot.</p>
|
|
223
224
|
*/
|
|
224
225
|
export declare class ElastiCacheClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ElastiCacheClientResolvedConfig> {
|
|
225
226
|
/**
|
|
226
227
|
* The resolved configuration of ElastiCacheClient class. This is resolved and normalized from the {@link ElastiCacheClientConfig | constructor configuration interface}.
|
|
227
228
|
*/
|
|
228
229
|
readonly config: ElastiCacheClientResolvedConfig;
|
|
229
|
-
constructor(configuration: ElastiCacheClientConfig);
|
|
230
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<ElastiCacheClientConfig>);
|
|
230
231
|
/**
|
|
231
232
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
232
233
|
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
@@ -23,18 +23,18 @@ export interface AddTagsToResourceCommandOutput extends TagListMessage, __Metada
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>A
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* <p>For more information,
|
|
36
|
-
*
|
|
37
|
-
*
|
|
26
|
+
* <p>A tag is a key-value pair where the key and value are case-sensitive. You can use tags
|
|
27
|
+
* to categorize and track all your ElastiCache resources, with the exception of global
|
|
28
|
+
* replication group. When you add or remove tags on replication groups, those actions will
|
|
29
|
+
* be replicated to all nodes in the replication group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/IAM.ResourceLevelPermissions.html">Resource-level permissions</a>.</p>
|
|
30
|
+
* <p> For example, you can use cost-allocation tags to your ElastiCache resources, Amazon
|
|
31
|
+
* generates a cost allocation report as a comma-separated value (CSV) file with your usage
|
|
32
|
+
* and costs aggregated by your tags. You can apply tags that represent business categories
|
|
33
|
+
* (such as cost centers, application names, or owners) to organize your costs across
|
|
34
|
+
* multiple services.</p>
|
|
35
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Tagging.html">Using Cost Allocation Tags in
|
|
36
|
+
* Amazon ElastiCache</a> in the <i>ElastiCache User
|
|
37
|
+
* Guide</i>.</p>
|
|
38
38
|
* @example
|
|
39
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
40
40
|
* ```javascript
|
|
@@ -73,16 +73,20 @@ export interface AddTagsToResourceCommandOutput extends TagListMessage, __Metada
|
|
|
73
73
|
* <p>The requested cluster ID does not refer to an existing cluster.</p>
|
|
74
74
|
*
|
|
75
75
|
* @throws {@link CacheParameterGroupNotFoundFault} (client fault)
|
|
76
|
-
* <p>The requested cache parameter group name does not refer to an existing cache parameter
|
|
76
|
+
* <p>The requested cache parameter group name does not refer to an existing cache parameter
|
|
77
|
+
* group.</p>
|
|
77
78
|
*
|
|
78
79
|
* @throws {@link CacheSecurityGroupNotFoundFault} (client fault)
|
|
79
|
-
* <p>The requested cache security group name does not refer to an existing cache security
|
|
80
|
+
* <p>The requested cache security group name does not refer to an existing cache security
|
|
81
|
+
* group.</p>
|
|
80
82
|
*
|
|
81
83
|
* @throws {@link CacheSubnetGroupNotFoundFault} (client fault)
|
|
82
|
-
* <p>The requested cache subnet group name does not refer to an existing cache subnet
|
|
84
|
+
* <p>The requested cache subnet group name does not refer to an existing cache subnet
|
|
85
|
+
* group.</p>
|
|
83
86
|
*
|
|
84
87
|
* @throws {@link InvalidARNFault} (client fault)
|
|
85
|
-
* <p>The requested Amazon Resource Name (ARN) does not refer to an existing
|
|
88
|
+
* <p>The requested Amazon Resource Name (ARN) does not refer to an existing
|
|
89
|
+
* resource.</p>
|
|
86
90
|
*
|
|
87
91
|
* @throws {@link InvalidReplicationGroupStateFault} (client fault)
|
|
88
92
|
* <p>The requested replication group is not in the <code>available</code> state.</p>
|
|
@@ -97,7 +101,9 @@ export interface AddTagsToResourceCommandOutput extends TagListMessage, __Metada
|
|
|
97
101
|
* <p>The requested snapshot name does not refer to an existing snapshot.</p>
|
|
98
102
|
*
|
|
99
103
|
* @throws {@link TagQuotaPerResourceExceeded} (client fault)
|
|
100
|
-
* <p>The request cannot be processed because it would cause the resource to have more than
|
|
104
|
+
* <p>The request cannot be processed because it would cause the resource to have more than
|
|
105
|
+
* the allowed number of tags. The maximum number of tags permitted on a resource is
|
|
106
|
+
* 50.</p>
|
|
101
107
|
*
|
|
102
108
|
* @throws {@link UserGroupNotFoundFault} (client fault)
|
|
103
109
|
* <p>The user group was not found or does not exist</p>
|