File tree 4 files changed +32
-3
lines changed
packages/config-resolver/src/regionInfo
4 files changed +32
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { EndpointVariantTag } from "./EndpointVariantTag" ;
2
+
3
+ /**
4
+ * Provides hostname information for specific host label.
5
+ */
6
+ export type EndpointVariant = {
7
+ hostname : string ;
8
+ tags : EndpointVariantTag [ ] ;
9
+ } ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * The tag which mentions which area variant is providing information for.
3
+ * Can be either "fips" or "dualstack".
4
+ */
5
+ export type EndpointVariantTag = "fips" | "dualstack" ;
Original file line number Diff line number Diff line change
1
+ import { EndpointVariant } from "./EndpointVariant" ;
2
+
1
3
/**
2
4
* The hash of partition with the information specific to that partition.
3
5
* The information includes the list of regions belonging to that partition,
4
6
* and the hostname to be used for the partition.
5
7
*/
6
8
export type PartitionHash = {
7
- [ key : string ] : { regions : string [ ] ; regionRegex : string ; hostname ?: string ; endpoint ?: string } ;
9
+ [ key : string ] : {
10
+ regions : string [ ] ;
11
+ regionRegex : string ;
12
+ hostname ?: string ;
13
+ endpoint ?: string ;
14
+ variants ?: EndpointVariant [ ] ;
15
+ } ;
8
16
} ;
Original file line number Diff line number Diff line change 1
- import { RegionInfo } from "@aws-sdk/types " ;
1
+ import { EndpointVariant } from "./EndpointVariant " ;
2
2
3
3
/**
4
4
* The hash of region with the information specific to that region.
5
5
* The information can include hostname, signingService and signingRegion.
6
6
*/
7
- export type RegionHash = { [ key : string ] : Partial < Omit < RegionInfo , "partition" | "path" > > } ;
7
+ export type RegionHash = {
8
+ [ key : string ] : {
9
+ hostname ?: string ;
10
+ variants ?: EndpointVariant [ ] ;
11
+ signingService ?: string ;
12
+ signingRegion ?: string ;
13
+ } ;
14
+ } ;
You can’t perform that action at this time.
0 commit comments