Skip to content

TimeStream Query #1417

Mar 21, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

The TimestreamQuery service requires that the API endpoint for queries be discovered using the DescribeEndpoints action. See the docs for DescribeEndpoints here.

Because the AWS SDK for Swift is still in developer preview and not yet feature complete, automatic endpoint discovery is not yet implemented. Eventually endpoint discovery will be performed transparently by the SDK when needed, but as a temporary workaround you can call DescribeEndpoints directly before querying, then use the returned endpoint to create a client with the right endpoint for querying.

Here is sample code that will retrieve records from a Timestream sample database:

do {
    let endpointDiscoveryClient = try Timest…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@mjones-asasolutions
Comment options

@sichanyoo
Comment options

@mjones-asasolutions
Comment options

@sichanyoo
Comment options

@mjones-asasolutions
Comment options

Answer selected by mjones-asasolutions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants