Skip to content

Commit 9ae8931

Browse files
Adds 'allocatedStorage' parameter to UpdateDbInstance API that allows increasing the database instance storage size and 'dbStorageType' parameter to UpdateDbInstance API that allows changing the storage type of the database instance
1 parent 7afe744 commit 9ae8931

File tree

6 files changed

+69
-1
lines changed

6 files changed

+69
-1
lines changed

generator/ServiceModels/timestream-influxdb/timestream-influxdb-2023-01-27.api.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,9 @@
941941
"dbParameterGroupIdentifier":{"shape":"DbParameterGroupIdentifier"},
942942
"port":{"shape":"Port"},
943943
"dbInstanceType":{"shape":"DbInstanceType"},
944-
"deploymentType":{"shape":"DeploymentType"}
944+
"deploymentType":{"shape":"DeploymentType"},
945+
"dbStorageType":{"shape":"DbStorageType"},
946+
"allocatedStorage":{"shape":"AllocatedStorage"}
945947
}
946948
},
947949
"UpdateDbInstanceOutput":{

generator/ServiceModels/timestream-influxdb/timestream-influxdb-2023-01-27.docs.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"DbInstanceSummary$allocatedStorage": "<p>The amount of storage to allocate for your DbStorageType in GiB (gibibytes).</p>",
2929
"DeleteDbInstanceOutput$allocatedStorage": "<p>The amount of storage allocated for your DB storage type (in gibibytes).</p>",
3030
"GetDbInstanceOutput$allocatedStorage": "<p>The amount of storage allocated for your DB storage type (in gibibytes).</p>",
31+
"UpdateDbInstanceInput$allocatedStorage": "<p>The amount of storage to allocate for your DB storage type (in gibibytes).</p>",
3132
"UpdateDbInstanceOutput$allocatedStorage": "<p>The amount of storage allocated for your DB storage type (in gibibytes).</p>"
3233
}
3334
},
@@ -204,6 +205,7 @@
204205
"DbInstanceSummary$dbStorageType": "<p>The storage type for your DB instance.</p>",
205206
"DeleteDbInstanceOutput$dbStorageType": "<p>The Timestream for InfluxDB DB storage type that InfluxDB stores data on.</p>",
206207
"GetDbInstanceOutput$dbStorageType": "<p>The Timestream for InfluxDB DB storage type that InfluxDB stores data on.</p>",
208+
"UpdateDbInstanceInput$dbStorageType": "<p>The Timestream for InfluxDB DB storage type that InfluxDB stores data on.</p>",
207209
"UpdateDbInstanceOutput$dbStorageType": "<p>The Timestream for InfluxDB DB storage type that InfluxDB stores data on.</p>"
208210
}
209211
},

generator/ServiceModels/timestream-influxdb/timestream-influxdb-2023-01-27.normal.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,14 @@
14781478
"deploymentType":{
14791479
"shape":"DeploymentType",
14801480
"documentation":"<p>Specifies whether the DB instance will be deployed as a standalone instance or with a Multi-AZ standby for high availability.</p>"
1481+
},
1482+
"dbStorageType":{
1483+
"shape":"DbStorageType",
1484+
"documentation":"<p>The Timestream for InfluxDB DB storage type that InfluxDB stores data on.</p>"
1485+
},
1486+
"allocatedStorage":{
1487+
"shape":"AllocatedStorage",
1488+
"documentation":"<p>The amount of storage to allocate for your DB storage type (in gibibytes).</p>"
14811489
}
14821490
}
14831491
},

sdk/code-analysis/ServiceAnalysis/TimestreamInfluxDB/Generated/PropertyValueRules.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@
255255
<max>1011</max>
256256
<pattern>arn:aws[a-z\-]*:timestream\-influxdb:[a-z0-9\-]+:[0-9]{12}:(db\-instance|db\-parameter\-group)/[a-zA-Z0-9]{3,64}</pattern>
257257
</property-value-rule>
258+
<property-value-rule>
259+
<property>Amazon.TimestreamInfluxDB.Model.UpdateDbInstanceRequest.AllocatedStorage</property>
260+
<min>20</min>
261+
<max>16384</max>
262+
</property-value-rule>
258263
<property-value-rule>
259264
<property>Amazon.TimestreamInfluxDB.Model.UpdateDbInstanceRequest.DbParameterGroupIdentifier</property>
260265
<min>3</min>

