modify_db_cluster_endpoint
async
¶
modify_db_cluster_endpoint(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_cluster_endpoint_identifier: Optional[String] = None,
endpoint_type: Optional[String] = None,
static_members: Optional[StringList] = None,
excluded_members: Optional[StringList] = None,
) -> DBClusterEndpoint
Modifies the properties of an endpoint in an Amazon Aurora DB cluster.
This operation only applies to Aurora DB clusters.
Parameters:
-
db_cluster_endpoint_identifier(Optional[String], default:None) –The identifier of the endpoint to modify. This parameter is stored as a lowercase string.
-
endpoint_type(Optional[String], default:None) –The type of the endpoint. One of:
READER,WRITER,ANY. -
static_members(Optional[StringList], default:None) –List of DB instance identifiers that are part of the custom endpoint group.
-
excluded_members(Optional[StringList], default:None) –List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
Raises:
-
DBClusterEndpointNotFoundFault–The specified custom endpoint doesn't exist.
-
DBInstanceNotFoundFault–DBInstanceIdentifierdoesn't refer to an existing DB instance. -
InvalidDBClusterEndpointStateFault–The requested operation can't be performed on the endpoint while the endpoint is in this state.
-
InvalidDBClusterStateFault–The requested operation can't be performed while the cluster is in this state.
-
InvalidDBInstanceStateFault–The DB instance isn't in a valid state.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To modify a custom DB cluster endpoint The following example modifies the specified custom DB cluster endpoint.
>>> await client.modify_db_cluster_endpoint(db_cluster_endpoint_identifier='mycustomendpoint', static_members=['dbinstance1', 'dbinstance2', 'dbinstance3'])
Source code in docs_src/capo_rds/_services/async_rds.py
11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 | |