Skip to content

Commit de29c92

Browse files
author
awstools
committed
feat(client-docdb): Amazon DocumentDB updates for new cluster storage configuration: Amazon DocumentDB I/O-Optimized.
1 parent 740d241 commit de29c92

17 files changed

+164
-0
lines changed

clients/client-docdb/src/commands/CopyDBClusterSnapshotCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export interface CopyDBClusterSnapshotCommandOutput extends CopyDBClusterSnapsho
9090
* // KmsKeyId: "STRING_VALUE",
9191
* // DBClusterSnapshotArn: "STRING_VALUE",
9292
* // SourceDBClusterSnapshotArn: "STRING_VALUE",
93+
* // StorageType: "STRING_VALUE",
9394
* // },
9495
* // };
9596
*

clients/client-docdb/src/commands/CreateDBClusterCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M
7676
* ],
7777
* DeletionProtection: true || false,
7878
* GlobalClusterIdentifier: "STRING_VALUE",
79+
* StorageType: "STRING_VALUE",
7980
* };
8081
* const command = new CreateDBClusterCommand(input);
8182
* const response = await client.send(command);
@@ -136,6 +137,7 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M
136137
* // "STRING_VALUE",
137138
* // ],
138139
* // DeletionProtection: true || false,
140+
* // StorageType: "STRING_VALUE",
139141
* // },
140142
* // };
141143
*

clients/client-docdb/src/commands/CreateDBClusterSnapshotCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export interface CreateDBClusterSnapshotCommandOutput extends CreateDBClusterSna
7777
* // KmsKeyId: "STRING_VALUE",
7878
* // DBClusterSnapshotArn: "STRING_VALUE",
7979
* // SourceDBClusterSnapshotArn: "STRING_VALUE",
80+
* // StorageType: "STRING_VALUE",
8081
* // },
8182
* // };
8283
*

clients/client-docdb/src/commands/DeleteDBClusterCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export interface DeleteDBClusterCommandOutput extends DeleteDBClusterResult, __M
109109
* // "STRING_VALUE",
110110
* // ],
111111
* // DeletionProtection: true || false,
112+
* // StorageType: "STRING_VALUE",
112113
* // },
113114
* // };
114115
*

clients/client-docdb/src/commands/DeleteDBClusterSnapshotCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export interface DeleteDBClusterSnapshotCommandOutput extends DeleteDBClusterSna
7373
* // KmsKeyId: "STRING_VALUE",
7474
* // DBClusterSnapshotArn: "STRING_VALUE",
7575
* // SourceDBClusterSnapshotArn: "STRING_VALUE",
76+
* // StorageType: "STRING_VALUE",
7677
* // },
7778
* // };
7879
*

clients/client-docdb/src/commands/DescribeDBClusterSnapshotsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export interface DescribeDBClusterSnapshotsCommandOutput extends DBClusterSnapsh
8686
* // KmsKeyId: "STRING_VALUE",
8787
* // DBClusterSnapshotArn: "STRING_VALUE",
8888
* // SourceDBClusterSnapshotArn: "STRING_VALUE",
89+
* // StorageType: "STRING_VALUE",
8990
* // },
9091
* // ],
9192
* // };

clients/client-docdb/src/commands/DescribeDBClustersCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export interface DescribeDBClustersCommandOutput extends DBClusterMessage, __Met
123123
* // "STRING_VALUE",
124124
* // ],
125125
* // DeletionProtection: true || false,
126+
* // StorageType: "STRING_VALUE",
126127
* // },
127128
* // ],
128129
* // };

clients/client-docdb/src/commands/DescribeOrderableDBInstanceOptionsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export interface DescribeOrderableDBInstanceOptionsCommandOutput
8181
* // },
8282
* // ],
8383
* // Vpc: true || false,
84+
* // StorageType: "STRING_VALUE",
8485
* // },
8586
* // ],
8687
* // Marker: "STRING_VALUE",

clients/client-docdb/src/commands/FailoverDBClusterCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export interface FailoverDBClusterCommandOutput extends FailoverDBClusterResult,
109109
* // "STRING_VALUE",
110110
* // ],
111111
* // DeletionProtection: true || false,
112+
* // StorageType: "STRING_VALUE",
112113
* // },
113114
* // };
114115
*

clients/client-docdb/src/commands/ModifyDBClusterCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M
7070
* EngineVersion: "STRING_VALUE",
7171
* AllowMajorVersionUpgrade: true || false,
7272
* DeletionProtection: true || false,
73+
* StorageType: "STRING_VALUE",
7374
* };
7475
* const command = new ModifyDBClusterCommand(input);
7576
* const response = await client.send(command);
@@ -130,6 +131,7 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M
130131
* // "STRING_VALUE",
131132
* // ],
132133
* // DeletionProtection: true || false,
134+
* // StorageType: "STRING_VALUE",
133135
* // },
134136
* // };
135137
*