sdk/src/Services/TimestreamInfluxDB/Generated/Model/Internal/MarshallTransformations/UpdateDbInstanceRequestMarshaller.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ public IRequest Marshall(UpdateDbInstanceRequest publicRequest)
6969
writer.Validate = false;
7070
writer.WriteObjectStart();
7171
var context = new JsonMarshallerContext(request, writer);
72+
if(publicRequest.IsSetAllocatedStorage())
73+
{
74+
context.Writer.WritePropertyName("allocatedStorage");
75+
context.Writer.Write(publicRequest.AllocatedStorage);
76+
}
77+
7278
if(publicRequest.IsSetDbInstanceType())
7379
{
7480
context.Writer.WritePropertyName("dbInstanceType");
@@ -81,6 +87,12 @@ public IRequest Marshall(UpdateDbInstanceRequest publicRequest)
8187
context.Writer.Write(publicRequest.DbParameterGroupIdentifier);
8288
}
8389

90+
if(publicRequest.IsSetDbStorageType())
91+
{
92+
context.Writer.WritePropertyName("dbStorageType");
93+
context.Writer.Write(publicRequest.DbStorageType);
94+
}
95+
8496
if(publicRequest.IsSetDeploymentType())
8597
{
8698
context.Writer.WritePropertyName("deploymentType");

sdk/src/Services/TimestreamInfluxDB/Generated/Model/UpdateDbInstanceRequest.cs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,34 @@ namespace Amazon.TimestreamInfluxDB.Model
3535
/// </summary>
3636
public partial class UpdateDbInstanceRequest : AmazonTimestreamInfluxDBRequest
3737
{
38+
private int? _allocatedStorage;
3839
private DbInstanceType _dbInstanceType;
3940
private string _dbParameterGroupIdentifier;
41+
private DbStorageType _dbStorageType;
4042
private DeploymentType _deploymentType;
4143
private string _identifier;
4244
private LogDeliveryConfiguration _logDeliveryConfiguration;
4345
private int? _port;
4446

47+
/// <summary>
48+
/// Gets and sets the property AllocatedStorage.
49+
/// <para>
50+
/// The amount of storage to allocate for your DB storage type (in gibibytes).
51+
/// </para>
52+
/// </summary>
53+
[AWSProperty(Min=20, Max=16384)]
54+
public int AllocatedStorage
55+
{
56+
get { return this._allocatedStorage.GetValueOrDefault(); }
57+
set { this._allocatedStorage = value; }
58+
}
59+
60+
// Check to see if AllocatedStorage property is set
61+
internal bool IsSetAllocatedStorage()
62+
{
63+
return this._allocatedStorage.HasValue;
64+
}
65+
4566
/// <summary>
4667
/// Gets and sets the property DbInstanceType.
4768
/// <para>
@@ -81,6 +102,24 @@ internal bool IsSetDbParameterGroupIdentifier()
81102
return this._dbParameterGroupIdentifier != null;
82103
}
83104

105+
/// <summary>
106+
/// Gets and sets the property DbStorageType.
107+
/// <para>
108+
/// The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
109+
/// </para>
110+
/// </summary>
111+
public DbStorageType DbStorageType
112+
{
113+
get { return this._dbStorageType; }
114+
set { this._dbStorageType = value; }
115+
}
116+
117+
// Check to see if DbStorageType property is set
118+
internal bool IsSetDbStorageType()
119+
{
120+
return this._dbStorageType != null;
121+
}
122+
84123
/// <summary>
85124
/// Gets and sets the property DeploymentType.
86125
/// <para>

0 commit comments

Comments
 (0)