Skip to content

Commit

Permalink
feat(clients): update client endpoints as of 2022-05-04
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed May 4, 2022
1 parent 164cdf7 commit 699f5ad
Show file tree
Hide file tree
Showing 3 changed files with 499 additions and 31 deletions.
179 changes: 178 additions & 1 deletion clients/client-app-mesh/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,184 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};
const regionHash: RegionHash = {
"af-south-1": {
variants: [
{
hostname: "appmesh.af-south-1.api.aws",
tags: ["dualstack"],
},
],
},
"ap-east-1": {
variants: [
{
hostname: "appmesh.ap-east-1.api.aws",
tags: ["dualstack"],
},
],
},
"ap-northeast-1": {
variants: [
{
hostname: "appmesh.ap-northeast-1.api.aws",
tags: ["dualstack"],
},
],
},
"ap-northeast-2": {
variants: [
{
hostname: "appmesh.ap-northeast-2.api.aws",
tags: ["dualstack"],
},
],
},
"ap-south-1": {
variants: [
{
hostname: "appmesh.ap-south-1.api.aws",
tags: ["dualstack"],
},
],
},
"ap-southeast-1": {
variants: [
{
hostname: "appmesh.ap-southeast-1.api.aws",
tags: ["dualstack"],
},
],
},
"ap-southeast-2": {
variants: [
{
hostname: "appmesh.ap-southeast-2.api.aws",
tags: ["dualstack"],
},
],
},
"ca-central-1": {
variants: [
{
hostname: "appmesh.ca-central-1.api.aws",
tags: ["dualstack"],
},
],
},
"cn-north-1": {
variants: [
{
hostname: "appmesh.cn-north-1.api.amazonwebservices.com.cn",
tags: ["dualstack"],
},
],
},
"cn-northwest-1": {
variants: [
{
hostname: "appmesh.cn-northwest-1.api.amazonwebservices.com.cn",
tags: ["dualstack"],
},
],
},
"eu-central-1": {
variants: [
{
hostname: "appmesh.eu-central-1.api.aws",
tags: ["dualstack"],
},
],
},
"eu-north-1": {
variants: [
{
hostname: "appmesh.eu-north-1.api.aws",
tags: ["dualstack"],
},
],
},
"eu-south-1": {
variants: [
{
hostname: "appmesh.eu-south-1.api.aws",
tags: ["dualstack"],
},
],
},
"eu-west-1": {
variants: [
{
hostname: "appmesh.eu-west-1.api.aws",
tags: ["dualstack"],
},
],
},
"eu-west-2": {
variants: [
{
hostname: "appmesh.eu-west-2.api.aws",
tags: ["dualstack"],
},
],
},
"eu-west-3": {
variants: [
{
hostname: "appmesh.eu-west-3.api.aws",
tags: ["dualstack"],
},
],
},
"me-south-1": {
variants: [
{
hostname: "appmesh.me-south-1.api.aws",
tags: ["dualstack"],
},
],
},
"sa-east-1": {
variants: [
{
hostname: "appmesh.sa-east-1.api.aws",
tags: ["dualstack"],
},
],
},
"us-east-1": {
variants: [
{
hostname: "appmesh.us-east-1.api.aws",
tags: ["dualstack"],
},
],
},
"us-east-2": {
variants: [
{
hostname: "appmesh.us-east-2.api.aws",
tags: ["dualstack"],
},
],
},
"us-west-1": {
variants: [
{
hostname: "appmesh.us-west-1.api.aws",
tags: ["dualstack"],
},
],
},
"us-west-2": {
variants: [
{
hostname: "appmesh.us-west-2.api.aws",
tags: ["dualstack"],
},
],
},
};

const partitionHash: PartitionHash = {
aws: {
Expand Down
57 changes: 55 additions & 2 deletions clients/client-synthetics/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,56 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};
const regionHash: RegionHash = {
"us-east-1": {
variants: [
{
hostname: "synthetics-fips.us-east-1.amazonaws.com",
tags: ["fips"],
},
],
},
"us-east-2": {
variants: [
{
hostname: "synthetics-fips.us-east-2.amazonaws.com",
tags: ["fips"],
},
],
},
"us-gov-east-1": {
variants: [
{
hostname: "synthetics-fips.us-gov-east-1.amazonaws.com",
tags: ["fips"],
},
],
},
"us-gov-west-1": {
variants: [
{
hostname: "synthetics-fips.us-gov-west-1.amazonaws.com",
tags: ["fips"],
},
],
},
"us-west-1": {
variants: [
{
hostname: "synthetics-fips.us-west-1.amazonaws.com",
tags: ["fips"],
},
],
},
"us-west-2": {
variants: [
{
hostname: "synthetics-fips.us-west-2.amazonaws.com",
tags: ["fips"],
},
],
},
};

const partitionHash: PartitionHash = {
aws: {
Expand All @@ -22,6 +71,10 @@ const partitionHash: PartitionHash = {
"eu-west-1",
"eu-west-2",
"eu-west-3",
"fips-us-east-1",
"fips-us-east-2",
"fips-us-west-1",
"fips-us-west-2",
"me-south-1",
"sa-east-1",
"us-east-1",
Expand Down Expand Up @@ -100,7 +153,7 @@ const partitionHash: PartitionHash = {
],
},
"aws-us-gov": {
regions: ["us-gov-east-1", "us-gov-west-1"],
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
variants: [
{
Expand Down
Loading

0 comments on commit 699f5ad

Please sign in to comment.