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
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 | |