@aws-sdk/client-eventbridgev2 3.1140.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 (169) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +362 -0
  3. package/dist-cjs/index.js +1982 -0
  4. package/dist-es/EventBridgeV2.js +73 -0
  5. package/dist-es/EventBridgeV2Client.js +49 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +12 -0
  9. package/dist-es/commands/CreateEventBusCommand.js +4 -0
  10. package/dist-es/commands/CreateEventSourceCommand.js +4 -0
  11. package/dist-es/commands/CreateSubscriberCommand.js +4 -0
  12. package/dist-es/commands/DeleteEventBusCommand.js +4 -0
  13. package/dist-es/commands/DeleteEventSourceCommand.js +4 -0
  14. package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
  15. package/dist-es/commands/DeleteSubscriberCommand.js +4 -0
  16. package/dist-es/commands/DescribeEventBusCommand.js +4 -0
  17. package/dist-es/commands/DescribeEventSourceCommand.js +4 -0
  18. package/dist-es/commands/DescribeSubscriberCommand.js +4 -0
  19. package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  20. package/dist-es/commands/ListEventBusesCommand.js +4 -0
  21. package/dist-es/commands/ListEventSourcesCommand.js +4 -0
  22. package/dist-es/commands/ListResourcePoliciesCommand.js +4 -0
  23. package/dist-es/commands/ListSubscribersCommand.js +4 -0
  24. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  25. package/dist-es/commands/PutEventsCommand.js +4 -0
  26. package/dist-es/commands/PutRawEventsCommand.js +4 -0
  27. package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  28. package/dist-es/commands/RevokeResourceCommand.js +4 -0
  29. package/dist-es/commands/TagResourceCommand.js +4 -0
  30. package/dist-es/commands/UntagResourceCommand.js +4 -0
  31. package/dist-es/commands/UpdateEventBusCommand.js +4 -0
  32. package/dist-es/commands/UpdateEventSourceCommand.js +4 -0
  33. package/dist-es/commands/UpdateSubscriberCommand.js +4 -0
  34. package/dist-es/commands/index.js +25 -0
  35. package/dist-es/endpoint/EndpointParameters.js +15 -0
  36. package/dist-es/endpoint/bdd.js +85 -0
  37. package/dist-es/endpoint/endpointResolver.js +14 -0
  38. package/dist-es/extensionConfiguration.js +1 -0
  39. package/dist-es/index.js +11 -0
  40. package/dist-es/models/EventBridgeV2ServiceException.js +8 -0
  41. package/dist-es/models/enums.js +78 -0
  42. package/dist-es/models/errors.js +217 -0
  43. package/dist-es/models/models_0.js +1 -0
  44. package/dist-es/pagination/Interfaces.js +1 -0
  45. package/dist-es/pagination/ListEventBusesPaginator.js +4 -0
  46. package/dist-es/pagination/ListEventSourcesPaginator.js +4 -0
  47. package/dist-es/pagination/ListResourcePoliciesPaginator.js +4 -0
  48. package/dist-es/pagination/ListSubscribersPaginator.js +4 -0
  49. package/dist-es/pagination/index.js +5 -0
  50. package/dist-es/runtimeConfig.browser.js +31 -0
  51. package/dist-es/runtimeConfig.js +45 -0
  52. package/dist-es/runtimeConfig.native.js +9 -0
  53. package/dist-es/runtimeConfig.shared.js +41 -0
  54. package/dist-es/runtimeExtensions.js +9 -0
  55. package/dist-es/schemas/schemas_0.js +939 -0
  56. package/dist-es/waiters/index.js +2 -0
  57. package/dist-es/waiters/waitForEventBusActive.js +58 -0
  58. package/dist-es/waiters/waitForEventBusDeleted.js +34 -0
  59. package/dist-types/EventBridgeV2.d.ts +242 -0
  60. package/dist-types/EventBridgeV2Client.d.ts +222 -0
  61. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  62. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  63. package/dist-types/commandBuilder.d.ts +26 -0
  64. package/dist-types/commands/CreateEventBusCommand.d.ts +128 -0
  65. package/dist-types/commands/CreateEventSourceCommand.d.ts +135 -0
  66. package/dist-types/commands/CreateSubscriberCommand.d.ts +245 -0
  67. package/dist-types/commands/DeleteEventBusCommand.d.ts +100 -0
  68. package/dist-types/commands/DeleteEventSourceCommand.d.ts +94 -0
  69. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +106 -0
  70. package/dist-types/commands/DeleteSubscriberCommand.d.ts +90 -0
  71. package/dist-types/commands/DescribeEventBusCommand.d.ts +102 -0
  72. package/dist-types/commands/DescribeEventSourceCommand.d.ts +113 -0
  73. package/dist-types/commands/DescribeSubscriberCommand.d.ts +215 -0
  74. package/dist-types/commands/GetResourcePolicyCommand.d.ts +95 -0
  75. package/dist-types/commands/ListEventBusesCommand.d.ts +104 -0
  76. package/dist-types/commands/ListEventSourcesCommand.d.ts +107 -0
  77. package/dist-types/commands/ListResourcePoliciesCommand.d.ts +98 -0
  78. package/dist-types/commands/ListSubscribersCommand.d.ts +108 -0
  79. package/dist-types/commands/ListTagsForResourceCommand.d.ts +91 -0
  80. package/dist-types/commands/PutEventsCommand.d.ts +120 -0
  81. package/dist-types/commands/PutRawEventsCommand.d.ts +127 -0
  82. package/dist-types/commands/PutResourcePolicyCommand.d.ts +132 -0
  83. package/dist-types/commands/RevokeResourceCommand.d.ts +99 -0
  84. package/dist-types/commands/TagResourceCommand.d.ts +100 -0
  85. package/dist-types/commands/UntagResourceCommand.d.ts +97 -0
  86. package/dist-types/commands/UpdateEventBusCommand.d.ts +117 -0
  87. package/dist-types/commands/UpdateEventSourceCommand.d.ts +118 -0
  88. package/dist-types/commands/UpdateSubscriberCommand.d.ts +224 -0
  89. package/dist-types/commands/index.d.ts +25 -0
  90. package/dist-types/endpoint/EndpointParameters.d.ts +63 -0
  91. package/dist-types/endpoint/bdd.d.ts +2 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  93. package/dist-types/extensionConfiguration.d.ts +9 -0
  94. package/dist-types/index.d.ts +25 -0
  95. package/dist-types/models/EventBridgeV2ServiceException.d.ts +14 -0
  96. package/dist-types/models/enums.d.ts +250 -0
  97. package/dist-types/models/errors.d.ts +227 -0
  98. package/dist-types/models/models_0.d.ts +2532 -0
  99. package/dist-types/pagination/Interfaces.d.ts +8 -0
  100. package/dist-types/pagination/ListEventBusesPaginator.d.ts +7 -0
  101. package/dist-types/pagination/ListEventSourcesPaginator.d.ts +7 -0
  102. package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +7 -0
  103. package/dist-types/pagination/ListSubscribersPaginator.d.ts +7 -0
  104. package/dist-types/pagination/index.d.ts +5 -0
  105. package/dist-types/runtimeConfig.browser.d.ts +59 -0
  106. package/dist-types/runtimeConfig.d.ts +59 -0
  107. package/dist-types/runtimeConfig.native.d.ts +58 -0
  108. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  109. package/dist-types/runtimeExtensions.d.ts +17 -0
  110. package/dist-types/schemas/schemas_0.d.ts +140 -0
  111. package/dist-types/ts3.4/EventBridgeV2.d.ts +484 -0
  112. package/dist-types/ts3.4/EventBridgeV2Client.d.ts +253 -0
  113. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  114. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  115. package/dist-types/ts3.4/commandBuilder.d.ts +42 -0
  116. package/dist-types/ts3.4/commands/CreateEventBusCommand.d.ts +38 -0
  117. package/dist-types/ts3.4/commands/CreateEventSourceCommand.d.ts +39 -0
  118. package/dist-types/ts3.4/commands/CreateSubscriberCommand.d.ts +38 -0
  119. package/dist-types/ts3.4/commands/DeleteEventBusCommand.d.ts +38 -0
  120. package/dist-types/ts3.4/commands/DeleteEventSourceCommand.d.ts +39 -0
  121. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +39 -0
  122. package/dist-types/ts3.4/commands/DeleteSubscriberCommand.d.ts +38 -0
  123. package/dist-types/ts3.4/commands/DescribeEventBusCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/DescribeEventSourceCommand.d.ts +39 -0
  125. package/dist-types/ts3.4/commands/DescribeSubscriberCommand.d.ts +39 -0
  126. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  127. package/dist-types/ts3.4/commands/ListEventBusesCommand.d.ts +38 -0
  128. package/dist-types/ts3.4/commands/ListEventSourcesCommand.d.ts +38 -0
  129. package/dist-types/ts3.4/commands/ListResourcePoliciesCommand.d.ts +39 -0
  130. package/dist-types/ts3.4/commands/ListSubscribersCommand.d.ts +38 -0
  131. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  132. package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +38 -0
  133. package/dist-types/ts3.4/commands/PutRawEventsCommand.d.ts +38 -0
  134. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  135. package/dist-types/ts3.4/commands/RevokeResourceCommand.d.ts +38 -0
  136. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  137. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  138. package/dist-types/ts3.4/commands/UpdateEventBusCommand.d.ts +38 -0
  139. package/dist-types/ts3.4/commands/UpdateEventSourceCommand.d.ts +39 -0
  140. package/dist-types/ts3.4/commands/UpdateSubscriberCommand.d.ts +38 -0
  141. package/dist-types/ts3.4/commands/index.d.ts +25 -0
  142. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +64 -0
  143. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  144. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  145. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  146. package/dist-types/ts3.4/index.d.ts +14 -0
  147. package/dist-types/ts3.4/models/EventBridgeV2ServiceException.d.ts +9 -0
  148. package/dist-types/ts3.4/models/enums.d.ts +95 -0
  149. package/dist-types/ts3.4/models/errors.d.ts +98 -0
  150. package/dist-types/ts3.4/models/models_0.d.ts +552 -0
  151. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  152. package/dist-types/ts3.4/pagination/ListEventBusesPaginator.d.ts +11 -0
  153. package/dist-types/ts3.4/pagination/ListEventSourcesPaginator.d.ts +11 -0
  154. package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/ListSubscribersPaginator.d.ts +11 -0
  156. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  157. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  158. package/dist-types/ts3.4/runtimeConfig.d.ts +103 -0
  159. package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
  160. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  161. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  162. package/dist-types/ts3.4/schemas/schemas_0.d.ts +140 -0
  163. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  164. package/dist-types/ts3.4/waiters/waitForEventBusActive.d.ts +15 -0
  165. package/dist-types/ts3.4/waiters/waitForEventBusDeleted.d.ts +16 -0
  166. package/dist-types/waiters/index.d.ts +2 -0
  167. package/dist-types/waiters/waitForEventBusActive.d.ts +15 -0
  168. package/dist-types/waiters/waitForEventBusDeleted.d.ts +16 -0
  169. package/package.json +69 -0
