Skip to content

Commit 86e40c9

Browse files
author
awstools
committed
feat(client-elasticache): Added minimum capacity to Amazon ElastiCache Serverless. This feature allows customer to ensure minimum capacity even without current load
1 parent 9996a39 commit 86e40c9

File tree

7 files changed

+65
-20
lines changed

7 files changed

+65
-20
lines changed

clients/client-elasticache/src/commands/CreateServerlessCacheCommand.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ export interface CreateServerlessCacheCommandOutput extends CreateServerlessCach
4141
* MajorEngineVersion: "STRING_VALUE",
4242
* CacheUsageLimits: { // CacheUsageLimits
4343
* DataStorage: { // DataStorage
44-
* Maximum: Number("int"), // required
44+
* Maximum: Number("int"),
45+
* Minimum: Number("int"),
4546
* Unit: "GB", // required
4647
* },
4748
* ECPUPerSecond: { // ECPUPerSecond
48-
* Maximum: Number("int"), // required
49+
* Maximum: Number("int"),
50+
* Minimum: Number("int"),
4951
* },
5052
* },
5153
* KmsKeyId: "STRING_VALUE",
@@ -81,11 +83,13 @@ export interface CreateServerlessCacheCommandOutput extends CreateServerlessCach
8183
* // FullEngineVersion: "STRING_VALUE",
8284
* // CacheUsageLimits: { // CacheUsageLimits
8385
* // DataStorage: { // DataStorage
84-
* // Maximum: Number("int"), // required
86+
* // Maximum: Number("int"),
87+
* // Minimum: Number("int"),
8588
* // Unit: "GB", // required
8689
* // },
8790
* // ECPUPerSecond: { // ECPUPerSecond
88-
* // Maximum: Number("int"), // required
91+
* // Maximum: Number("int"),
92+
* // Minimum: Number("int"),
8993
* // },
9094
* // },
9195
* // KmsKeyId: "STRING_VALUE",

clients/client-elasticache/src/commands/DeleteServerlessCacheCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ export interface DeleteServerlessCacheCommandOutput extends DeleteServerlessCach
5151
* // FullEngineVersion: "STRING_VALUE",
5252
* // CacheUsageLimits: { // CacheUsageLimits
5353
* // DataStorage: { // DataStorage
54-
* // Maximum: Number("int"), // required
54+
* // Maximum: Number("int"),
55+
* // Minimum: Number("int"),
5556
* // Unit: "GB", // required
5657
* // },
5758
* // ECPUPerSecond: { // ECPUPerSecond
58-
* // Maximum: Number("int"), // required
59+
* // Maximum: Number("int"),
60+
* // Minimum: Number("int"),
5961
* // },
6062
* // },
6163
* // KmsKeyId: "STRING_VALUE",

clients/client-elasticache/src/commands/DescribeServerlessCachesCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ export interface DescribeServerlessCachesCommandOutput extends DescribeServerles
5656
* // FullEngineVersion: "STRING_VALUE",
5757
* // CacheUsageLimits: { // CacheUsageLimits
5858
* // DataStorage: { // DataStorage
59-
* // Maximum: Number("int"), // required
59+
* // Maximum: Number("int"),
60+
* // Minimum: Number("int"),
6061
* // Unit: "GB", // required
6162
* // },
6263
* // ECPUPerSecond: { // ECPUPerSecond
63-
* // Maximum: Number("int"), // required
64+
* // Maximum: Number("int"),
65+
* // Minimum: Number("int"),
6466
* // },
6567
* // },
6668
* // KmsKeyId: "STRING_VALUE",

clients/client-elasticache/src/commands/ModifyServerlessCacheCommand.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ export interface ModifyServerlessCacheCommandOutput extends ModifyServerlessCach
3939
* Description: "STRING_VALUE",
4040
* CacheUsageLimits: { // CacheUsageLimits
4141
* DataStorage: { // DataStorage
42-
* Maximum: Number("int"), // required
42+
* Maximum: Number("int"),
43+
* Minimum: Number("int"),
4344
* Unit: "GB", // required
4445
* },
4546
* ECPUPerSecond: { // ECPUPerSecond
46-
* Maximum: Number("int"), // required
47+
* Maximum: Number("int"),
48+
* Minimum: Number("int"),
4749
* },
4850
* },
4951
* RemoveUserGroup: true || false,
@@ -67,11 +69,13 @@ export interface ModifyServerlessCacheCommandOutput extends ModifyServerlessCach
6769
* // FullEngineVersion: "STRING_VALUE",
6870
* // CacheUsageLimits: { // CacheUsageLimits
6971
* // DataStorage: { // DataStorage
70-
* // Maximum: Number("int"), // required
72+
* // Maximum: Number("int"),
73+
* // Minimum: Number("int"),
7174
* // Unit: "GB", // required
7275
* // },
7376
* // ECPUPerSecond: { // ECPUPerSecond
74-
* // Maximum: Number("int"), // required
77+
* // Maximum: Number("int"),
78+
* // Minimum: Number("int"),
7579
* // },
7680
* // },
7781
* // KmsKeyId: "STRING_VALUE",

