RDS / Client / describe_db_proxy_targets

describe_db_proxy_targets#

RDS.Client.describe_db_proxy_targets(**kwargs)#

Returns information about DBProxyTarget objects. This API supports pagination.

See also: AWS API Documentation

Request Syntax

response = client.describe_db_proxy_targets(
    DBProxyName='string',
    TargetGroupName='string',
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    Marker='string',
    MaxRecords=123
)
Parameters:
  • DBProxyName (string) –

    [REQUIRED]

    The identifier of the DBProxyTarget to describe.

  • TargetGroupName (string) – The identifier of the DBProxyTargetGroup to describe.

  • Filters (list) –

    This parameter is not currently supported.

    • (dict) –

      A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as IDs. The filters supported by a describe operation are documented with the describe operation.

      Note

      Currently, wildcards are not supported in filters.

      The following actions can be filtered:

      • DescribeDBClusterBacktracks

      • DescribeDBClusterEndpoints

      • DescribeDBClusters

      • DescribeDBInstances

      • DescribeDBRecommendations

      • DescribeDBShardGroups

      • DescribePendingMaintenanceActions

      • Name (string) – [REQUIRED]

        The name of the filter. Filter names are case-sensitive.

      • Values (list) – [REQUIRED]

        One or more filter values. Filter values are case-sensitive.

        • (string) –

  • Marker (string) – An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

  • MaxRecords (integer) –

    The 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 that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

Return type:

dict

Returns:

Response Syntax

{
    'Targets': [
        {
            'TargetArn': 'string',
            'Endpoint': 'string',
            'TrackedClusterId': 'string',
            'RdsResourceId': 'string',
            'Port': 123,
            'Type': 'RDS_INSTANCE'|'RDS_SERVERLESS_ENDPOINT'|'TRACKED_CLUSTER',
            'Role': 'READ_WRITE'|'READ_ONLY'|'UNKNOWN',
            'TargetHealth': {
                'State': 'REGISTERING'|'AVAILABLE'|'UNAVAILABLE',
                'Reason': 'UNREACHABLE'|'CONNECTION_FAILED'|'AUTH_FAILURE'|'PENDING_PROXY_CAPACITY'|'INVALID_REPLICATION_STATE',
                'Description': 'string'
            }
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) –

    • Targets (list) –

      An arbitrary number of DBProxyTarget objects, containing details of the corresponding targets.

      • (dict) –

        Contains the details for an RDS Proxy target. It represents an RDS DB instance or Aurora DB cluster that the proxy can connect to. One or more targets are associated with an RDS Proxy target group.

        This data type is used as a response element in the DescribeDBProxyTargets action.

        • TargetArn (string) –

          The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.

        • Endpoint (string) –

          The writer endpoint for the RDS DB instance or Aurora DB cluster.

        • TrackedClusterId (string) –

          The DB cluster identifier when the target represents an Aurora DB cluster. This field is blank when the target represents an RDS DB instance.

        • RdsResourceId (string) –

          The identifier representing the target. It can be the instance identifier for an RDS DB instance, or the cluster identifier for an Aurora DB cluster.

        • Port (integer) –

          The port that the RDS Proxy uses to connect to the target RDS DB instance or Aurora DB cluster.

        • Type (string) –

          Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.

        • Role (string) –

          A value that indicates whether the target of the proxy can be used for read/write or read-only operations.

        • TargetHealth (dict) –

          Information about the connection health of the RDS Proxy target.

          • State (string) –

            The current state of the connection health lifecycle for the RDS Proxy target. The following is a typical lifecycle example for the states of an RDS Proxy target:

            registering > unavailable > available > unavailable > available

          • Reason (string) –

            The reason for the current health State of the RDS Proxy target.

          • Description (string) –

            A description of the health of the RDS Proxy target. If the State is AVAILABLE, a description is not included.

    • Marker (string) –

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

Exceptions