@aws-sdk/client-memorydb 3.186.0 → 3.190.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/MemoryDB.js +142 -149
  3. package/dist-es/MemoryDBClient.js +22 -28
  4. package/dist-es/commands/BatchUpdateClusterCommand.js +21 -28
  5. package/dist-es/commands/CopySnapshotCommand.js +21 -28
  6. package/dist-es/commands/CreateACLCommand.js +21 -28
  7. package/dist-es/commands/CreateClusterCommand.js +21 -28
  8. package/dist-es/commands/CreateParameterGroupCommand.js +21 -28
  9. package/dist-es/commands/CreateSnapshotCommand.js +21 -28
  10. package/dist-es/commands/CreateSubnetGroupCommand.js +21 -28
  11. package/dist-es/commands/CreateUserCommand.js +21 -28
  12. package/dist-es/commands/DeleteACLCommand.js +21 -28
  13. package/dist-es/commands/DeleteClusterCommand.js +21 -28
  14. package/dist-es/commands/DeleteParameterGroupCommand.js +21 -28
  15. package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
  16. package/dist-es/commands/DeleteSubnetGroupCommand.js +21 -28
  17. package/dist-es/commands/DeleteUserCommand.js +21 -28
  18. package/dist-es/commands/DescribeACLsCommand.js +21 -28
  19. package/dist-es/commands/DescribeClustersCommand.js +21 -28
  20. package/dist-es/commands/DescribeEngineVersionsCommand.js +21 -28
  21. package/dist-es/commands/DescribeEventsCommand.js +21 -28
  22. package/dist-es/commands/DescribeParameterGroupsCommand.js +21 -28
  23. package/dist-es/commands/DescribeParametersCommand.js +21 -28
  24. package/dist-es/commands/DescribeServiceUpdatesCommand.js +21 -28
  25. package/dist-es/commands/DescribeSnapshotsCommand.js +21 -28
  26. package/dist-es/commands/DescribeSubnetGroupsCommand.js +21 -28
  27. package/dist-es/commands/DescribeUsersCommand.js +21 -28
  28. package/dist-es/commands/FailoverShardCommand.js +21 -28
  29. package/dist-es/commands/ListAllowedNodeTypeUpdatesCommand.js +21 -28
  30. package/dist-es/commands/ListTagsCommand.js +21 -28
  31. package/dist-es/commands/ResetParameterGroupCommand.js +21 -28
  32. package/dist-es/commands/TagResourceCommand.js +21 -28
  33. package/dist-es/commands/UntagResourceCommand.js +21 -28
  34. package/dist-es/commands/UpdateACLCommand.js +21 -28
  35. package/dist-es/commands/UpdateClusterCommand.js +21 -28
  36. package/dist-es/commands/UpdateParameterGroupCommand.js +21 -28
  37. package/dist-es/commands/UpdateSubnetGroupCommand.js +21 -28
  38. package/dist-es/commands/UpdateUserCommand.js +21 -28
  39. package/dist-es/endpoints.js +8 -8
  40. package/dist-es/models/MemoryDBServiceException.js +5 -10
  41. package/dist-es/models/models_0.js +900 -693
  42. package/dist-es/protocols/Aws_json1_1.js +2989 -3692
  43. package/dist-es/runtimeConfig.browser.js +26 -12
  44. package/dist-es/runtimeConfig.js +30 -12
  45. package/dist-es/runtimeConfig.native.js +8 -5
  46. package/dist-es/runtimeConfig.shared.js +8 -11
  47. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MemoryDBClient";