clients/client-elasticache/src/models/models_0.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5704,7 +5704,13 @@ export interface DataStorage {
57045704
* <p>The upper limit for data storage the cache is set to use.</p>
57055705
* @public
57065706
*/
5707-
Maximum: number | undefined;
5707+
Maximum?: number;
5708+
5709+
/**
5710+
* <p>The lower limit for data storage the cache is set to use.</p>
5711+
* @public
5712+
*/
5713+
Minimum?: number;
57085714

57095715
/**
57105716
* <p>The unit that the storage is measured in, in GB.</p>
@@ -5722,7 +5728,13 @@ export interface ECPUPerSecond {
57225728
* <p>The configuration for the maximum number of ECPUs the cache can consume per second.</p>
57235729
* @public
57245730
*/
5725-
Maximum: number | undefined;
5731+
Maximum?: number;
5732+
5733+
/**
5734+
* <p>The configuration for the minimum number of ECPUs the cache should be able consume per second.</p>
5735+
* @public
5736+
*/
5737+
Minimum?: number;
57265738
}
57275739

57285740
/**

clients/client-elasticache/src/protocols/Aws_query.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5791,6 +5791,9 @@ const se_DataStorage = (input: DataStorage, context: __SerdeContext): any => {
57915791
if (input[_M] != null) {
57925792
entries[_M] = input[_M];
57935793
}
5794+
if (input[_Mi] != null) {
5795+
entries[_Mi] = input[_Mi];
5796+
}
57945797
if (input[_U] != null) {
57955798
entries[_U] = input[_U];
57965799
}
@@ -6567,6 +6570,9 @@ const se_ECPUPerSecond = (input: ECPUPerSecond, context: __SerdeContext): any =>
65676570
if (input[_M] != null) {
65686571
entries[_M] = input[_M];
65696572
}
6573+
if (input[_Mi] != null) {
6574+
entries[_Mi] = input[_Mi];
6575+
}
65706576
return entries;
65716577
};
65726578

@@ -9095,6 +9101,9 @@ const de_DataStorage = (output: any, context: __SerdeContext): DataStorage => {
90959101
if (output[_M] != null) {
90969102
contents[_M] = __strictParseInt32(output[_M]) as number;
90979103
}
9104+
if (output[_Mi] != null) {
9105+
contents[_Mi] = __strictParseInt32(output[_Mi]) as number;
9106+
}
90989107
if (output[_U] != null) {
90999108
contents[_U] = __expectString(output[_U]);
91009109
}
@@ -9417,6 +9426,9 @@ const de_ECPUPerSecond = (output: any, context: __SerdeContext): ECPUPerSecond =
94179426
if (output[_M] != null) {
94189427
contents[_M] = __strictParseInt32(output[_M]) as number;
94199428
}
9429+
if (output[_Mi] != null) {
9430+
contents[_Mi] = __strictParseInt32(output[_Mi]) as number;
9431+
}
94209432
return contents;
94219433
};
94229434

@@ -12401,6 +12413,7 @@ const _MUG = "ModifyUserGroup";
1240112413
const _Ma = "Marker";
1240212414
const _Me = "Message";
1240312415
const _Mem = "Members";
12416+
const _Mi = "Minimum";
1240412417
const _N = "Name";
1240512418
const _NAZ = "NewAvailabilityZones";
1240612419
const _NC = "NotificationConfiguration";

codegen/sdk-codegen/aws-models/elasticache.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5122,9 +5122,13 @@
51225122
"Maximum": {
51235123
"target": "com.amazonaws.elasticache#IntegerOptional",
51245124
"traits": {
5125-
"smithy.api#clientOptional": {},
5126-
"smithy.api#documentation": "<p>The upper limit for data storage the cache is set to use.</p>",
5127-
"smithy.api#required": {}
5125+
"smithy.api#documentation": "<p>The upper limit for data storage the cache is set to use.</p>"
5126+
}
5127+
},
5128+
"Minimum": {
5129+
"target": "com.amazonaws.elasticache#IntegerOptional",
5130+
"traits": {
5131+
"smithy.api#documentation": "<p>The lower limit for data storage the cache is set to use.</p>"
51285132
}
51295133
},
51305134
"Unit": {
@@ -9704,9 +9708,13 @@
97049708
"Maximum": {
97059709
"target": "com.amazonaws.elasticache#IntegerOptional",
97069710
"traits": {
9707-
"smithy.api#clientOptional": {},
9708-
"smithy.api#documentation": "<p>The configuration for the maximum number of ECPUs the cache can consume per second.</p>",
9709-
"smithy.api#required": {}
9711+
"smithy.api#documentation": "<p>The configuration for the maximum number of ECPUs the cache can consume per second.</p>"
9712+
}
9713+
},
9714+
"Minimum": {
9715+
"target": "com.amazonaws.elasticache#IntegerOptional",
9716+
"traits": {
9717+
"smithy.api#documentation": "<p>The configuration for the minimum number of ECPUs the cache should be able consume per second.</p>"
97109718
}
97119719
}
97129720
},

0 commit comments

Comments
 (0)