clients/client-docdb/src/commands/RestoreDBClusterFromSnapshotCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export interface RestoreDBClusterFromSnapshotCommandOutput
7373
* ],
7474
* DeletionProtection: true || false,
7575
* DBClusterParameterGroupName: "STRING_VALUE",
76+
* StorageType: "STRING_VALUE",
7677
* };
7778
* const command = new RestoreDBClusterFromSnapshotCommand(input);
7879
* const response = await client.send(command);
@@ -133,6 +134,7 @@ export interface RestoreDBClusterFromSnapshotCommandOutput
133134
* // "STRING_VALUE",
134135
* // ],
135136
* // DeletionProtection: true || false,
137+
* // StorageType: "STRING_VALUE",
136138
* // },
137139
* // };
138140
*

clients/client-docdb/src/commands/RestoreDBClusterToPointInTimeCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export interface RestoreDBClusterToPointInTimeCommandOutput
7575
* "STRING_VALUE",
7676
* ],
7777
* DeletionProtection: true || false,
78+
* StorageType: "STRING_VALUE",
7879
* };
7980
* const command = new RestoreDBClusterToPointInTimeCommand(input);
8081
* const response = await client.send(command);
@@ -135,6 +136,7 @@ export interface RestoreDBClusterToPointInTimeCommandOutput
135136
* // "STRING_VALUE",
136137
* // ],
137138
* // DeletionProtection: true || false,
139+
* // StorageType: "STRING_VALUE",
138140
* // },
139141
* // };
140142
*

clients/client-docdb/src/commands/StartDBClusterCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export interface StartDBClusterCommandOutput extends StartDBClusterResult, __Met
108108
* // "STRING_VALUE",
109109
* // ],
110110
* // DeletionProtection: true || false,
111+
* // StorageType: "STRING_VALUE",
111112
* // },
112113
* // };
113114
*

clients/client-docdb/src/commands/StopDBClusterCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export interface StopDBClusterCommandOutput extends StopDBClusterResult, __Metad
109109
* // "STRING_VALUE",
110110
* // ],
111111
* // DeletionProtection: true || false,
112+
* // StorageType: "STRING_VALUE",
112113
* // },
113114
* // };
114115
*

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

+83
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,18 @@ export interface DBClusterSnapshot {
858858
* the source cluster snapshot; otherwise, a null value.</p>
859859
*/
860860
SourceDBClusterSnapshotArn?: string;
861+
862+
/**
863+
* @public
864+
* <p>Storage type associated with your cluster snapshot </p>
865+
* <p>For information on storage types for Amazon DocumentDB clusters, see
866+
* Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p>
867+
* <p>Valid values for storage type - <code>standard | iopt1</code>
868+
* </p>
869+
* <p>Default value is <code>standard </code>
870+
* </p>
871+
*/
872+
StorageType?: string;
861873
}
862874

863875
/**
@@ -1194,6 +1206,22 @@ export interface CreateDBClusterMessage {
11941206
* <p>The cluster identifier of the new global cluster.</p>
11951207
*/
11961208
GlobalClusterIdentifier?: string;
1209+
1210+
/**
1211+
* @public
1212+
* <p>The storage type to associate with the DB cluster.</p>
1213+
* <p>For information on storage types for Amazon DocumentDB clusters, see
1214+
* Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p>
1215+
* <p>Valid values for storage type - <code>standard | iopt1</code>
1216+
* </p>
1217+
* <p>Default value is <code>standard </code>
1218+
* </p>
1219+
* <note>
1220+
* <p>When you create a DocumentDB DB cluster with the storage type set to <code>iopt1</code>, the storage type is returned
1221+
* in the response. The storage type isn't returned when you set it to <code>standard</code>.</p>
1222+
* </note>
1223+
*/
1224+
StorageType?: string;
11971225
}
11981226

11991227
/**
@@ -1493,6 +1521,19 @@ export interface DBCluster {
14931521
* protects clusters from being accidentally deleted.</p>
14941522
*/
14951523
DeletionProtection?: boolean;
1524+
1525+
/**
1526+
* @public
1527+
* <p>Storage type associated with your cluster</p>
1528+
* <p>Storage type associated with your cluster</p>
1529+
* <p>For information on storage types for Amazon DocumentDB clusters, see
1530+
* Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p>
1531+
* <p>Valid values for storage type - <code>standard | iopt1</code>
1532+
* </p>
1533+
* <p>Default value is <code>standard </code>
1534+
* </p>
1535+
*/
1536+
StorageType?: string;
14961537
}
14971538

14981539
/**
@@ -4851,6 +4892,12 @@ export interface OrderableDBInstanceOption {
48514892
* <p>Indicates whether an instance is in a virtual private cloud (VPC).</p>
48524893
*/
48534894
Vpc?: boolean;
4895+
4896+
/**
4897+
* @public
4898+
* <p>The storage type to associate with the DB cluster</p>
4899+
*/
4900+
StorageType?: string;
48544901
}
48554902

