Skip to content

Commit

Permalink
chore(clients): specify type RegionInfoProviderOptions in endpoints.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Nov 1, 2021
1 parent 19b9753 commit 8f8e5a5
Show file tree
Hide file tree
Showing 290 changed files with 1,450 additions and 580 deletions.
7 changes: 5 additions & 2 deletions clients/client-accessanalyzer/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {
"fips-ca-central-1": {
Expand Down Expand Up @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "access-analyzer",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-account/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {
"aws-cn-global": {
Expand Down Expand Up @@ -63,7 +63,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "account",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-acm-pca/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {
"fips-ca-central-1": {
Expand Down Expand Up @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "acm-pca",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-acm/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {
"ca-central-1-fips": {
Expand Down Expand Up @@ -87,7 +87,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "acm",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-alexa-for-business/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "a4b",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-amp/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "aps",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-amplify/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "amplify",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-amplifybackend/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "amplifybackend",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-api-gateway/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "apigateway",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-apigatewaymanagementapi/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "execute-api",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-apigatewayv2/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "apigateway",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-app-mesh/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "appmesh",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-appconfig/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "appconfig",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-appflow/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "appflow",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-appintegrations/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "app-integrations",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-application-auto-scaling/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "application-autoscaling",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-application-discovery-service/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "discovery",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-application-insights/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {
"us-gov-east-1": {
Expand Down Expand Up @@ -62,7 +62,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "applicationinsights",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-applicationcostprofiler/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "application-cost-profiler",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-apprunner/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {};

Expand Down Expand Up @@ -53,7 +53,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "apprunner",
Expand Down
7 changes: 5 additions & 2 deletions clients/client-appstream/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";

const regionHash: RegionHash = {
fips: {
Expand Down Expand Up @@ -59,7 +59,10 @@ const partitionHash: PartitionHash = {
},
};

export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
export const defaultRegionInfoProvider: RegionInfoProvider = async (
region: string,
options?: RegionInfoProviderOptions
) =>
getRegionInfo(region, {
...options,
signingService: "appstream",
Expand Down
Loading

0 comments on commit 8f8e5a5

Please sign in to comment.