create_global_cluster
async
¶
create_global_cluster(
*,
config_overrides: Optional[AsyncDocDBClientConfig] = None,
global_cluster_identifier: Optional[GlobalClusterIdentifier] = None,
source_db_cluster_identifier: Optional[String] = None,
engine: Optional[String] = None,
engine_version: Optional[String] = None,
deletion_protection: Optional[BooleanOptional] = None,
database_name: Optional[String] = None,
storage_encrypted: Optional[BooleanOptional] = None,
) -> CreateGlobalClusterResult
Creates an Amazon DocumentDB global cluster that can span multiple multiple Amazon Web Services Regions. The global cluster contains one primary cluster with read-write capability, and up-to 10 read-only secondary clusters. Global clusters uses storage-based fast replication across regions with latencies less than one second, using dedicated infrastructure with no impact to your workload’s performance.
You can create a global cluster that is initially empty, and then add a primary and a secondary to it. Or you can specify an existing cluster during the create operation, and this cluster becomes the primary of the global cluster.
This action only applies to Amazon DocumentDB clusters.
Parameters:
-
global_cluster_identifier(Optional[GlobalClusterIdentifier], default:None) –The cluster identifier of the new global cluster.
-
source_db_cluster_identifier(Optional[String], default:None) –The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is optional.
-
engine(Optional[String], default:None) –The name of the database engine to be used for this cluster.
-
engine_version(Optional[String], default:None) –The engine version of the global cluster.
-
deletion_protection(Optional[BooleanOptional], default:None) –The deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion protection is enabled.
-
database_name(Optional[String], default:None) –The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon DocumentDB will not create a database in the global cluster you are creating.
-
storage_encrypted(Optional[BooleanOptional], default:None) –The storage encryption setting for the new global cluster.
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing cluster. -
GlobalClusterAlreadyExistsFault–The
GlobalClusterIdentifieralready exists. Choose a new global cluster identifier (unique name) to create a new global cluster. -
GlobalClusterQuotaExceededFault–The number of global clusters for this account is already at the maximum allowed.
-
InvalidDBClusterStateFault–The cluster isn't in a valid state.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_docdb/_services/async_doc_db.py
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 | |