@aws-sdk/client-ebs 3.193.0 → 3.196.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/EBSClient.js +11 -8
  3. package/dist-cjs/commands/CompleteSnapshotCommand.js +10 -0
  4. package/dist-cjs/commands/GetSnapshotBlockCommand.js +10 -0
  5. package/dist-cjs/commands/ListChangedBlocksCommand.js +10 -0
  6. package/dist-cjs/commands/ListSnapshotBlocksCommand.js +10 -0
  7. package/dist-cjs/commands/PutSnapshotBlockCommand.js +10 -0
  8. package/dist-cjs/commands/StartSnapshotCommand.js +10 -0
  9. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  10. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  11. package/dist-cjs/endpoint/ruleset.js +318 -0
  12. package/dist-cjs/runtimeConfig.shared.js +3 -3
  13. package/dist-es/EBSClient.js +12 -9
  14. package/dist-es/commands/CompleteSnapshotCommand.js +10 -0
  15. package/dist-es/commands/GetSnapshotBlockCommand.js +10 -0
  16. package/dist-es/commands/ListChangedBlocksCommand.js +10 -0
  17. package/dist-es/commands/ListSnapshotBlocksCommand.js +10 -0
  18. package/dist-es/commands/PutSnapshotBlockCommand.js +10 -0
  19. package/dist-es/commands/StartSnapshotCommand.js +10 -0
  20. package/dist-es/endpoint/EndpointParameters.js +8 -0
  21. package/dist-es/endpoint/endpointResolver.js +8 -0
  22. package/dist-es/endpoint/ruleset.js +315 -0
  23. package/dist-es/runtimeConfig.shared.js +2 -2
  24. package/dist-types/EBSClient.d.ts +6 -9
  25. package/dist-types/commands/CompleteSnapshotCommand.d.ts +2 -0
  26. package/dist-types/commands/GetSnapshotBlockCommand.d.ts +2 -0
  27. package/dist-types/commands/ListChangedBlocksCommand.d.ts +2 -0
  28. package/dist-types/commands/ListSnapshotBlocksCommand.d.ts +2 -0
  29. package/dist-types/commands/PutSnapshotBlockCommand.d.ts +2 -0
  30. package/dist-types/commands/StartSnapshotCommand.d.ts +2 -0
  31. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  32. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  33. package/dist-types/endpoint/ruleset.d.ts +2 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  35. package/dist-types/runtimeConfig.d.ts +4 -2
  36. package/dist-types/runtimeConfig.native.d.ts +4 -2
  37. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  38. package/dist-types/ts3.4/EBSClient.d.ts +15 -8
  39. package/dist-types/ts3.4/commands/CompleteSnapshotCommand.d.ts +2 -0
  40. package/dist-types/ts3.4/commands/GetSnapshotBlockCommand.d.ts +2 -0
  41. package/dist-types/ts3.4/commands/ListChangedBlocksCommand.d.ts +2 -0
  42. package/dist-types/ts3.4/commands/ListSnapshotBlocksCommand.d.ts +2 -0
  43. package/dist-types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +2 -0
  44. package/dist-types/ts3.4/commands/StartSnapshotCommand.d.ts +2 -0
  45. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  46. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  47. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  48. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  49. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  50. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  51. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  52. package/package.json +5 -3
  53. package/dist-cjs/endpoints.js +0 -178
  54. package/dist-es/endpoints.js +0 -174
  55. package/dist-types/endpoints.d.ts +0 -2
  56. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -27,8 +27,10 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
27
27
  disableHostPrefix: boolean;
28
28
  logger: import("@aws-sdk/types").Logger;
29
29
  serviceId: string;
30
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
31
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
31
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
32
+ logger?: import("@aws-sdk/types").Logger | undefined;
33
+ }) => import("@aws-sdk/types").EndpointV2;
32
34
  tls?: boolean | undefined;
33
35
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
36
  credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
@@ -23,11 +23,13 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
23
23
  serviceId: string;
24
24
  region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
26
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
27
  defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
28
  sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