@@ -0,0 +1,73 @@
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
+ import { CreateEventBusCommand, } from "./commands/CreateEventBusCommand";
3
+ import { CreateEventSourceCommand, } from "./commands/CreateEventSourceCommand";
4
+ import { CreateSubscriberCommand, } from "./commands/CreateSubscriberCommand";
5
+ import { DeleteEventBusCommand, } from "./commands/DeleteEventBusCommand";
6
+ import { DeleteEventSourceCommand, } from "./commands/DeleteEventSourceCommand";
7
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
8
+ import { DeleteSubscriberCommand, } from "./commands/DeleteSubscriberCommand";
9
+ import { DescribeEventBusCommand, } from "./commands/DescribeEventBusCommand";
10
+ import { DescribeEventSourceCommand, } from "./commands/DescribeEventSourceCommand";
11
+ import { DescribeSubscriberCommand, } from "./commands/DescribeSubscriberCommand";
12
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
13
+ import { ListEventBusesCommand, } from "./commands/ListEventBusesCommand";
14
+ import { ListEventSourcesCommand, } from "./commands/ListEventSourcesCommand";
15
+ import { ListResourcePoliciesCommand, } from "./commands/ListResourcePoliciesCommand";
16
+ import { ListSubscribersCommand, } from "./commands/ListSubscribersCommand";
17
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
18
+ import { PutEventsCommand } from "./commands/PutEventsCommand";
19
+ import { PutRawEventsCommand, } from "./commands/PutRawEventsCommand";
20
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
21
+ import { RevokeResourceCommand, } from "./commands/RevokeResourceCommand";
22
+ import { TagResourceCommand, } from "./commands/TagResourceCommand";
23
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
24
+ import { UpdateEventBusCommand, } from "./commands/UpdateEventBusCommand";
25
+ import { UpdateEventSourceCommand, } from "./commands/UpdateEventSourceCommand";
26
+ import { UpdateSubscriberCommand, } from "./commands/UpdateSubscriberCommand";
27
+ import { EventBridgeV2Client } from "./EventBridgeV2Client";
28
+ import { paginateListEventBuses } from "./pagination/ListEventBusesPaginator";
29
+ import { paginateListEventSources } from "./pagination/ListEventSourcesPaginator";
30
+ import { paginateListResourcePolicies } from "./pagination/ListResourcePoliciesPaginator";
31
+ import { paginateListSubscribers } from "./pagination/ListSubscribersPaginator";
32
+ import { waitUntilEventBusActive } from "./waiters/waitForEventBusActive";
33
+ import { waitUntilEventBusDeleted } from "./waiters/waitForEventBusDeleted";
34
+ const commands = {
35
+ CreateEventBusCommand,
36
+ CreateEventSourceCommand,
37
+ CreateSubscriberCommand,
38
+ DeleteEventBusCommand,
39
+ DeleteEventSourceCommand,
40
+ DeleteResourcePolicyCommand,
41
+ DeleteSubscriberCommand,
42
+ DescribeEventBusCommand,
43
+ DescribeEventSourceCommand,
44
+ DescribeSubscriberCommand,
45
+ GetResourcePolicyCommand,
46
+ ListEventBusesCommand,
47
+ ListEventSourcesCommand,
48
+ ListResourcePoliciesCommand,
49
+ ListSubscribersCommand,
50
+ ListTagsForResourceCommand,
51
+ PutEventsCommand,
52
+ PutRawEventsCommand,
53
+ PutResourcePolicyCommand,
54
+ RevokeResourceCommand,
55
+ TagResourceCommand,
56
+ UntagResourceCommand,
57
+ UpdateEventBusCommand,
58
+ UpdateEventSourceCommand,
59
+ UpdateSubscriberCommand,
60
+ };
61
+ const paginators = {
62
+ paginateListEventBuses,
63
+ paginateListEventSources,
64
+ paginateListResourcePolicies,
65
+ paginateListSubscribers,
66
+ };
67
+ const waiters = {
68
+ waitUntilEventBusActive,
69
+ waitUntilEventBusDeleted,
70
+ };
71
+ export class EventBridgeV2 extends EventBridgeV2Client {
72
+ }
73
+ createAggregatedClient(commands, EventBridgeV2, { paginators, waiters });
@@ -0,0 +1,49 @@
1
+ import { resolveAccountIdEndpointModeConfig, } from "@aws-sdk/core/account-id-endpoint";
2
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
3
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
4
+ import { Client as __Client, } from "@smithy/core/client";
5
+ import { resolveRegionConfig } from "@smithy/core/config";
6
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
7
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
8
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
9
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
10
+ import { defaultEventBridgeV2HttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
11
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
14
+ export { __Client };
15
+ export class EventBridgeV2Client extends __Client {
16
+ config;
17
+ constructor(...[configuration]) {
18
+ const _config_0 = __getRuntimeConfig(configuration || {});
19
+ super(_config_0);
20
+ this.initConfig = _config_0;
21
+ const _config_1 = resolveClientEndpointParameters(_config_0);
22
+ const _config_2 = resolveAccountIdEndpointModeConfig(_config_1);
23
+ const _config_3 = resolveUserAgentConfig(_config_2);
24
+ const _config_4 = resolveRetryConfig(_config_3);
25
+ const _config_5 = resolveRegionConfig(_config_4);
26
+ const _config_6 = resolveHostHeaderConfig(_config_5);
27
+ const _config_7 = resolveEndpointConfig(_config_6);
28
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
29
+ const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
30
+ this.config = _config_9;
31
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
32
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
+ this.middlewareStack.use(getRetryPlugin(this.config));
34
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
35
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
36
+ this.middlewareStack.use(getLoggerPlugin(this.config));
37
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
38
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
39
+ httpAuthSchemeParametersProvider: defaultEventBridgeV2HttpAuthSchemeParametersProvider,
40
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
41
+ "aws.auth#sigv4": config.credentials,
42
+ }),
43
+ }));
44
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
45
+ }
46
+ destroy() {
47
+ super.destroy();
48
+ }
49
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,40 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultEventBridgeV2HttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
9
+ };
10
+ };
11
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
+ return {
13
+ schemeId: "aws.auth#sigv4",
14
+ signingProperties: {
15
+ name: "events",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
24
+ };
25
+ }
26
+ export const defaultEventBridgeV2HttpAuthSchemeProvider = (authParameters) => {
27
+ const options = [];
28
+ switch (authParameters.operation) {
29
+ default: {
30
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
+ }
32
+ }
33
+ return options;
34
+ };
35
+ export const resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
37
+ return Object.assign(config_0, {
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
+ });
40
+ };
@@ -0,0 +1,12 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AWSEventsV2", "EventBridgeV2Client", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _ep1 = {
7
+ EventBusArn: { type: "contextParams", name: "EventBusArn" },
8
+ };
9
+ export const _ep2 = {
10
+ EventBusArn: { type: "contextParams", name: "ResourceArn" },
11
+ };
12
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateEventBus$ } from "../schemas/schemas_0";
3
+ export class CreateEventBusCommand extends command(_ep0, _mw0, "CreateEventBus", CreateEventBus$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { CreateEventSource$ } from "../schemas/schemas_0";
3
+ export class CreateEventSourceCommand extends command(_ep1, _mw0, "CreateEventSource", CreateEventSource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { CreateSubscriber$ } from "../schemas/schemas_0";
3
+ export class CreateSubscriberCommand extends command(_ep1, _mw0, "CreateSubscriber", CreateSubscriber$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { DeleteEventBus$ } from "../schemas/schemas_0";
3
+ export class DeleteEventBusCommand extends command(_ep1, _mw0, "DeleteEventBus", DeleteEventBus$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteEventSource$ } from "../schemas/schemas_0";
3
+ export class DeleteEventSourceCommand extends command(_ep0, _mw0, "DeleteEventSource", DeleteEventSource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
+ import { DeleteResourcePolicy$ } from "../schemas/schemas_0";
3
+ export class DeleteResourcePolicyCommand extends command(_ep2, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteSubscriber$ } from "../schemas/schemas_0";
3
+ export class DeleteSubscriberCommand extends command(_ep0, _mw0, "DeleteSubscriber", DeleteSubscriber$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { DescribeEventBus$ } from "../schemas/schemas_0";
3
+ export class DescribeEventBusCommand extends command(_ep1, _mw0, "DescribeEventBus", DescribeEventBus$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DescribeEventSource$ } from "../schemas/schemas_0";
3
+ export class DescribeEventSourceCommand extends command(_ep0, _mw0, "DescribeEventSource", DescribeEventSource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DescribeSubscriber$ } from "../schemas/schemas_0";
3
+ export class DescribeSubscriberCommand extends command(_ep0, _mw0, "DescribeSubscriber", DescribeSubscriber$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
+ import { GetResourcePolicy$ } from "../schemas/schemas_0";
3
+ export class GetResourcePolicyCommand extends command(_ep2, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListEventBuses$ } from "../schemas/schemas_0";
3
+ export class ListEventBusesCommand extends command(_ep0, _mw0, "ListEventBuses", ListEventBuses$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { ListEventSources$ } from "../schemas/schemas_0";
3
+ export class ListEventSourcesCommand extends command(_ep1, _mw0, "ListEventSources", ListEventSources$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
+ import { ListResourcePolicies$ } from "../schemas/schemas_0";
3
+ export class ListResourcePoliciesCommand extends command(_ep2, _mw0, "ListResourcePolicies", ListResourcePolicies$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { ListSubscribers$ } from "../schemas/schemas_0";
3
+ export class ListSubscribersCommand extends command(_ep1, _mw0, "ListSubscribers", ListSubscribers$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListTagsForResource$ } from "../schemas/schemas_0";
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { PutEvents$ } from "../schemas/schemas_0";
3
+ export class PutEventsCommand extends command(_ep1, _mw0, "PutEvents", PutEvents$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { PutRawEvents$ } from "../schemas/schemas_0";
3
+ export class PutRawEventsCommand extends command(_ep1, _mw0, "PutRawEvents", PutRawEvents$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
+ import { PutResourcePolicy$ } from "../schemas/schemas_0";
3
+ export class PutResourcePolicyCommand extends command(_ep2, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { RevokeResource$ } from "../schemas/schemas_0";
3
+ export class RevokeResourceCommand extends command(_ep0, _mw0, "RevokeResource", RevokeResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { TagResource$ } from "../schemas/schemas_0";
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UntagResource$ } from "../schemas/schemas_0";
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { UpdateEventBus$ } from "../schemas/schemas_0";
3
+ export class UpdateEventBusCommand extends command(_ep1, _mw0, "UpdateEventBus", UpdateEventBus$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateEventSource$ } from "../schemas/schemas_0";
3
+ export class UpdateEventSourceCommand extends command(_ep0, _mw0, "UpdateEventSource", UpdateEventSource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateSubscriber$ } from "../schemas/schemas_0";
3
+ export class UpdateSubscriberCommand extends command(_ep0, _mw0, "UpdateSubscriber", UpdateSubscriber$) {
4
+ }
@@ -0,0 +1,25 @@
1
+ export * from "./CreateEventBusCommand";
2
+ export * from "./CreateEventSourceCommand";
3
+ export * from "./CreateSubscriberCommand";
4
+ export * from "./DeleteEventBusCommand";
5
+ export * from "./DeleteEventSourceCommand";
6
+ export * from "./DeleteResourcePolicyCommand";
7
+ export * from "./DeleteSubscriberCommand";
8
+ export * from "./DescribeEventBusCommand";
9
+ export * from "./DescribeEventSourceCommand";
10
+ export * from "./DescribeSubscriberCommand";
11
+ export * from "./GetResourcePolicyCommand";
12
+ export * from "./ListEventBusesCommand";
13
+ export * from "./ListEventSourcesCommand";
14
+ export * from "./ListResourcePoliciesCommand";
15
+ export * from "./ListSubscribersCommand";
16
+ export * from "./ListTagsForResourceCommand";
17
+ export * from "./PutEventsCommand";
18
+ export * from "./PutRawEventsCommand";
19
+ export * from "./PutResourcePolicyCommand";
20
+ export * from "./RevokeResourceCommand";
21
+ export * from "./TagResourceCommand";
22
+ export * from "./UntagResourceCommand";
23
+ export * from "./UpdateEventBusCommand";
24
+ export * from "./UpdateEventSourceCommand";
25
+ export * from "./UpdateSubscriberCommand";
@@ -0,0 +1,15 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ defaultSigningName: "events",
6
+ });
7
+ };
8
+ export const commonParams = {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ AccountId: { type: "builtInParams", name: "accountId" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ AccountIdEndpointMode: { type: "builtInParams", name: "accountIdEndpointMode" },
15
+ };
@@ -0,0 +1,85 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const t = "ref";
3
+ const a = -1, b = false, c = true, d = "isSet", e = "PartitionResult", f = "stringEquals", g = "ParsedBusArn", h = "getAttr", i = "isValidHostLabel", j = "booleanEquals", k = { [t]: "Endpoint" }, l = { [t]: "AccountIdEndpointMode" }, m = { [t]: g }, n = { [t]: "AccountId" }, o = { [t]: e }, p = {}, q = { "metricValues": ["O"] }, s = [{ [t]: "EventBusArn" }];
4
+ const _data = {
5
+ conditions: [
6
+ [d, [k]],
7
+ ["aws.partition", [{ [t]: "Region" }], e],
8
+ [d, [l]],
9
+ [f, [l, "disabled"]],
10
+ [d, s],
11
+ ["aws.parseArn", s, g],
12
+ [f, [{ fn: h, argv: [m, "service"] }, "events"]],
13
+ [i, [{ fn: h, argv: [m, "accountId"] }, b]],
14
+ [d, [n]],
15
+ [f, [l, "required"]],
16
+ [i, [n, b]],
17
+ [j, [{ [t]: "UseFIPS" }, c]],
18
+ [j, [{ [t]: "UseDualStack" }, c]],
19
+ [j, [{ fn: h, argv: [o, "supportsDualStack"] }, c]],
20
+ [j, [{ fn: h, argv: [o, "supportsFIPS"] }, c]]
21
+ ],
22
+ results: [
23
+ [a],
24
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
25
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
26
+ [k, p],
27
+ ["https://{ParsedBusArn#accountId}.eventsv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", q],
28
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
29
+ ["https://{ParsedBusArn#accountId}.eventsv2-fips.{Region}.{PartitionResult#dnsSuffix}", q],
30
+ [a, "FIPS is enabled but this partition does not support FIPS"],
31
+ ["https://{ParsedBusArn#accountId}.eventsv2.{Region}.{PartitionResult#dualStackDnsSuffix}", q],
32
+ [a, "DualStack is enabled but this partition does not support DualStack"],
33
+ ["https://{ParsedBusArn#accountId}.eventsv2.{Region}.{PartitionResult#dnsSuffix}", q],
34
+ ["https://{AccountId}.eventsv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", q],
35
+ ["https://{AccountId}.eventsv2-fips.{Region}.{PartitionResult#dnsSuffix}", q],
36
+ ["https://{AccountId}.eventsv2.{Region}.{PartitionResult#dualStackDnsSuffix}", q],
37
+ ["https://{AccountId}.eventsv2.{Region}.{PartitionResult#dnsSuffix}", q],
38
+ [a, "Credentials-sourced account ID parameter is invalid"],
39
+ [a, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"],
40
+ ["https://eventsv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p],
41
+ ["https://eventsv2-fips.{Region}.{PartitionResult#dnsSuffix}", p],
42
+ ["https://eventsv2.{Region}.{PartitionResult#dualStackDnsSuffix}", p],
43
+ ["https://eventsv2.{Region}.{PartitionResult#dnsSuffix}", p]
44
+ ]
45
+ };
46
+ const root = 2;
47
+ const r = 100_000_000;
48
+ const nodes = new Int32Array([
49
+ -1, 1, -1,
50
+ 0, 34, 3,
51
+ 1, 4, r + 0,
52
+ 2, 5, 27,
53
+ 3, 26, 6,
54
+ 4, 7, 10,
55
+ 5, 8, 10,
56
+ 6, 9, 10,
57
+ 7, 19, 10,
58
+ 8, 11, 26,
59
+ 10, 12, r + 15,
60
+ 11, 15, 13,
61
+ 12, 14, r + 14,
62
+ 13, r + 13, r + 9,
63
+ 12, 17, 16,
64
+ 14, r + 12, r + 7,
65
+ 13, 18, r + 5,
66
+ 14, r + 11, r + 5,
67
+ 11, 22, 20,
68
+ 12, 21, r + 10,
69
+ 13, r + 8, r + 9,
70
+ 12, 24, 23,
71
+ 14, r + 6, r + 7,
72
+ 13, 25, r + 5,
73
+ 14, r + 4, r + 5,
74
+ 9, r + 16, 27,
75
+ 11, 30, 28,
76
+ 12, 29, r + 20,
77
+ 13, r + 19, r + 9,
78
+ 12, 32, 31,
79
+ 14, r + 18, r + 7,
80
+ 13, 33, r + 5,
81
+ 14, r + 17, r + 5,
82
+ 11, r + 1, 35,
83
+ 12, r + 2, r + 3,
84
+ ]);
85
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/core/client";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
+ import { bdd } from "./bdd";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["AccountId", "AccountIdEndpointMode", "Endpoint", "EventBusArn", "Region", "UseDualStack", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export * from "./EventBridgeV2Client";
2
+ export * from "./EventBridgeV2";
3
+ export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
7
+ export * from "./schemas/schemas_0";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
11
+ export { EventBridgeV2ServiceException } from "./models/EventBridgeV2ServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
+ export { __ServiceException };
3
+ export class EventBridgeV2ServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, EventBridgeV2ServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1,78 @@
1
+ export const BusState = {
2
+ ACTIVE: "ACTIVE",
3
+ CREATE_FAILED: "CREATE_FAILED",
4
+ CREATING: "CREATING",
5
+ DELETE_FAILED: "DELETE_FAILED",
6
+ DELETING: "DELETING",
7
+ UPDATE_FAILED: "UPDATE_FAILED",
8
+ UPDATING: "UPDATING",
9
+ };
10
+ export const EventSourceState = {
11
+ ACTIVE: "ACTIVE",
12
+ CREATE_FAILED: "CREATE_FAILED",
13
+ CREATING: "CREATING",
14
+ DELETE_FAILED: "DELETE_FAILED",
15
+ DELETING: "DELETING",
16
+ UPDATE_FAILED: "UPDATE_FAILED",
17
+ UPDATING: "UPDATING",
18
+ };
19
+ export const FilterScope = {
20
+ DATA: "DATA",
21
+ METADATA: "METADATA",
22
+ SYSTEM_METADATA: "SYSTEM_METADATA",
23
+ };
24
+ export const FilterLanguage = {
25
+ EVENT_BRIDGE_PATTERN: "EVENT_BRIDGE_PATTERN",
26
+ };
27
+ export const DeduplicationType = {
28
+ CONTENT_BASED: "CONTENT_BASED",
29
+ };
30
+ export const InvocationType = {
31
+ EVENT: "EVENT",
32
+ REQUEST_RESPONSE: "REQUEST_RESPONSE",
33
+ };
34
+ export const IncludePayload = {
35
+ FULL: "FULL",
36
+ ON_ERROR_ONLY: "ON_ERROR_ONLY",
37
+ };
38
+ export const LogLevel = {
39
+ ERROR: "ERROR",
40
+ INFO: "INFO",
41
+ OFF: "OFF",
42
+ };
43
+ export const PointType = {
44
+ HORIZON: "HORIZON",
45
+ TIMESTAMP: "TIMESTAMP",
46
+ };
47
+ export const RetryStrategy = {
48
+ ALL: "ALL",
49
+ };
50
+ export const StartingPosition = {
51
+ LATEST: "LATEST",
52
+ POINT_IN_TIME: "POINT_IN_TIME",
53
+ };
54
+ export const SubscriberState = {
55
+ RUNNING: "RUNNING",
56
+ STOPPED: "STOPPED",
57
+ };
58
+ export const TransformerType = {
59
+ JSONATA: "JSONATA",
60
+ RAW: "RAW",
61
+ WITH_METADATA: "WITH_METADATA",
62
+ };
63
+ export const OrderingType = {
64
+ FIFO: "FIFO",
65
+ UNORDERED: "UNORDERED",
66
+ };
67
+ export const EventSourceType = {
68
+ AWS_SERVICE_EVENTS: "AWS_SERVICE_EVENTS",
69
+ PARTNER_EVENTS: "PARTNER_EVENTS",
70
+ };
71
+ export const SuccessCode = {
72
+ DEDUPLICATED: "DEDUPLICATED",
73
+ PUBLISHED: "PUBLISHED",
74
+ };
75
+ export const ResumePosition = {
76
+ LAST_PROCESSED: "LAST_PROCESSED",
77
+ LATEST: "LATEST",
78
+ };