@aws-sdk/client-mq 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 (120) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/MqClient.js +11 -8
  3. package/dist-cjs/commands/CreateBrokerCommand.js +10 -0
  4. package/dist-cjs/commands/CreateConfigurationCommand.js +10 -0
  5. package/dist-cjs/commands/CreateTagsCommand.js +10 -0
  6. package/dist-cjs/commands/CreateUserCommand.js +10 -0
  7. package/dist-cjs/commands/DeleteBrokerCommand.js +10 -0
  8. package/dist-cjs/commands/DeleteTagsCommand.js +10 -0
  9. package/dist-cjs/commands/DeleteUserCommand.js +10 -0
  10. package/dist-cjs/commands/DescribeBrokerCommand.js +10 -0
  11. package/dist-cjs/commands/DescribeBrokerEngineTypesCommand.js +10 -0
  12. package/dist-cjs/commands/DescribeBrokerInstanceOptionsCommand.js +10 -0
  13. package/dist-cjs/commands/DescribeConfigurationCommand.js +10 -0
  14. package/dist-cjs/commands/DescribeConfigurationRevisionCommand.js +10 -0
  15. package/dist-cjs/commands/DescribeUserCommand.js +10 -0
  16. package/dist-cjs/commands/ListBrokersCommand.js +10 -0
  17. package/dist-cjs/commands/ListConfigurationRevisionsCommand.js +10 -0
  18. package/dist-cjs/commands/ListConfigurationsCommand.js +10 -0
  19. package/dist-cjs/commands/ListTagsCommand.js +10 -0
  20. package/dist-cjs/commands/ListUsersCommand.js +10 -0
  21. package/dist-cjs/commands/RebootBrokerCommand.js +10 -0
  22. package/dist-cjs/commands/UpdateBrokerCommand.js +10 -0
  23. package/dist-cjs/commands/UpdateConfigurationCommand.js +10 -0
  24. package/dist-cjs/commands/UpdateUserCommand.js +10 -0
  25. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  26. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  27. package/dist-cjs/endpoint/ruleset.js +318 -0
  28. package/dist-cjs/runtimeConfig.shared.js +3 -3
  29. package/dist-es/MqClient.js +12 -9
  30. package/dist-es/commands/CreateBrokerCommand.js +10 -0
  31. package/dist-es/commands/CreateConfigurationCommand.js +10 -0
  32. package/dist-es/commands/CreateTagsCommand.js +10 -0
  33. package/dist-es/commands/CreateUserCommand.js +10 -0
  34. package/dist-es/commands/DeleteBrokerCommand.js +10 -0
  35. package/dist-es/commands/DeleteTagsCommand.js +10 -0
  36. package/dist-es/commands/DeleteUserCommand.js +10 -0
  37. package/dist-es/commands/DescribeBrokerCommand.js +10 -0
  38. package/dist-es/commands/DescribeBrokerEngineTypesCommand.js +10 -0
  39. package/dist-es/commands/DescribeBrokerInstanceOptionsCommand.js +10 -0
  40. package/dist-es/commands/DescribeConfigurationCommand.js +10 -0
  41. package/dist-es/commands/DescribeConfigurationRevisionCommand.js +10 -0
  42. package/dist-es/commands/DescribeUserCommand.js +10 -0
  43. package/dist-es/commands/ListBrokersCommand.js +10 -0
  44. package/dist-es/commands/ListConfigurationRevisionsCommand.js +10 -0
  45. package/dist-es/commands/ListConfigurationsCommand.js +10 -0
  46. package/dist-es/commands/ListTagsCommand.js +10 -0
  47. package/dist-es/commands/ListUsersCommand.js +10 -0
  48. package/dist-es/commands/RebootBrokerCommand.js +10 -0
  49. package/dist-es/commands/UpdateBrokerCommand.js +10 -0
  50. package/dist-es/commands/UpdateConfigurationCommand.js +10 -0
  51. package/dist-es/commands/UpdateUserCommand.js +10 -0
  52. package/dist-es/endpoint/EndpointParameters.js +8 -0
  53. package/dist-es/endpoint/endpointResolver.js +8 -0
  54. package/dist-es/endpoint/ruleset.js +315 -0
  55. package/dist-es/runtimeConfig.shared.js +2 -2
  56. package/dist-types/MqClient.d.ts +6 -9
  57. package/dist-types/commands/CreateBrokerCommand.d.ts +2 -0
  58. package/dist-types/commands/CreateConfigurationCommand.d.ts +2 -0
  59. package/dist-types/commands/CreateTagsCommand.d.ts +2 -0
  60. package/dist-types/commands/CreateUserCommand.d.ts +2 -0
  61. package/dist-types/commands/DeleteBrokerCommand.d.ts +2 -0
  62. package/dist-types/commands/DeleteTagsCommand.d.ts +2 -0
  63. package/dist-types/commands/DeleteUserCommand.d.ts +2 -0
  64. package/dist-types/commands/DescribeBrokerCommand.d.ts +2 -0
  65. package/dist-types/commands/DescribeBrokerEngineTypesCommand.d.ts +2 -0
  66. package/dist-types/commands/DescribeBrokerInstanceOptionsCommand.d.ts +2 -0
  67. package/dist-types/commands/DescribeConfigurationCommand.d.ts +2 -0
  68. package/dist-types/commands/DescribeConfigurationRevisionCommand.d.ts +2 -0
  69. package/dist-types/commands/DescribeUserCommand.d.ts +2 -0
  70. package/dist-types/commands/ListBrokersCommand.d.ts +2 -0
  71. package/dist-types/commands/ListConfigurationRevisionsCommand.d.ts +2 -0
  72. package/dist-types/commands/ListConfigurationsCommand.d.ts +2 -0
  73. package/dist-types/commands/ListTagsCommand.d.ts +2 -0
  74. package/dist-types/commands/ListUsersCommand.d.ts +2 -0
  75. package/dist-types/commands/RebootBrokerCommand.d.ts +2 -0
  76. package/dist-types/commands/UpdateBrokerCommand.d.ts +2 -0
  77. package/dist-types/commands/UpdateConfigurationCommand.d.ts +2 -0
  78. package/dist-types/commands/UpdateUserCommand.d.ts +2 -0
  79. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  80. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  81. package/dist-types/endpoint/ruleset.d.ts +2 -0
  82. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  83. package/dist-types/runtimeConfig.d.ts +4 -2
  84. package/dist-types/runtimeConfig.native.d.ts +4 -2
  85. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  86. package/dist-types/ts3.4/MqClient.d.ts +15 -8
  87. package/dist-types/ts3.4/commands/CreateBrokerCommand.d.ts +2 -0
  88. package/dist-types/ts3.4/commands/CreateConfigurationCommand.d.ts +2 -0
  89. package/dist-types/ts3.4/commands/CreateTagsCommand.d.ts +2 -0
  90. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +2 -0
  91. package/dist-types/ts3.4/commands/DeleteBrokerCommand.d.ts +2 -0
  92. package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +2 -0
  93. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +2 -0
  94. package/dist-types/ts3.4/commands/DescribeBrokerCommand.d.ts +2 -0
  95. package/dist-types/ts3.4/commands/DescribeBrokerEngineTypesCommand.d.ts +2 -0
  96. package/dist-types/ts3.4/commands/DescribeBrokerInstanceOptionsCommand.d.ts +2 -0
  97. package/dist-types/ts3.4/commands/DescribeConfigurationCommand.d.ts +2 -0
  98. package/dist-types/ts3.4/commands/DescribeConfigurationRevisionCommand.d.ts +2 -0
  99. package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +2 -0
  100. package/dist-types/ts3.4/commands/ListBrokersCommand.d.ts +2 -0
  101. package/dist-types/ts3.4/commands/ListConfigurationRevisionsCommand.d.ts +2 -0
  102. package/dist-types/ts3.4/commands/ListConfigurationsCommand.d.ts +2 -0
  103. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -0
  104. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +2 -0
  105. package/dist-types/ts3.4/commands/RebootBrokerCommand.d.ts +2 -0
  106. package/dist-types/ts3.4/commands/UpdateBrokerCommand.d.ts +2 -0
  107. package/dist-types/ts3.4/commands/UpdateConfigurationCommand.d.ts +2 -0
  108. package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +2 -0
  109. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  110. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  111. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  112. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +23 -4
  113. package/dist-types/ts3.4/runtimeConfig.d.ts +23 -4
  114. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -1
  115. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  116. package/package.json +28 -26
  117. package/dist-cjs/endpoints.js +0 -185
  118. package/dist-es/endpoints.js +0 -181
  119. package/dist-types/endpoints.d.ts +0 -2
  120. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -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 DescribeBrokerCommand extends $Command<
