@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.
- package/LICENSE +201 -0
- package/README.md +362 -0
- package/dist-cjs/index.js +1982 -0
- package/dist-es/EventBridgeV2.js +73 -0
- package/dist-es/EventBridgeV2Client.js +49 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +12 -0
- package/dist-es/commands/CreateEventBusCommand.js +4 -0
- package/dist-es/commands/CreateEventSourceCommand.js +4 -0
- package/dist-es/commands/CreateSubscriberCommand.js +4 -0
- package/dist-es/commands/DeleteEventBusCommand.js +4 -0
- package/dist-es/commands/DeleteEventSourceCommand.js +4 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
- package/dist-es/commands/DeleteSubscriberCommand.js +4 -0
- package/dist-es/commands/DescribeEventBusCommand.js +4 -0
- package/dist-es/commands/DescribeEventSourceCommand.js +4 -0
- package/dist-es/commands/DescribeSubscriberCommand.js +4 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/dist-es/commands/ListEventBusesCommand.js +4 -0
- package/dist-es/commands/ListEventSourcesCommand.js +4 -0
- package/dist-es/commands/ListResourcePoliciesCommand.js +4 -0
- package/dist-es/commands/ListSubscribersCommand.js +4 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/PutEventsCommand.js +4 -0
- package/dist-es/commands/PutRawEventsCommand.js +4 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/dist-es/commands/RevokeResourceCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateEventBusCommand.js +4 -0
- package/dist-es/commands/UpdateEventSourceCommand.js +4 -0
- package/dist-es/commands/UpdateSubscriberCommand.js +4 -0
- package/dist-es/commands/index.js +25 -0
- package/dist-es/endpoint/EndpointParameters.js +15 -0
- package/dist-es/endpoint/bdd.js +85 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +11 -0
- package/dist-es/models/EventBridgeV2ServiceException.js +8 -0
- package/dist-es/models/enums.js +78 -0
- package/dist-es/models/errors.js +217 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEventBusesPaginator.js +4 -0
- package/dist-es/pagination/ListEventSourcesPaginator.js +4 -0
- package/dist-es/pagination/ListResourcePoliciesPaginator.js +4 -0
- package/dist-es/pagination/ListSubscribersPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/runtimeConfig.browser.js +31 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +41 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +939 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForEventBusActive.js +58 -0
- package/dist-es/waiters/waitForEventBusDeleted.js +34 -0
- package/dist-types/EventBridgeV2.d.ts +242 -0
- package/dist-types/EventBridgeV2Client.d.ts +222 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +26 -0
- package/dist-types/commands/CreateEventBusCommand.d.ts +128 -0
- package/dist-types/commands/CreateEventSourceCommand.d.ts +135 -0
- package/dist-types/commands/CreateSubscriberCommand.d.ts +245 -0
- package/dist-types/commands/DeleteEventBusCommand.d.ts +100 -0
- package/dist-types/commands/DeleteEventSourceCommand.d.ts +94 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +106 -0
- package/dist-types/commands/DeleteSubscriberCommand.d.ts +90 -0
- package/dist-types/commands/DescribeEventBusCommand.d.ts +102 -0
- package/dist-types/commands/DescribeEventSourceCommand.d.ts +113 -0
- package/dist-types/commands/DescribeSubscriberCommand.d.ts +215 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +95 -0
- package/dist-types/commands/ListEventBusesCommand.d.ts +104 -0
- package/dist-types/commands/ListEventSourcesCommand.d.ts +107 -0
- package/dist-types/commands/ListResourcePoliciesCommand.d.ts +98 -0
- package/dist-types/commands/ListSubscribersCommand.d.ts +108 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +91 -0
- package/dist-types/commands/PutEventsCommand.d.ts +120 -0
- package/dist-types/commands/PutRawEventsCommand.d.ts +127 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +132 -0
- package/dist-types/commands/RevokeResourceCommand.d.ts +99 -0
- package/dist-types/commands/TagResourceCommand.d.ts +100 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +97 -0
- package/dist-types/commands/UpdateEventBusCommand.d.ts +117 -0
- package/dist-types/commands/UpdateEventSourceCommand.d.ts +118 -0
- package/dist-types/commands/UpdateSubscriberCommand.d.ts +224 -0
- package/dist-types/commands/index.d.ts +25 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +63 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +25 -0
- package/dist-types/models/EventBridgeV2ServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +250 -0
- package/dist-types/models/errors.d.ts +227 -0
- package/dist-types/models/models_0.d.ts +2532 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListEventBusesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEventSourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSubscribersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/runtimeConfig.browser.d.ts +59 -0
- package/dist-types/runtimeConfig.d.ts +59 -0
- package/dist-types/runtimeConfig.native.d.ts +58 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +140 -0
- package/dist-types/ts3.4/EventBridgeV2.d.ts +484 -0
- package/dist-types/ts3.4/EventBridgeV2Client.d.ts +253 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateEventBusCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateEventSourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateSubscriberCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteEventBusCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteEventSourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteSubscriberCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeEventBusCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeEventSourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeSubscriberCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListEventBusesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListEventSourcesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListResourcePoliciesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListSubscribersCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutRawEventsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/RevokeResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateEventBusCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateEventSourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateSubscriberCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +25 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +64 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +14 -0
- package/dist-types/ts3.4/models/EventBridgeV2ServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +95 -0
- package/dist-types/ts3.4/models/errors.d.ts +98 -0
- package/dist-types/ts3.4/models/models_0.d.ts +552 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListEventBusesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEventSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSubscribersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +103 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +140 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForEventBusActive.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForEventBusDeleted.d.ts +16 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForEventBusActive.d.ts +15 -0
- package/dist-types/waiters/waitForEventBusDeleted.d.ts +16 -0
- 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,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 {};
|
package/dist-es/index.js
ADDED
|
@@ -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
|
+
};
|