@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,58 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { DescribeEventBusCommand, } from "../commands/DescribeEventBusCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new DescribeEventBusCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "UPDATE_FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.State;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "DELETE_FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
try {
|
|
36
|
+
const returnComparator = () => {
|
|
37
|
+
return result.State;
|
|
38
|
+
};
|
|
39
|
+
if (returnComparator() === "ACTIVE") {
|
|
40
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) { }
|
|
44
|
+
}
|
|
45
|
+
catch (exception) {
|
|
46
|
+
reason = exception;
|
|
47
|
+
}
|
|
48
|
+
return { state: WaiterState.RETRY, reason };
|
|
49
|
+
};
|
|
50
|
+
export const waitForEventBusActive = async (params, input) => {
|
|
51
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
52
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
53
|
+
};
|
|
54
|
+
export const waitUntilEventBusActive = async (params, input) => {
|
|
55
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
56
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
+
return checkExceptions(result);
|
|
58
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { DescribeEventBusCommand, } from "../commands/DescribeEventBusCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new DescribeEventBusCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETE_FAILED") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
catch (exception) {
|
|
19
|
+
reason = exception;
|
|
20
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return { state: WaiterState.RETRY, reason };
|
|
25
|
+
};
|
|
26
|
+
export const waitForEventBusDeleted = async (params, input) => {
|
|
27
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
28
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
29
|
+
};
|
|
30
|
+
export const waitUntilEventBusDeleted = async (params, input) => {
|
|
31
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
32
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
33
|
+
return checkExceptions(result);
|
|
34
|
+
};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { type WaiterResult } from "@smithy/core/client";
|
|
2
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
|
|
3
|
+
import { type CreateEventBusCommandInput, type CreateEventBusCommandOutput } from "./commands/CreateEventBusCommand";
|
|
4
|
+
import { type CreateEventSourceCommandInput, type CreateEventSourceCommandOutput } from "./commands/CreateEventSourceCommand";
|
|
5
|
+
import { type CreateSubscriberCommandInput, type CreateSubscriberCommandOutput } from "./commands/CreateSubscriberCommand";
|
|
6
|
+
import { type DeleteEventBusCommandInput, type DeleteEventBusCommandOutput } from "./commands/DeleteEventBusCommand";
|
|
7
|
+
import { type DeleteEventSourceCommandInput, type DeleteEventSourceCommandOutput } from "./commands/DeleteEventSourceCommand";
|
|
8
|
+
import { type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
9
|
+
import { type DeleteSubscriberCommandInput, type DeleteSubscriberCommandOutput } from "./commands/DeleteSubscriberCommand";
|
|
10
|
+
import { type DescribeEventBusCommandInput, type DescribeEventBusCommandOutput } from "./commands/DescribeEventBusCommand";
|
|
11
|
+
import { type DescribeEventSourceCommandInput, type DescribeEventSourceCommandOutput } from "./commands/DescribeEventSourceCommand";
|
|
12
|
+
import { type DescribeSubscriberCommandInput, type DescribeSubscriberCommandOutput } from "./commands/DescribeSubscriberCommand";
|
|
13
|
+
import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
14
|
+
import { type ListEventBusesCommandInput, type ListEventBusesCommandOutput } from "./commands/ListEventBusesCommand";
|
|
15
|
+
import { type ListEventSourcesCommandInput, type ListEventSourcesCommandOutput } from "./commands/ListEventSourcesCommand";
|
|
16
|
+
import { type ListResourcePoliciesCommandInput, type ListResourcePoliciesCommandOutput } from "./commands/ListResourcePoliciesCommand";
|
|
17
|
+
import { type ListSubscribersCommandInput, type ListSubscribersCommandOutput } from "./commands/ListSubscribersCommand";
|
|
18
|
+
import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
19
|
+
import { type PutEventsCommandInput, type PutEventsCommandOutput } from "./commands/PutEventsCommand";
|
|
20
|
+
import { type PutRawEventsCommandInput, type PutRawEventsCommandOutput } from "./commands/PutRawEventsCommand";
|
|
21
|
+
import { type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
22
|
+
import { type RevokeResourceCommandInput, type RevokeResourceCommandOutput } from "./commands/RevokeResourceCommand";
|
|
23
|
+
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
24
|
+
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
25
|
+
import { type UpdateEventBusCommandInput, type UpdateEventBusCommandOutput } from "./commands/UpdateEventBusCommand";
|
|
26
|
+
import { type UpdateEventSourceCommandInput, type UpdateEventSourceCommandOutput } from "./commands/UpdateEventSourceCommand";
|
|
27
|
+
import { type UpdateSubscriberCommandInput, type UpdateSubscriberCommandOutput } from "./commands/UpdateSubscriberCommand";
|
|
28
|
+
import { EventBridgeV2Client } from "./EventBridgeV2Client";
|
|
29
|
+
import type { ResourceNotFoundException } from "./models/errors";
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export interface EventBridgeV2RequestOptions extends __HttpHandlerOptions {
|
|
34
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
35
|
+
}
|
|
36
|
+
export interface EventBridgeV2 {
|
|
37
|
+
/**
|
|
38
|
+
* @see {@link CreateEventBusCommand}
|
|
39
|
+
*/
|
|
40
|
+
createEventBus(args: CreateEventBusCommandInput, options?: EventBridgeV2RequestOptions): Promise<CreateEventBusCommandOutput>;
|
|
41
|
+
createEventBus(args: CreateEventBusCommandInput, cb: (err: any, data?: CreateEventBusCommandOutput) => void): void;
|
|
42
|
+
createEventBus(args: CreateEventBusCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: CreateEventBusCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link CreateEventSourceCommand}
|
|
45
|
+
*/
|
|
46
|
+
createEventSource(args: CreateEventSourceCommandInput, options?: EventBridgeV2RequestOptions): Promise<CreateEventSourceCommandOutput>;
|
|
47
|
+
createEventSource(args: CreateEventSourceCommandInput, cb: (err: any, data?: CreateEventSourceCommandOutput) => void): void;
|
|
48
|
+
createEventSource(args: CreateEventSourceCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: CreateEventSourceCommandOutput) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link CreateSubscriberCommand}
|
|
51
|
+
*/
|
|
52
|
+
createSubscriber(args: CreateSubscriberCommandInput, options?: EventBridgeV2RequestOptions): Promise<CreateSubscriberCommandOutput>;
|
|
53
|
+
createSubscriber(args: CreateSubscriberCommandInput, cb: (err: any, data?: CreateSubscriberCommandOutput) => void): void;
|
|
54
|
+
createSubscriber(args: CreateSubscriberCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: CreateSubscriberCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link DeleteEventBusCommand}
|
|
57
|
+
*/
|
|
58
|
+
deleteEventBus(args: DeleteEventBusCommandInput, options?: EventBridgeV2RequestOptions): Promise<DeleteEventBusCommandOutput>;
|
|
59
|
+
deleteEventBus(args: DeleteEventBusCommandInput, cb: (err: any, data?: DeleteEventBusCommandOutput) => void): void;
|
|
60
|
+
deleteEventBus(args: DeleteEventBusCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: DeleteEventBusCommandOutput) => void): void;
|
|
61
|
+
/**
|
|
62
|
+
* @see {@link DeleteEventSourceCommand}
|
|
63
|
+
*/
|
|
64
|
+
deleteEventSource(args: DeleteEventSourceCommandInput, options?: EventBridgeV2RequestOptions): Promise<DeleteEventSourceCommandOutput>;
|
|
65
|
+
deleteEventSource(args: DeleteEventSourceCommandInput, cb: (err: any, data?: DeleteEventSourceCommandOutput) => void): void;
|
|
66
|
+
deleteEventSource(args: DeleteEventSourceCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: DeleteEventSourceCommandOutput) => void): void;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
69
|
+
*/
|
|
70
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: EventBridgeV2RequestOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
71
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
72
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
73
|
+
/**
|
|
74
|
+
* @see {@link DeleteSubscriberCommand}
|
|
75
|
+
*/
|
|
76
|
+
deleteSubscriber(args: DeleteSubscriberCommandInput, options?: EventBridgeV2RequestOptions): Promise<DeleteSubscriberCommandOutput>;
|
|
77
|
+
deleteSubscriber(args: DeleteSubscriberCommandInput, cb: (err: any, data?: DeleteSubscriberCommandOutput) => void): void;
|
|
78
|
+
deleteSubscriber(args: DeleteSubscriberCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: DeleteSubscriberCommandOutput) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link DescribeEventBusCommand}
|
|
81
|
+
*/
|
|
82
|
+
describeEventBus(args: DescribeEventBusCommandInput, options?: EventBridgeV2RequestOptions): Promise<DescribeEventBusCommandOutput>;
|
|
83
|
+
describeEventBus(args: DescribeEventBusCommandInput, cb: (err: any, data?: DescribeEventBusCommandOutput) => void): void;
|
|
84
|
+
describeEventBus(args: DescribeEventBusCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: DescribeEventBusCommandOutput) => void): void;
|
|
85
|
+
/**
|
|
86
|
+
* @see {@link DescribeEventSourceCommand}
|
|
87
|
+
*/
|
|
88
|
+
describeEventSource(args: DescribeEventSourceCommandInput, options?: EventBridgeV2RequestOptions): Promise<DescribeEventSourceCommandOutput>;
|
|
89
|
+
describeEventSource(args: DescribeEventSourceCommandInput, cb: (err: any, data?: DescribeEventSourceCommandOutput) => void): void;
|
|
90
|
+
describeEventSource(args: DescribeEventSourceCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: DescribeEventSourceCommandOutput) => void): void;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link DescribeSubscriberCommand}
|
|
93
|
+
*/
|
|
94
|
+
describeSubscriber(args: DescribeSubscriberCommandInput, options?: EventBridgeV2RequestOptions): Promise<DescribeSubscriberCommandOutput>;
|
|
95
|
+
describeSubscriber(args: DescribeSubscriberCommandInput, cb: (err: any, data?: DescribeSubscriberCommandOutput) => void): void;
|
|
96
|
+
describeSubscriber(args: DescribeSubscriberCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: DescribeSubscriberCommandOutput) => void): void;
|
|
97
|
+
/**
|
|
98
|
+
* @see {@link GetResourcePolicyCommand}
|
|
99
|
+
*/
|
|
100
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: EventBridgeV2RequestOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
101
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
102
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
103
|
+
/**
|
|
104
|
+
* @see {@link ListEventBusesCommand}
|
|
105
|
+
*/
|
|
106
|
+
listEventBuses(): Promise<ListEventBusesCommandOutput>;
|
|
107
|
+
listEventBuses(args: ListEventBusesCommandInput, options?: EventBridgeV2RequestOptions): Promise<ListEventBusesCommandOutput>;
|
|
108
|
+
listEventBuses(args: ListEventBusesCommandInput, cb: (err: any, data?: ListEventBusesCommandOutput) => void): void;
|
|
109
|
+
listEventBuses(args: ListEventBusesCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: ListEventBusesCommandOutput) => void): void;
|
|
110
|
+
/**
|
|
111
|
+
* @see {@link ListEventSourcesCommand}
|
|
112
|
+
*/
|
|
113
|
+
listEventSources(): Promise<ListEventSourcesCommandOutput>;
|
|
114
|
+
listEventSources(args: ListEventSourcesCommandInput, options?: EventBridgeV2RequestOptions): Promise<ListEventSourcesCommandOutput>;
|
|
115
|
+
listEventSources(args: ListEventSourcesCommandInput, cb: (err: any, data?: ListEventSourcesCommandOutput) => void): void;
|
|
116
|
+
listEventSources(args: ListEventSourcesCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: ListEventSourcesCommandOutput) => void): void;
|
|
117
|
+
/**
|
|
118
|
+
* @see {@link ListResourcePoliciesCommand}
|
|
119
|
+
*/
|
|
120
|
+
listResourcePolicies(args: ListResourcePoliciesCommandInput, options?: EventBridgeV2RequestOptions): Promise<ListResourcePoliciesCommandOutput>;
|
|
121
|
+
listResourcePolicies(args: ListResourcePoliciesCommandInput, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
|
|
122
|
+
listResourcePolicies(args: ListResourcePoliciesCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
|
|
123
|
+
/**
|
|
124
|
+
* @see {@link ListSubscribersCommand}
|
|
125
|
+
*/
|
|
126
|
+
listSubscribers(): Promise<ListSubscribersCommandOutput>;
|
|
127
|
+
listSubscribers(args: ListSubscribersCommandInput, options?: EventBridgeV2RequestOptions): Promise<ListSubscribersCommandOutput>;
|
|
128
|
+
listSubscribers(args: ListSubscribersCommandInput, cb: (err: any, data?: ListSubscribersCommandOutput) => void): void;
|
|
129
|
+
listSubscribers(args: ListSubscribersCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: ListSubscribersCommandOutput) => void): void;
|
|
130
|
+
/**
|
|
131
|
+
* @see {@link ListTagsForResourceCommand}
|
|
132
|
+
*/
|
|
133
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: EventBridgeV2RequestOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
134
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
135
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
136
|
+
/**
|
|
137
|
+
* @see {@link PutEventsCommand}
|
|
138
|
+
*/
|
|
139
|
+
putEvents(args: PutEventsCommandInput, options?: EventBridgeV2RequestOptions): Promise<PutEventsCommandOutput>;
|
|
140
|
+
putEvents(args: PutEventsCommandInput, cb: (err: any, data?: PutEventsCommandOutput) => void): void;
|
|
141
|
+
putEvents(args: PutEventsCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: PutEventsCommandOutput) => void): void;
|
|
142
|
+
/**
|
|
143
|
+
* @see {@link PutRawEventsCommand}
|
|
144
|
+
*/
|
|
145
|
+
putRawEvents(args: PutRawEventsCommandInput, options?: EventBridgeV2RequestOptions): Promise<PutRawEventsCommandOutput>;
|
|
146
|
+
putRawEvents(args: PutRawEventsCommandInput, cb: (err: any, data?: PutRawEventsCommandOutput) => void): void;
|
|
147
|
+
putRawEvents(args: PutRawEventsCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: PutRawEventsCommandOutput) => void): void;
|
|
148
|
+
/**
|
|
149
|
+
* @see {@link PutResourcePolicyCommand}
|
|
150
|
+
*/
|
|
151
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: EventBridgeV2RequestOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
152
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
153
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
154
|
+
/**
|
|
155
|
+
* @see {@link RevokeResourceCommand}
|
|
156
|
+
*/
|
|
157
|
+
revokeResource(args: RevokeResourceCommandInput, options?: EventBridgeV2RequestOptions): Promise<RevokeResourceCommandOutput>;
|
|
158
|
+
revokeResource(args: RevokeResourceCommandInput, cb: (err: any, data?: RevokeResourceCommandOutput) => void): void;
|
|
159
|
+
revokeResource(args: RevokeResourceCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: RevokeResourceCommandOutput) => void): void;
|
|
160
|
+
/**
|
|
161
|
+
* @see {@link TagResourceCommand}
|
|
162
|
+
*/
|
|
163
|
+
tagResource(args: TagResourceCommandInput, options?: EventBridgeV2RequestOptions): Promise<TagResourceCommandOutput>;
|
|
164
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
165
|
+
tagResource(args: TagResourceCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
166
|
+
/**
|
|
167
|
+
* @see {@link UntagResourceCommand}
|
|
168
|
+
*/
|
|
169
|
+
untagResource(args: UntagResourceCommandInput, options?: EventBridgeV2RequestOptions): Promise<UntagResourceCommandOutput>;
|
|
170
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
171
|
+
untagResource(args: UntagResourceCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
172
|
+
/**
|
|
173
|
+
* @see {@link UpdateEventBusCommand}
|
|
174
|
+
*/
|
|
175
|
+
updateEventBus(args: UpdateEventBusCommandInput, options?: EventBridgeV2RequestOptions): Promise<UpdateEventBusCommandOutput>;
|
|
176
|
+
updateEventBus(args: UpdateEventBusCommandInput, cb: (err: any, data?: UpdateEventBusCommandOutput) => void): void;
|
|
177
|
+
updateEventBus(args: UpdateEventBusCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: UpdateEventBusCommandOutput) => void): void;
|
|
178
|
+
/**
|
|
179
|
+
* @see {@link UpdateEventSourceCommand}
|
|
180
|
+
*/
|
|
181
|
+
updateEventSource(args: UpdateEventSourceCommandInput, options?: EventBridgeV2RequestOptions): Promise<UpdateEventSourceCommandOutput>;
|
|
182
|
+
updateEventSource(args: UpdateEventSourceCommandInput, cb: (err: any, data?: UpdateEventSourceCommandOutput) => void): void;
|
|
183
|
+
updateEventSource(args: UpdateEventSourceCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: UpdateEventSourceCommandOutput) => void): void;
|
|
184
|
+
/**
|
|
185
|
+
* @see {@link UpdateSubscriberCommand}
|
|
186
|
+
*/
|
|
187
|
+
updateSubscriber(args: UpdateSubscriberCommandInput, options?: EventBridgeV2RequestOptions): Promise<UpdateSubscriberCommandOutput>;
|
|
188
|
+
updateSubscriber(args: UpdateSubscriberCommandInput, cb: (err: any, data?: UpdateSubscriberCommandOutput) => void): void;
|
|
189
|
+
updateSubscriber(args: UpdateSubscriberCommandInput, options: EventBridgeV2RequestOptions, cb: (err: any, data?: UpdateSubscriberCommandOutput) => void): void;
|
|
190
|
+
/**
|
|
191
|
+
* @see {@link ListEventBusesCommand}
|
|
192
|
+
* @param args - command input.
|
|
193
|
+
* @param paginationConfig - optional pagination config.
|
|
194
|
+
* @returns AsyncIterable of {@link ListEventBusesCommandOutput}.
|
|
195
|
+
*/
|
|
196
|
+
paginateListEventBuses(args?: ListEventBusesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEventBusesCommandOutput>;
|
|
197
|
+
/**
|
|
198
|
+
* @see {@link ListEventSourcesCommand}
|
|
199
|
+
* @param args - command input.
|
|
200
|
+
* @param paginationConfig - optional pagination config.
|
|
201
|
+
* @returns AsyncIterable of {@link ListEventSourcesCommandOutput}.
|
|
202
|
+
*/
|
|
203
|
+
paginateListEventSources(args?: ListEventSourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEventSourcesCommandOutput>;
|
|
204
|
+
/**
|
|
205
|
+
* @see {@link ListResourcePoliciesCommand}
|
|
206
|
+
* @param args - command input.
|
|
207
|
+
* @param paginationConfig - optional pagination config.
|
|
208
|
+
* @returns AsyncIterable of {@link ListResourcePoliciesCommandOutput}.
|
|
209
|
+
*/
|
|
210
|
+
paginateListResourcePolicies(args: ListResourcePoliciesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListResourcePoliciesCommandOutput>;
|
|
211
|
+
/**
|
|
212
|
+
* @see {@link ListSubscribersCommand}
|
|
213
|
+
* @param args - command input.
|
|
214
|
+
* @param paginationConfig - optional pagination config.
|
|
215
|
+
* @returns AsyncIterable of {@link ListSubscribersCommandOutput}.
|
|
216
|
+
*/
|
|
217
|
+
paginateListSubscribers(args?: ListSubscribersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSubscribersCommandOutput>;
|
|
218
|
+
/**
|
|
219
|
+
* @see {@link DescribeEventBusCommand}
|
|
220
|
+
* @param args - command input.
|
|
221
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
222
|
+
*/
|
|
223
|
+
waitUntilEventBusActive(args: DescribeEventBusCommandInput, waiterConfig: number | Omit<WaiterConfiguration<EventBridgeV2>, "client">): Promise<WaiterResult<DescribeEventBusCommandOutput>>;
|
|
224
|
+
/**
|
|
225
|
+
* @see {@link DescribeEventBusCommand}
|
|
226
|
+
* @param args - command input.
|
|
227
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
228
|
+
*/
|
|
229
|
+
waitUntilEventBusDeleted(args: DescribeEventBusCommandInput, waiterConfig: number | Omit<WaiterConfiguration<EventBridgeV2>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Amazon EventBridge event bus API. An event bus receives events published by
|
|
233
|
+
* your applications and AWS services, stores them for a configurable retention
|
|
234
|
+
* period, and delivers them to subscribers. A subscriber filters events,
|
|
235
|
+
* optionally transforms them, and invokes a target such as Lambda, SQS, SNS,
|
|
236
|
+
* Kinesis, Step Functions, or an HTTP endpoint. The API manages event buses,
|
|
237
|
+
* subscribers, event sources, resource policies, and tags, and publishes
|
|
238
|
+
* events through PutEvents and PutRawEvents.
|
|
239
|
+
* @public
|
|
240
|
+
*/
|
|
241
|
+
export declare class EventBridgeV2 extends EventBridgeV2Client implements EventBridgeV2 {
|
|
242
|
+
}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { AccountIdEndpointMode, AccountIdEndpointModeInputConfig, AccountIdEndpointModeResolvedConfig } from "@aws-sdk/core/account-id-endpoint";
|
|
2
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
3
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
4
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
5
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
6
|
+
import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
7
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
8
|
+
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import type { CreateEventBusCommandInput, CreateEventBusCommandOutput } from "./commands/CreateEventBusCommand";
|
|
11
|
+
import type { CreateEventSourceCommandInput, CreateEventSourceCommandOutput } from "./commands/CreateEventSourceCommand";
|
|
12
|
+
import type { CreateSubscriberCommandInput, CreateSubscriberCommandOutput } from "./commands/CreateSubscriberCommand";
|
|
13
|
+
import type { DeleteEventBusCommandInput, DeleteEventBusCommandOutput } from "./commands/DeleteEventBusCommand";
|
|
14
|
+
import type { DeleteEventSourceCommandInput, DeleteEventSourceCommandOutput } from "./commands/DeleteEventSourceCommand";
|
|
15
|
+
import type { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
16
|
+
import type { DeleteSubscriberCommandInput, DeleteSubscriberCommandOutput } from "./commands/DeleteSubscriberCommand";
|
|
17
|
+
import type { DescribeEventBusCommandInput, DescribeEventBusCommandOutput } from "./commands/DescribeEventBusCommand";
|
|
18
|
+
import type { DescribeEventSourceCommandInput, DescribeEventSourceCommandOutput } from "./commands/DescribeEventSourceCommand";
|
|
19
|
+
import type { DescribeSubscriberCommandInput, DescribeSubscriberCommandOutput } from "./commands/DescribeSubscriberCommand";
|
|
20
|
+
import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
21
|
+
import type { ListEventBusesCommandInput, ListEventBusesCommandOutput } from "./commands/ListEventBusesCommand";
|
|
22
|
+
import type { ListEventSourcesCommandInput, ListEventSourcesCommandOutput } from "./commands/ListEventSourcesCommand";
|
|
23
|
+
import type { ListResourcePoliciesCommandInput, ListResourcePoliciesCommandOutput } from "./commands/ListResourcePoliciesCommand";
|
|
24
|
+
import type { ListSubscribersCommandInput, ListSubscribersCommandOutput } from "./commands/ListSubscribersCommand";
|
|
25
|
+
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
26
|
+
import type { PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEventsCommand";
|
|
27
|
+
import type { PutRawEventsCommandInput, PutRawEventsCommandOutput } from "./commands/PutRawEventsCommand";
|
|
28
|
+
import type { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
29
|
+
import type { RevokeResourceCommandInput, RevokeResourceCommandOutput } from "./commands/RevokeResourceCommand";
|
|
30
|
+
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
31
|
+
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
32
|
+
import type { UpdateEventBusCommandInput, UpdateEventBusCommandOutput } from "./commands/UpdateEventBusCommand";
|
|
33
|
+
import type { UpdateEventSourceCommandInput, UpdateEventSourceCommandOutput } from "./commands/UpdateEventSourceCommand";
|
|
34
|
+
import type { UpdateSubscriberCommandInput, UpdateSubscriberCommandOutput } from "./commands/UpdateSubscriberCommand";
|
|
35
|
+
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
36
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
37
|
+
export { __Client };
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export type ServiceInputTypes = CreateEventBusCommandInput | CreateEventSourceCommandInput | CreateSubscriberCommandInput | DeleteEventBusCommandInput | DeleteEventSourceCommandInput | DeleteResourcePolicyCommandInput | DeleteSubscriberCommandInput | DescribeEventBusCommandInput | DescribeEventSourceCommandInput | DescribeSubscriberCommandInput | GetResourcePolicyCommandInput | ListEventBusesCommandInput | ListEventSourcesCommandInput | ListResourcePoliciesCommandInput | ListSubscribersCommandInput | ListTagsForResourceCommandInput | PutEventsCommandInput | PutRawEventsCommandInput | PutResourcePolicyCommandInput | RevokeResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEventBusCommandInput | UpdateEventSourceCommandInput | UpdateSubscriberCommandInput;
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export type ServiceOutputTypes = CreateEventBusCommandOutput | CreateEventSourceCommandOutput | CreateSubscriberCommandOutput | DeleteEventBusCommandOutput | DeleteEventSourceCommandOutput | DeleteResourcePolicyCommandOutput | DeleteSubscriberCommandOutput | DescribeEventBusCommandOutput | DescribeEventSourceCommandOutput | DescribeSubscriberCommandOutput | GetResourcePolicyCommandOutput | ListEventBusesCommandOutput | ListEventSourcesCommandOutput | ListResourcePoliciesCommandOutput | ListSubscribersCommandOutput | ListTagsForResourceCommandOutput | PutEventsCommandOutput | PutRawEventsCommandOutput | PutResourcePolicyCommandOutput | RevokeResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEventBusCommandOutput | UpdateEventSourceCommandOutput | UpdateSubscriberCommandOutput;
|
|
46
|
+
/**
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
50
|
+
/**
|
|
51
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
52
|
+
*/
|
|
53
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
54
|
+
/**
|
|
55
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
56
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
60
|
+
/**
|
|
61
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
urlParser?: __UrlParser;
|
|
65
|
+
/**
|
|
66
|
+
* A function that can calculate the length of a request body.
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
70
|
+
/**
|
|
71
|
+
* A function that converts a stream into an array of bytes.
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
streamCollector?: __StreamCollector;
|
|
75
|
+
/**
|
|
76
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
base64Decoder?: __Decoder;
|
|
80
|
+
/**
|
|
81
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
base64Encoder?: __Encoder;
|
|
85
|
+
/**
|
|
86
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
utf8Decoder?: __Decoder;
|
|
90
|
+
/**
|
|
91
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
utf8Encoder?: __Encoder;
|
|
95
|
+
/**
|
|
96
|
+
* The runtime environment.
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
runtime?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
102
|
+
* trait of an operation.
|
|
103
|
+
*/
|
|
104
|
+
disableHostPrefix?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Unique service identifier.
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
serviceId?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
112
|
+
*/
|
|
113
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* Enables FIPS compatible endpoints.
|
|
116
|
+
*/
|
|
117
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* The AWS region to which this client will send requests
|
|
120
|
+
*/
|
|
121
|
+
region?: string | __Provider<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Setting a client profile is similar to setting a value for the
|
|
124
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
125
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
126
|
+
*
|
|
127
|
+
* When set, and only for environments where an AWS configuration
|
|
128
|
+
* file exists, fields configurable by this file will be retrieved
|
|
129
|
+
* from the specified profile within that file.
|
|
130
|
+
* Conflicting code configuration and environment variables will
|
|
131
|
+
* still have higher priority.
|
|
132
|
+
*
|
|
133
|
+
* For client credential resolution that involves checking the AWS
|
|
134
|
+
* configuration file, the client's profile (this value) will be
|
|
135
|
+
* used unless a different profile is set in the credential
|
|
136
|
+
* provider options.
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
profile?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Defines if the AWS AccountId will be used for endpoint routing.
|
|
142
|
+
*/
|
|
143
|
+
accountIdEndpointMode?: AccountIdEndpointMode | __Provider<AccountIdEndpointMode>;
|
|
144
|
+
/**
|
|
145
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
149
|
+
/**
|
|
150
|
+
* Default credentials provider; Not available in browser runtime.
|
|
151
|
+
* @deprecated
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
155
|
+
/**
|
|
156
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
157
|
+
*/
|
|
158
|
+
maxAttempts?: number | __Provider<number>;
|
|
159
|
+
/**
|
|
160
|
+
* Specifies which retry algorithm to use.
|
|
161
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
retryMode?: string | __Provider<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Optional logger for logging debug/info/warn/error.
|
|
167
|
+
*/
|
|
168
|
+
logger?: __Logger;
|
|
169
|
+
/**
|
|
170
|
+
* Optional extensions
|
|
171
|
+
*/
|
|
172
|
+
extensions?: RuntimeExtension[];
|
|
173
|
+
/**
|
|
174
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
175
|
+
*/
|
|
176
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
181
|
+
export type EventBridgeV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & AccountIdEndpointModeInputConfig & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
182
|
+
/**
|
|
183
|
+
* @public
|
|
184
|
+
*
|
|
185
|
+
* The configuration interface of EventBridgeV2Client class constructor that set the region, credentials and other options.
|
|
186
|
+
*/
|
|
187
|
+
export interface EventBridgeV2ClientConfig extends EventBridgeV2ClientConfigType {
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
export type EventBridgeV2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & AccountIdEndpointModeResolvedConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
193
|
+
/**
|
|
194
|
+
* @public
|
|
195
|
+
*
|
|
196
|
+
* The resolved configuration interface of EventBridgeV2Client class. This is resolved and normalized from the {@link EventBridgeV2ClientConfig | constructor configuration interface}.
|
|
197
|
+
*/
|
|
198
|
+
export interface EventBridgeV2ClientResolvedConfig extends EventBridgeV2ClientResolvedConfigType {
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Amazon EventBridge event bus API. An event bus receives events published by
|
|
202
|
+
* your applications and AWS services, stores them for a configurable retention
|
|
203
|
+
* period, and delivers them to subscribers. A subscriber filters events,
|
|
204
|
+
* optionally transforms them, and invokes a target such as Lambda, SQS, SNS,
|
|
205
|
+
* Kinesis, Step Functions, or an HTTP endpoint. The API manages event buses,
|
|
206
|
+
* subscribers, event sources, resource policies, and tags, and publishes
|
|
207
|
+
* events through PutEvents and PutRawEvents.
|
|
208
|
+
* @public
|
|
209
|
+
*/
|
|
210
|
+
export declare class EventBridgeV2Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, EventBridgeV2ClientResolvedConfig> {
|
|
211
|
+
/**
|
|
212
|
+
* The resolved configuration of EventBridgeV2Client class. This is resolved and normalized from the {@link EventBridgeV2ClientConfig | constructor configuration interface}.
|
|
213
|
+
*/
|
|
214
|
+
readonly config: EventBridgeV2ClientResolvedConfig;
|
|
215
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<EventBridgeV2ClientConfig>);
|
|
216
|
+
/**
|
|
217
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
218
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
219
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
220
|
+
*/
|
|
221
|
+
destroy(): void;
|
|
222
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { EventBridgeV2HttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: EventBridgeV2HttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): EventBridgeV2HttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: EventBridgeV2HttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|