describe_db_cluster_endpoints
async
¶
describe_db_cluster_endpoints(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_cluster_identifier: Optional[String] = None,
db_cluster_endpoint_identifier: Optional[String] = None,
filters: Optional[FilterList] = None,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
) -> DBClusterEndpointMessage
Returns information about endpoints for an Amazon Aurora DB cluster.
This action only applies to Aurora DB clusters.
Parameters:
-
db_cluster_identifier(Optional[String], default:None) –The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.
-
db_cluster_endpoint_identifier(Optional[String], default:None) –The identifier of the endpoint to describe. This parameter is stored as a lowercase string.
-
filters(Optional[FilterList], default:None) –A set of name-value pairs that define which endpoints to include in the output. The filters are specified as name-value pairs, in the format
Name=endpoint_type,Values=endpoint_type1,endpoint_type2,....Namecan be one of:db-cluster-endpoint-type,db-cluster-endpoint-custom-type,db-cluster-endpoint-id,db-cluster-endpoint-status.Valuesfor thedb-cluster-endpoint-typefilter can be one or more of:reader,writer,custom.Valuesfor thedb-cluster-endpoint-custom-typefilter can be one or more of:reader,any.Valuesfor thedb-cluster-endpoint-statusfilter can be one or more of:available,creating,deleting,inactive,modifying. -
max_records(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more records exist than the specified
MaxRecordsvalue, a pagination token called a marker is included in the response so you can retrieve the remaining results.Default: 100
Constraints: Minimum 20, maximum 100.
-
marker(Optional[String], default:None) –An optional pagination token provided by a previous
DescribeDBClusterEndpointsrequest. If this parameter is specified, the response includes only records beyond the marker, up to the value specified byMaxRecords.
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing DB cluster. -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe DB cluster endpoints The following example retrieves details for your DB cluster endpoints. The most common kinds of Aurora clusters have two endpoints. One endpoint has type WRITER. You can use this endpoint for all SQL statements. The other endpoint has type READER. You can use this endpoint only for SELECT and other read-only SQL statements.
>>> await client.describe_db_cluster_endpoints()
To describe DB cluster endpoints of a single DB cluster
The following example retrieves details for the DB cluster endpoints of a single specified DB cluster. Aurora Serverless clusters have only a single endpoint with a type of WRITER.
Source code in docs_src/capo_rds/_services/async_rds.py
5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 | |