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
10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 | |