24
25
  MqClientResolvedConfig
25
26
  > {
26
27
  readonly input: DescribeBrokerCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: DescribeBrokerCommandInput);
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 DescribeBrokerEngineTypesCommand extends $Command<
25
26
  MqClientResolvedConfig
26
27
  > {
27
28
  readonly input: DescribeBrokerEngineTypesCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: DescribeBrokerEngineTypesCommandInput);
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 DescribeBrokerInstanceOptionsCommand extends $Command<
25
26
  MqClientResolvedConfig
26
27
  > {
27
28
  readonly input: DescribeBrokerInstanceOptionsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: DescribeBrokerInstanceOptionsCommandInput);
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 DescribeConfigurationCommand extends $Command<
25
26
  MqClientResolvedConfig
26
27
  > {
27
28
  readonly input: DescribeConfigurationCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: DescribeConfigurationCommandInput);
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 DescribeConfigurationRevisionCommand extends $Command<
25
26
  MqClientResolvedConfig
26
27
  > {
27
28
  readonly input: DescribeConfigurationRevisionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: DescribeConfigurationRevisionCommandInput);
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,
@@ -21,6 +22,7 @@ export declare class DescribeUserCommand extends $Command<
21
22
  MqClientResolvedConfig
22
23
  > {
23
24
  readonly input: DescribeUserCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: DescribeUserCommandInput);
