@aws-sdk/client-elasticache 3.1138.0 → 3.1140.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/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1137.0";
72
+ var version = "3.1139.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -189,6 +189,18 @@ class CacheSubnetGroupNotFoundFault extends ElastiCacheServiceException {
189
189
  Object.setPrototypeOf(this, CacheSubnetGroupNotFoundFault.prototype);
190
190
  }
191
191
  }
192
+ class GlobalReplicationGroupNotFoundFault extends ElastiCacheServiceException {
193
+ name = "GlobalReplicationGroupNotFoundFault";
194
+ $fault = "client";
195
+ constructor(opts) {
196
+ super({
197
+ name: "GlobalReplicationGroupNotFoundFault",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, GlobalReplicationGroupNotFoundFault.prototype);
202
+ }
203
+ }
192
204
  class InvalidARNFault extends ElastiCacheServiceException {
193
205
  name = "InvalidARNFault";
194
206
  $fault = "client";
@@ -201,6 +213,18 @@ class InvalidARNFault extends ElastiCacheServiceException {
201
213
  Object.setPrototypeOf(this, InvalidARNFault.prototype);
202
214
  }
203
215
  }
216
+ class InvalidParameterValueException extends ElastiCacheServiceException {
217
+ name = "InvalidParameterValueException";
218
+ $fault = "client";
219
+ constructor(opts) {
220
+ super({
221
+ name: "InvalidParameterValueException",
222
+ $fault: "client",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
226
+ }
227
+ }
204
228
  class InvalidReplicationGroupStateFault extends ElastiCacheServiceException {
205
229
  name = "InvalidReplicationGroupStateFault";
206
230
  $fault = "client";
@@ -369,18 +393,6 @@ class InvalidParameterCombinationException extends ElastiCacheServiceException {
369
393
  Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
370
394
  }
371
395
  }
372
- class InvalidParameterValueException extends ElastiCacheServiceException {
373
- name = "InvalidParameterValueException";
374
- $fault = "client";
375
- constructor(opts) {
376
- super({
377
- name: "InvalidParameterValueException",
378
- $fault: "client",
379
- ...opts,
380
- });
381
- Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
382
- }
383
- }
384
396
  class ServiceUpdateNotFoundFault extends ElastiCacheServiceException {
385
397
  name = "ServiceUpdateNotFoundFault";
386
398
  $fault = "client";
@@ -681,18 +693,6 @@ class GlobalReplicationGroupAlreadyExistsFault extends ElastiCacheServiceExcepti
681
693
  Object.setPrototypeOf(this, GlobalReplicationGroupAlreadyExistsFault.prototype);
682
694
  }
683
695
  }
684
- class GlobalReplicationGroupNotFoundFault extends ElastiCacheServiceException {
685
- name = "GlobalReplicationGroupNotFoundFault";
686
- $fault = "client";
687
- constructor(opts) {
688
- super({
689
- name: "GlobalReplicationGroupNotFoundFault",
690
- $fault: "client",
691
- ...opts,
692
- });
693
- Object.setPrototypeOf(this, GlobalReplicationGroupNotFoundFault.prototype);
694
- }
695
- }
696
696
  class InvalidCacheClusterStateFault extends ElastiCacheServiceException {
697
697
  name = "InvalidCacheClusterStateFault";
698
698
  $fault = "client";
@@ -2466,8 +2466,8 @@ var CreateCacheSubnetGroupResult$ = [3, n0, _CCSGRr,
2466
2466
  ];
2467
2467
  var CreateGlobalReplicationGroupMessage$ = [3, n0, _CGRGM,
2468
2468
  0,
2469
- [_GRGIS, _PRGI, _GRGD],
2470
- [0, 0, 0], 2
2469
+ [_GRGIS, _PRGI, _GRGD, _T],
2470
+ [0, 0, 0, [() => TagList, 0]], 2
2471
2471
  ];
2472
2472
  var CreateGlobalReplicationGroupResult$ = [3, n0, _CGRGR,
2473
2473
  0,
@@ -47,6 +47,18 @@ export class CacheSubnetGroupNotFoundFault extends __BaseException {
47
47
  Object.setPrototypeOf(this, CacheSubnetGroupNotFoundFault.prototype);
48
48
  }
49
49
  }
50
+ export class GlobalReplicationGroupNotFoundFault extends __BaseException {
51
+ name = "GlobalReplicationGroupNotFoundFault";
52
+ $fault = "client";
53
+ constructor(opts) {
54
+ super({
55
+ name: "GlobalReplicationGroupNotFoundFault",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, GlobalReplicationGroupNotFoundFault.prototype);
60
+ }
61
+ }
50
62
  export class InvalidARNFault extends __BaseException {
51
63
  name = "InvalidARNFault";
52
64
  $fault = "client";
@@ -59,6 +71,18 @@ export class InvalidARNFault extends __BaseException {
59
71
  Object.setPrototypeOf(this, InvalidARNFault.prototype);
60
72
  }
61
73
  }
74
+ export class InvalidParameterValueException extends __BaseException {
75
+ name = "InvalidParameterValueException";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "InvalidParameterValueException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
84
+ }
85
+ }
62
86
  export class InvalidReplicationGroupStateFault extends __BaseException {
63
87
  name = "InvalidReplicationGroupStateFault";
64
88
  $fault = "client";
@@ -227,18 +251,6 @@ export class InvalidParameterCombinationException extends __BaseException {
227
251
  Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
228
252
  }
229
253
  }
230
- export class InvalidParameterValueException extends __BaseException {
231
- name = "InvalidParameterValueException";
232
- $fault = "client";
233
- constructor(opts) {
234
- super({
235
- name: "InvalidParameterValueException",
236
- $fault: "client",
237
- ...opts,
238
- });
239
- Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
240
- }
241
- }
242
254
  export class ServiceUpdateNotFoundFault extends __BaseException {
243
255
  name = "ServiceUpdateNotFoundFault";
244
256
  $fault = "client";
@@ -539,18 +551,6 @@ export class GlobalReplicationGroupAlreadyExistsFault extends __BaseException {
539
551
  Object.setPrototypeOf(this, GlobalReplicationGroupAlreadyExistsFault.prototype);
540
552
  }
541
553
  }
542
- export class GlobalReplicationGroupNotFoundFault extends __BaseException {
543
- name = "GlobalReplicationGroupNotFoundFault";
544
- $fault = "client";
545
- constructor(opts) {
546
- super({
547
- name: "GlobalReplicationGroupNotFoundFault",
548
- $fault: "client",
549
- ...opts,
550
- });
551
- Object.setPrototypeOf(this, GlobalReplicationGroupNotFoundFault.prototype);
552
- }
553
- }
554
554
  export class InvalidCacheClusterStateFault extends __BaseException {
555
555
  name = "InvalidCacheClusterStateFault";
556
556
  $fault = "client";
@@ -1413,8 +1413,8 @@ export var CreateCacheSubnetGroupResult$ = [3, n0, _CCSGRr,
1413
1413
  ];
1414
1414
  export var CreateGlobalReplicationGroupMessage$ = [3, n0, _CGRGM,
1415
1415
  0,
1416
- [_GRGIS, _PRGI, _GRGD],
1417
- [0, 0, 0], 2
1416
+ [_GRGIS, _PRGI, _GRGD, _T],
1417
+ [0, 0, 0, [() => TagList, 0]], 2
1418
1418
  ];
1419
1419
  export var CreateGlobalReplicationGroupResult$ = [3, n0, _CGRGR,
1420
1420
  0,
@@ -25,8 +25,8 @@ declare const AddTagsToResourceCommand_base: {
25
25
  };
26
26
  /**
27
27
  * <p>A tag is a key-value pair where the key and value are case-sensitive. You can use tags
28
- * to categorize and track all your ElastiCache resources, with the exception of global
29
- * replication group. When you add or remove tags on replication groups, those actions will
28
+ * to categorize and track all your ElastiCache resources.
29
+ * When you add or remove tags on replication groups, those actions will
30
30
  * be replicated to all nodes in the replication group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/IAM.ResourceLevelPermissions.html">Resource-level permissions</a>.</p>
31
31
  * <p> For example, you can use cost-allocation tags to your ElastiCache resources, Amazon
32
32
  * generates a cost allocation report as a comma-separated value (CSV) file with your usage
@@ -87,10 +87,16 @@ declare const AddTagsToResourceCommand_base: {
87
87
  * <p>The requested cache subnet group name does not refer to an existing cache subnet
88
88
  * group.</p>
89
89
  *
90
+ * @throws {@link GlobalReplicationGroupNotFoundFault} (client fault)
91
+ * <p>The Global datastore does not exist</p>
92
+ *
90
93
  * @throws {@link InvalidARNFault} (client fault)
91
94
  * <p>The requested Amazon Resource Name (ARN) does not refer to an existing
92
95
  * resource.</p>
93
96
  *
97
+ * @throws {@link InvalidParameterValueException} (client fault)
98
+ * <p>The value for a parameter is invalid.</p>
99
+ *
94
100
  * @throws {@link InvalidReplicationGroupStateFault} (client fault)
95
101
  * <p>The requested replication group is not in the <code>available</code> state.</p>
96
102
  *
@@ -52,6 +52,12 @@ declare const CreateGlobalReplicationGroupCommand_base: {
52
52
  * GlobalReplicationGroupIdSuffix: "STRING_VALUE", // required
53
53
  * GlobalReplicationGroupDescription: "STRING_VALUE",
54
54
  * PrimaryReplicationGroupId: "STRING_VALUE", // required
55
+ * Tags: [ // TagList
56
+ * { // Tag
57
+ * Key: "STRING_VALUE",
58
+ * Value: "STRING_VALUE",
59
+ * },
60
+ * ],
55
61
  * };
56
62
  * const command = new CreateGlobalReplicationGroupCommand(input);
57
63
  * const response = await client.send(command);
@@ -109,6 +115,11 @@ declare const CreateGlobalReplicationGroupCommand_base: {
109
115
  * @throws {@link ServiceLinkedRoleNotFoundFault} (client fault)
110
116
  * <p>The specified service linked role (SLR) was not found.</p>
111
117
  *
118
+ * @throws {@link TagQuotaPerResourceExceeded} (client fault)
119
+ * <p>The request cannot be processed because it would cause the resource to have more than
120
+ * the allowed number of tags. The maximum number of tags permitted on a resource is
121
+ * 50.</p>
122
+ *
112
123
  * @throws {@link ElastiCacheServiceException}
113
124
  * <p>Base exception class for all service exceptions from ElastiCache service.</p>
114
125
  *
@@ -26,8 +26,8 @@ declare const ListTagsForResourceCommand_base: {
26
26
  /**
27
27
  * <p>Lists all tags currently on a named resource.</p>
28
28
  * <p> A tag is a key-value pair where the key and value are case-sensitive. You can use
29
- * tags to categorize and track all your ElastiCache resources, with the exception of
30
- * global replication group. When you add or remove tags on replication groups, those
29
+ * tags to categorize and track all your ElastiCache resources.
30
+ * When you add or remove tags on replication groups, those
31
31
  * actions will be replicated to all nodes in the replication group. For more information,
32
32
  * see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/IAM.ResourceLevelPermissions.html">Resource-level permissions</a>.</p>
33
33
  * <p>If the cluster is not in the <i>available</i> state,
@@ -77,10 +77,16 @@ declare const ListTagsForResourceCommand_base: {
77
77
  * <p>The requested cache subnet group name does not refer to an existing cache subnet
78
78
  * group.</p>
79
79
  *
80
+ * @throws {@link GlobalReplicationGroupNotFoundFault} (client fault)
81
+ * <p>The Global datastore does not exist</p>
82
+ *
80
83
  * @throws {@link InvalidARNFault} (client fault)
81
84
  * <p>The requested Amazon Resource Name (ARN) does not refer to an existing
82
85
  * resource.</p>
83
86
  *
87
+ * @throws {@link InvalidParameterValueException} (client fault)
88
+ * <p>The value for a parameter is invalid.</p>
89
+ *
84
90
  * @throws {@link InvalidReplicationGroupStateFault} (client fault)
85
91
  * <p>The requested replication group is not in the <code>available</code> state.</p>
86
92
  *
@@ -26,8 +26,8 @@ declare const RemoveTagsFromResourceCommand_base: {
26
26
  /**
27
27
  * <p>Removes the tags identified by the <code>TagKeys</code> list from the named resource.
28
28
  * A tag is a key-value pair where the key and value are case-sensitive. You can use tags
29
- * to categorize and track all your ElastiCache resources, with the exception of global
30
- * replication group. When you add or remove tags on replication groups, those actions will
29
+ * to categorize and track all your ElastiCache resources.
30
+ * When you add or remove tags on replication groups, those actions will
31
31
  * be replicated to all nodes in the replication group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/IAM.ResourceLevelPermissions.html">Resource-level permissions</a>.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
@@ -77,10 +77,16 @@ declare const RemoveTagsFromResourceCommand_base: {
77
77
  * <p>The requested cache subnet group name does not refer to an existing cache subnet
78
78
  * group.</p>
79
79
  *
80
+ * @throws {@link GlobalReplicationGroupNotFoundFault} (client fault)
81
+ * <p>The Global datastore does not exist</p>
82
+ *
80
83
  * @throws {@link InvalidARNFault} (client fault)
81
84
  * <p>The requested Amazon Resource Name (ARN) does not refer to an existing
82
85
  * resource.</p>
83
86
  *
87
+ * @throws {@link InvalidParameterValueException} (client fault)
88
+ * <p>The value for a parameter is invalid.</p>
89
+ *
84
90
  * @throws {@link InvalidReplicationGroupStateFault} (client fault)
85
91
  * <p>The requested replication group is not in the <code>available</code> state.</p>
86
92
  *
@@ -51,6 +51,18 @@ export declare class CacheSubnetGroupNotFoundFault extends __BaseException {
51
51
  */
52
52
  constructor(opts: __ExceptionOptionType<CacheSubnetGroupNotFoundFault, __BaseException>);
53
53
  }
54
+ /**
55
+ * <p>The Global datastore does not exist</p>
56
+ * @public
57
+ */
58
+ export declare class GlobalReplicationGroupNotFoundFault extends __BaseException {
59
+ readonly name: "GlobalReplicationGroupNotFoundFault";
60
+ readonly $fault: "client";
61
+ /**
62
+ * @internal
63
+ */
64
+ constructor(opts: __ExceptionOptionType<GlobalReplicationGroupNotFoundFault, __BaseException>);
65
+ }
54
66
  /**
55
67
  * <p>The requested Amazon Resource Name (ARN) does not refer to an existing
56
68
  * resource.</p>
@@ -64,6 +76,18 @@ export declare class InvalidARNFault extends __BaseException {
64
76
  */
65
77
  constructor(opts: __ExceptionOptionType<InvalidARNFault, __BaseException>);
66
78
  }
79
+ /**
80
+ * <p>The value for a parameter is invalid.</p>
81
+ * @public
82
+ */
83
+ export declare class InvalidParameterValueException extends __BaseException {
84
+ readonly name: "InvalidParameterValueException";
85
+ readonly $fault: "client";
86
+ /**
87
+ * @internal
88
+ */
89
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
90
+ }
67
91
  /**
68
92
  * <p>The requested replication group is not in the <code>available</code> state.</p>
69
93
  * @public
@@ -235,18 +259,6 @@ export declare class InvalidParameterCombinationException extends __BaseExceptio
235
259
  */
236
260
  constructor(opts: __ExceptionOptionType<InvalidParameterCombinationException, __BaseException>);
237
261
  }
238
- /**
239
- * <p>The value for a parameter is invalid.</p>
240
- * @public
241
- */
242
- export declare class InvalidParameterValueException extends __BaseException {
243
- readonly name: "InvalidParameterValueException";
244
- readonly $fault: "client";
245
- /**
246
- * @internal
247
- */
248
- constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
249
- }
250
262
  /**
251
263
  * <p>The service update doesn't exist</p>
252
264
  * @public
@@ -562,18 +574,6 @@ export declare class GlobalReplicationGroupAlreadyExistsFault extends __BaseExce
562
574
  */
563
575
  constructor(opts: __ExceptionOptionType<GlobalReplicationGroupAlreadyExistsFault, __BaseException>);
564
576
  }
565
- /**
566
- * <p>The Global datastore does not exist</p>
567
- * @public
568
- */
569
- export declare class GlobalReplicationGroupNotFoundFault extends __BaseException {
570
- readonly name: "GlobalReplicationGroupNotFoundFault";
571
- readonly $fault: "client";
572
- /**
573
- * @internal
574
- */
575
- constructor(opts: __ExceptionOptionType<GlobalReplicationGroupNotFoundFault, __BaseException>);
576
- }
577
577
  /**
578
578
  * <p>The requested cluster is not in the <code>available</code> state.</p>
579
579
  * @public
@@ -2,7 +2,7 @@ import type { AuthenticationType, AuthTokenUpdateStatus, AuthTokenUpdateStrategy
2
2
  /**
3
3
  * <p>A tag that can be added to an ElastiCache cluster or replication group. Tags are
4
4
  * composed of a Key/Value pair. You can use tags to categorize and track all your
5
- * ElastiCache resources, with the exception of global replication group. When you add or
5
+ * ElastiCache resources. When you add or
6
6
  * remove tags on replication groups, those actions will be replicated to all nodes in the
7
7
  * replication group. A tag with a null Value is permitted.</p>
8
8
  * @public
@@ -3271,6 +3271,12 @@ export interface CreateGlobalReplicationGroupMessage {
3271
3271
  * @public
3272
3272
  */
3273
3273
  PrimaryReplicationGroupId: string | undefined;
3274
+ /**
3275
+ * <p>A list of tags to be added to this resource. A tag is a key-value pair. A tag key must
3276
+ * be accompanied by a tag value, although null is accepted.</p>
3277
+ * @public
3278
+ */
3279
+ Tags?: Tag[] | undefined;
3274
3280
  }
