@aws-sdk/client-dax 3.35.0 → 3.38.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 (200) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/DAX.js +0 -9
  3. package/dist-cjs/DAXClient.js +0 -14
  4. package/dist-cjs/commands/CreateClusterCommand.js +0 -25
  5. package/dist-cjs/commands/CreateParameterGroupCommand.js +0 -26
  6. package/dist-cjs/commands/CreateSubnetGroupCommand.js +0 -25
  7. package/dist-cjs/commands/DecreaseReplicationFactorCommand.js +0 -28
  8. package/dist-cjs/commands/DeleteClusterCommand.js +0 -29
  9. package/dist-cjs/commands/DeleteParameterGroupCommand.js +0 -26
  10. package/dist-cjs/commands/DeleteSubnetGroupCommand.js +0 -29
  11. package/dist-cjs/commands/DescribeClustersCommand.js +0 -37
  12. package/dist-cjs/commands/DescribeDefaultParametersCommand.js +0 -26
  13. package/dist-cjs/commands/DescribeEventsCommand.js +0 -29
  14. package/dist-cjs/commands/DescribeParameterGroupsCommand.js +0 -26
  15. package/dist-cjs/commands/DescribeParametersCommand.js +0 -25
  16. package/dist-cjs/commands/DescribeSubnetGroupsCommand.js +0 -26
  17. package/dist-cjs/commands/IncreaseReplicationFactorCommand.js +0 -25
  18. package/dist-cjs/commands/ListTagsCommand.js +0 -26
  19. package/dist-cjs/commands/RebootNodeCommand.js +0 -31
  20. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  21. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  22. package/dist-cjs/commands/UpdateClusterCommand.js +0 -27
  23. package/dist-cjs/commands/UpdateParameterGroupCommand.js +0 -27
  24. package/dist-cjs/commands/UpdateSubnetGroupCommand.js +0 -25
  25. package/dist-cjs/commands/index.js +24 -0
  26. package/dist-cjs/endpoints.js +1 -2
  27. package/dist-cjs/index.js +3 -24
  28. package/dist-cjs/models/index.js +0 -1
  29. package/dist-cjs/models/models_0.js +0 -256
  30. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  31. package/dist-cjs/runtimeConfig.browser.js +1 -6
  32. package/dist-cjs/runtimeConfig.js +2 -7
  33. package/dist-cjs/runtimeConfig.native.js +0 -4
  34. package/dist-cjs/runtimeConfig.shared.js +0 -4
  35. package/dist-es/DAX.js +0 -1
  36. package/dist-es/DAXClient.js +0 -1
  37. package/dist-es/commands/CreateClusterCommand.js +0 -1
  38. package/dist-es/commands/CreateParameterGroupCommand.js +0 -1
  39. package/dist-es/commands/CreateSubnetGroupCommand.js +0 -1
  40. package/dist-es/commands/DecreaseReplicationFactorCommand.js +0 -1
  41. package/dist-es/commands/DeleteClusterCommand.js +0 -1
  42. package/dist-es/commands/DeleteParameterGroupCommand.js +0 -1
  43. package/dist-es/commands/DeleteSubnetGroupCommand.js +0 -1
  44. package/dist-es/commands/DescribeClustersCommand.js +0 -1
  45. package/dist-es/commands/DescribeDefaultParametersCommand.js +0 -1
  46. package/dist-es/commands/DescribeEventsCommand.js +0 -1
  47. package/dist-es/commands/DescribeParameterGroupsCommand.js +0 -1
  48. package/dist-es/commands/DescribeParametersCommand.js +0 -1
  49. package/dist-es/commands/DescribeSubnetGroupsCommand.js +0 -1
  50. package/dist-es/commands/IncreaseReplicationFactorCommand.js +0 -1
  51. package/dist-es/commands/ListTagsCommand.js +0 -1
  52. package/dist-es/commands/RebootNodeCommand.js +0 -1
  53. package/dist-es/commands/TagResourceCommand.js +0 -1
  54. package/dist-es/commands/UntagResourceCommand.js +0 -1
  55. package/dist-es/commands/UpdateClusterCommand.js +0 -1
  56. package/dist-es/commands/UpdateParameterGroupCommand.js +0 -1
  57. package/dist-es/commands/UpdateSubnetGroupCommand.js +0 -1
  58. package/dist-es/commands/index.js +21 -0
  59. package/dist-es/endpoints.js +1 -2
  60. package/dist-es/index.js +3 -24
  61. package/dist-es/models/index.js +0 -1
  62. package/dist-es/models/models_0.js +0 -1
  63. package/dist-es/protocols/Aws_json1_1.js +0 -1
  64. package/dist-es/runtimeConfig.browser.js +1 -2
  65. package/dist-es/runtimeConfig.js +2 -3
  66. package/dist-es/runtimeConfig.native.js +0 -1
  67. package/dist-es/runtimeConfig.shared.js +0 -1
  68. package/dist-types/commands/index.d.ts +21 -0
  69. package/dist-types/index.d.ts +3 -23
  70. package/dist-types/ts3.4/DAX.d.ts +22 -116
  71. package/dist-types/ts3.4/DAXClient.d.ts +24 -94
  72. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +2 -20
  73. package/dist-types/ts3.4/commands/CreateParameterGroupCommand.d.ts +2 -21
  74. package/dist-types/ts3.4/commands/CreateSubnetGroupCommand.d.ts +2 -20
  75. package/dist-types/ts3.4/commands/DecreaseReplicationFactorCommand.d.ts +2 -23
  76. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +2 -24
  77. package/dist-types/ts3.4/commands/DeleteParameterGroupCommand.d.ts +2 -21
  78. package/dist-types/ts3.4/commands/DeleteSubnetGroupCommand.d.ts +2 -24
  79. package/dist-types/ts3.4/commands/DescribeClustersCommand.d.ts +2 -32
  80. package/dist-types/ts3.4/commands/DescribeDefaultParametersCommand.d.ts +2 -21
  81. package/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +2 -24
  82. package/dist-types/ts3.4/commands/DescribeParameterGroupsCommand.d.ts +2 -21
  83. package/dist-types/ts3.4/commands/DescribeParametersCommand.d.ts +2 -20
  84. package/dist-types/ts3.4/commands/DescribeSubnetGroupsCommand.d.ts +2 -21
  85. package/dist-types/ts3.4/commands/IncreaseReplicationFactorCommand.d.ts +2 -20
  86. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -21
  87. package/dist-types/ts3.4/commands/RebootNodeCommand.d.ts +2 -26
  88. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -21
  89. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
  90. package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +2 -22
  91. package/dist-types/ts3.4/commands/UpdateParameterGroupCommand.d.ts +2 -22
  92. package/dist-types/ts3.4/commands/UpdateSubnetGroupCommand.d.ts +2 -20
  93. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  94. package/dist-types/ts3.4/index.d.ts +3 -23
  95. package/dist-types/ts3.4/models/models_0.d.ts +291 -1121
  96. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  97. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  98. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  99. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  100. package/package.json +33 -30
  101. package/dist-cjs/DAX.js.map +0 -1
  102. package/dist-cjs/DAXClient.js.map +0 -1
  103. package/dist-cjs/commands/CreateClusterCommand.js.map +0 -1
  104. package/dist-cjs/commands/CreateParameterGroupCommand.js.map +0 -1
  105. package/dist-cjs/commands/CreateSubnetGroupCommand.js.map +0 -1
  106. package/dist-cjs/commands/DecreaseReplicationFactorCommand.js.map +0 -1
  107. package/dist-cjs/commands/DeleteClusterCommand.js.map +0 -1
  108. package/dist-cjs/commands/DeleteParameterGroupCommand.js.map +0 -1
  109. package/dist-cjs/commands/DeleteSubnetGroupCommand.js.map +0 -1
  110. package/dist-cjs/commands/DescribeClustersCommand.js.map +0 -1
  111. package/dist-cjs/commands/DescribeDefaultParametersCommand.js.map +0 -1
  112. package/dist-cjs/commands/DescribeEventsCommand.js.map +0 -1
  113. package/dist-cjs/commands/DescribeParameterGroupsCommand.js.map +0 -1
  114. package/dist-cjs/commands/DescribeParametersCommand.js.map +0 -1
  115. package/dist-cjs/commands/DescribeSubnetGroupsCommand.js.map +0 -1
  116. package/dist-cjs/commands/IncreaseReplicationFactorCommand.js.map +0 -1
  117. package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
  118. package/dist-cjs/commands/RebootNodeCommand.js.map +0 -1
  119. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  120. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  121. package/dist-cjs/commands/UpdateClusterCommand.js.map +0 -1
  122. package/dist-cjs/commands/UpdateParameterGroupCommand.js.map +0 -1
  123. package/dist-cjs/commands/UpdateSubnetGroupCommand.js.map +0 -1
  124. package/dist-cjs/endpoints.js.map +0 -1
  125. package/dist-cjs/index.js.map +0 -1
  126. package/dist-cjs/models/index.js.map +0 -1
  127. package/dist-cjs/models/models_0.js.map +0 -1
  128. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  129. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  130. package/dist-cjs/runtimeConfig.js.map +0 -1
  131. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  132. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  133. package/dist-es/DAX.js.map +0 -1
  134. package/dist-es/DAXClient.js.map +0 -1
  135. package/dist-es/commands/CreateClusterCommand.js.map +0 -1
  136. package/dist-es/commands/CreateParameterGroupCommand.js.map +0 -1
  137. package/dist-es/commands/CreateSubnetGroupCommand.js.map +0 -1
  138. package/dist-es/commands/DecreaseReplicationFactorCommand.js.map +0 -1
  139. package/dist-es/commands/DeleteClusterCommand.js.map +0 -1
  140. package/dist-es/commands/DeleteParameterGroupCommand.js.map +0 -1
  141. package/dist-es/commands/DeleteSubnetGroupCommand.js.map +0 -1
  142. package/dist-es/commands/DescribeClustersCommand.js.map +0 -1
  143. package/dist-es/commands/DescribeDefaultParametersCommand.js.map +0 -1
  144. package/dist-es/commands/DescribeEventsCommand.js.map +0 -1
  145. package/dist-es/commands/DescribeParameterGroupsCommand.js.map +0 -1
  146. package/dist-es/commands/DescribeParametersCommand.js.map +0 -1
  147. package/dist-es/commands/DescribeSubnetGroupsCommand.js.map +0 -1
  148. package/dist-es/commands/IncreaseReplicationFactorCommand.js.map +0 -1
  149. package/dist-es/commands/ListTagsCommand.js.map +0 -1
  150. package/dist-es/commands/RebootNodeCommand.js.map +0 -1
  151. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  152. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  153. package/dist-es/commands/UpdateClusterCommand.js.map +0 -1
  154. package/dist-es/commands/UpdateParameterGroupCommand.js.map +0 -1
  155. package/dist-es/commands/UpdateSubnetGroupCommand.js.map +0 -1
  156. package/dist-es/endpoints.js.map +0 -1
  157. package/dist-es/index.js.map +0 -1
  158. package/dist-es/models/index.js.map +0 -1
  159. package/dist-es/models/models_0.js.map +0 -1
  160. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  161. package/dist-es/runtimeConfig.browser.js.map +0 -1
  162. package/dist-es/runtimeConfig.js.map +0 -1
  163. package/dist-es/runtimeConfig.native.js.map +0 -1
  164. package/dist-es/runtimeConfig.shared.js.map +0 -1
  165. package/jest.config.js +0 -4
  166. package/src/DAX.ts +0 -805
  167. package/src/DAXClient.ts +0 -328
  168. package/src/commands/CreateClusterCommand.ts +0 -95
  169. package/src/commands/CreateParameterGroupCommand.ts +0 -96
  170. package/src/commands/CreateSubnetGroupCommand.ts +0 -95
  171. package/src/commands/DecreaseReplicationFactorCommand.ts +0 -101
  172. package/src/commands/DeleteClusterCommand.ts +0 -99
  173. package/src/commands/DeleteParameterGroupCommand.ts +0 -96
  174. package/src/commands/DeleteSubnetGroupCommand.ts +0 -99
  175. package/src/commands/DescribeClustersCommand.ts +0 -107
  176. package/src/commands/DescribeDefaultParametersCommand.ts +0 -99
  177. package/src/commands/DescribeEventsCommand.ts +0 -99
  178. package/src/commands/DescribeParameterGroupsCommand.ts +0 -96
  179. package/src/commands/DescribeParametersCommand.ts +0 -95
  180. package/src/commands/DescribeSubnetGroupsCommand.ts +0 -96
  181. package/src/commands/IncreaseReplicationFactorCommand.ts +0 -98
  182. package/src/commands/ListTagsCommand.ts +0 -89
  183. package/src/commands/RebootNodeCommand.ts +0 -101
  184. package/src/commands/TagResourceCommand.ts +0 -96
  185. package/src/commands/UntagResourceCommand.ts +0 -96
  186. package/src/commands/UpdateClusterCommand.ts +0 -97
  187. package/src/commands/UpdateParameterGroupCommand.ts +0 -97
  188. package/src/commands/UpdateSubnetGroupCommand.ts +0 -95
  189. package/src/endpoints.ts +0 -57
  190. package/src/index.ts +0 -24
  191. package/src/models/index.ts +0 -1
  192. package/src/models/models_0.ts +0 -2250
  193. package/src/protocols/Aws_json1_1.ts +0 -3968
  194. package/src/runtimeConfig.browser.ts +0 -41
  195. package/src/runtimeConfig.native.ts +0 -17
  196. package/src/runtimeConfig.shared.ts +0 -17
  197. package/src/runtimeConfig.ts +0 -46
  198. package/tsconfig.es.json +0 -10
  199. package/tsconfig.json +0 -33
  200. package/tsconfig.types.json +0 -9