48564903
/**
@@ -5231,6 +5278,18 @@ export interface ModifyDBClusterMessage {
52315278
* protects clusters from being accidentally deleted.</p>
52325279
*/
52335280
DeletionProtection?: boolean;
5281+
5282+
/**
5283+
* @public
5284+
* <p>The storage type to associate with the DB cluster.</p>
5285+
* <p>For information on storage types for Amazon DocumentDB clusters, see
5286+
* Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p>
5287+
* <p>Valid values for storage type - <code>standard | iopt1</code>
5288+
* </p>
5289+
* <p>Default value is <code>standard </code>
5290+
* </p>
5291+
*/
5292+
StorageType?: string;
52345293
}
52355294

52365295
/**
@@ -6031,6 +6090,18 @@ export interface RestoreDBClusterFromSnapshotMessage {
60316090
* hyphens.</p>
60326091
*/
60336092
DBClusterParameterGroupName?: string;
6093+
6094+
/**
6095+
* @public
6096+
* <p>The storage type to associate with the DB cluster.</p>
6097+
* <p>For information on storage types for Amazon DocumentDB clusters, see
6098+
* Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p>
6099+
* <p>Valid values for storage type - <code>standard | iopt1</code>
6100+
* </p>
6101+
* <p>Default value is <code>standard </code>
6102+
* </p>
6103+
*/
6104+
StorageType?: string;
60346105
}
60356106

60366107
/**
@@ -6196,6 +6267,18 @@ export interface RestoreDBClusterToPointInTimeMessage {
61966267
* <p>Specifies whether this cluster can be deleted. If <code>DeletionProtection</code> is enabled, the cluster cannot be deleted unless it is modified and <code>DeletionProtection</code> is disabled. <code>DeletionProtection</code> protects clusters from being accidentally deleted.</p>
61976268
*/
61986269
DeletionProtection?: boolean;
6270+
6271+
/**
6272+
* @public
6273+
* <p>The storage type to associate with the DB cluster.</p>
6274+
* <p>For information on storage types for Amazon DocumentDB clusters, see
6275+
* Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p>
6276+
* <p>Valid values for storage type - <code>standard | iopt1</code>
6277+
* </p>
6278+
* <p>Default value is <code>standard </code>
6279+
* </p>
6280+
*/
6281+
StorageType?: string;
61996282
}
62006283

62016284
/**

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

+21
Original file line numberDiff line numberDiff line change
@@ -5322,6 +5322,9 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser
53225322
if (input.GlobalClusterIdentifier != null) {
53235323
entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
53245324
}
5325+
if (input.StorageType != null) {
5326+
entries["StorageType"] = input.StorageType;
5327+
}
53255328
return entries;
53265329
};
53275330

@@ -6327,6 +6330,9 @@ const se_ModifyDBClusterMessage = (input: ModifyDBClusterMessage, context: __Ser
63276330
if (input.DeletionProtection != null) {
63286331
entries["DeletionProtection"] = input.DeletionProtection;
63296332
}
6333+
if (input.StorageType != null) {
6334+
entries["StorageType"] = input.StorageType;
6335+
}
63306336
return entries;
63316337
};
63326338

@@ -6731,6 +6737,9 @@ const se_RestoreDBClusterFromSnapshotMessage = (
67316737
if (input.DBClusterParameterGroupName != null) {
67326738
entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
67336739
}
6740+
if (input.StorageType != null) {
6741+
entries["StorageType"] = input.StorageType;
6742+
}
67346743
return entries;
67356744
};
67366745

@@ -6799,6 +6808,9 @@ const se_RestoreDBClusterToPointInTimeMessage = (
67996808
if (input.DeletionProtection != null) {
68006809
entries["DeletionProtection"] = input.DeletionProtection;
68016810
}
6811+
if (input.StorageType != null) {
6812+
entries["StorageType"] = input.StorageType;
6813+
}
68026814
return entries;
68036815
};
68046816

@@ -7330,6 +7342,9 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => {
73307342
if (output["DeletionProtection"] !== undefined) {
73317343
contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]);
73327344
}
7345+
if (output["StorageType"] !== undefined) {
7346+
contents.StorageType = __expectString(output["StorageType"]);
7347+
}
73337348
return contents;
73347349
};
73357350

@@ -7610,6 +7625,9 @@ const de_DBClusterSnapshot = (output: any, context: __SerdeContext): DBClusterSn
76107625
if (output["SourceDBClusterSnapshotArn"] !== undefined) {
76117626
contents.SourceDBClusterSnapshotArn = __expectString(output["SourceDBClusterSnapshotArn"]);
76127627
}
7628+
if (output["StorageType"] !== undefined) {
7629+
contents.StorageType = __expectString(output["StorageType"]);
7630+
}
76137631
return contents;
76147632
};
76157633

@@ -9027,6 +9045,9 @@ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): Ord
90279045
if (output["Vpc"] !== undefined) {
90289046
contents.Vpc = __parseBoolean(output["Vpc"]);
90299047
}
9048+
if (output["StorageType"] !== undefined) {
9049+
contents.StorageType = __expectString(output["StorageType"]);
9050+
}
90309051
return contents;
90319052
};
90329053

0 commit comments

Comments
 (0)