@aws-sdk/client-transcribe-streaming 3.194.0 → 3.197.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 (40) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/TranscribeStreamingClient.js +14 -11
  3. package/dist-cjs/commands/StartMedicalStreamTranscriptionCommand.js +10 -0
  4. package/dist-cjs/commands/StartStreamTranscriptionCommand.js +10 -0
  5. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  6. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  7. package/dist-cjs/endpoint/ruleset.js +394 -0
  8. package/dist-cjs/runtimeConfig.shared.js +3 -3
  9. package/dist-es/TranscribeStreamingClient.js +15 -12
  10. package/dist-es/commands/StartMedicalStreamTranscriptionCommand.js +10 -0
  11. package/dist-es/commands/StartStreamTranscriptionCommand.js +10 -0
  12. package/dist-es/endpoint/EndpointParameters.js +8 -0
  13. package/dist-es/endpoint/endpointResolver.js +8 -0
  14. package/dist-es/endpoint/ruleset.js +391 -0
  15. package/dist-es/runtimeConfig.shared.js +2 -2
  16. package/dist-types/TranscribeStreamingClient.d.ts +6 -9
  17. package/dist-types/commands/StartMedicalStreamTranscriptionCommand.d.ts +2 -0
  18. package/dist-types/commands/StartStreamTranscriptionCommand.d.ts +2 -0
  19. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  20. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  21. package/dist-types/endpoint/ruleset.d.ts +2 -0
  22. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  23. package/dist-types/runtimeConfig.d.ts +4 -2
  24. package/dist-types/runtimeConfig.native.d.ts +4 -2
  25. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  26. package/dist-types/ts3.4/TranscribeStreamingClient.d.ts +15 -8
  27. package/dist-types/ts3.4/commands/StartMedicalStreamTranscriptionCommand.d.ts +2 -0
  28. package/dist-types/ts3.4/commands/StartStreamTranscriptionCommand.d.ts +2 -0
  29. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  30. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  31. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +23 -4
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +23 -4
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -1
  35. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  36. package/package.json +34 -32
  37. package/dist-cjs/endpoints.js +0 -140
  38. package/dist-es/endpoints.js +0 -136
  39. package/dist-types/endpoints.d.ts +0 -2
  40. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,6 +1,4 @@
1
1
  import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
2
  RegionInputConfig,
5
3
  RegionResolvedConfig,
6
4
  } from "@aws-sdk/config-resolver";
@@ -8,6 +6,10 @@ import {
8
6
  EventStreamSerdeInputConfig,
9
7
  EventStreamSerdeResolvedConfig,
10
8
  } from "@aws-sdk/eventstream-serde-config-resolver";
