Skip to main content

db_cluster_endpoints

Creates, updates, deletes, gets or lists a db_cluster_endpoints resource.

Overview

Namedb_cluster_endpoints
TypeResource
Idaws.rds.db_cluster_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
custom_endpoint_typestringThe type associated with a custom endpoint. One of: READER, WRITER, ANY.
db_cluster_endpoint_arnstringThe Amazon Resource Name (ARN) for the endpoint.
db_cluster_endpoint_identifierstringThe identifier associated with the endpoint. This parameter is stored as a lowercase string.
db_cluster_endpoint_resource_identifierstringA unique system-generated identifier for an endpoint. It remains the same for the whole life of the endpoint.
db_cluster_identifierstringThe DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.
endpointstringThe DNS address of the endpoint.
endpoint_typestringThe type of the endpoint. One of: READER, WRITER, CUSTOM.
excluded_membersstringList 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.
static_membersstringList of DB instance identifiers that are part of the custom endpoint group.
statusstringThe current status of the endpoint. One of: creating, available, deleting, inactive, modifying. The inactive state applies to an endpoint that can't be used for a certain kind of cluster, such as a writer endpoint for a read-only secondary cluster in a global database.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_db_cluster_endpointsselectregionDBClusterIdentifier, DBClusterEndpointIdentifier, Filters, MaxRecords, MarkerReturns information about endpoints for an Amazon Aurora DB cluster. This action only applies to Aurora DB clusters.
create_db_cluster_endpointinsertDBClusterIdentifier, DBClusterEndpointIdentifier, EndpointType, regionStaticMembers, ExcludedMembers, TagsCreates a new custom endpoint and associates it with an Amazon Aurora DB cluster. This action applies only to Aurora DB clusters.
modify_db_cluster_endpointupdateDBClusterEndpointIdentifier, regionEndpointType, StaticMembers, ExcludedMembersModifies the properties of an endpoint in an Amazon Aurora DB cluster. This operation only applies to Aurora DB clusters.
delete_db_cluster_endpointdeleteDBClusterEndpointIdentifier, regionDeletes a custom endpoint and removes it from an Amazon Aurora DB cluster. This action only applies to Aurora DB clusters.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
DBClusterEndpointIdentifierstringThe identifier associated with the custom endpoint. This parameter is stored as a lowercase string.
DBClusterIdentifierstringThe DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.
EndpointTypestringThe type of the endpoint, one of: READER, WRITER, ANY.
regionstringAWS region (default: us-east-1)
DBClusterEndpointIdentifierstringThe identifier of the endpoint to describe. This parameter is stored as a lowercase string.
DBClusterIdentifierstringThe DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.
EndpointTypestringThe type of the endpoint. One of: READER, WRITER, ANY.
ExcludedMembersarrayList 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.
FiltersarrayA 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,.... Name can be one of: db-cluster-endpoint-type, db-cluster-endpoint-custom-type, db-cluster-endpoint-id, db-cluster-endpoint-status. Values for the db-cluster-endpoint-type filter can be one or more of: reader, writer, custom. Values for the db-cluster-endpoint-custom-type filter can be one or more of: reader, any. Values for the db-cluster-endpoint-status filter can be one or more of: available, creating, deleting, inactive, modifying.
MarkerstringAn optional pagination token provided by a previous DescribeDBClusterEndpoints request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
MaxRecordsintegerThe maximum number of records to include in the response. If more records exist than the specified MaxRecords value, 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.
StaticMembersarrayList of DB instance identifiers that are part of the custom endpoint group.
TagsarrayThe tags to be assigned to the Amazon RDS resource.

SELECT examples

Returns information about endpoints for an Amazon Aurora DB cluster. This action only applies to Aurora DB clusters.

SELECT
custom_endpoint_type,
db_cluster_endpoint_arn,
db_cluster_endpoint_identifier,
db_cluster_endpoint_resource_identifier,
db_cluster_identifier,
endpoint,
endpoint_type,
excluded_members,
static_members,
status
FROM aws.rds.db_cluster_endpoints
WHERE region = '{{ region }}' -- required
AND DBClusterIdentifier = '{{ DBClusterIdentifier }}'
AND DBClusterEndpointIdentifier = '{{ DBClusterEndpointIdentifier }}'
AND Filters = '{{ Filters }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;

INSERT examples

Creates a new custom endpoint and associates it with an Amazon Aurora DB cluster. This action applies only to Aurora DB clusters.

INSERT INTO aws.rds.db_cluster_endpoints (
DBClusterIdentifier,
DBClusterEndpointIdentifier,
EndpointType,
region,
StaticMembers,
ExcludedMembers,
Tags
)
SELECT
'{{ DBClusterIdentifier }}',
'{{ DBClusterEndpointIdentifier }}',
'{{ EndpointType }}',
'{{ region }}',
'{{ StaticMembers }}',
'{{ ExcludedMembers }}',
'{{ Tags }}'
RETURNING
custom_endpoint_type,
db_cluster_endpoint_arn,
db_cluster_endpoint_identifier,
db_cluster_endpoint_resource_identifier,
db_cluster_identifier,
endpoint,
endpoint_type,
excluded_members,
static_members,
status
;

UPDATE examples

Modifies the properties of an endpoint in an Amazon Aurora DB cluster. This operation only applies to Aurora DB clusters.

UPDATE aws.rds.db_cluster_endpoints
SET
-- No updatable properties
WHERE
DBClusterEndpointIdentifier = '{{ DBClusterEndpointIdentifier }}' --required
AND region = '{{ region }}' --required
AND EndpointType = '{{ EndpointType}}'
AND StaticMembers = '{{ StaticMembers}}'
AND ExcludedMembers = '{{ ExcludedMembers}}'
RETURNING
custom_endpoint_type,
db_cluster_endpoint_arn,
db_cluster_endpoint_identifier,
db_cluster_endpoint_resource_identifier,
db_cluster_identifier,
endpoint,
endpoint_type,
excluded_members,
static_members,
status;

DELETE examples

Deletes a custom endpoint and removes it from an Amazon Aurora DB cluster. This action only applies to Aurora DB clusters.

DELETE FROM aws.rds.db_cluster_endpoints
WHERE DBClusterEndpointIdentifier = '{{ DBClusterEndpointIdentifier }}' --required
AND region = '{{ region }}' --required
;