Skip to content

Commit

Permalink
feat(client-elasticache): Added minimum capacity to Amazon ElastiCach…
Browse files Browse the repository at this point in the history
…e Serverless. This feature allows customer to ensure minimum capacity even without current load
  • Loading branch information
awstools committed Mar 27, 2024
1 parent 9996a39 commit 86e40c9
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ export interface CreateServerlessCacheCommandOutput extends CreateServerlessCach
* MajorEngineVersion: "STRING_VALUE",
* CacheUsageLimits: { // CacheUsageLimits
* DataStorage: { // DataStorage
* Maximum: Number("int"), // required
* Maximum: Number("int"),
* Minimum: Number("int"),
* Unit: "GB", // required
* },
* ECPUPerSecond: { // ECPUPerSecond
* Maximum: Number("int"), // required
* Maximum: Number("int"),
* Minimum: Number("int"),
* },
* },
* KmsKeyId: "STRING_VALUE",
Expand Down Expand Up @@ -81,11 +83,13 @@ export interface CreateServerlessCacheCommandOutput extends CreateServerlessCach
* // FullEngineVersion: "STRING_VALUE",
* // CacheUsageLimits: { // CacheUsageLimits
* // DataStorage: { // DataStorage
* // Maximum: Number("int"), // required
* // Maximum: Number("int"),
* // Minimum: Number("int"),
* // Unit: "GB", // required
* // },
* // ECPUPerSecond: { // ECPUPerSecond
* // Maximum: Number("int"), // required
* // Maximum: Number("int"),
* // Minimum: Number("int"),
* // },
* // },
* // KmsKeyId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ export interface DeleteServerlessCacheCommandOutput extends DeleteServerlessCach
* // FullEngineVersion: "STRING_VALUE",
* // CacheUsageLimits: { // CacheUsageLimits
* // DataStorage: { // DataStorage
* // Maximum: Number("int"), // required
* // Maximum: Number("int"),
* // Minimum: Number("int"),
* // Unit: "GB", // required
* // },
* // ECPUPerSecond: { // ECPUPerSecond
* // Maximum: Number("int"), // required
* // Maximum: Number("int"),
* // Minimum: Number("int"),
* // },
* // },
* // KmsKeyId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ export interface DescribeServerlessCachesCommandOutput extends DescribeServerles
* // FullEngineVersion: "STRING_VALUE",
* // CacheUsageLimits: { // CacheUsageLimits
* // DataStorage: { // DataStorage
* // Maximum: Number("int"), // required
* // Maximum: Number("int"),
* // Minimum: Number("int"),
* // Unit: "GB", // required
* // },
* // ECPUPerSecond: { // ECPUPerSecond
* // Maximum: Number("int"), // required
* // Maximum: Number("int"),
* // Minimum: Number("int"),
* // },
* // },
* // KmsKeyId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ export interface ModifyServerlessCacheCommandOutput extends ModifyServerlessCach
* Description: "STRING_VALUE",
* CacheUsageLimits: { // CacheUsageLimits
* DataStorage: { // DataStorage
* Maximum: Number("int"), // required
* Maximum: Number("int"),
* Minimum: Number("int"),
* Unit: "GB", // required
* },
* ECPUPerSecond: { // ECPUPerSecond
* Maximum: Number("int"), // required
* Maximum: Number("int"),
* Minimum: Number("int"),
* },
* },
* RemoveUserGroup: true || false,
Expand All @@ -67,11 +69,13 @@ export interface ModifyServerlessCacheCommandOutput extends ModifyServerlessCach
* // FullEngineVersion: "STRING_VALUE",
* // CacheUsageLimits: { // CacheUsageLimits
* // DataStorage: { // DataStorage
* // Maximum: Number("int"), // required
* // Maximum: Number("int"),
* // Minimum: Number("int"),
* // Unit: "GB", // required
* // },
* // ECPUPerSecond: { // ECPUPerSecond
* // Maximum: Number("int"), // required
* // Maximum: Number("int"),
* // Minimum: Number("int"),
* // },
* // },
* // KmsKeyId: "STRING_VALUE",
Expand Down
16 changes: 14 additions & 2 deletions clients/client-elasticache/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5704,7 +5704,13 @@ export interface DataStorage {
* <p>The upper limit for data storage the cache is set to use.</p>
* @public
*/
Maximum: number | undefined;
Maximum?: number;

/**
* <p>The lower limit for data storage the cache is set to use.</p>
* @public
*/
Minimum?: number;

/**
* <p>The unit that the storage is measured in, in GB.</p>
Expand All @@ -5722,7 +5728,13 @@ export interface ECPUPerSecond {
* <p>The configuration for the maximum number of ECPUs the cache can consume per second.</p>
* @public
*/
Maximum: number | undefined;
Maximum?: number;

/**
* <p>The configuration for the minimum number of ECPUs the cache should be able consume per second.</p>
* @public
*/
Minimum?: number;
}