30
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ endpoint?: string | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Endpoint & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").EndpointV2 & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> & import("@aws-sdk/types").Provider<string>) | undefined;
30
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
+ logger?: import("@aws-sdk/types").Logger | undefined;
32
+ }) => import("@aws-sdk/types").EndpointV2;
31
33
  tls?: boolean | undefined;
32
34
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
33
35
  credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
@@ -6,8 +6,10 @@ import { EBSClientConfig } from "./EBSClient";
6
6
  export declare const getRuntimeConfig: (config: EBSClientConfig) => {
7
7
  apiVersion: string;
8
8
  disableHostPrefix: boolean;
9
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
10
+ logger?: __Logger | undefined;
11
+ }) => import("@aws-sdk/types").EndpointV2;
9
12
  logger: __Logger;
10
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
11
13
  serviceId: string;
12
14
  urlParser: import("@aws-sdk/types").UrlParser;
13
15
  };
@@ -1,9 +1,11 @@
1
1
  import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
2
  RegionInputConfig,
5
3
  RegionResolvedConfig,
6
4
  } from "@aws-sdk/config-resolver";
5
+ import {
6
+ EndpointInputConfig,
7
+ EndpointResolvedConfig,
8
+ } from "@aws-sdk/middleware-endpoint";
7
9
  import {
8
10
  HostHeaderInputConfig,
9
11
  HostHeaderResolvedConfig,
@@ -37,7 +39,6 @@ import {
37
39
  Logger as __Logger,
38
40
  Provider as __Provider,
39
41
  Provider,
40
- RegionInfoProvider,
41
42
  SdkStreamMixinInjector as __SdkStreamMixinInjector,
42
43
  StreamCollector as __StreamCollector,
43
44
  UrlParser as __UrlParser,
@@ -67,6 +68,11 @@ import {
67
68
  StartSnapshotCommandInput,
68
69
  StartSnapshotCommandOutput,
69
70
  } from "./commands/StartSnapshotCommand";
71
+ import {
72
+ ClientInputEndpointParameters,
73
+ ClientResolvedEndpointParameters,
74
+ EndpointParameters,
75
+ } from "./endpoint/EndpointParameters";
70
76
  export declare type ServiceInputTypes =
71
77
  | CompleteSnapshotCommandInput
72
78
  | GetSnapshotBlockCommandInput
@@ -102,7 +108,6 @@ export interface ClientDefaults
102
108
  serviceId?: string;
103
109
  region?: string | __Provider<string>;
104
110
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
105
- regionInfoProvider?: RegionInfoProvider;
106
111
  defaultUserAgentProvider?: Provider<__UserAgent>;
107
112
  defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
108
113
  sdkStreamMixin?: __SdkStreamMixinInjector;
@@ -112,21 +117,23 @@ declare type EBSClientConfigType = Partial<
112
117
  > &
113
118
  ClientDefaults &
114
119
  RegionInputConfig &
115
- EndpointsInputConfig &
120
+ EndpointInputConfig<EndpointParameters> &
116
121
  RetryInputConfig &
117
122
  HostHeaderInputConfig &
118
123
  AwsAuthInputConfig &
119
- UserAgentInputConfig;
124
+ UserAgentInputConfig &
125
+ ClientInputEndpointParameters;
120
126
  export interface EBSClientConfig extends EBSClientConfigType {}
121
127
  declare type EBSClientResolvedConfigType =
122
128
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
123
129
  Required<ClientDefaults> &
124
130
  RegionResolvedConfig &
125
- EndpointsResolvedConfig &
131
+ EndpointResolvedConfig<EndpointParameters> &
126
132
  RetryResolvedConfig &
127
133
  HostHeaderResolvedConfig &
128
134
  AwsAuthResolvedConfig &
129
- UserAgentResolvedConfig;
135
+ UserAgentResolvedConfig &
136
+ ClientResolvedEndpointParameters;
130
137
  export interface EBSClientResolvedConfig extends EBSClientResolvedConfigType {}
131
138
  export declare class EBSClient extends __Client<
132
139
  __HttpHandlerOptions,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class CompleteSnapshotCommand extends $Command<
24
25
  EBSClientResolvedConfig
25
26
  > {
26
27
  readonly input: CompleteSnapshotCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: CompleteSnapshotCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class GetSnapshotBlockCommand extends $Command<
25
26
  EBSClientResolvedConfig
26
27
  > {
27
28
  readonly input: GetSnapshotBlockCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: GetSnapshotBlockCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class ListChangedBlocksCommand extends $Command<
25
26
  EBSClientResolvedConfig
26
27
  > {
27
28
  readonly input: ListChangedBlocksCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: ListChangedBlocksCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class ListSnapshotBlocksCommand extends $Command<
25
26
  EBSClientResolvedConfig
26
27
  > {
27
28
  readonly input: ListSnapshotBlocksCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: ListSnapshotBlocksCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -35,6 +36,7 @@ export declare class PutSnapshotBlockCommand extends $Command<
35
36
  EBSClientResolvedConfig
36
37
  > {
37
38
  readonly input: PutSnapshotBlockCommandInput;
39
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
38
40
  constructor(input: PutSnapshotBlockCommandInput);
39
41
  resolveMiddleware(
40
42
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class StartSnapshotCommand extends $Command<
24
25
  EBSClientResolvedConfig
25
26
  > {
26
27
  readonly input: StartSnapshotCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: StartSnapshotCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -0,0 +1,26 @@
1
+ import {
2
+ EndpointParameters as __EndpointParameters,
3
+ Provider,
4
+ } from "@aws-sdk/types";
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | Provider<string>;
7
+ useDualstackEndpoint?: boolean | Provider<boolean>;
8
+ useFipsEndpoint?: boolean | Provider<boolean>;
9
+ endpoint?: string | Provider<string>;
10
+ }
11
+ export declare type ClientResolvedEndpointParameters =
12
+ ClientInputEndpointParameters & {
13
+ defaultSigningName: string;
14
+ };
15
+ export declare const resolveClientEndpointParameters: <T>(
16
+ options: T & ClientInputEndpointParameters
17
+ ) => T &
18
+ ClientInputEndpointParameters & {
19
+ defaultSigningName: string;
20
+ };
21
+ export interface EndpointParameters extends __EndpointParameters {
22
+ Region?: string;
23
+ UseDualStack?: boolean;
24
+ UseFIPS?: boolean;
25
+ Endpoint?: string;
26
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -37,12 +37,22 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
37
37
  disableHostPrefix: boolean;
38
38
  logger: import("@aws-sdk/types").Logger;
39
39
  serviceId: string;
40
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
41
40
  endpoint?:
42
- | string
43
- | import("@aws-sdk/types").Endpoint
44
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
41
+ | ((
42
+ | string
43
+ | import("@aws-sdk/types").Endpoint
44
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
45
+ | import("@aws-sdk/types").EndpointV2
46
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
47
+ ) &
48
+ (string | import("@aws-sdk/types").Provider<string>))
45
49
  | undefined;
50
+ endpointProvider: (
51
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
52
+ context?: {
53
+ logger?: import("@aws-sdk/types").Logger | undefined;
54
+ }
55
+ ) => import("@aws-sdk/types").EndpointV2;
46
56
  tls?: boolean | undefined;
47
57
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
58
  credentials?:
@@ -37,12 +37,22 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
37
37
  disableHostPrefix: boolean;
38
38
  logger: import("@aws-sdk/types").Logger;
39
39
  serviceId: string;
40
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
41
40
  endpoint?:
42
- | string
43
- | import("@aws-sdk/types").Endpoint
44
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
41
+ | ((
42
+ | string
43
+ | import("@aws-sdk/types").Endpoint
44
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
45
+ | import("@aws-sdk/types").EndpointV2
46
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
47
+ ) &
48
+ (string | import("@aws-sdk/types").Provider<string>))
45
49
  | undefined;
50
+ endpointProvider: (
51
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
52
+ context?: {
53
+ logger?: import("@aws-sdk/types").Logger | undefined;
54
+ }
55
+ ) => import("@aws-sdk/types").EndpointV2;
46
56
  tls?: boolean | undefined;
47
57
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
58
  credentials?:
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
29
29
  credentialDefaultProvider: (
30
30
  input: any
31
31
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
32
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
33
32
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
34
33
  import("@aws-sdk/types").UserAgent
35
34
  >;
@@ -41,9 +40,21 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
41
40
  sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
42
41
  endpoint?:
43
42
  | string
44
- | import("@aws-sdk/types").Endpoint
45
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
43
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
44
+ import("@aws-sdk/types").Provider<string>)
45
+ | (import("@aws-sdk/types").Endpoint &
46
+ import("@aws-sdk/types").Provider<string>)
47
+ | (import("@aws-sdk/types").EndpointV2 &
48
+ import("@aws-sdk/types").Provider<string>)
49
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
50
+ import("@aws-sdk/types").Provider<string>)
46
51
  | undefined;
52
+ endpointProvider: (
53
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
54
+ context?: {
55
+ logger?: import("@aws-sdk/types").Logger | undefined;
56
+ }
57
+ ) => import("@aws-sdk/types").EndpointV2;
47
58
  tls?: boolean | undefined;
48
59
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
49
60
  credentials?:
@@ -3,8 +3,13 @@ import { EBSClientConfig } from "./EBSClient";
3
3
  export declare const getRuntimeConfig: (config: EBSClientConfig) => {
4
4
  apiVersion: string;
5
5
  disableHostPrefix: boolean;
6
+ endpointProvider: (
7
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
8
+ context?: {
9
+ logger?: __Logger | undefined;
10
+ }
11
+ ) => import("@aws-sdk/types").EndpointV2;
6
12
  logger: __Logger;
7
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
8
13
  serviceId: string;
9
14
  urlParser: import("@aws-sdk/types").UrlParser;
10
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ebs",
3
3
  "description": "AWS SDK for JavaScript Ebs Client for Node.js, Browser and React Native",
4
- "version": "3.193.0",
4
+ "version": "3.196.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,13 +19,14 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.193.0",
22
+ "@aws-sdk/client-sts": "3.196.0",
23
23
  "@aws-sdk/config-resolver": "3.193.0",
24
- "@aws-sdk/credential-provider-node": "3.193.0",
24
+ "@aws-sdk/credential-provider-node": "3.196.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.193.0",
26
26
  "@aws-sdk/hash-node": "3.193.0",
27
27
  "@aws-sdk/invalid-dependency": "3.193.0",
28
28
  "@aws-sdk/middleware-content-length": "3.193.0",
29
+ "@aws-sdk/middleware-endpoint": "3.193.0",
29
30
  "@aws-sdk/middleware-host-header": "3.193.0",
30
31
  "@aws-sdk/middleware-logger": "3.193.0",
31
32
  "@aws-sdk/middleware-recursion-detection": "3.193.0",
@@ -46,6 +47,7 @@
46
47
  "@aws-sdk/util-body-length-node": "3.188.0",
47
48
  "@aws-sdk/util-defaults-mode-browser": "3.193.0",
48
49
  "@aws-sdk/util-defaults-mode-node": "3.193.0",
50
+ "@aws-sdk/util-endpoints": "3.196.0",
49
51
  "@aws-sdk/util-stream-browser": "3.193.0",
50
52
  "@aws-sdk/util-stream-node": "3.193.0",
51
53
  "@aws-sdk/util-user-agent-browser": "3.193.0",
@@ -1,178 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultRegionInfoProvider = void 0;
4
- const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {
6
- "ca-central-1": {
7
- variants: [
8
- {
9
- hostname: "ebs-fips.ca-central-1.amazonaws.com",
10
- tags: ["fips"],
11
- },
12
- ],
13
- },
14
- "us-east-1": {
15
- variants: [
16
- {
17
- hostname: "ebs-fips.us-east-1.amazonaws.com",
18
- tags: ["fips"],
19
- },
20
- ],
21
- },
22
- "us-east-2": {
23
- variants: [
24
- {
25
- hostname: "ebs-fips.us-east-2.amazonaws.com",
26
- tags: ["fips"],
27
- },
28
- ],
29
- },
30
- "us-west-1": {
31
- variants: [
32
- {
33
- hostname: "ebs-fips.us-west-1.amazonaws.com",
34
- tags: ["fips"],
35
- },
36
- ],
37
- },
38
- "us-west-2": {
39
- variants: [
40
- {
41
- hostname: "ebs-fips.us-west-2.amazonaws.com",
42
- tags: ["fips"],
43
- },
44
- ],
45
- },
46
- };
47
- const partitionHash = {
48
- aws: {
49
- regions: [
50
- "af-south-1",
51
- "ap-east-1",
52
- "ap-northeast-1",
53
- "ap-northeast-2",
54
- "ap-northeast-3",
55
- "ap-south-1",
56
- "ap-southeast-1",
57
- "ap-southeast-2",
58
- "ap-southeast-3",
59
- "ca-central-1",
60
- "eu-central-1",
61
- "eu-north-1",
62
- "eu-south-1",
63
- "eu-west-1",
64
- "eu-west-2",
65
- "eu-west-3",
66
- "fips-ca-central-1",
67
- "fips-us-east-1",
68
- "fips-us-east-2",
69
- "fips-us-west-1",
70
- "fips-us-west-2",
71
- "me-central-1",
72
- "me-south-1",
73
- "sa-east-1",
74
- "us-east-1",
75
- "us-east-2",
76
- "us-west-1",
77
- "us-west-2",
78
- ],
79
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
80
- variants: [
81
- {
82
- hostname: "ebs.{region}.amazonaws.com",
83
- tags: [],
84
- },
85
- {
86
- hostname: "ebs-fips.{region}.amazonaws.com",
87
- tags: ["fips"],
88
- },
89
- {
90
- hostname: "ebs-fips.{region}.api.aws",
91
- tags: ["dualstack", "fips"],
92
- },
93
- {
94
- hostname: "ebs.{region}.api.aws",
95
- tags: ["dualstack"],
96
- },
97
- ],
98
- },
99
- "aws-cn": {
100
- regions: ["cn-north-1", "cn-northwest-1"],
101
- regionRegex: "^cn\\-\\w+\\-\\d+$",
102
- variants: [
103
- {
104
- hostname: "ebs.{region}.amazonaws.com.cn",
105
- tags: [],
106
- },
107
- {
108
- hostname: "ebs-fips.{region}.amazonaws.com.cn",
109
- tags: ["fips"],
110
- },
111
- {
112
- hostname: "ebs-fips.{region}.api.amazonwebservices.com.cn",
113
- tags: ["dualstack", "fips"],
114
- },
115
- {
116
- hostname: "ebs.{region}.api.amazonwebservices.com.cn",
117
- tags: ["dualstack"],
118
- },
119
- ],
120
- },
121
- "aws-iso": {
122
- regions: ["us-iso-east-1", "us-iso-west-1"],
123
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
124
- variants: [
125
- {
126
- hostname: "ebs.{region}.c2s.ic.gov",
127
- tags: [],
128
- },
129
- {
130
- hostname: "ebs-fips.{region}.c2s.ic.gov",
131
- tags: ["fips"],
132
- },
133
- ],
134
- },
135
- "aws-iso-b": {
136
- regions: ["us-isob-east-1"],
137
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
138
- variants: [
139
- {
140
- hostname: "ebs.{region}.sc2s.sgov.gov",
141
- tags: [],
142
- },
143
- {
144
- hostname: "ebs-fips.{region}.sc2s.sgov.gov",
145
- tags: ["fips"],
146
- },
147
- ],
148
- },
149
- "aws-us-gov": {
150
- regions: ["us-gov-east-1", "us-gov-west-1"],
151
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
152
- variants: [
153
- {
154
- hostname: "ebs.{region}.amazonaws.com",
155
- tags: [],
156
- },
157
- {
158
- hostname: "ebs-fips.{region}.amazonaws.com",
159
- tags: ["fips"],
160
- },
161
- {
162
- hostname: "ebs-fips.{region}.api.aws",
163
- tags: ["dualstack", "fips"],
164
- },
165
- {
166
- hostname: "ebs.{region}.api.aws",
167
- tags: ["dualstack"],
168
- },
169
- ],
170
- },
171
- };
172
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
173
- ...options,
174
- signingService: "ebs",
175
- regionHash,
176
- partitionHash,
177
- });
178
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;