DescribeEndpointsCommand

DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.

Because the Timestream SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:

For detailed information on how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern .

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { TimestreamQueryClient, DescribeEndpointsCommand } from "@aws-sdk/client-timestream-query"; // ES Modules import
// const { TimestreamQueryClient, DescribeEndpointsCommand } = require("@aws-sdk/client-timestream-query"); // CommonJS import
const client = new TimestreamQueryClient(config);
const input = {};
const command = new DescribeEndpointsCommand(input);
const response = await client.send(command);
// { // DescribeEndpointsResponse
//   Endpoints: [ // Endpoints // required
//     { // Endpoint
//       Address: "STRING_VALUE", // required
//       CachePeriodInMinutes: Number("long"), // required
//     },
//   ],
// };

DescribeEndpointsCommand Input

See DescribeEndpointsCommandInput for more details
DescribeEndpointsCommandInput extends DescribeEndpointsRequest 

DescribeEndpointsCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
Endpoints
Required
Endpoint[] | undefined

An Endpoints object is returned when a DescribeEndpoints request is made.

Throws

Name
Fault
Details
InternalServerException
server

An internal server error occurred while processing the request.

ThrottlingException
client

The request was throttled due to excessive requests.

ValidationException
client

Invalid or malformed request.

TimestreamQueryServiceException
Base exception class for all service exceptions from TimestreamQuery service.