Skip to content

Commit 2c4da91

Browse files
committed
chore(types): add fips/dualstack configs as required RegionInfoProvider options
1 parent 17838e1 commit 2c4da91

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/types/src/util.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,30 @@ export interface RegionInfo {
9292
signingRegion?: string;
9393
}
9494

95+
/**
96+
* Options to pass when calling {@link RegionInfoProvider}
97+
*/
98+
export interface RegionInfoProviderOptions {
99+
/**
100+
* Enables IPv6/IPv4 dualstack endpoint.
101+
* @default false
102+
*/
103+
useDualstackEndpoint: boolean;
104+
/**
105+
* Enables FIPS compatible endpoints.
106+
* @default false
107+
*/
108+
useFipsEndpoint: boolean;
109+
}
110+
95111
/**
96112
* Function returns designated service's regionalization
97113
* information from given region. Each service client
98114
* comes with its regionalization provider. it serves
99115
* to provide the default values of related configurations
100116
*/
101117
export interface RegionInfoProvider {
102-
(region: string, options?: any): Promise<RegionInfo | undefined>;
118+
(region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
103119
}
104120

105121
/**

0 commit comments

Comments
 (0)