3275
3281
  /**
3276
3282
  * <p>Indicates the slot configuration and global identifier for a slice group.</p>
@@ -20,11 +20,21 @@ export declare class CacheSubnetGroupNotFoundFault extends __BaseException {
20
20
  readonly $fault: "client";
21
21
  constructor(opts: __ExceptionOptionType<CacheSubnetGroupNotFoundFault, __BaseException>);
22
22
  }
23
+ export declare class GlobalReplicationGroupNotFoundFault extends __BaseException {
24
+ readonly name: "GlobalReplicationGroupNotFoundFault";
25
+ readonly $fault: "client";
26
+ constructor(opts: __ExceptionOptionType<GlobalReplicationGroupNotFoundFault, __BaseException>);
27
+ }
23
28
  export declare class InvalidARNFault extends __BaseException {
24
29
  readonly name: "InvalidARNFault";
25
30
  readonly $fault: "client";
26
31
  constructor(opts: __ExceptionOptionType<InvalidARNFault, __BaseException>);
27
32
  }
33
+ export declare class InvalidParameterValueException extends __BaseException {
34
+ readonly name: "InvalidParameterValueException";
35
+ readonly $fault: "client";
36
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
37
+ }
28
38
  export declare class InvalidReplicationGroupStateFault extends __BaseException {
29
39
  readonly name: "InvalidReplicationGroupStateFault";
30
40
  readonly $fault: "client";
@@ -97,11 +107,6 @@ export declare class InvalidParameterCombinationException extends __BaseExceptio
97
107
  readonly $fault: "client";
98
108
  constructor(opts: __ExceptionOptionType<InvalidParameterCombinationException, __BaseException>);
99
109
  }
100
- export declare class InvalidParameterValueException extends __BaseException {
101
- readonly name: "InvalidParameterValueException";
102
- readonly $fault: "client";
103
- constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
104
- }
105
110
  export declare class ServiceUpdateNotFoundFault extends __BaseException {
106
111
  readonly name: "ServiceUpdateNotFoundFault";
107
112
  readonly $fault: "client";
@@ -233,11 +238,6 @@ export declare class GlobalReplicationGroupAlreadyExistsFault extends __BaseExce
233
238
  opts: __ExceptionOptionType<GlobalReplicationGroupAlreadyExistsFault, __BaseException>,
234
239
  );
235
240
  }
236
- export declare class GlobalReplicationGroupNotFoundFault extends __BaseException {
237
- readonly name: "GlobalReplicationGroupNotFoundFault";
238
- readonly $fault: "client";
239
- constructor(opts: __ExceptionOptionType<GlobalReplicationGroupNotFoundFault, __BaseException>);
240
- }
241
241
  export declare class InvalidCacheClusterStateFault extends __BaseException {
242
242
  readonly name: "InvalidCacheClusterStateFault";
243
243
  readonly $fault: "client";
@@ -466,6 +466,7 @@ export interface CreateGlobalReplicationGroupMessage {
466
466
  GlobalReplicationGroupIdSuffix: string | undefined;
467
467
  GlobalReplicationGroupDescription?: string | undefined;
468
468
  PrimaryReplicationGroupId: string | undefined;
469
+ Tags?: Tag[] | undefined;
469
470
  }
470
471
  export interface GlobalNodeGroup {
471
472
  GlobalNodeGroupId?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elasticache",
3
- "version": "3.1138.0",
3
+ "version": "3.1140.0",
4
4
  "description": "AWS SDK for JavaScript Elasticache Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elasticache",
6
6
  "license": "Apache-2.0",