modify_db_cluster_endpoint
¶
modify_db_cluster_endpoint(
*,
config_overrides: Optional[RDSClientConfig] = 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.
>>> client.modify_db_cluster_endpoint(db_cluster_endpoint_identifier='mycustomendpoint', static_members=['dbinstance1', 'dbinstance2', 'dbinstance3'])
Source code in docs_src/capo_rds/_services/rds.py
10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 | |