Skip to content

Commit d0787b5

Browse files
committed
chore(config-resolver): add fips and dualstack config in getRegionInfo
1 parent dc827ca commit d0787b5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/config-resolver/src/regionInfo/getRegionInfo.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,22 @@ import { PartitionHash } from "./PartitionHash";
77
import { RegionHash } from "./RegionHash";
88

99
export interface GetRegionInfoOptions {
10+
isFipsEndpoint?: boolean;
11+
isDualstackEndpoint?: boolean;
1012
signingService: string;
1113
regionHash: RegionHash;
1214
partitionHash: PartitionHash;
1315
}
1416

1517
export const getRegionInfo = (
1618
region: string,
17-
{ signingService, regionHash, partitionHash }: GetRegionInfoOptions
19+
{
20+
isFipsEndpoint = false,
21+
isDualstackEndpoint = false,
22+
signingService,
23+
regionHash,
24+
partitionHash,
25+
}: GetRegionInfoOptions
1826
): RegionInfo => {
1927
const partition = getResolvedPartition(region, { partitionHash });
2028
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;

0 commit comments

Comments
 (0)