describe_db_cluster_endpoints
¶
describe_db_cluster_endpoints(
*,
config_overrides: Optional[RDSClientConfig] = 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.
>>> 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/rds.py
5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 | |