/**
Expand Down
13 changes: 13 additions & 0 deletions clients/client-elasticache/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5791,6 +5791,9 @@ const se_DataStorage = (input: DataStorage, context: __SerdeContext): any => {
if (input[_M] != null) {
entries[_M] = input[_M];
}
if (input[_Mi] != null) {
entries[_Mi] = input[_Mi];
}
if (input[_U] != null) {
entries[_U] = input[_U];
}
Expand Down Expand Up @@ -6567,6 +6570,9 @@ const se_ECPUPerSecond = (input: ECPUPerSecond, context: __SerdeContext): any =>
if (input[_M] != null) {
entries[_M] = input[_M];
}
if (input[_Mi] != null) {
entries[_Mi] = input[_Mi];
}
return entries;
};

Expand Down Expand Up @@ -9095,6 +9101,9 @@ const de_DataStorage = (output: any, context: __SerdeContext): DataStorage => {
if (output[_M] != null) {
contents[_M] = __strictParseInt32(output[_M]) as number;
}
if (output[_Mi] != null) {
contents[_Mi] = __strictParseInt32(output[_Mi]) as number;
}
if (output[_U] != null) {
contents[_U] = __expectString(output[_U]);
}
Expand Down Expand Up @@ -9417,6 +9426,9 @@ const de_ECPUPerSecond = (output: any, context: __SerdeContext): ECPUPerSecond =
if (output[_M] != null) {
contents[_M] = __strictParseInt32(output[_M]) as number;
}
if (output[_Mi] != null) {
contents[_Mi] = __strictParseInt32(output[_Mi]) as number;
}
return contents;
};

Expand Down Expand Up @@ -12401,6 +12413,7 @@ const _MUG = "ModifyUserGroup";
const _Ma = "Marker";
const _Me = "Message";
const _Mem = "Members";
const _Mi = "Minimum";
const _N = "Name";
const _NAZ = "NewAvailabilityZones";
const _NC = "NotificationConfiguration";
Expand Down
20 changes: 14 additions & 6 deletions codegen/sdk-codegen/aws-models/elasticache.json
Original file line number Diff line number Diff line change
Expand Up @@ -5122,9 +5122,13 @@
"Maximum": {
"target": "com.amazonaws.elasticache#IntegerOptional",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The upper limit for data storage the cache is set to use.</p>",
"smithy.api#required": {}
"smithy.api#documentation": "<p>The upper limit for data storage the cache is set to use.</p>"
}
},
"Minimum": {
"target": "com.amazonaws.elasticache#IntegerOptional",
"traits": {
"smithy.api#documentation": "<p>The lower limit for data storage the cache is set to use.</p>"
}
},
"Unit": {
Expand Down Expand Up @@ -9704,9 +9708,13 @@
"Maximum": {
"target": "com.amazonaws.elasticache#IntegerOptional",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The configuration for the maximum number of ECPUs the cache can consume per second.</p>",
"smithy.api#required": {}
"smithy.api#documentation": "<p>The configuration for the maximum number of ECPUs the cache can consume per second.</p>"
}
},
"Minimum": {
"target": "com.amazonaws.elasticache#IntegerOptional",
"traits": {
"smithy.api#documentation": "<p>The configuration for the minimum number of ECPUs the cache should be able consume per second.</p>"
}
}
},
Expand Down

0 comments on commit 86e40c9

Please sign in to comment.