package/src/DAX.ts DELETED
@@ -1,805 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- CreateClusterCommand,
5
- CreateClusterCommandInput,
6
- CreateClusterCommandOutput,
7
- } from "./commands/CreateClusterCommand";
8
- import {
9
- CreateParameterGroupCommand,
10
- CreateParameterGroupCommandInput,
11
- CreateParameterGroupCommandOutput,
12
- } from "./commands/CreateParameterGroupCommand";
13
- import {
14
- CreateSubnetGroupCommand,
15
- CreateSubnetGroupCommandInput,
16
- CreateSubnetGroupCommandOutput,
17
- } from "./commands/CreateSubnetGroupCommand";
18
- import {
19
- DecreaseReplicationFactorCommand,
20
- DecreaseReplicationFactorCommandInput,
21
- DecreaseReplicationFactorCommandOutput,
22
- } from "./commands/DecreaseReplicationFactorCommand";
23
- import {
24
- DeleteClusterCommand,
25
- DeleteClusterCommandInput,
26
- DeleteClusterCommandOutput,
27
- } from "./commands/DeleteClusterCommand";
28
- import {
29
- DeleteParameterGroupCommand,
30
- DeleteParameterGroupCommandInput,
31
- DeleteParameterGroupCommandOutput,
32
- } from "./commands/DeleteParameterGroupCommand";
33
- import {
34
- DeleteSubnetGroupCommand,
35
- DeleteSubnetGroupCommandInput,
36
- DeleteSubnetGroupCommandOutput,
37
- } from "./commands/DeleteSubnetGroupCommand";
38
- import {
39
- DescribeClustersCommand,
40
- DescribeClustersCommandInput,
41
- DescribeClustersCommandOutput,
42
- } from "./commands/DescribeClustersCommand";
43
- import {
44
- DescribeDefaultParametersCommand,
45
- DescribeDefaultParametersCommandInput,
46
- DescribeDefaultParametersCommandOutput,
47
- } from "./commands/DescribeDefaultParametersCommand";
48
- import {
49
- DescribeEventsCommand,
50
- DescribeEventsCommandInput,
51
- DescribeEventsCommandOutput,
52
- } from "./commands/DescribeEventsCommand";
53
- import {
54
- DescribeParameterGroupsCommand,
55
- DescribeParameterGroupsCommandInput,
56
- DescribeParameterGroupsCommandOutput,
57
- } from "./commands/DescribeParameterGroupsCommand";
58
- import {
59
- DescribeParametersCommand,
60
- DescribeParametersCommandInput,
61
- DescribeParametersCommandOutput,
62
- } from "./commands/DescribeParametersCommand";
63
- import {
64
- DescribeSubnetGroupsCommand,
65
- DescribeSubnetGroupsCommandInput,
66
- DescribeSubnetGroupsCommandOutput,
67
- } from "./commands/DescribeSubnetGroupsCommand";
68
- import {
69
- IncreaseReplicationFactorCommand,
70
- IncreaseReplicationFactorCommandInput,
71
- IncreaseReplicationFactorCommandOutput,
72
- } from "./commands/IncreaseReplicationFactorCommand";
73
- import { ListTagsCommand, ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
74
- import { RebootNodeCommand, RebootNodeCommandInput, RebootNodeCommandOutput } from "./commands/RebootNodeCommand";
75
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
76
- import {
77
- UntagResourceCommand,
78
- UntagResourceCommandInput,
79
- UntagResourceCommandOutput,
80
- } from "./commands/UntagResourceCommand";
81
- import {
82
- UpdateClusterCommand,
83
- UpdateClusterCommandInput,
84
- UpdateClusterCommandOutput,
85
- } from "./commands/UpdateClusterCommand";
86
- import {
87
- UpdateParameterGroupCommand,
88
- UpdateParameterGroupCommandInput,
89
- UpdateParameterGroupCommandOutput,
90
- } from "./commands/UpdateParameterGroupCommand";
91
- import {
92
- UpdateSubnetGroupCommand,
93
- UpdateSubnetGroupCommandInput,
94
- UpdateSubnetGroupCommandOutput,
95
- } from "./commands/UpdateSubnetGroupCommand";
96
- import { DAXClient } from "./DAXClient";
97
-
98
- /**
99
- * <p>DAX is a managed caching service engineered for Amazon DynamoDB. DAX
100
- * dramatically speeds up database reads by caching frequently-accessed data from DynamoDB, so
101
- * applications can access that data with sub-millisecond latency. You can create a DAX
102
- * cluster easily, using the AWS Management Console. With a few simple modifications to
103
- * your code, your application can begin taking advantage of the DAX cluster and realize
104
- * significant improvements in read performance.</p>
105
- */
106
- export class DAX extends DAXClient {
107
- /**
108
- * <p>Creates a DAX cluster. All nodes in the cluster run the same DAX caching software.</p>
109
- */
110
- public createCluster(
111
- args: CreateClusterCommandInput,
112
- options?: __HttpHandlerOptions
113
- ): Promise<CreateClusterCommandOutput>;
114
- public createCluster(
115
- args: CreateClusterCommandInput,
116
- cb: (err: any, data?: CreateClusterCommandOutput) => void
117
- ): void;
118
- public createCluster(
119
- args: CreateClusterCommandInput,
120
- options: __HttpHandlerOptions,
121
- cb: (err: any, data?: CreateClusterCommandOutput) => void
122
- ): void;
123
- public createCluster(
124
- args: CreateClusterCommandInput,
125
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateClusterCommandOutput) => void),
126
- cb?: (err: any, data?: CreateClusterCommandOutput) => void
127
- ): Promise<CreateClusterCommandOutput> | void {
128
- const command = new CreateClusterCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- } else if (typeof cb === "function") {
132
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
- this.send(command, optionsOrCb || {}, cb);
134
- } else {
135
- return this.send(command, optionsOrCb);
136
- }
137
- }
138
-
139
- /**
140
- * <p>Creates a new parameter group. A parameter group is a collection of parameters that
141
- * you apply to all of the nodes in a DAX cluster.</p>
142
- */
143
- public createParameterGroup(
144
- args: CreateParameterGroupCommandInput,
145
- options?: __HttpHandlerOptions
146
- ): Promise<CreateParameterGroupCommandOutput>;
147
- public createParameterGroup(
148
- args: CreateParameterGroupCommandInput,
149
- cb: (err: any, data?: CreateParameterGroupCommandOutput) => void
150
- ): void;
151
- public createParameterGroup(
152
- args: CreateParameterGroupCommandInput,
153
- options: __HttpHandlerOptions,
154
- cb: (err: any, data?: CreateParameterGroupCommandOutput) => void
155
- ): void;
156
- public createParameterGroup(
157
- args: CreateParameterGroupCommandInput,
158
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateParameterGroupCommandOutput) => void),
159
- cb?: (err: any, data?: CreateParameterGroupCommandOutput) => void
160
- ): Promise<CreateParameterGroupCommandOutput> | void {
161
- const command = new CreateParameterGroupCommand(args);
162
- if (typeof optionsOrCb === "function") {
163
- this.send(command, optionsOrCb);
164
- } else if (typeof cb === "function") {
165
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
- this.send(command, optionsOrCb || {}, cb);
167
- } else {
168
- return this.send(command, optionsOrCb);
169
- }
170
- }
171
-
172
- /**
173
- * <p>Creates a new subnet group.</p>
174
- */
175
- public createSubnetGroup(
176
- args: CreateSubnetGroupCommandInput,
177
- options?: __HttpHandlerOptions
178
- ): Promise<CreateSubnetGroupCommandOutput>;
179
- public createSubnetGroup(
180
- args: CreateSubnetGroupCommandInput,
181
- cb: (err: any, data?: CreateSubnetGroupCommandOutput) => void
182
- ): void;
183
- public createSubnetGroup(
184
- args: CreateSubnetGroupCommandInput,
185
- options: __HttpHandlerOptions,
186
- cb: (err: any, data?: CreateSubnetGroupCommandOutput) => void
187
- ): void;
188
- public createSubnetGroup(
189
- args: CreateSubnetGroupCommandInput,
190
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateSubnetGroupCommandOutput) => void),
191
- cb?: (err: any, data?: CreateSubnetGroupCommandOutput) => void
192
- ): Promise<CreateSubnetGroupCommandOutput> | void {
193
- const command = new CreateSubnetGroupCommand(args);
194
- if (typeof optionsOrCb === "function") {
195
- this.send(command, optionsOrCb);
196
- } else if (typeof cb === "function") {
197
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
- this.send(command, optionsOrCb || {}, cb);
199
- } else {
200
- return this.send(command, optionsOrCb);
201
- }
202
- }
203
-
204
- /**
205
- * <p>Removes one or more nodes from a DAX cluster.</p>
206
- * <note>
207
- * <p>You cannot use <code>DecreaseReplicationFactor</code> to remove the last node in a DAX cluster. If you need to do this, use <code>DeleteCluster</code> instead.</p>
208
- * </note>
209
- */
210
- public decreaseReplicationFactor(
211
- args: DecreaseReplicationFactorCommandInput,
212
- options?: __HttpHandlerOptions
213
- ): Promise<DecreaseReplicationFactorCommandOutput>;
214
- public decreaseReplicationFactor(
215
- args: DecreaseReplicationFactorCommandInput,
216
- cb: (err: any, data?: DecreaseReplicationFactorCommandOutput) => void
217
- ): void;
218
- public decreaseReplicationFactor(
219
- args: DecreaseReplicationFactorCommandInput,
220
- options: __HttpHandlerOptions,
221
- cb: (err: any, data?: DecreaseReplicationFactorCommandOutput) => void
222
- ): void;
223
- public decreaseReplicationFactor(
224
- args: DecreaseReplicationFactorCommandInput,
225
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DecreaseReplicationFactorCommandOutput) => void),
226
- cb?: (err: any, data?: DecreaseReplicationFactorCommandOutput) => void
227
- ): Promise<DecreaseReplicationFactorCommandOutput> | void {
228
- const command = new DecreaseReplicationFactorCommand(args);
229
- if (typeof optionsOrCb === "function") {
230
- this.send(command, optionsOrCb);
231
- } else if (typeof cb === "function") {
232
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
- this.send(command, optionsOrCb || {}, cb);
234
- } else {
235
- return this.send(command, optionsOrCb);
236
- }
237
- }
238
-
239
- /**
240
- * <p>Deletes a previously provisioned DAX cluster.
241
- * <i>DeleteCluster</i> deletes all associated nodes, node endpoints
242
- * and the DAX cluster itself. When you receive a successful response from this action,
243
- * DAX immediately begins deleting the cluster; you cannot cancel or revert this
244
- * action.</p>
245
- */
246
- public deleteCluster(
247
- args: DeleteClusterCommandInput,
248
- options?: __HttpHandlerOptions
249
- ): Promise<DeleteClusterCommandOutput>;
250
- public deleteCluster(
251
- args: DeleteClusterCommandInput,
252
- cb: (err: any, data?: DeleteClusterCommandOutput) => void
253
- ): void;
254
- public deleteCluster(
255
- args: DeleteClusterCommandInput,
256
- options: __HttpHandlerOptions,
257
- cb: (err: any, data?: DeleteClusterCommandOutput) => void
258
- ): void;
259
- public deleteCluster(
260
- args: DeleteClusterCommandInput,
261
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteClusterCommandOutput) => void),
262
- cb?: (err: any, data?: DeleteClusterCommandOutput) => void
263
- ): Promise<DeleteClusterCommandOutput> | void {
264
- const command = new DeleteClusterCommand(args);
265
- if (typeof optionsOrCb === "function") {
266
- this.send(command, optionsOrCb);
267
- } else if (typeof cb === "function") {
268
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
269
- this.send(command, optionsOrCb || {}, cb);
270
- } else {
271
- return this.send(command, optionsOrCb);
272
- }
273
- }
274
-
275
- /**
276
- * <p>Deletes the specified parameter group. You cannot delete a parameter group if it is
277
- * associated with any DAX clusters.</p>
278
- */
279
- public deleteParameterGroup(
280
- args: DeleteParameterGroupCommandInput,
281
- options?: __HttpHandlerOptions
282
- ): Promise<DeleteParameterGroupCommandOutput>;
283
- public deleteParameterGroup(
284
- args: DeleteParameterGroupCommandInput,
285
- cb: (err: any, data?: DeleteParameterGroupCommandOutput) => void
286
- ): void;
287
- public deleteParameterGroup(
288
- args: DeleteParameterGroupCommandInput,
289
- options: __HttpHandlerOptions,
290
- cb: (err: any, data?: DeleteParameterGroupCommandOutput) => void
291
- ): void;
292
- public deleteParameterGroup(
293
- args: DeleteParameterGroupCommandInput,
294
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteParameterGroupCommandOutput) => void),
295
- cb?: (err: any, data?: DeleteParameterGroupCommandOutput) => void
296
- ): Promise<DeleteParameterGroupCommandOutput> | void {
297
- const command = new DeleteParameterGroupCommand(args);
298
- if (typeof optionsOrCb === "function") {
299
- this.send(command, optionsOrCb);
300
- } else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
- this.send(command, optionsOrCb || {}, cb);
303
- } else {
304
- return this.send(command, optionsOrCb);
305
- }
306
- }
307
-
308
- /**
309
- * <p>Deletes a subnet group.</p>
310
- * <note>
311
- * <p>You cannot delete a subnet group if it is associated with any DAX
312
- * clusters.</p>
313
- * </note>
314
- */
315
- public deleteSubnetGroup(
316
- args: DeleteSubnetGroupCommandInput,
317
- options?: __HttpHandlerOptions
318
- ): Promise<DeleteSubnetGroupCommandOutput>;
319
- public deleteSubnetGroup(
320
- args: DeleteSubnetGroupCommandInput,
321
- cb: (err: any, data?: DeleteSubnetGroupCommandOutput) => void
322
- ): void;
323
- public deleteSubnetGroup(
324
- args: DeleteSubnetGroupCommandInput,
325
- options: __HttpHandlerOptions,
326
- cb: (err: any, data?: DeleteSubnetGroupCommandOutput) => void
327
- ): void;
328
- public deleteSubnetGroup(
329
- args: DeleteSubnetGroupCommandInput,
330
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteSubnetGroupCommandOutput) => void),
331
- cb?: (err: any, data?: DeleteSubnetGroupCommandOutput) => void
332
- ): Promise<DeleteSubnetGroupCommandOutput> | void {
333
- const command = new DeleteSubnetGroupCommand(args);
334
- if (typeof optionsOrCb === "function") {
335
- this.send(command, optionsOrCb);
336
- } else if (typeof cb === "function") {
337
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
338
- this.send(command, optionsOrCb || {}, cb);
339
- } else {
340
- return this.send(command, optionsOrCb);
341
- }
342
- }
343
-
344
- /**
345
- * <p>Returns information about all provisioned DAX clusters if no cluster identifier
346
- * is specified, or about a specific DAX cluster if a cluster identifier is
347
- * supplied.</p>
348
- * <p>If the cluster is in the CREATING state, only cluster level information will be
349
- * displayed until all of the nodes are successfully provisioned.</p>
350
- * <p>If the cluster is in the DELETING state, only cluster level information will be
351
- * displayed.</p>
352
- * <p>If nodes are currently being added to the DAX cluster, node endpoint information
353
- * and creation time for the additional nodes will not be displayed until they are
354
- * completely provisioned. When the DAX cluster state is <i>available</i>,
355
- * the cluster is ready for use.</p>
356
- * <p>If nodes are currently being removed from the DAX cluster, no endpoint
357
- * information for the removed nodes is displayed.</p>
358
- */
359
- public describeClusters(
360
- args: DescribeClustersCommandInput,
361
- options?: __HttpHandlerOptions
362
- ): Promise<DescribeClustersCommandOutput>;
363
- public describeClusters(
364
- args: DescribeClustersCommandInput,
365
- cb: (err: any, data?: DescribeClustersCommandOutput) => void
366
- ): void;
367
- public describeClusters(
368
- args: DescribeClustersCommandInput,
369
- options: __HttpHandlerOptions,
370
- cb: (err: any, data?: DescribeClustersCommandOutput) => void
371
- ): void;
372
- public describeClusters(
373
- args: DescribeClustersCommandInput,
374
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeClustersCommandOutput) => void),
375
- cb?: (err: any, data?: DescribeClustersCommandOutput) => void
376
- ): Promise<DescribeClustersCommandOutput> | void {
377
- const command = new DescribeClustersCommand(args);
378
- if (typeof optionsOrCb === "function") {
379
- this.send(command, optionsOrCb);
380
- } else if (typeof cb === "function") {
381
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
382
- this.send(command, optionsOrCb || {}, cb);
383
- } else {
384
- return this.send(command, optionsOrCb);
385
- }
386
- }
387
-
388
- /**
389
- * <p>Returns the default system parameter information for the DAX caching
390
- * software.</p>
391
- */
392
- public describeDefaultParameters(
393
- args: DescribeDefaultParametersCommandInput,
394
- options?: __HttpHandlerOptions
395
- ): Promise<DescribeDefaultParametersCommandOutput>;
396
- public describeDefaultParameters(
397
- args: DescribeDefaultParametersCommandInput,
398
- cb: (err: any, data?: DescribeDefaultParametersCommandOutput) => void
399
- ): void;
400
- public describeDefaultParameters(
401
- args: DescribeDefaultParametersCommandInput,
402
- options: __HttpHandlerOptions,
403
- cb: (err: any, data?: DescribeDefaultParametersCommandOutput) => void
404
- ): void;
405
- public describeDefaultParameters(
406
- args: DescribeDefaultParametersCommandInput,
407
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDefaultParametersCommandOutput) => void),
408
- cb?: (err: any, data?: DescribeDefaultParametersCommandOutput) => void
409
- ): Promise<DescribeDefaultParametersCommandOutput> | void {
410
- const command = new DescribeDefaultParametersCommand(args);
411
- if (typeof optionsOrCb === "function") {
412
- this.send(command, optionsOrCb);
413
- } else if (typeof cb === "function") {
414
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
415
- this.send(command, optionsOrCb || {}, cb);
416
- } else {
417
- return this.send(command, optionsOrCb);
418
- }
419
- }
420
-
421
- /**
422
- * <p>Returns events related to DAX clusters and parameter groups. You can obtain
423
- * events specific to a particular DAX cluster or parameter group by providing the name
424
- * as a parameter.</p>
425
- * <p>By default, only the events occurring within the last 24 hours are returned; however,
426
- * you can retrieve up to 14 days' worth of events if necessary.</p>
427
- */
428
- public describeEvents(
429
- args: DescribeEventsCommandInput,
430
- options?: __HttpHandlerOptions
431
- ): Promise<DescribeEventsCommandOutput>;
432
- public describeEvents(
433
- args: DescribeEventsCommandInput,
434
- cb: (err: any, data?: DescribeEventsCommandOutput) => void
435
- ): void;
436
- public describeEvents(
437
- args: DescribeEventsCommandInput,
438
- options: __HttpHandlerOptions,
439
- cb: (err: any, data?: DescribeEventsCommandOutput) => void
440
- ): void;
441
- public describeEvents(
442
- args: DescribeEventsCommandInput,
443
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEventsCommandOutput) => void),
444
- cb?: (err: any, data?: DescribeEventsCommandOutput) => void
445
- ): Promise<DescribeEventsCommandOutput> | void {
446
- const command = new DescribeEventsCommand(args);
447
- if (typeof optionsOrCb === "function") {
448
- this.send(command, optionsOrCb);
449
- } else if (typeof cb === "function") {
450
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
451
- this.send(command, optionsOrCb || {}, cb);
452
- } else {
453
- return this.send(command, optionsOrCb);
454
- }
455
- }
456
-
457
- /**
458
- * <p>Returns a list of parameter group descriptions. If a parameter group name is
459
- * specified, the list will contain only the descriptions for that group.</p>
460
- */
461
- public describeParameterGroups(
462
- args: DescribeParameterGroupsCommandInput,
463
- options?: __HttpHandlerOptions
464
- ): Promise<DescribeParameterGroupsCommandOutput>;
465
- public describeParameterGroups(
466
- args: DescribeParameterGroupsCommandInput,
467
- cb: (err: any, data?: DescribeParameterGroupsCommandOutput) => void
468
- ): void;
469
- public describeParameterGroups(
470
- args: DescribeParameterGroupsCommandInput,
471
- options: __HttpHandlerOptions,
472
- cb: (err: any, data?: DescribeParameterGroupsCommandOutput) => void
473
- ): void;
474
- public describeParameterGroups(
475
- args: DescribeParameterGroupsCommandInput,
476
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeParameterGroupsCommandOutput) => void),
477
- cb?: (err: any, data?: DescribeParameterGroupsCommandOutput) => void
478
- ): Promise<DescribeParameterGroupsCommandOutput> | void {
479
- const command = new DescribeParameterGroupsCommand(args);
480
- if (typeof optionsOrCb === "function") {
481
- this.send(command, optionsOrCb);
482
- } else if (typeof cb === "function") {
483
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
484
- this.send(command, optionsOrCb || {}, cb);
485
- } else {
486
- return this.send(command, optionsOrCb);
487
- }
488
- }
489
-
490
- /**
491
- * <p>Returns the detailed parameter list for a particular parameter group.</p>
492
- */
493
- public describeParameters(
494
- args: DescribeParametersCommandInput,
495
- options?: __HttpHandlerOptions
496
- ): Promise<DescribeParametersCommandOutput>;
497
- public describeParameters(
498
- args: DescribeParametersCommandInput,
499
- cb: (err: any, data?: DescribeParametersCommandOutput) => void
500
- ): void;
501
- public describeParameters(
502
- args: DescribeParametersCommandInput,
503
- options: __HttpHandlerOptions,
504
- cb: (err: any, data?: DescribeParametersCommandOutput) => void
505
- ): void;
506
- public describeParameters(
507
- args: DescribeParametersCommandInput,
508
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeParametersCommandOutput) => void),
509
- cb?: (err: any, data?: DescribeParametersCommandOutput) => void
510
- ): Promise<DescribeParametersCommandOutput> | void {
511
- const command = new DescribeParametersCommand(args);
512
- if (typeof optionsOrCb === "function") {
513
- this.send(command, optionsOrCb);
514
- } else if (typeof cb === "function") {
515
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
516
- this.send(command, optionsOrCb || {}, cb);
517
- } else {
518
- return this.send(command, optionsOrCb);
519
- }
520
- }
521
-
522
- /**
523
- * <p>Returns a list of subnet group descriptions. If a subnet group name is specified,
524
- * the list will contain only the description of that group.</p>
525
- */
526
- public describeSubnetGroups(
527
- args: DescribeSubnetGroupsCommandInput,
528
- options?: __HttpHandlerOptions
529
- ): Promise<DescribeSubnetGroupsCommandOutput>;
530
- public describeSubnetGroups(
531
- args: DescribeSubnetGroupsCommandInput,
532
- cb: (err: any, data?: DescribeSubnetGroupsCommandOutput) => void
533
- ): void;
534
- public describeSubnetGroups(
535
- args: DescribeSubnetGroupsCommandInput,
536
- options: __HttpHandlerOptions,
537
- cb: (err: any, data?: DescribeSubnetGroupsCommandOutput) => void
538
- ): void;
539
- public describeSubnetGroups(
540
- args: DescribeSubnetGroupsCommandInput,
541
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeSubnetGroupsCommandOutput) => void),
542
- cb?: (err: any, data?: DescribeSubnetGroupsCommandOutput) => void
543
- ): Promise<DescribeSubnetGroupsCommandOutput> | void {
544
- const command = new DescribeSubnetGroupsCommand(args);
545
- if (typeof optionsOrCb === "function") {
546
- this.send(command, optionsOrCb);
547
- } else if (typeof cb === "function") {
548
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
549
- this.send(command, optionsOrCb || {}, cb);
550
- } else {
551
- return this.send(command, optionsOrCb);
552
- }
553
- }
554
-
555
- /**
556
- * <p>Adds one or more nodes to a DAX cluster.</p>
557
- */
558
- public increaseReplicationFactor(
559
- args: IncreaseReplicationFactorCommandInput,
560
- options?: __HttpHandlerOptions
561
- ): Promise<IncreaseReplicationFactorCommandOutput>;
562
- public increaseReplicationFactor(
563
- args: IncreaseReplicationFactorCommandInput,
564
- cb: (err: any, data?: IncreaseReplicationFactorCommandOutput) => void
565
- ): void;
566
- public increaseReplicationFactor(
567
- args: IncreaseReplicationFactorCommandInput,
568
- options: __HttpHandlerOptions,
569
- cb: (err: any, data?: IncreaseReplicationFactorCommandOutput) => void
570
- ): void;
571
- public increaseReplicationFactor(
572
- args: IncreaseReplicationFactorCommandInput,
573
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: IncreaseReplicationFactorCommandOutput) => void),
574
- cb?: (err: any, data?: IncreaseReplicationFactorCommandOutput) => void
575
- ): Promise<IncreaseReplicationFactorCommandOutput> | void {
576
- const command = new IncreaseReplicationFactorCommand(args);
577
- if (typeof optionsOrCb === "function") {
578
- this.send(command, optionsOrCb);
579
- } else if (typeof cb === "function") {
580
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
581
- this.send(command, optionsOrCb || {}, cb);
582
- } else {
583
- return this.send(command, optionsOrCb);
584
- }
585
- }
586
-
587
- /**
588
- * <p>List all of the tags for a DAX cluster. You can call <code>ListTags</code> up to
589
- * 10 times per second, per account.</p>
590
- */
591
- public listTags(args: ListTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsCommandOutput>;
592
- public listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
593
- public listTags(
594
- args: ListTagsCommandInput,
595
- options: __HttpHandlerOptions,
596
- cb: (err: any, data?: ListTagsCommandOutput) => void
597
- ): void;
598
- public listTags(
599
- args: ListTagsCommandInput,
600
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsCommandOutput) => void),
601
- cb?: (err: any, data?: ListTagsCommandOutput) => void
602
- ): Promise<ListTagsCommandOutput> | void {
603
- const command = new ListTagsCommand(args);
604
- if (typeof optionsOrCb === "function") {
605
- this.send(command, optionsOrCb);
606
- } else if (typeof cb === "function") {
607
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
608
- this.send(command, optionsOrCb || {}, cb);
609
- } else {
610
- return this.send(command, optionsOrCb);
611
- }
612
- }
613
-
614
- /**
615
- * <p>Reboots a single node of a DAX cluster. The reboot action takes place
616
- * as soon as possible. During the
617
- * reboot, the node status is set to REBOOTING.</p>
618
- * <note>
619
- * <p>
620
- * <code>RebootNode</code> restarts the DAX engine process and does not remove the contents of the cache. </p>
621
- * </note>
622
- */
623
- public rebootNode(args: RebootNodeCommandInput, options?: __HttpHandlerOptions): Promise<RebootNodeCommandOutput>;
624
- public rebootNode(args: RebootNodeCommandInput, cb: (err: any, data?: RebootNodeCommandOutput) => void): void;
625
- public rebootNode(
626
- args: RebootNodeCommandInput,
627
- options: __HttpHandlerOptions,
628
- cb: (err: any, data?: RebootNodeCommandOutput) => void
629
- ): void;
630
- public rebootNode(
631
- args: RebootNodeCommandInput,
632
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RebootNodeCommandOutput) => void),
633
- cb?: (err: any, data?: RebootNodeCommandOutput) => void
634
- ): Promise<RebootNodeCommandOutput> | void {
635
- const command = new RebootNodeCommand(args);
636
- if (typeof optionsOrCb === "function") {
637
- this.send(command, optionsOrCb);
638
- } else if (typeof cb === "function") {
639
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
640
- this.send(command, optionsOrCb || {}, cb);
641
- } else {
642
- return this.send(command, optionsOrCb);
643
- }
644
- }
645
-
646
- /**
647
- * <p>Associates a set of tags with a DAX resource. You can call <code>TagResource</code> up to 5 times per second, per
648
- * account. </p>
649
- */
650
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
651
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
652
- public tagResource(
653
- args: TagResourceCommandInput,
654
- options: __HttpHandlerOptions,
655
- cb: (err: any, data?: TagResourceCommandOutput) => void
656
- ): void;
657
- public tagResource(
658
- args: TagResourceCommandInput,
659
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
660
- cb?: (err: any, data?: TagResourceCommandOutput) => void
661
- ): Promise<TagResourceCommandOutput> | void {
662
- const command = new TagResourceCommand(args);
663
- if (typeof optionsOrCb === "function") {
664
- this.send(command, optionsOrCb);
665
- } else if (typeof cb === "function") {
666
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
667
- this.send(command, optionsOrCb || {}, cb);
668
- } else {
669
- return this.send(command, optionsOrCb);
670
- }
671
- }
672
-
673
- /**
674
- * <p>Removes the association of tags from a DAX resource. You can call
675
- * <code>UntagResource</code> up to 5 times per second, per account. </p>
676
- */
677
- public untagResource(
678
- args: UntagResourceCommandInput,
679
- options?: __HttpHandlerOptions
680
- ): Promise<UntagResourceCommandOutput>;
681
- public untagResource(
682
- args: UntagResourceCommandInput,
683
- cb: (err: any, data?: UntagResourceCommandOutput) => void
684
- ): void;
685
- public untagResource(
686
- args: UntagResourceCommandInput,
687
- options: __HttpHandlerOptions,
688
- cb: (err: any, data?: UntagResourceCommandOutput) => void
689
- ): void;
690
- public untagResource(
691
- args: UntagResourceCommandInput,
692
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
693
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
694
- ): Promise<UntagResourceCommandOutput> | void {
695
- const command = new UntagResourceCommand(args);
696
- if (typeof optionsOrCb === "function") {
697
- this.send(command, optionsOrCb);
698
- } else if (typeof cb === "function") {
699
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
700
- this.send(command, optionsOrCb || {}, cb);
701
- } else {
702
- return this.send(command, optionsOrCb);
703
- }
704
- }
705
-
706
- /**
707
- * <p>Modifies the settings for a DAX cluster. You can use this action to change one or
708
- * more cluster configuration parameters by specifying the parameters and the new
709
- * values.</p>
710
- */
711
- public updateCluster(
712
- args: UpdateClusterCommandInput,
713
- options?: __HttpHandlerOptions
714
- ): Promise<UpdateClusterCommandOutput>;
715
- public updateCluster(
716
- args: UpdateClusterCommandInput,
717
- cb: (err: any, data?: UpdateClusterCommandOutput) => void
718
- ): void;
719
- public updateCluster(
720
- args: UpdateClusterCommandInput,
721
- options: __HttpHandlerOptions,
722
- cb: (err: any, data?: UpdateClusterCommandOutput) => void
723
- ): void;
724
- public updateCluster(
725
- args: UpdateClusterCommandInput,
726
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateClusterCommandOutput) => void),
727
- cb?: (err: any, data?: UpdateClusterCommandOutput) => void
728
- ): Promise<UpdateClusterCommandOutput> | void {
729
- const command = new UpdateClusterCommand(args);
730
- if (typeof optionsOrCb === "function") {
731
- this.send(command, optionsOrCb);
732
- } else if (typeof cb === "function") {
733
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
734
- this.send(command, optionsOrCb || {}, cb);
735
- } else {
736
- return this.send(command, optionsOrCb);
737
- }
738
- }
739
-
740
- /**
741
- * <p>Modifies the parameters of a parameter group. You can modify up to 20
742
- * parameters in a single request by submitting a list parameter name and value
743
- * pairs.</p>
744
- */
745
- public updateParameterGroup(
746
- args: UpdateParameterGroupCommandInput,
747
- options?: __HttpHandlerOptions
748
- ): Promise<UpdateParameterGroupCommandOutput>;
749
- public updateParameterGroup(
750
- args: UpdateParameterGroupCommandInput,
751
- cb: (err: any, data?: UpdateParameterGroupCommandOutput) => void
752
- ): void;
753
- public updateParameterGroup(
754
- args: UpdateParameterGroupCommandInput,
755
- options: __HttpHandlerOptions,
756
- cb: (err: any, data?: UpdateParameterGroupCommandOutput) => void
757
- ): void;
758
- public updateParameterGroup(
759
- args: UpdateParameterGroupCommandInput,
760
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateParameterGroupCommandOutput) => void),
761
- cb?: (err: any, data?: UpdateParameterGroupCommandOutput) => void
762
- ): Promise<UpdateParameterGroupCommandOutput> | void {
763
- const command = new UpdateParameterGroupCommand(args);
764
- if (typeof optionsOrCb === "function") {
765
- this.send(command, optionsOrCb);
766
- } else if (typeof cb === "function") {
767
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
768
- this.send(command, optionsOrCb || {}, cb);
769
- } else {
770
- return this.send(command, optionsOrCb);
771
- }
772
- }
773
-
774
- /**
775
- * <p>Modifies an existing subnet group.</p>
776
- */
777
- public updateSubnetGroup(
778
- args: UpdateSubnetGroupCommandInput,
779
- options?: __HttpHandlerOptions
780
- ): Promise<UpdateSubnetGroupCommandOutput>;
781
- public updateSubnetGroup(
782
- args: UpdateSubnetGroupCommandInput,
783
- cb: (err: any, data?: UpdateSubnetGroupCommandOutput) => void
784
- ): void;
785
- public updateSubnetGroup(
786
- args: UpdateSubnetGroupCommandInput,
787
- options: __HttpHandlerOptions,
788
- cb: (err: any, data?: UpdateSubnetGroupCommandOutput) => void
789
- ): void;
790
- public updateSubnetGroup(
791
- args: UpdateSubnetGroupCommandInput,
792
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateSubnetGroupCommandOutput) => void),
793
- cb?: (err: any, data?: UpdateSubnetGroupCommandOutput) => void
794
- ): Promise<UpdateSubnetGroupCommandOutput> | void {
795
- const command = new UpdateSubnetGroupCommand(args);
796
- if (typeof optionsOrCb === "function") {
797
- this.send(command, optionsOrCb);
798
- } else if (typeof cb === "function") {
799
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
800
- this.send(command, optionsOrCb || {}, cb);
801
- } else {
802
- return this.send(command, optionsOrCb);
803
- }
804
- }
805
- }