@aws-sdk/types 3.38.0 → 3.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/types
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/types
@@ -37,8 +37,15 @@ export interface RegionInfo {
37
37
  signingRegion?: string;
38
38
  }
39
39
 
40
+ export interface RegionInfoProviderOptions {
41
+
42
+ useDualstackEndpoint: boolean;
43
+
44
+ useFipsEndpoint: boolean;
45
+ }
46
+
40
47
  export interface RegionInfoProvider {
41
- (region: string, options?: any): Promise<RegionInfo | undefined>;
48
+ (region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
42
49
  }
43
50
 
44
51
  export declare type UserAgentPair = [
@@ -76,6 +76,21 @@ export interface RegionInfo {
76
76
  signingService?: string;
77
77
  signingRegion?: string;
78
78
  }
79
+ /**
80
+ * Options to pass when calling {@link RegionInfoProvider}
81
+ */
82
+ export interface RegionInfoProviderOptions {
83
+ /**
84
+ * Enables IPv6/IPv4 dualstack endpoint.
85
+ * @default false
86
+ */
87
+ useDualstackEndpoint: boolean;
88
+ /**
89
+ * Enables FIPS compatible endpoints.
90
+ * @default false
91
+ */
92
+ useFipsEndpoint: boolean;
93
+ }
79
94
  /**
80
95
  * Function returns designated service's regionalization
81
96
  * information from given region. Each service client
@@ -83,7 +98,7 @@ export interface RegionInfo {
83
98
  * to provide the default values of related configurations
84
99
  */
85
100
  export interface RegionInfoProvider {
86
- (region: string, options?: any): Promise<RegionInfo | undefined>;
101
+ (region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
87
102
  }
88
103
  /**
89
104
  * A tuple that represents an API name and optional version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.38.0",
3
+ "version": "3.40.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",