@aws-sdk/client-elasticache 3.774.0 → 3.777.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/ElastiCacheClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/AddTagsToResourceCommand.d.ts +14 -14
- package/dist-types/commands/AuthorizeCacheSecurityGroupIngressCommand.d.ts +9 -6
- package/dist-types/commands/BatchApplyUpdateActionCommand.d.ts +1 -0
- package/dist-types/commands/BatchStopUpdateActionCommand.d.ts +1 -0
- package/dist-types/commands/CompleteMigrationCommand.d.ts +1 -0
- package/dist-types/commands/CopyServerlessCacheSnapshotCommand.d.ts +1 -0
- package/dist-types/commands/CopySnapshotCommand.d.ts +30 -30
- package/dist-types/commands/CreateCacheClusterCommand.d.ts +74 -29
- package/dist-types/commands/CreateCacheParameterGroupCommand.d.ts +10 -10
- package/dist-types/commands/CreateCacheSecurityGroupCommand.d.ts +8 -5
- package/dist-types/commands/CreateCacheSubnetGroupCommand.d.ts +20 -20
- package/dist-types/commands/CreateGlobalReplicationGroupCommand.d.ts +1 -0
- package/dist-types/commands/CreateReplicationGroupCommand.d.ts +47 -48
- package/dist-types/commands/CreateServerlessCacheCommand.d.ts +1 -0
- package/dist-types/commands/CreateServerlessCacheSnapshotCommand.d.ts +1 -0
- package/dist-types/commands/CreateSnapshotCommand.d.ts +97 -56
- package/dist-types/commands/CreateUserCommand.d.ts +1 -0
- package/dist-types/commands/CreateUserGroupCommand.d.ts +1 -0
- package/dist-types/commands/DecreaseNodeGroupsInGlobalReplicationGroupCommand.d.ts +1 -0
- package/dist-types/commands/DecreaseReplicaCountCommand.d.ts +1 -0
- package/dist-types/commands/DeleteCacheClusterCommand.d.ts +26 -26
- package/dist-types/commands/DeleteCacheParameterGroupCommand.d.ts +8 -4
- package/dist-types/commands/DeleteCacheSecurityGroupCommand.d.ts +7 -4
- package/dist-types/commands/DeleteCacheSubnetGroupCommand.d.ts +7 -4
- package/dist-types/commands/DeleteGlobalReplicationGroupCommand.d.ts +1 -0
- package/dist-types/commands/DeleteReplicationGroupCommand.d.ts +11 -11
- package/dist-types/commands/DeleteServerlessCacheCommand.d.ts +1 -0
- package/dist-types/commands/DeleteServerlessCacheSnapshotCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSnapshotCommand.d.ts +28 -28
- package/dist-types/commands/DeleteUserCommand.d.ts +1 -0
- package/dist-types/commands/DeleteUserGroupCommand.d.ts +1 -0
- package/dist-types/commands/DescribeCacheClustersCommand.d.ts +92 -26
- package/dist-types/commands/DescribeCacheEngineVersionsCommand.d.ts +140 -65
- package/dist-types/commands/DescribeCacheParameterGroupsCommand.d.ts +8 -8
- package/dist-types/commands/DescribeCacheParametersCommand.d.ts +390 -390
- package/dist-types/commands/DescribeCacheSecurityGroupsCommand.d.ts +7 -4
- package/dist-types/commands/DescribeCacheSubnetGroupsCommand.d.ts +22 -22
- package/dist-types/commands/DescribeEngineDefaultParametersCommand.d.ts +391 -391
- package/dist-types/commands/DescribeEventsCommand.d.ts +80 -27
- package/dist-types/commands/DescribeGlobalReplicationGroupsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeReplicationGroupsCommand.d.ts +31 -31
- package/dist-types/commands/DescribeReservedCacheNodesCommand.d.ts +7 -4
- package/dist-types/commands/DescribeReservedCacheNodesOfferingsCommand.d.ts +230 -188
- package/dist-types/commands/DescribeServerlessCacheSnapshotsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeServerlessCachesCommand.d.ts +1 -0
- package/dist-types/commands/DescribeServiceUpdatesCommand.d.ts +1 -0
- package/dist-types/commands/DescribeSnapshotsCommand.d.ts +29 -29
- package/dist-types/commands/DescribeUpdateActionsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeUserGroupsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeUsersCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateGlobalReplicationGroupCommand.d.ts +1 -0
- package/dist-types/commands/ExportServerlessCacheSnapshotCommand.d.ts +1 -0
- package/dist-types/commands/FailoverGlobalReplicationGroupCommand.d.ts +1 -0
- package/dist-types/commands/IncreaseNodeGroupsInGlobalReplicationGroupCommand.d.ts +1 -0
- package/dist-types/commands/IncreaseReplicaCountCommand.d.ts +1 -0
- package/dist-types/commands/ListAllowedNodeTypeModificationsCommand.d.ts +20 -5
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +9 -9
- package/dist-types/commands/ModifyCacheClusterCommand.d.ts +27 -27
- package/dist-types/commands/ModifyCacheParameterGroupCommand.d.ts +10 -10
- package/dist-types/commands/ModifyCacheSubnetGroupCommand.d.ts +25 -25
- package/dist-types/commands/ModifyGlobalReplicationGroupCommand.d.ts +1 -0
- package/dist-types/commands/ModifyReplicationGroupCommand.d.ts +44 -44
- package/dist-types/commands/ModifyReplicationGroupShardConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/ModifyServerlessCacheCommand.d.ts +1 -0
- package/dist-types/commands/ModifyUserCommand.d.ts +1 -0
- package/dist-types/commands/ModifyUserGroupCommand.d.ts +1 -0
- package/dist-types/commands/PurchaseReservedCacheNodesOfferingCommand.d.ts +7 -4
- package/dist-types/commands/RebalanceSlotsInGlobalReplicationGroupCommand.d.ts +1 -0
- package/dist-types/commands/RebootCacheClusterCommand.d.ts +27 -27
- package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +16 -16
- package/dist-types/commands/ResetCacheParameterGroupCommand.d.ts +6 -6
- package/dist-types/commands/RevokeCacheSecurityGroupIngressCommand.d.ts +9 -6
- package/dist-types/commands/StartMigrationCommand.d.ts +1 -0
- package/dist-types/commands/TestFailoverCommand.d.ts +1 -0
- package/dist-types/commands/TestMigrationCommand.d.ts +1 -0
- package/package.json +34 -34
|
@@ -40,8 +40,6 @@ const defaultElastiCacheHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultElastiCacheHttpAuthSchemeProvider = defaultElastiCacheHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -249,12 +249,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
249
249
|
|
|
250
250
|
// src/endpoint/EndpointParameters.ts
|
|
251
251
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
252
|
-
return {
|
|
253
|
-
...options,
|
|
252
|
+
return Object.assign(options, {
|
|
254
253
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
255
254
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
256
255
|
defaultSigningName: "elasticache"
|
|
257
|
-
};
|
|
256
|
+
});
|
|
258
257
|
}, "resolveClientEndpointParameters");
|
|
259
258
|
var commonParams = {
|
|
260
259
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -311,22 +310,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
311
310
|
}, "resolveHttpAuthRuntimeConfig");
|
|
312
311
|
|
|
313
312
|
// src/runtimeExtensions.ts
|
|
314
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
315
313
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
316
|
-
const extensionConfiguration =
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
314
|
+
const extensionConfiguration = Object.assign(
|
|
315
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
316
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
317
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
318
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
319
|
+
);
|
|
322
320
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
323
|
-
return
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
321
|
+
return Object.assign(
|
|
322
|
+
runtimeConfig,
|
|
323
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
324
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
325
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
326
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
327
|
+
);
|
|
330
328
|
}, "resolveRuntimeExtensions");
|
|
331
329
|
|
|
332
330
|
// src/ElastiCacheClient.ts
|
|
@@ -340,6 +338,8 @@ var ElastiCacheClient = class extends import_smithy_client.Client {
|
|
|
340
338
|
config;
|
|
341
339
|
constructor(...[configuration]) {
|
|
342
340
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
341
|
+
super(_config_0);
|
|
342
|
+
this.initConfig = _config_0;
|
|
343
343
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
344
344
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
345
345
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -348,7 +348,6 @@ var ElastiCacheClient = class extends import_smithy_client.Client {
|
|
|
348
348
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
349
349
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
350
350
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
351
|
-
super(_config_8);
|
|
352
351
|
this.config = _config_8;
|
|
353
352
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
354
353
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class ElastiCacheClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class ElastiCacheClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultElastiCacheHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "elasticache",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -130,42 +130,42 @@ declare const AddTagsToResourceCommand_base: {
|
|
|
130
130
|
* @throws {@link ElastiCacheServiceException}
|
|
131
131
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
132
132
|
*
|
|
133
|
-
*
|
|
133
|
+
*
|
|
134
134
|
* @example AddTagsToResource
|
|
135
135
|
* ```javascript
|
|
136
136
|
* // Adds up to 10 tags, key/value pairs, to a cluster or snapshot resource.
|
|
137
137
|
* const input = {
|
|
138
|
-
*
|
|
139
|
-
*
|
|
138
|
+
* ResourceName: "arn:aws:elasticache:us-east-1:1234567890:cluster:my-mem-cluster",
|
|
139
|
+
* Tags: [
|
|
140
140
|
* {
|
|
141
|
-
*
|
|
142
|
-
*
|
|
141
|
+
* Key: "APIVersion",
|
|
142
|
+
* Value: "20150202"
|
|
143
143
|
* },
|
|
144
144
|
* {
|
|
145
|
-
*
|
|
146
|
-
*
|
|
145
|
+
* Key: "Service",
|
|
146
|
+
* Value: "ElastiCache"
|
|
147
147
|
* }
|
|
148
148
|
* ]
|
|
149
149
|
* };
|
|
150
150
|
* const command = new AddTagsToResourceCommand(input);
|
|
151
151
|
* const response = await client.send(command);
|
|
152
|
-
* /* response
|
|
152
|
+
* /* response is
|
|
153
153
|
* {
|
|
154
|
-
*
|
|
154
|
+
* TagList: [
|
|
155
155
|
* {
|
|
156
|
-
*
|
|
157
|
-
*
|
|
156
|
+
* Key: "APIVersion",
|
|
157
|
+
* Value: "20150202"
|
|
158
158
|
* },
|
|
159
159
|
* {
|
|
160
|
-
*
|
|
161
|
-
*
|
|
160
|
+
* Key: "Service",
|
|
161
|
+
* Value: "ElastiCache"
|
|
162
162
|
* }
|
|
163
163
|
* ]
|
|
164
164
|
* }
|
|
165
165
|
* *\/
|
|
166
|
-
* // example id: addtagstoresource-1482430264385
|
|
167
166
|
* ```
|
|
168
167
|
*
|
|
168
|
+
* @public
|
|
169
169
|
*/
|
|
170
170
|
export declare class AddTagsToResourceCommand extends AddTagsToResourceCommand_base {
|
|
171
171
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -91,20 +91,23 @@ declare const AuthorizeCacheSecurityGroupIngressCommand_base: {
|
|
|
91
91
|
* @throws {@link ElastiCacheServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
93
93
|
*
|
|
94
|
-
*
|
|
94
|
+
*
|
|
95
95
|
* @example AuthorizeCacheCacheSecurityGroupIngress
|
|
96
96
|
* ```javascript
|
|
97
97
|
* // Allows network ingress to a cache security group. Applications using ElastiCache must be running on Amazon EC2. Amazon EC2 security groups are used as the authorization mechanism.
|
|
98
98
|
* const input = {
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
99
|
+
* CacheSecurityGroupName: "my-sec-grp",
|
|
100
|
+
* EC2SecurityGroupName: "my-ec2-sec-grp",
|
|
101
|
+
* EC2SecurityGroupOwnerId: "1234567890"
|
|
102
102
|
* };
|
|
103
103
|
* const command = new AuthorizeCacheSecurityGroupIngressCommand(input);
|
|
104
|
-
* await client.send(command);
|
|
105
|
-
*
|
|
104
|
+
* const response = await client.send(command);
|
|
105
|
+
* /* response is
|
|
106
|
+
* { /* metadata only *\/ }
|
|
107
|
+
* *\/
|
|
106
108
|
* ```
|
|
107
109
|
*
|
|
110
|
+
* @public
|
|
108
111
|
*/
|
|
109
112
|
export declare class AuthorizeCacheSecurityGroupIngressCommand extends AuthorizeCacheSecurityGroupIngressCommand_base {
|
|
110
113
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -84,6 +84,7 @@ declare const BatchApplyUpdateActionCommand_base: {
|
|
|
84
84
|
* @throws {@link ElastiCacheServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
86
86
|
*
|
|
87
|
+
*
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
export declare class BatchApplyUpdateActionCommand extends BatchApplyUpdateActionCommand_base {
|
|
@@ -84,6 +84,7 @@ declare const BatchStopUpdateActionCommand_base: {
|
|
|
84
84
|
* @throws {@link ElastiCacheServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
86
86
|
*
|
|
87
|
+
*
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
export declare class BatchStopUpdateActionCommand extends BatchStopUpdateActionCommand_base {
|
|
@@ -184,6 +184,7 @@ declare const CompleteMigrationCommand_base: {
|
|
|
184
184
|
* @throws {@link ElastiCacheServiceException}
|
|
185
185
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
186
186
|
*
|
|
187
|
+
*
|
|
187
188
|
* @public
|
|
188
189
|
*/
|
|
189
190
|
export declare class CompleteMigrationCommand extends CompleteMigrationCommand_base {
|
|
@@ -102,6 +102,7 @@ declare const CopyServerlessCacheSnapshotCommand_base: {
|
|
|
102
102
|
* @throws {@link ElastiCacheServiceException}
|
|
103
103
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
104
104
|
*
|
|
105
|
+
*
|
|
105
106
|
* @public
|
|
106
107
|
*/
|
|
107
108
|
export declare class CopyServerlessCacheSnapshotCommand extends CopyServerlessCacheSnapshotCommand_base {
|
|
@@ -229,52 +229,52 @@ declare const CopySnapshotCommand_base: {
|
|
|
229
229
|
* @throws {@link ElastiCacheServiceException}
|
|
230
230
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
231
231
|
*
|
|
232
|
-
*
|
|
232
|
+
*
|
|
233
233
|
* @example CopySnapshot
|
|
234
234
|
* ```javascript
|
|
235
235
|
* // Copies a snapshot to a specified name.
|
|
236
236
|
* const input = {
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
237
|
+
* SourceSnapshotName: "my-snapshot",
|
|
238
|
+
* TargetBucket: "",
|
|
239
|
+
* TargetSnapshotName: "my-snapshot-copy"
|
|
240
240
|
* };
|
|
241
241
|
* const command = new CopySnapshotCommand(input);
|
|
242
242
|
* const response = await client.send(command);
|
|
243
|
-
* /* response
|
|
243
|
+
* /* response is
|
|
244
244
|
* {
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
245
|
+
* Snapshot: {
|
|
246
|
+
* AutoMinorVersionUpgrade: true,
|
|
247
|
+
* CacheClusterCreateTime: "2016-12-21T22:24:04.955Z",
|
|
248
|
+
* CacheClusterId: "my-redis4",
|
|
249
|
+
* CacheNodeType: "cache.m3.large",
|
|
250
|
+
* CacheParameterGroupName: "default.redis3.2",
|
|
251
|
+
* CacheSubnetGroupName: "default",
|
|
252
|
+
* Engine: "redis",
|
|
253
|
+
* EngineVersion: "3.2.4",
|
|
254
|
+
* NodeSnapshots: [
|
|
255
255
|
* {
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
256
|
+
* CacheNodeCreateTime: "2016-12-21T22:24:04.955Z",
|
|
257
|
+
* CacheNodeId: "0001",
|
|
258
|
+
* CacheSize: "3 MB",
|
|
259
|
+
* SnapshotCreateTime: "2016-12-28T07:00:52Z"
|
|
260
260
|
* }
|
|
261
261
|
* ],
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
262
|
+
* NumCacheNodes: 1,
|
|
263
|
+
* Port: 6379,
|
|
264
|
+
* PreferredAvailabilityZone: "us-east-1c",
|
|
265
|
+
* PreferredMaintenanceWindow: "tue:09:30-tue:10:30",
|
|
266
|
+
* SnapshotName: "my-snapshot-copy",
|
|
267
|
+
* SnapshotRetentionLimit: 7,
|
|
268
|
+
* SnapshotSource: "manual",
|
|
269
|
+
* SnapshotStatus: "creating",
|
|
270
|
+
* SnapshotWindow: "07:00-08:00",
|
|
271
|
+
* VpcId: "vpc-3820329f3"
|
|
272
272
|
* }
|
|
273
273
|
* }
|
|
274
274
|
* *\/
|
|
275
|
-
* // example id: copysnapshot-1482961393820
|
|
276
275
|
* ```
|
|
277
276
|
*
|
|
277
|
+
* @public
|
|
278
278
|
*/
|
|
279
279
|
export declare class CopySnapshotCommand extends CopySnapshotCommand_base {
|
|
280
280
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -277,49 +277,94 @@ declare const CreateCacheClusterCommand_base: {
|
|
|
277
277
|
* @throws {@link ElastiCacheServiceException}
|
|
278
278
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
279
279
|
*
|
|
280
|
-
*
|
|
280
|
+
*
|
|
281
281
|
* @example CreateCacheCluster
|
|
282
282
|
* ```javascript
|
|
283
283
|
* // Creates a Memcached cluster with 2 nodes.
|
|
284
284
|
* const input = {
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
285
|
+
* AZMode: "cross-az",
|
|
286
|
+
* CacheClusterId: "my-memcached-cluster",
|
|
287
|
+
* CacheNodeType: "cache.r3.large",
|
|
288
|
+
* CacheSubnetGroupName: "default",
|
|
289
|
+
* Engine: "memcached",
|
|
290
|
+
* EngineVersion: "1.4.24",
|
|
291
|
+
* NumCacheNodes: 2,
|
|
292
|
+
* Port: 11211
|
|
293
|
+
* };
|
|
294
|
+
* const command = new CreateCacheClusterCommand(input);
|
|
295
|
+
* const response = await client.send(command);
|
|
296
|
+
* /* response is
|
|
297
|
+
* {
|
|
298
|
+
* CacheCluster: {
|
|
299
|
+
* AutoMinorVersionUpgrade: true,
|
|
300
|
+
* CacheClusterId: "my-memcached-cluster",
|
|
301
|
+
* CacheClusterStatus: "creating",
|
|
302
|
+
* CacheNodeType: "cache.r3.large",
|
|
303
|
+
* CacheParameterGroup: {
|
|
304
|
+
* CacheNodeIdsToReboot: [],
|
|
305
|
+
* CacheParameterGroupName: "default.memcached1.4",
|
|
306
|
+
* ParameterApplyStatus: "in-sync"
|
|
307
|
+
* },
|
|
308
|
+
* CacheSecurityGroups: [],
|
|
309
|
+
* CacheSubnetGroupName: "default",
|
|
310
|
+
* ClientDownloadLandingPage: "https://console.aws.amazon.com/elasticache/home#client-download:",
|
|
311
|
+
* Engine: "memcached",
|
|
312
|
+
* EngineVersion: "1.4.24",
|
|
313
|
+
* NumCacheNodes: 2,
|
|
314
|
+
* PendingModifiedValues: { /* empty *\/ },
|
|
315
|
+
* PreferredAvailabilityZone: "Multiple",
|
|
316
|
+
* PreferredMaintenanceWindow: "wed:09:00-wed:10:00"
|
|
317
|
+
* }
|
|
318
|
+
* }
|
|
319
|
+
* *\/
|
|
320
|
+
* ```
|
|
321
|
+
*
|
|
322
|
+
* @example CreateCacheCluster
|
|
323
|
+
* ```javascript
|
|
324
|
+
* // Creates a Redis cluster with 1 node.
|
|
325
|
+
* const input = {
|
|
326
|
+
* AutoMinorVersionUpgrade: true,
|
|
327
|
+
* CacheClusterId: "my-redis",
|
|
328
|
+
* CacheNodeType: "cache.r3.larage",
|
|
329
|
+
* CacheSubnetGroupName: "default",
|
|
330
|
+
* Engine: "redis",
|
|
331
|
+
* EngineVersion: "3.2.4",
|
|
332
|
+
* NumCacheNodes: 1,
|
|
333
|
+
* Port: 6379,
|
|
334
|
+
* PreferredAvailabilityZone: "us-east-1c",
|
|
335
|
+
* SnapshotRetentionLimit: 7
|
|
293
336
|
* };
|
|
294
337
|
* const command = new CreateCacheClusterCommand(input);
|
|
295
338
|
* const response = await client.send(command);
|
|
296
|
-
* /* response
|
|
339
|
+
* /* response is
|
|
297
340
|
* {
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
341
|
+
* CacheCluster: {
|
|
342
|
+
* AutoMinorVersionUpgrade: true,
|
|
343
|
+
* CacheClusterId: "my-redis",
|
|
344
|
+
* CacheClusterStatus: "creating",
|
|
345
|
+
* CacheNodeType: "cache.m3.large",
|
|
346
|
+
* CacheParameterGroup: {
|
|
347
|
+
* CacheNodeIdsToReboot: [],
|
|
348
|
+
* CacheParameterGroupName: "default.redis3.2",
|
|
349
|
+
* ParameterApplyStatus: "in-sync"
|
|
307
350
|
* },
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
351
|
+
* CacheSecurityGroups: [],
|
|
352
|
+
* CacheSubnetGroupName: "default",
|
|
353
|
+
* ClientDownloadLandingPage: "https: //console.aws.amazon.com/elasticache/home#client-download: ",
|
|
354
|
+
* Engine: "redis",
|
|
355
|
+
* EngineVersion: "3.2.4",
|
|
356
|
+
* NumCacheNodes: 1,
|
|
357
|
+
* PendingModifiedValues: { /* empty *\/ },
|
|
358
|
+
* PreferredAvailabilityZone: "us-east-1c",
|
|
359
|
+
* PreferredMaintenanceWindow: "fri: 05: 30-fri: 06: 30",
|
|
360
|
+
* SnapshotRetentionLimit: 7,
|
|
361
|
+
* SnapshotWindow: "10: 00-11: 00"
|
|
317
362
|
* }
|
|
318
363
|
* }
|
|
319
364
|
* *\/
|
|
320
|
-
* // example id: createcachecluster-1474994727381
|
|
321
365
|
* ```
|
|
322
366
|
*
|
|
367
|
+
* @public
|
|
323
368
|
*/
|
|
324
369
|
export declare class CreateCacheClusterCommand extends CreateCacheClusterCommand_base {
|
|
325
370
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -107,29 +107,29 @@ declare const CreateCacheParameterGroupCommand_base: {
|
|
|
107
107
|
* @throws {@link ElastiCacheServiceException}
|
|
108
108
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
109
109
|
*
|
|
110
|
-
*
|
|
110
|
+
*
|
|
111
111
|
* @example CreateCacheParameterGroup
|
|
112
112
|
* ```javascript
|
|
113
113
|
* // Creates the Amazon ElastiCache parameter group custom-redis2-8.
|
|
114
114
|
* const input = {
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
115
|
+
* CacheParameterGroupFamily: "redis2.8",
|
|
116
|
+
* CacheParameterGroupName: "custom-redis2-8",
|
|
117
|
+
* Description: "Custom Redis 2.8 parameter group."
|
|
118
118
|
* };
|
|
119
119
|
* const command = new CreateCacheParameterGroupCommand(input);
|
|
120
120
|
* const response = await client.send(command);
|
|
121
|
-
* /* response
|
|
121
|
+
* /* response is
|
|
122
122
|
* {
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
123
|
+
* CacheParameterGroup: {
|
|
124
|
+
* CacheParameterGroupFamily: "redis2.8",
|
|
125
|
+
* CacheParameterGroupName: "custom-redis2-8",
|
|
126
|
+
* Description: "Custom Redis 2.8 parameter group."
|
|
127
127
|
* }
|
|
128
128
|
* }
|
|
129
129
|
* *\/
|
|
130
|
-
* // example id: createcacheparametergroup-1474997699362
|
|
131
130
|
* ```
|
|
132
131
|
*
|
|
132
|
+
* @public
|
|
133
133
|
*/
|
|
134
134
|
export declare class CreateCacheParameterGroupCommand extends CreateCacheParameterGroupCommand_base {
|
|
135
135
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -95,19 +95,22 @@ declare const CreateCacheSecurityGroupCommand_base: {
|
|
|
95
95
|
* @throws {@link ElastiCacheServiceException}
|
|
96
96
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
97
97
|
*
|
|
98
|
-
*
|
|
98
|
+
*
|
|
99
99
|
* @example CreateCacheSecurityGroup
|
|
100
100
|
* ```javascript
|
|
101
101
|
* // Creates an ElastiCache security group. ElastiCache security groups are only for clusters not running in an AWS VPC.
|
|
102
102
|
* const input = {
|
|
103
|
-
*
|
|
104
|
-
*
|
|
103
|
+
* CacheSecurityGroupName: "my-cache-sec-grp",
|
|
104
|
+
* Description: "Example ElastiCache security group."
|
|
105
105
|
* };
|
|
106
106
|
* const command = new CreateCacheSecurityGroupCommand(input);
|
|
107
|
-
* await client.send(command);
|
|
108
|
-
*
|
|
107
|
+
* const response = await client.send(command);
|
|
108
|
+
* /* response is
|
|
109
|
+
* { /* metadata only *\/ }
|
|
110
|
+
* *\/
|
|
109
111
|
* ```
|
|
110
112
|
*
|
|
113
|
+
* @public
|
|
111
114
|
*/
|
|
112
115
|
export declare class CreateCacheSecurityGroupCommand extends CreateCacheSecurityGroupCommand_base {
|
|
113
116
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -114,14 +114,14 @@ declare const CreateCacheSubnetGroupCommand_base: {
|
|
|
114
114
|
* @throws {@link ElastiCacheServiceException}
|
|
115
115
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
116
116
|
*
|
|
117
|
-
*
|
|
117
|
+
*
|
|
118
118
|
* @example CreateCacheSubnet
|
|
119
119
|
* ```javascript
|
|
120
120
|
* // Creates a new cache subnet group.
|
|
121
121
|
* const input = {
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
122
|
+
* CacheSubnetGroupDescription: "Sample subnet group",
|
|
123
|
+
* CacheSubnetGroupName: "my-sn-grp2",
|
|
124
|
+
* SubnetIds: [
|
|
125
125
|
* "subnet-6f28c982",
|
|
126
126
|
* "subnet-bcd382f3",
|
|
127
127
|
* "subnet-845b3e7c0"
|
|
@@ -129,38 +129,38 @@ declare const CreateCacheSubnetGroupCommand_base: {
|
|
|
129
129
|
* };
|
|
130
130
|
* const command = new CreateCacheSubnetGroupCommand(input);
|
|
131
131
|
* const response = await client.send(command);
|
|
132
|
-
* /* response
|
|
132
|
+
* /* response is
|
|
133
133
|
* {
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
134
|
+
* CacheSubnetGroup: {
|
|
135
|
+
* CacheSubnetGroupDescription: "My subnet group.",
|
|
136
|
+
* CacheSubnetGroupName: "my-sn-grp",
|
|
137
|
+
* Subnets: [
|
|
138
138
|
* {
|
|
139
|
-
*
|
|
140
|
-
*
|
|
139
|
+
* SubnetAvailabilityZone: {
|
|
140
|
+
* Name: "us-east-1a"
|
|
141
141
|
* },
|
|
142
|
-
*
|
|
142
|
+
* SubnetIdentifier: "subnet-6f28c982"
|
|
143
143
|
* },
|
|
144
144
|
* {
|
|
145
|
-
*
|
|
146
|
-
*
|
|
145
|
+
* SubnetAvailabilityZone: {
|
|
146
|
+
* Name: "us-east-1c"
|
|
147
147
|
* },
|
|
148
|
-
*
|
|
148
|
+
* SubnetIdentifier: "subnet-bcd382f3"
|
|
149
149
|
* },
|
|
150
150
|
* {
|
|
151
|
-
*
|
|
152
|
-
*
|
|
151
|
+
* SubnetAvailabilityZone: {
|
|
152
|
+
* Name: "us-east-1b"
|
|
153
153
|
* },
|
|
154
|
-
*
|
|
154
|
+
* SubnetIdentifier: "subnet-845b3e7c0"
|
|
155
155
|
* }
|
|
156
156
|
* ],
|
|
157
|
-
*
|
|
157
|
+
* VpcId: "vpc-91280df6"
|
|
158
158
|
* }
|
|
159
159
|
* }
|
|
160
160
|
* *\/
|
|
161
|
-
* // example id: createcachesubnet-1483042274558
|
|
162
161
|
* ```
|
|
163
162
|
*
|
|
163
|
+
* @public
|
|
164
164
|
*/
|
|
165
165
|
export declare class CreateCacheSubnetGroupCommand extends CreateCacheSubnetGroupCommand_base {
|
|
166
166
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -113,6 +113,7 @@ declare const CreateGlobalReplicationGroupCommand_base: {
|
|
|
113
113
|
* @throws {@link ElastiCacheServiceException}
|
|
114
114
|
* <p>Base exception class for all service exceptions from ElastiCache service.</p>
|
|
115
115
|
*
|
|
116
|
+
*
|
|
116
117
|
* @public
|
|
117
118
|
*/
|
|
118
119
|
export declare class CreateGlobalReplicationGroupCommand extends CreateGlobalReplicationGroupCommand_base {
|