Skip to content

Commit

Permalink
fix(client-timestream-*): use correct endpoint prefix (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP authored Oct 29, 2020
1 parent de75f7e commit f329821
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
10 changes: 5 additions & 5 deletions clients/client-timestream-query/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { RegionInfo, RegionInfoProvider } from "@aws-sdk/types";

// Partition default templates
const AWS_TEMPLATE = "timestream.{region}.amazonaws.com";
const AWS_CN_TEMPLATE = "timestream.{region}.amazonaws.com.cn";
const AWS_ISO_TEMPLATE = "timestream.{region}.c2s.ic.gov";
const AWS_ISO_B_TEMPLATE = "timestream.{region}.sc2s.sgov.gov";
const AWS_US_GOV_TEMPLATE = "timestream.{region}.amazonaws.com";
const AWS_TEMPLATE = "query.timestream.{region}.amazonaws.com";
const AWS_CN_TEMPLATE = "query.timestream.{region}.amazonaws.com.cn";
const AWS_ISO_TEMPLATE = "query.timestream.{region}.c2s.ic.gov";
const AWS_ISO_B_TEMPLATE = "query.timestream.{region}.sc2s.sgov.gov";
const AWS_US_GOV_TEMPLATE = "query.timestream.{region}.amazonaws.com";

// Partition regions
const AWS_REGIONS = new Set([
Expand Down
10 changes: 5 additions & 5 deletions clients/client-timestream-write/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { RegionInfo, RegionInfoProvider } from "@aws-sdk/types";

// Partition default templates
const AWS_TEMPLATE = "timestream.{region}.amazonaws.com";
const AWS_CN_TEMPLATE = "timestream.{region}.amazonaws.com.cn";
const AWS_ISO_TEMPLATE = "timestream.{region}.c2s.ic.gov";
const AWS_ISO_B_TEMPLATE = "timestream.{region}.sc2s.sgov.gov";
const AWS_US_GOV_TEMPLATE = "timestream.{region}.amazonaws.com";
const AWS_TEMPLATE = "ingest.timestream.{region}.amazonaws.com";
const AWS_CN_TEMPLATE = "ingest.timestream.{region}.amazonaws.com.cn";
const AWS_ISO_TEMPLATE = "ingest.timestream.{region}.c2s.ic.gov";
const AWS_ISO_B_TEMPLATE = "ingest.timestream.{region}.sc2s.sgov.gov";
const AWS_US_GOV_TEMPLATE = "ingest.timestream.{region}.amazonaws.com";

// Partition regions
const AWS_REGIONS = new Set([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@
"Support": "support",
"SWF": "swf",
"Textract": "textract",
"Timestream Query": "query.timestream",
"Timestream Write": "ingest.timestream",
"Transcribe": "transcribe",
"Transcribe Streaming": "transcribestreaming",
"Transfer": "transfer",
Expand Down

0 comments on commit f329821

Please sign in to comment.