25
27
  resolveMiddleware(
26
28
  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,
@@ -21,6 +22,7 @@ export declare class ListBrokersCommand extends $Command<
21
22
  MqClientResolvedConfig
22
23
  > {
23
24
  readonly input: ListBrokersCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: ListBrokersCommandInput);
25
27
  resolveMiddleware(
26
28
  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 ListConfigurationRevisionsCommand extends $Command<
25
26
  MqClientResolvedConfig
26
27
  > {
27
28
  readonly input: ListConfigurationRevisionsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: ListConfigurationRevisionsCommandInput);
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 ListConfigurationsCommand extends $Command<
25
26
  MqClientResolvedConfig
26
27
  > {
27
28
  readonly input: ListConfigurationsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: ListConfigurationsCommandInput);
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,
@@ -21,6 +22,7 @@ export declare class ListTagsCommand extends $Command<
21
22
  MqClientResolvedConfig
22
23
  > {
23
24
  readonly input: ListTagsCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: ListTagsCommandInput);
25
27
  resolveMiddleware(
26
28
  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,
@@ -21,6 +22,7 @@ export declare class ListUsersCommand extends $Command<
21
22
  MqClientResolvedConfig
22
23
  > {
23
24
  readonly input: ListUsersCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: ListUsersCommandInput);
25
27
  resolveMiddleware(
26
28
  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,
@@ -21,6 +22,7 @@ export declare class RebootBrokerCommand extends $Command<
21
22
  MqClientResolvedConfig
22
23
  > {
23
24
  readonly input: RebootBrokerCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: RebootBrokerCommandInput);
25
27
  resolveMiddleware(
26
28
  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,
@@ -21,6 +22,7 @@ export declare class UpdateBrokerCommand extends $Command<
21
22
  MqClientResolvedConfig
22
23
  > {
23
24
  readonly input: UpdateBrokerCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: UpdateBrokerCommandInput);
25
27
  resolveMiddleware(
26
28
  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 UpdateConfigurationCommand extends $Command<
25
26
  MqClientResolvedConfig
26
27
  > {
27
28
  readonly input: UpdateConfigurationCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: UpdateConfigurationCommandInput);
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,
@@ -21,6 +22,7 @@ export declare class UpdateUserCommand extends $Command<
21
22
  MqClientResolvedConfig
22
23
  > {
23
24
  readonly input: UpdateUserCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: UpdateUserCommandInput);
25
27
  resolveMiddleware(
26
28
  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;
@@ -36,12 +36,31 @@ export declare const getRuntimeConfig: (config: MqClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (
48
+ | string
49
+ | import("@aws-sdk/types").Provider<string>
50
+ | import("@aws-sdk/types").Endpoint
51
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
52
+ | import("@aws-sdk/types").EndpointV2
53
+ | import("@aws-sdk/types").Provider<
54
+ import("@aws-sdk/types").EndpointV2
55
+ >
56
+ ))
44
57
  | undefined;
58
+ endpointProvider: (
59
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
60
+ context?: {
61
+ logger?: import("@aws-sdk/types").Logger | undefined;
62
+ }
63
+ ) => import("@aws-sdk/types").EndpointV2;
45
64
  tls?: boolean | undefined;
46
65
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
66
  credentials?:
@@ -36,12 +36,31 @@ export declare const getRuntimeConfig: (config: MqClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (
48
+ | string
49
+ | import("@aws-sdk/types").Provider<string>
50
+ | import("@aws-sdk/types").Endpoint
51
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
52
+ | import("@aws-sdk/types").EndpointV2
53
+ | import("@aws-sdk/types").Provider<
54
+ import("@aws-sdk/types").EndpointV2
55
+ >
56
+ ))
44
57
  | undefined;
58
+ endpointProvider: (
59
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
60
+ context?: {
61
+ logger?: import("@aws-sdk/types").Logger | undefined;
62
+ }
63
+ ) => import("@aws-sdk/types").EndpointV2;
45
64
  tls?: boolean | undefined;
46
65
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
66
  credentials?:
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: MqClientConfig) => {
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
  >;
@@ -42,7 +41,15 @@ export declare const getRuntimeConfig: (config: MqClientConfig) => {
42
41
  | string
43
42
  | import("@aws-sdk/types").Endpoint
44
43
  | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
45
46
  | undefined;
47
+ endpointProvider: (
48
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
49
+ context?: {
50
+ logger?: import("@aws-sdk/types").Logger | undefined;
51
+ }
52
+ ) => import("@aws-sdk/types").EndpointV2;
46
53
  tls?: boolean | undefined;
47
54
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
55
  credentials?:
@@ -3,8 +3,13 @@ import { MqClientConfig } from "./MqClient";
3
3
  export declare const getRuntimeConfig: (config: MqClientConfig) => {
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-mq",
3
3
  "description": "AWS SDK for JavaScript Mq 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",
@@ -19,35 +19,37 @@
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.194.0",
23
- "@aws-sdk/config-resolver": "3.193.0",
24
- "@aws-sdk/credential-provider-node": "3.193.0",
25
- "@aws-sdk/fetch-http-handler": "3.193.0",
26
- "@aws-sdk/hash-node": "3.193.0",
27
- "@aws-sdk/invalid-dependency": "3.193.0",
28
- "@aws-sdk/middleware-content-length": "3.193.0",
29
- "@aws-sdk/middleware-host-header": "3.193.0",
30
- "@aws-sdk/middleware-logger": "3.193.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.193.0",
32
- "@aws-sdk/middleware-retry": "3.193.0",
33
- "@aws-sdk/middleware-serde": "3.193.0",
34
- "@aws-sdk/middleware-signing": "3.193.0",
35
- "@aws-sdk/middleware-stack": "3.193.0",
36
- "@aws-sdk/middleware-user-agent": "3.193.0",
37
- "@aws-sdk/node-config-provider": "3.193.0",
38
- "@aws-sdk/node-http-handler": "3.193.0",
39
- "@aws-sdk/protocol-http": "3.193.0",
40
- "@aws-sdk/smithy-client": "3.193.0",
41
- "@aws-sdk/types": "3.193.0",
42
- "@aws-sdk/url-parser": "3.193.0",
22
+ "@aws-sdk/client-sts": "3.197.0",
23
+ "@aws-sdk/config-resolver": "3.197.0",
24
+ "@aws-sdk/credential-provider-node": "3.197.0",
25
+ "@aws-sdk/fetch-http-handler": "3.197.0",
26
+ "@aws-sdk/hash-node": "3.197.0",
27
+ "@aws-sdk/invalid-dependency": "3.197.0",
28
+ "@aws-sdk/middleware-content-length": "3.197.0",
29
+ "@aws-sdk/middleware-endpoint": "3.197.0",
30
+ "@aws-sdk/middleware-host-header": "3.197.0",
31
+ "@aws-sdk/middleware-logger": "3.197.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.197.0",
33
+ "@aws-sdk/middleware-retry": "3.197.0",
34
+ "@aws-sdk/middleware-serde": "3.197.0",
35
+ "@aws-sdk/middleware-signing": "3.197.0",
36
+ "@aws-sdk/middleware-stack": "3.197.0",
37
+ "@aws-sdk/middleware-user-agent": "3.197.0",
38
+ "@aws-sdk/node-config-provider": "3.197.0",
39
+ "@aws-sdk/node-http-handler": "3.197.0",
40
+ "@aws-sdk/protocol-http": "3.197.0",
41
+ "@aws-sdk/smithy-client": "3.197.0",
42
+ "@aws-sdk/types": "3.197.0",
43
+ "@aws-sdk/url-parser": "3.197.0",
43
44
  "@aws-sdk/util-base64-browser": "3.188.0",
44
45
  "@aws-sdk/util-base64-node": "3.188.0",
45
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
47
  "@aws-sdk/util-body-length-node": "3.188.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.193.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.193.0",
49
- "@aws-sdk/util-user-agent-browser": "3.193.0",
50
- "@aws-sdk/util-user-agent-node": "3.193.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.197.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.197.0",
50
+ "@aws-sdk/util-endpoints": "3.197.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.197.0",
52
+ "@aws-sdk/util-user-agent-node": "3.197.0",
51
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
52
54
  "@aws-sdk/util-utf8-node": "3.188.0",
53
55
  "tslib": "^2.3.1",
@@ -1,185 +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
- "us-east-1": {
7
- variants: [
8
- {
9
- hostname: "mq-fips.us-east-1.amazonaws.com",
10
- tags: ["fips"],
11
- },
12
- ],
13
- },
14
- "us-east-2": {
15
- variants: [
16
- {
17
- hostname: "mq-fips.us-east-2.amazonaws.com",
18
- tags: ["fips"],
19
- },
20
- ],
21
- },
22
- "us-gov-east-1": {
23
- variants: [
24
- {
25
- hostname: "mq-fips.us-gov-east-1.amazonaws.com",
26
- tags: ["fips"],
27
- },
28
- ],
29
- },
30
- "us-gov-west-1": {
31
- variants: [
32
- {
33
- hostname: "mq-fips.us-gov-west-1.amazonaws.com",
34
- tags: ["fips"],
35
- },
36
- ],
37
- },
38
- "us-west-1": {
39
- variants: [
40
- {
41
- hostname: "mq-fips.us-west-1.amazonaws.com",
42
- tags: ["fips"],
43
- },
44
- ],
45
- },
46
- "us-west-2": {
47
- variants: [
48
- {
49
- hostname: "mq-fips.us-west-2.amazonaws.com",
50
- tags: ["fips"],
51
- },
52
- ],
53
- },
54
- };
55
- const partitionHash = {
56
- aws: {
57
- regions: [
58
- "af-south-1",
59
- "ap-east-1",
60
- "ap-northeast-1",
61
- "ap-northeast-2",
62
- "ap-northeast-3",
63
- "ap-south-1",
64
- "ap-southeast-1",
65
- "ap-southeast-2",
66
- "ap-southeast-3",
67
- "ca-central-1",
68
- "eu-central-1",
69
- "eu-north-1",
70
- "eu-south-1",
71
- "eu-west-1",
72
- "eu-west-2",
73
- "eu-west-3",
74
- "fips-us-east-1",
75
- "fips-us-east-2",
76
- "fips-us-west-1",
77
- "fips-us-west-2",
78
- "me-central-1",
79
- "me-south-1",
80
- "sa-east-1",
81
- "us-east-1",
82
- "us-east-2",
83
- "us-west-1",
84
- "us-west-2",
85
- ],
86
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
87
- variants: [
88
- {
89
- hostname: "mq.{region}.amazonaws.com",
90
- tags: [],
91
- },
92
- {
93
- hostname: "mq-fips.{region}.amazonaws.com",
94
- tags: ["fips"],
95
- },
96
- {
97
- hostname: "mq-fips.{region}.api.aws",
98
- tags: ["dualstack", "fips"],
99
- },
100
- {
101
- hostname: "mq.{region}.api.aws",
102
- tags: ["dualstack"],
103
- },
104
- ],
105
- },
106
- "aws-cn": {
107
- regions: ["cn-north-1", "cn-northwest-1"],
108
- regionRegex: "^cn\\-\\w+\\-\\d+$",
109
- variants: [
110
- {
111
- hostname: "mq.{region}.amazonaws.com.cn",
112
- tags: [],
113
- },
114
- {
115
- hostname: "mq-fips.{region}.amazonaws.com.cn",
116
- tags: ["fips"],
117
- },
118
- {
119
- hostname: "mq-fips.{region}.api.amazonwebservices.com.cn",
120
- tags: ["dualstack", "fips"],
121
- },
122
- {
123
- hostname: "mq.{region}.api.amazonwebservices.com.cn",
124
- tags: ["dualstack"],
125
- },
126
- ],
127
- },
128
- "aws-iso": {
129
- regions: ["us-iso-east-1", "us-iso-west-1"],
130
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
131
- variants: [
132
- {
133
- hostname: "mq.{region}.c2s.ic.gov",
134
- tags: [],
135
- },
136
- {
137
- hostname: "mq-fips.{region}.c2s.ic.gov",
138
- tags: ["fips"],
139
- },
140
- ],
141
- },
142
- "aws-iso-b": {
143
- regions: ["us-isob-east-1"],
144
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
145
- variants: [
146
- {
147
- hostname: "mq.{region}.sc2s.sgov.gov",
148
- tags: [],
149
- },
150
- {
151
- hostname: "mq-fips.{region}.sc2s.sgov.gov",
152
- tags: ["fips"],
153
- },
154
- ],
155
- },
156
- "aws-us-gov": {
157
- regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
158
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
159
- variants: [
160
- {
161
- hostname: "mq.{region}.amazonaws.com",
162
- tags: [],
163
- },
164
- {
165
- hostname: "mq-fips.{region}.amazonaws.com",
166
- tags: ["fips"],
167
- },
168
- {
169
- hostname: "mq-fips.{region}.api.aws",
170
- tags: ["dualstack", "fips"],
171
- },
172
- {
173
- hostname: "mq.{region}.api.aws",
174
- tags: ["dualstack"],
175
- },
176
- ],
177
- },
178
- };
179
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
180
- ...options,
181
- signingService: "mq",
182
- regionHash,
183
- partitionHash,
184
- });
185
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;