18
- var commandName = "UntagResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MemoryDBClient";
15
+ const commandName = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateACLRequestFilterSensitiveLog, UpdateACLResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateACLCommand, serializeAws_json1_1UpdateACLCommand } from "../protocols/Aws_json1_1";
6
- var UpdateACLCommand = (function (_super) {
7
- __extends(UpdateACLCommand, _super);
8
- function UpdateACLCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateACLCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateACLCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MemoryDBClient";
18
- var commandName = "UpdateACLCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MemoryDBClient";
15
+ const commandName = "UpdateACLCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateACLRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateACLResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateACLCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateACLCommand(input, context);
33
- };
34
- UpdateACLCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateACLCommand(output, context);
36
- };
37
- return UpdateACLCommand;
38
- }($Command));
39
- export { UpdateACLCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateClusterRequestFilterSensitiveLog, UpdateClusterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateClusterCommand, serializeAws_json1_1UpdateClusterCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateClusterCommand = (function (_super) {
7
- __extends(UpdateClusterCommand, _super);
8
- function UpdateClusterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateClusterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateClusterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MemoryDBClient";
18
- var commandName = "UpdateClusterCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MemoryDBClient";
15
+ const commandName = "UpdateClusterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateClusterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateClusterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateClusterCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateClusterCommand(input, context);
33
- };
34
- UpdateClusterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateClusterCommand(output, context);
36
- };
37
- return UpdateClusterCommand;
38
- }($Command));
39
- export { UpdateClusterCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateParameterGroupRequestFilterSensitiveLog, UpdateParameterGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateParameterGroupCommand, serializeAws_json1_1UpdateParameterGroupCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateParameterGroupCommand = (function (_super) {
7
- __extends(UpdateParameterGroupCommand, _super);
8
- function UpdateParameterGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateParameterGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateParameterGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MemoryDBClient";
18
- var commandName = "UpdateParameterGroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MemoryDBClient";
15
+ const commandName = "UpdateParameterGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateParameterGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateParameterGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateParameterGroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateParameterGroupCommand(input, context);
33
- };
34
- UpdateParameterGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateParameterGroupCommand(output, context);
36
- };
37
- return UpdateParameterGroupCommand;
38
- }($Command));
39
- export { UpdateParameterGroupCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateSubnetGroupRequestFilterSensitiveLog, UpdateSubnetGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateSubnetGroupCommand, serializeAws_json1_1UpdateSubnetGroupCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateSubnetGroupCommand = (function (_super) {
7
- __extends(UpdateSubnetGroupCommand, _super);
8
- function UpdateSubnetGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateSubnetGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateSubnetGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MemoryDBClient";
18
- var commandName = "UpdateSubnetGroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MemoryDBClient";
15
+ const commandName = "UpdateSubnetGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateSubnetGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateSubnetGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateSubnetGroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateSubnetGroupCommand(input, context);
33
- };
34
- UpdateSubnetGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateSubnetGroupCommand(output, context);
36
- };
37
- return UpdateSubnetGroupCommand;
38
- }($Command));
39
- export { UpdateSubnetGroupCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateUserRequestFilterSensitiveLog, UpdateUserResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateUserCommand, serializeAws_json1_1UpdateUserCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateUserCommand = (function (_super) {
7
- __extends(UpdateUserCommand, _super);
8
- function UpdateUserCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateUserCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateUserCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MemoryDBClient";
18
- var commandName = "UpdateUserCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MemoryDBClient";
15
+ const commandName = "UpdateUserCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateUserRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateUserResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateUserCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateUserCommand(input, context);
33
- };
34
- UpdateUserCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateUserCommand(output, context);
36
- };
37
- return UpdateUserCommand;
38
- }($Command));
39
- export { UpdateUserCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  fips: {
5
4
  variants: [
6
5
  {
@@ -11,7 +10,7 @@ var regionHash = {
11
10
  signingRegion: "us-west-1",
12
11
  },
13
12
  };
14
- var partitionHash = {
13
+ const partitionHash = {
15
14
  aws: {
16
15
  regions: [
17
16
  "af-south-1",
@@ -132,8 +131,9 @@ var partitionHash = {
132
131
  ],
133
132
  },
134
133
  };
135
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
136
- return __generator(this, function (_a) {
137
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "memorydb", regionHash: regionHash, partitionHash: partitionHash }))];
138
- });
139
- }); };
134
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
135
+ ...options,
136
+ signingService: "memorydb",
137
+ regionHash,
138
+ partitionHash,
139
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var MemoryDBServiceException = (function (_super) {
4
- __extends(MemoryDBServiceException, _super);
5
- function MemoryDBServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, MemoryDBServiceException.prototype);
8
- return _this;
2
+ export class MemoryDBServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, MemoryDBServiceException.prototype);
9
6
  }
10
- return MemoryDBServiceException;
11
- }(__ServiceException));
12
- export { MemoryDBServiceException };
7
+ }