@aws-sdk/client-elasticache 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 +50 -0
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/models/models_0.js +11 -6
- package/dist-cjs/protocols/Aws_query.js +83 -0
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/endpoints.js +9 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_query.js +269 -186
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/ElastiCache.d.ts +6 -5
- package/dist-types/commands/CreateUserCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserGroupCommand.d.ts +1 -1
- package/dist-types/commands/TestFailoverCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +544 -78
- package/dist-types/ts3.4/models/models_0.d.ts +14 -0
- package/package.json +37 -44
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
|
};
|
|
@@ -337,13 +337,13 @@ export declare class ElastiCache extends ElastiCacheClient {
|
|
|
337
337
|
createSnapshot(args: CreateSnapshotCommandInput, cb: (err: any, data?: CreateSnapshotCommandOutput) => void): void;
|
|
338
338
|
createSnapshot(args: CreateSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSnapshotCommandOutput) => void): void;
|
|
339
339
|
/**
|
|
340
|
-
* <p>For Redis engine version 6.
|
|
340
|
+
* <p>For Redis engine version 6.0 onwards: Creates a Redis user. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access Control (RBAC)</a>.</p>
|
|
341
341
|
*/
|
|
342
342
|
createUser(args: CreateUserCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserCommandOutput>;
|
|
343
343
|
createUser(args: CreateUserCommandInput, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
|
|
344
344
|
createUser(args: CreateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
|
|
345
345
|
/**
|
|
346
|
-
* <p>For Redis engine version 6.
|
|
346
|
+
* <p>For Redis engine version 6.0 onwards: Creates a Redis user group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access Control (RBAC)</a>
|
|
347
347
|
* </p>
|
|
348
348
|
*/
|
|
349
349
|
createUserGroup(args: CreateUserGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserGroupCommandOutput>;
|
|
@@ -473,13 +473,13 @@ export declare class ElastiCache extends ElastiCacheClient {
|
|
|
473
473
|
deleteSnapshot(args: DeleteSnapshotCommandInput, cb: (err: any, data?: DeleteSnapshotCommandOutput) => void): void;
|
|
474
474
|
deleteSnapshot(args: DeleteSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSnapshotCommandOutput) => void): void;
|
|
475
475
|
/**
|
|
476
|
-
* <p>For Redis engine version 6.
|
|
476
|
+
* <p>For Redis engine version 6.0 onwards: Deletes a user. The user will be removed from all user groups and in turn removed from all replication groups. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access Control (RBAC)</a>. </p>
|
|
477
477
|
*/
|
|
478
478
|
deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>;
|
|
479
479
|
deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
|
|
480
480
|
deleteUser(args: DeleteUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
|
|
481
481
|
/**
|
|
482
|
-
* <p>For Redis engine version 6.
|
|
482
|
+
* <p>For Redis engine version 6.0 onwards: Deletes a user group. The user group must first be disassociated from the replication group before it can be deleted. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access Control (RBAC)</a>. </p>
|
|
483
483
|
*/
|
|
484
484
|
deleteUserGroup(args: DeleteUserGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserGroupCommandOutput>;
|
|
485
485
|
deleteUserGroup(args: DeleteUserGroupCommandInput, cb: (err: any, data?: DeleteUserGroupCommandOutput) => void): void;
|
|
@@ -817,7 +817,8 @@ export declare class ElastiCache extends ElastiCacheClient {
|
|
|
817
817
|
/**
|
|
818
818
|
* <p>Represents the input of a <code>TestFailover</code> operation which test automatic failover on
|
|
819
819
|
* a specified node group (called shard in the console) in a replication group (called cluster in the console).</p>
|
|
820
|
-
*
|
|
820
|
+
* <p>This API is designed for testing the behavior of your application in case of ElastiCache failover. It is not designed to be an operational tool
|
|
821
|
+
* for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large-scale operational events, Amazon may block this API. </p>
|
|
821
822
|
* <p class="title">
|
|
822
823
|
* <b>Note the following</b>
|
|
823
824
|
* </p>
|
|
@@ -7,7 +7,7 @@ export interface CreateUserCommandInput extends CreateUserMessage {
|
|
|
7
7
|
export interface CreateUserCommandOutput extends User, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>For Redis engine version 6.
|
|
10
|
+
* <p>For Redis engine version 6.0 onwards: Creates a Redis user. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access Control (RBAC)</a>.</p>
|
|
11
11
|
* @example
|
|
12
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
13
|
* ```javascript
|
|
@@ -7,7 +7,7 @@ export interface CreateUserGroupCommandInput extends CreateUserGroupMessage {
|
|
|
7
7
|
export interface CreateUserGroupCommandOutput extends UserGroup, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>For Redis engine version 6.
|
|
10
|
+
* <p>For Redis engine version 6.0 onwards: Creates a Redis user group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access Control (RBAC)</a>
|
|
11
11
|
* </p>
|
|
12
12
|
* @example
|
|
13
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -7,7 +7,7 @@ export interface DeleteUserCommandInput extends DeleteUserMessage {
|
|
|
7
7
|
export interface DeleteUserCommandOutput extends User, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>For Redis engine version 6.
|
|
10
|
+
* <p>For Redis engine version 6.0 onwards: Deletes a user. The user will be removed from all user groups and in turn removed from all replication groups. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access Control (RBAC)</a>. </p>
|
|
11
11
|
* @example
|
|
12
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
13
|
* ```javascript
|
|
@@ -7,7 +7,7 @@ export interface DeleteUserGroupCommandInput extends DeleteUserGroupMessage {
|
|
|
7
7
|
export interface DeleteUserGroupCommandOutput extends UserGroup, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>For Redis engine version 6.
|
|
10
|
+
* <p>For Redis engine version 6.0 onwards: Deletes a user group. The user group must first be disassociated from the replication group before it can be deleted. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.RBAC.html">Using Role Based Access Control (RBAC)</a>. </p>
|
|
11
11
|
* @example
|
|
12
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
13
|
* ```javascript
|
|
@@ -9,7 +9,8 @@ export interface TestFailoverCommandOutput extends TestFailoverResult, __Metadat
|
|
|
9
9
|
/**
|
|
10
10
|
* <p>Represents the input of a <code>TestFailover</code> operation which test automatic failover on
|
|
11
11
|
* a specified node group (called shard in the console) in a replication group (called cluster in the console).</p>
|
|
12
|
-
*
|
|
12
|
+
* <p>This API is designed for testing the behavior of your application in case of ElastiCache failover. It is not designed to be an operational tool
|
|
13
|
+
* for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large-scale operational events, Amazon may block this API. </p>
|
|
13
14
|
* <p class="title">
|
|
14
15
|
* <b>Note the following</b>
|
|
15
16
|
* </p>
|