@@ -231,21 +231,25 @@ export interface Endpoint {
231
231
/** Name of the endpoint */
232
232
name ?: string
233
233
/**
234
- * Private network details.
234
+ * Private network details. One at the most per RDB instance or read replica
235
+ * (an RDB instance and its read replica can have different private networks).
236
+ * Cannot be updated (has to be deleted and recreated).
235
237
*
236
238
* One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
237
239
* 'directAccess' could be set.
238
240
*/
239
241
privateNetwork ?: EndpointPrivateNetworkDetails
240
242
/**
241
- * Load balancer details.
243
+ * Load balancer details. Public endpoint for RDB instances which is
244
+ * systematically present. One per RDB instance.
242
245
*
243
246
* One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
244
247
* 'directAccess' could be set.
245
248
*/
246
249
loadBalancer ?: EndpointLoadBalancerDetails
247
250
/**
248
- * Direct access details.
251
+ * Direct access details. Public endpoint reserved for read replicas. One per
252
+ * read replica.
249
253
*
250
254
* One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
251
255
* 'directAccess' could be set.
@@ -276,14 +280,17 @@ export interface EndpointPrivateNetworkDetails {
276
280
/** Endpoint spec */
277
281
export interface EndpointSpec {
278
282
/**
279
- * Load balancer endpoint specifications.
283
+ * Load balancer endpoint specifications. Public endpoint for RDB instances
284
+ * which is systematically present. One per RDB instance.
280
285
*
281
286
* One-of ('spec'): at most one of 'loadBalancer', 'privateNetwork' could be
282
287
* set.
283
288
*/
284
289
loadBalancer ?: EndpointSpecLoadBalancer
285
290
/**
286
- * Private network endpoint specifications.
291
+ * Private network endpoint specifications. One at the most per RDB instance
292
+ * or read replica (an RDB instance and its read replica can have different
293
+ * private networks). Cannot be updated (has to be deleted and recreated).
287
294
*
288
295
* One-of ('spec'): at most one of 'loadBalancer', 'privateNetwork' could be
289
296
* set.
@@ -617,14 +624,16 @@ export interface ReadReplica {
617
624
/** Read replica endpoint spec */
618
625
export interface ReadReplicaEndpointSpec {
619
626
/**
620
- * Direct access endpoint specifications.
627
+ * Direct access endpoint specifications. Public endpoint reserved for read
628
+ * replicas. One per read replica.
621
629
*
622
630
* One-of ('spec'): at most one of 'directAccess', 'privateNetwork' could be
623
631
* set.
624
632
*/
625
633
directAccess ?: ReadReplicaEndpointSpecDirectAccess
626
634
/**
627
- * Private network endpoint specifications.
635
+ * Private network endpoint specifications. One at the most per read replica.
636
+ * Cannot be updated (has to be deleted and recreated).
628
637
*
629
638
* One-of ('spec'): at most one of 'directAccess', 'privateNetwork' could be
630
639
* set.
@@ -913,7 +922,10 @@ export type CreateInstanceRequest = {
913
922
volumeType : VolumeType
914
923
/** Volume size when volume_type is not lssd */
915
924
volumeSize : number
916
- /** One or multiple EndpointSpec used to expose your database instance */
925
+ /**
926
+ * One or multiple EndpointSpec used to expose your database instance. A
927
+ * load_balancer public endpoint is systematically created
928
+ */
917
929
initEndpoints ?: Array < EndpointSpec >
918
930
/** Store logical backups in the same region as the database instance */
919
931
backupSameRegion : boolean
0 commit comments