9
+ import {
10
+ EndpointInputConfig,
11
+ EndpointResolvedConfig,
12
+ } from "@aws-sdk/middleware-endpoint";
11
13
  import {
12
14
  EventStreamInputConfig,
13
15
  EventStreamResolvedConfig,
@@ -51,7 +53,6 @@ import {
51
53
  Logger as __Logger,
52
54
  Provider as __Provider,
53
55
  Provider,
54
- RegionInfoProvider,
55
56
  StreamCollector as __StreamCollector,
56
57
  UrlParser as __UrlParser,
57
58
  UserAgent as __UserAgent,
@@ -64,6 +65,11 @@ import {
64
65
  StartStreamTranscriptionCommandInput,
65
66
  StartStreamTranscriptionCommandOutput,
66
67
  } from "./commands/StartStreamTranscriptionCommand";
68
+ import {
69
+ ClientInputEndpointParameters,
70
+ ClientResolvedEndpointParameters,
71
+ EndpointParameters,
72
+ } from "./endpoint/EndpointParameters";
67
73
  export declare type ServiceInputTypes =
68
74
  | StartMedicalStreamTranscriptionCommandInput
69
75
  | StartStreamTranscriptionCommandInput;
@@ -91,7 +97,6 @@ export interface ClientDefaults
91
97
  serviceId?: string;
92
98
  region?: string | __Provider<string>;
93
99
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
94
- regionInfoProvider?: RegionInfoProvider;
95
100
  eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
96
101
  defaultUserAgentProvider?: Provider<__UserAgent>;
97
102
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
@@ -102,28 +107,30 @@ declare type TranscribeStreamingClientConfigType = Partial<
102
107
  > &
103
108
  ClientDefaults &
104
109
  RegionInputConfig &
105
- EndpointsInputConfig &
110
+ EndpointInputConfig<EndpointParameters> &
106
111
  RetryInputConfig &
107
112
  HostHeaderInputConfig &
108
113
  AwsAuthInputConfig &
109
114
  EventStreamInputConfig &
110
115
  WebSocketInputConfig &
111
116
  UserAgentInputConfig &
112
- EventStreamSerdeInputConfig;
117
+ EventStreamSerdeInputConfig &
118
+ ClientInputEndpointParameters;
113
119
  export interface TranscribeStreamingClientConfig
114
120
  extends TranscribeStreamingClientConfigType {}
115
121
  declare type TranscribeStreamingClientResolvedConfigType =
116
122
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
117
123
  Required<ClientDefaults> &
118
124
  RegionResolvedConfig &
119
- EndpointsResolvedConfig &
125
+ EndpointResolvedConfig<EndpointParameters> &
120
126
  RetryResolvedConfig &
121
127
  HostHeaderResolvedConfig &
122
128
  AwsAuthResolvedConfig &
123
129
  EventStreamResolvedConfig &
124
130
  WebSocketResolvedConfig &
125
131
  UserAgentResolvedConfig &
126
- EventStreamSerdeResolvedConfig;
132
+ EventStreamSerdeResolvedConfig &
133
+ ClientResolvedEndpointParameters;
127
134
  export interface TranscribeStreamingClientResolvedConfig
128
135
  extends TranscribeStreamingClientResolvedConfigType {}
129
136
  export declare class TranscribeStreamingClient extends __Client<
@@ -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 StartMedicalStreamTranscriptionCommand extends $Command<
25
26
  TranscribeStreamingClientResolvedConfig
26
27
  > {
27
28
  readonly input: StartMedicalStreamTranscriptionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: StartMedicalStreamTranscriptionCommandInput);
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 StartStreamTranscriptionCommand extends $Command<
25
26
  TranscribeStreamingClientResolvedConfig
26
27
  > {
27
28
  readonly input: StartStreamTranscriptionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: StartStreamTranscriptionCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -0,0 +1,34 @@
1
+ import {
2
+ Endpoint,
3
+ EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
5
+ Provider,
6
+ } from "@aws-sdk/types";
7
+ export interface ClientInputEndpointParameters {
8
+ region?: string | Provider<string>;
9
+ useDualstackEndpoint?: boolean | Provider<boolean>;
10
+ useFipsEndpoint?: boolean | Provider<boolean>;
11
+ endpoint?:
12
+ | string
13
+ | Provider<string>
14
+ | Endpoint
15
+ | Provider<Endpoint>
16
+ | EndpointV2
17
+ | Provider<EndpointV2>;
18
+ }
19
+ export declare type ClientResolvedEndpointParameters =
20
+ ClientInputEndpointParameters & {
21
+ defaultSigningName: string;
22
+ };
23
+ export declare const resolveClientEndpointParameters: <T>(
24
+ options: T & ClientInputEndpointParameters
25
+ ) => T &
26
+ ClientInputEndpointParameters & {
27
+ defaultSigningName: string;
28
+ };
29
+ export interface EndpointParameters extends __EndpointParameters {
30
+ Region?: string;
31
+ UseDualStack?: boolean;
32
+ UseFIPS?: boolean;
33
+ Endpoint?: string;
34
+ }
@@ -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;
@@ -40,12 +40,31 @@ export declare const getRuntimeConfig: (
40
40
  disableHostPrefix: boolean;
41
41
  logger: import("@aws-sdk/types").Logger;
42
42
  serviceId: string;
43
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
44
43
  endpoint?:
45
- | string
46
- | import("@aws-sdk/types").Endpoint
47
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | ((
45
+ | string
46
+ | import("@aws-sdk/types").Endpoint
47
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
48
+ | import("@aws-sdk/types").EndpointV2
49
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
50
+ ) &
51
+ (
52
+ | string
53
+ | import("@aws-sdk/types").Provider<string>
54
+ | import("@aws-sdk/types").Endpoint
55
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
56
+ | import("@aws-sdk/types").EndpointV2
57
+ | import("@aws-sdk/types").Provider<
58
+ import("@aws-sdk/types").EndpointV2
59
+ >
60
+ ))
48
61
  | undefined;
62
+ endpointProvider: (
63
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
64
+ context?: {
65
+ logger?: import("@aws-sdk/types").Logger | undefined;
66
+ }
67
+ ) => import("@aws-sdk/types").EndpointV2;
49
68
  tls?: boolean | undefined;
50
69
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
51
70
  credentials?:
@@ -40,12 +40,31 @@ export declare const getRuntimeConfig: (
40
40
  disableHostPrefix: boolean;
41
41
  logger: import("@aws-sdk/types").Logger;
42
42
  serviceId: string;
43
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
44
43
  endpoint?:
45
- | string
46
- | import("@aws-sdk/types").Endpoint
47
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | ((
45
+ | string
46
+ | import("@aws-sdk/types").Endpoint
47
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
48
+ | import("@aws-sdk/types").EndpointV2
49
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
50
+ ) &
51
+ (
52
+ | string
53
+ | import("@aws-sdk/types").Provider<string>
54
+ | import("@aws-sdk/types").Endpoint
55
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
56
+ | import("@aws-sdk/types").EndpointV2
57
+ | import("@aws-sdk/types").Provider<
58
+ import("@aws-sdk/types").EndpointV2
59
+ >
60
+ ))
48
61
  | undefined;
62
+ endpointProvider: (
63
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
64
+ context?: {
65
+ logger?: import("@aws-sdk/types").Logger | undefined;
66
+ }
67
+ ) => import("@aws-sdk/types").EndpointV2;
49
68
  tls?: boolean | undefined;
50
69
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
51
70
  credentials?:
@@ -33,7 +33,6 @@ export declare const getRuntimeConfig: (
33
33
  credentialDefaultProvider: (
34
34
  input: any
35
35
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
36
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
37
36
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
38
37
  import("@aws-sdk/types").UserAgent
39
38
  >;
@@ -47,7 +46,15 @@ export declare const getRuntimeConfig: (
47
46
  | string
48
47
  | import("@aws-sdk/types").Endpoint
49
48
  | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
49
+ | import("@aws-sdk/types").EndpointV2
50
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
50
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;
51
58
  tls?: boolean | undefined;
52
59
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
53
60
  credentials?:
@@ -5,8 +5,13 @@ export declare const getRuntimeConfig: (
5
5
  ) => {
6
6
  apiVersion: string;
7
7
  disableHostPrefix: boolean;
8
+ endpointProvider: (
9
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
10
+ context?: {
11
+ logger?: __Logger | undefined;
12
+ }
13
+ ) => import("@aws-sdk/types").EndpointV2;
8
14
  logger: __Logger;
9
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
10
15
  serviceId: string;
11
16
  urlParser: import("@aws-sdk/types").UrlParser;
12
17
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe-streaming",
3
3
  "description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
4
- "version": "3.194.0",
4
+ "version": "3.197.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",
@@ -20,41 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "2.0.0",
22
22
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.194.0",
24
- "@aws-sdk/config-resolver": "3.193.0",
25
- "@aws-sdk/credential-provider-node": "3.193.0",
26
- "@aws-sdk/eventstream-handler-node": "3.193.0",
27
- "@aws-sdk/eventstream-serde-browser": "3.193.0",
28
- "@aws-sdk/eventstream-serde-config-resolver": "3.193.0",
29
- "@aws-sdk/eventstream-serde-node": "3.193.0",
30
- "@aws-sdk/fetch-http-handler": "3.193.0",
31
- "@aws-sdk/hash-node": "3.193.0",
32
- "@aws-sdk/invalid-dependency": "3.193.0",
33
- "@aws-sdk/middleware-content-length": "3.193.0",
34
- "@aws-sdk/middleware-eventstream": "3.193.0",
35
- "@aws-sdk/middleware-host-header": "3.193.0",
36
- "@aws-sdk/middleware-logger": "3.193.0",
37
- "@aws-sdk/middleware-recursion-detection": "3.193.0",
38
- "@aws-sdk/middleware-retry": "3.193.0",
39
- "@aws-sdk/middleware-sdk-transcribe-streaming": "3.193.0",
40
- "@aws-sdk/middleware-serde": "3.193.0",
41
- "@aws-sdk/middleware-signing": "3.193.0",
42
- "@aws-sdk/middleware-stack": "3.193.0",
43
- "@aws-sdk/middleware-user-agent": "3.193.0",
44
- "@aws-sdk/node-config-provider": "3.193.0",
45
- "@aws-sdk/node-http-handler": "3.193.0",
46
- "@aws-sdk/protocol-http": "3.193.0",
47
- "@aws-sdk/smithy-client": "3.193.0",
48
- "@aws-sdk/types": "3.193.0",
49
- "@aws-sdk/url-parser": "3.193.0",
23
+ "@aws-sdk/client-sts": "3.197.0",
24
+ "@aws-sdk/config-resolver": "3.197.0",
25
+ "@aws-sdk/credential-provider-node": "3.197.0",
26
+ "@aws-sdk/eventstream-handler-node": "3.197.0",
27
+ "@aws-sdk/eventstream-serde-browser": "3.197.0",
28
+ "@aws-sdk/eventstream-serde-config-resolver": "3.197.0",
29
+ "@aws-sdk/eventstream-serde-node": "3.197.0",
30
+ "@aws-sdk/fetch-http-handler": "3.197.0",
31
+ "@aws-sdk/hash-node": "3.197.0",
32
+ "@aws-sdk/invalid-dependency": "3.197.0",
33
+ "@aws-sdk/middleware-content-length": "3.197.0",
34
+ "@aws-sdk/middleware-endpoint": "3.197.0",
35
+ "@aws-sdk/middleware-eventstream": "3.197.0",
36
+ "@aws-sdk/middleware-host-header": "3.197.0",
37
+ "@aws-sdk/middleware-logger": "3.197.0",
38
+ "@aws-sdk/middleware-recursion-detection": "3.197.0",
39
+ "@aws-sdk/middleware-retry": "3.197.0",
40
+ "@aws-sdk/middleware-sdk-transcribe-streaming": "3.197.0",
41
+ "@aws-sdk/middleware-serde": "3.197.0",
42
+ "@aws-sdk/middleware-signing": "3.197.0",
43
+ "@aws-sdk/middleware-stack": "3.197.0",
44
+ "@aws-sdk/middleware-user-agent": "3.197.0",
45
+ "@aws-sdk/node-config-provider": "3.197.0",
46
+ "@aws-sdk/node-http-handler": "3.197.0",
47
+ "@aws-sdk/protocol-http": "3.197.0",
48
+ "@aws-sdk/smithy-client": "3.197.0",
49
+ "@aws-sdk/types": "3.197.0",
50
+ "@aws-sdk/url-parser": "3.197.0",
50
51
  "@aws-sdk/util-base64-browser": "3.188.0",
51
52
  "@aws-sdk/util-base64-node": "3.188.0",
52
53
  "@aws-sdk/util-body-length-browser": "3.188.0",
53
54
  "@aws-sdk/util-body-length-node": "3.188.0",
54
- "@aws-sdk/util-defaults-mode-browser": "3.193.0",
55
- "@aws-sdk/util-defaults-mode-node": "3.193.0",
56
- "@aws-sdk/util-user-agent-browser": "3.193.0",
57
- "@aws-sdk/util-user-agent-node": "3.193.0",
55
+ "@aws-sdk/util-defaults-mode-browser": "3.197.0",
56
+ "@aws-sdk/util-defaults-mode-node": "3.197.0",
57
+ "@aws-sdk/util-endpoints": "3.197.0",
58
+ "@aws-sdk/util-user-agent-browser": "3.197.0",
59
+ "@aws-sdk/util-user-agent-node": "3.197.0",
58
60
  "@aws-sdk/util-utf8-browser": "3.188.0",
59
61
  "@aws-sdk/util-utf8-node": "3.188.0",
60
62
  "tslib": "^2.3.1"
@@ -1,140 +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
- const partitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ap-southeast-3",
18
- "ca-central-1",
19
- "eu-central-1",
20
- "eu-north-1",
21
- "eu-south-1",
22
- "eu-west-1",
23
- "eu-west-2",
24
- "eu-west-3",
25
- "me-central-1",
26
- "me-south-1",
27
- "sa-east-1",
28
- "transcribestreaming-ca-central-1",
29
- "transcribestreaming-fips-ca-central-1",
30
- "transcribestreaming-fips-us-east-1",
31
- "transcribestreaming-fips-us-east-2",
32
- "transcribestreaming-fips-us-west-2",
33
- "transcribestreaming-us-east-1",
34
- "transcribestreaming-us-east-2",
35
- "transcribestreaming-us-west-2",
36
- "us-east-1",
37
- "us-east-2",
38
- "us-west-1",
39
- "us-west-2",
40
- ],
41
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
42
- variants: [
43
- {
44
- hostname: "transcribestreaming.{region}.amazonaws.com",
45
- tags: [],
46
- },
47
- {
48
- hostname: "transcribestreaming-fips.{region}.amazonaws.com",
49
- tags: ["fips"],
50
- },
51
- {
52
- hostname: "transcribestreaming-fips.{region}.api.aws",
53
- tags: ["dualstack", "fips"],
54
- },
55
- {
56
- hostname: "transcribestreaming.{region}.api.aws",
57
- tags: ["dualstack"],
58
- },
59
- ],
60
- },
61
- "aws-cn": {
62
- regions: ["cn-north-1", "cn-northwest-1"],
63
- regionRegex: "^cn\\-\\w+\\-\\d+$",
64
- variants: [
65
- {
66
- hostname: "transcribestreaming.{region}.amazonaws.com.cn",
67
- tags: [],
68
- },
69
- {
70
- hostname: "transcribestreaming-fips.{region}.amazonaws.com.cn",
71
- tags: ["fips"],
72
- },
73
- {
74
- hostname: "transcribestreaming-fips.{region}.api.amazonwebservices.com.cn",
75
- tags: ["dualstack", "fips"],
76
- },
77
- {
78
- hostname: "transcribestreaming.{region}.api.amazonwebservices.com.cn",
79
- tags: ["dualstack"],
80
- },
81
- ],
82
- },
83
- "aws-iso": {
84
- regions: ["us-iso-east-1", "us-iso-west-1"],
85
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
86
- variants: [
87
- {
88
- hostname: "transcribestreaming.{region}.c2s.ic.gov",
89
- tags: [],
90
- },
91
- {
92
- hostname: "transcribestreaming-fips.{region}.c2s.ic.gov",
93
- tags: ["fips"],
94
- },
95
- ],
96
- },
97
- "aws-iso-b": {
98
- regions: ["us-isob-east-1"],
99
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
100
- variants: [
101
- {
102
- hostname: "transcribestreaming.{region}.sc2s.sgov.gov",
103
- tags: [],
104
- },
105
- {
106
- hostname: "transcribestreaming-fips.{region}.sc2s.sgov.gov",
107
- tags: ["fips"],
108
- },
109
- ],
110
- },
111
- "aws-us-gov": {
112
- regions: ["us-gov-east-1", "us-gov-west-1"],
113
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
114
- variants: [
115
- {
116
- hostname: "transcribestreaming.{region}.amazonaws.com",
117
- tags: [],
118
- },
119
- {
120
- hostname: "transcribestreaming-fips.{region}.amazonaws.com",
121
- tags: ["fips"],
122
- },
123
- {
124
- hostname: "transcribestreaming-fips.{region}.api.aws",
125
- tags: ["dualstack", "fips"],
126
- },
127
- {
128
- hostname: "transcribestreaming.{region}.api.aws",
129
- tags: ["dualstack"],
130
- },
131
- ],
132
- },
133
- };
134
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
135
- ...options,
136
- signingService: "transcribe",
137
- regionHash,
138
- partitionHash,
139
- });
140
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
@@ -1,136 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
4
- aws: {
5
- regions: [
6
- "af-south-1",
7
- "ap-east-1",
8
- "ap-northeast-1",
9
- "ap-northeast-2",
10
- "ap-northeast-3",
11
- "ap-south-1",
12
- "ap-southeast-1",
13
- "ap-southeast-2",
14
- "ap-southeast-3",
15
- "ca-central-1",
16
- "eu-central-1",
17
- "eu-north-1",
18
- "eu-south-1",
19
- "eu-west-1",
20
- "eu-west-2",
21
- "eu-west-3",
22
- "me-central-1",
23
- "me-south-1",
24
- "sa-east-1",
25
- "transcribestreaming-ca-central-1",
26
- "transcribestreaming-fips-ca-central-1",
27
- "transcribestreaming-fips-us-east-1",
28
- "transcribestreaming-fips-us-east-2",
29
- "transcribestreaming-fips-us-west-2",
30
- "transcribestreaming-us-east-1",
31
- "transcribestreaming-us-east-2",
32
- "transcribestreaming-us-west-2",
33
- "us-east-1",
34
- "us-east-2",
35
- "us-west-1",
36
- "us-west-2",
37
- ],
38
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
39
- variants: [
40
- {
41
- hostname: "transcribestreaming.{region}.amazonaws.com",
42
- tags: [],
43
- },
44
- {
45
- hostname: "transcribestreaming-fips.{region}.amazonaws.com",
46
- tags: ["fips"],
47
- },
48
- {
49
- hostname: "transcribestreaming-fips.{region}.api.aws",
50
- tags: ["dualstack", "fips"],
51
- },
52
- {
53
- hostname: "transcribestreaming.{region}.api.aws",
54
- tags: ["dualstack"],
55
- },
56
- ],
57
- },
58
- "aws-cn": {
59
- regions: ["cn-north-1", "cn-northwest-1"],
60
- regionRegex: "^cn\\-\\w+\\-\\d+$",
61
- variants: [
62
- {
63
- hostname: "transcribestreaming.{region}.amazonaws.com.cn",
64
- tags: [],
65
- },
66
- {
67
- hostname: "transcribestreaming-fips.{region}.amazonaws.com.cn",
68
- tags: ["fips"],
69
- },
70
- {
71
- hostname: "transcribestreaming-fips.{region}.api.amazonwebservices.com.cn",
72
- tags: ["dualstack", "fips"],
73
- },
74
- {
75
- hostname: "transcribestreaming.{region}.api.amazonwebservices.com.cn",
76
- tags: ["dualstack"],
77
- },
78
- ],
79
- },
80
- "aws-iso": {
81
- regions: ["us-iso-east-1", "us-iso-west-1"],
82
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
83
- variants: [
84
- {
85
- hostname: "transcribestreaming.{region}.c2s.ic.gov",
86
- tags: [],
87
- },
88
- {
89
- hostname: "transcribestreaming-fips.{region}.c2s.ic.gov",
90
- tags: ["fips"],
91
- },
92
- ],
93
- },
94
- "aws-iso-b": {
95
- regions: ["us-isob-east-1"],
96
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
97
- variants: [
98
- {
99
- hostname: "transcribestreaming.{region}.sc2s.sgov.gov",
100
- tags: [],
101
- },
102
- {
103
- hostname: "transcribestreaming-fips.{region}.sc2s.sgov.gov",
104
- tags: ["fips"],
105
- },
106
- ],
107
- },
108
- "aws-us-gov": {
109
- regions: ["us-gov-east-1", "us-gov-west-1"],
110
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
111
- variants: [
112
- {
113
- hostname: "transcribestreaming.{region}.amazonaws.com",
114
- tags: [],
115
- },
116
- {
117
- hostname: "transcribestreaming-fips.{region}.amazonaws.com",
118
- tags: ["fips"],
119
- },
120
- {
121
- hostname: "transcribestreaming-fips.{region}.api.aws",
122
- tags: ["dualstack", "fips"],
123
- },
124
- {
125
- hostname: "transcribestreaming.{region}.api.aws",
126
- tags: ["dualstack"],
127
- },
128
- ],
129
- },
130
- };
131
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
132
- ...options,
133
- signingService: "transcribe",
134
- regionHash,
135
- partitionHash,
136
- });
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;