@aws-sdk/client-eventbridge 3.36.0 → 3.39.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/CHANGELOG.md +42 -0
- package/dist-cjs/EventBridge.js +0 -23
- package/dist-cjs/EventBridgeClient.js +0 -28
- package/dist-cjs/commands/ActivateEventSourceCommand.js +0 -25
- package/dist-cjs/commands/CancelReplayCommand.js +0 -24
- package/dist-cjs/commands/CreateApiDestinationCommand.js +0 -25
- package/dist-cjs/commands/CreateArchiveCommand.js +0 -28
- package/dist-cjs/commands/CreateConnectionCommand.js +0 -25
- package/dist-cjs/commands/CreateEventBusCommand.js +0 -26
- package/dist-cjs/commands/CreatePartnerEventSourceCommand.js +0 -47
- package/dist-cjs/commands/DeactivateEventSourceCommand.js +0 -28
- package/dist-cjs/commands/DeauthorizeConnectionCommand.js +0 -25
- package/dist-cjs/commands/DeleteApiDestinationCommand.js +0 -24
- package/dist-cjs/commands/DeleteArchiveCommand.js +0 -24
- package/dist-cjs/commands/DeleteConnectionCommand.js +0 -24
- package/dist-cjs/commands/DeleteEventBusCommand.js +0 -25
- package/dist-cjs/commands/DeletePartnerEventSourceCommand.js +0 -28
- package/dist-cjs/commands/DeleteRuleCommand.js +0 -37
- package/dist-cjs/commands/DescribeApiDestinationCommand.js +0 -24
- package/dist-cjs/commands/DescribeArchiveCommand.js +0 -24
- package/dist-cjs/commands/DescribeConnectionCommand.js +0 -24
- package/dist-cjs/commands/DescribeEventBusCommand.js +0 -30
- package/dist-cjs/commands/DescribeEventSourceCommand.js +0 -25
- package/dist-cjs/commands/DescribePartnerEventSourceCommand.js +0 -27
- package/dist-cjs/commands/DescribeReplayCommand.js +0 -32
- package/dist-cjs/commands/DescribeRuleCommand.js +0 -26
- package/dist-cjs/commands/DisableRuleCommand.js +0 -28
- package/dist-cjs/commands/EnableRuleCommand.js +0 -27
- package/dist-cjs/commands/ListApiDestinationsCommand.js +0 -24
- package/dist-cjs/commands/ListArchivesCommand.js +0 -25
- package/dist-cjs/commands/ListConnectionsCommand.js +0 -24
- package/dist-cjs/commands/ListEventBusesCommand.js +0 -25
- package/dist-cjs/commands/ListEventSourcesCommand.js +0 -25
- package/dist-cjs/commands/ListPartnerEventSourceAccountsCommand.js +0 -26
- package/dist-cjs/commands/ListPartnerEventSourcesCommand.js +0 -25
- package/dist-cjs/commands/ListReplaysCommand.js +0 -25
- package/dist-cjs/commands/ListRuleNamesByTargetCommand.js +0 -25
- package/dist-cjs/commands/ListRulesCommand.js +0 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/ListTargetsByRuleCommand.js +0 -24
- package/dist-cjs/commands/PutEventsCommand.js +0 -24
- package/dist-cjs/commands/PutPartnerEventsCommand.js +0 -25
- package/dist-cjs/commands/PutPermissionCommand.js +0 -43
- package/dist-cjs/commands/PutRuleCommand.js +0 -70
- package/dist-cjs/commands/PutTargetsCommand.js +0 -189
- package/dist-cjs/commands/RemovePermissionCommand.js +0 -27
- package/dist-cjs/commands/RemoveTargetsCommand.js +0 -32
- package/dist-cjs/commands/StartReplayCommand.js +0 -32
- package/dist-cjs/commands/TagResourceCommand.js +0 -34
- package/dist-cjs/commands/TestEventPatternCommand.js +0 -28
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateApiDestinationCommand.js +0 -24
- package/dist-cjs/commands/UpdateArchiveCommand.js +0 -24
- package/dist-cjs/commands/UpdateConnectionCommand.js +0 -24
- package/dist-cjs/commands/index.js +54 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +3 -53
- package/dist-cjs/models/models_0.js +0 -486
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +51 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +3 -53
- package/dist-types/commands/index.d.ts +51 -0
- package/dist-types/index.d.ts +3 -53
- package/dist-types/ts3.4/EventBridge.d.ts +52 -536
- package/dist-types/ts3.4/EventBridgeClient.d.ts +24 -109
- package/dist-types/ts3.4/commands/ActivateEventSourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CancelReplayCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateApiDestinationCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateArchiveCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateEventBusCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreatePartnerEventSourceCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DeactivateEventSourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeauthorizeConnectionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteApiDestinationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteArchiveCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteEventBusCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeletePartnerEventSourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/DescribeApiDestinationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeArchiveCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeConnectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEventBusCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DescribeEventSourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribePartnerEventSourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeReplayCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DescribeRuleCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DisableRuleCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/EnableRuleCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListApiDestinationsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListArchivesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEventBusesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListEventSourcesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListPartnerEventSourceAccountsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListPartnerEventSourcesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListReplaysCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListRuleNamesByTargetCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListTargetsByRuleCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutPartnerEventsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PutPermissionCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/PutRuleCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/PutTargetsCommand.d.ts +2 -185
- package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/RemoveTargetsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/StartReplayCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/TestEventPatternCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateApiDestinationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateArchiveCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateConnectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +51 -0
- package/dist-types/ts3.4/index.d.ts +3 -53
- package/dist-types/ts3.4/models/models_0.d.ts +723 -2619
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +32 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-eventbridge
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
20
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
49
|
|
|
8
50
|
|
package/dist-cjs/EventBridge.js
CHANGED
|
@@ -53,29 +53,6 @@ const UpdateApiDestinationCommand_1 = require("./commands/UpdateApiDestinationCo
|
|
|
53
53
|
const UpdateArchiveCommand_1 = require("./commands/UpdateArchiveCommand");
|
|
54
54
|
const UpdateConnectionCommand_1 = require("./commands/UpdateConnectionCommand");
|
|
55
55
|
const EventBridgeClient_1 = require("./EventBridgeClient");
|
|
56
|
-
/**
|
|
57
|
-
* <p>Amazon EventBridge helps you to respond to state changes in your Amazon Web Services resources. When your
|
|
58
|
-
* resources change state, they automatically send events to an event stream. You can create
|
|
59
|
-
* rules that match selected events in the stream and route them to targets to take action. You
|
|
60
|
-
* can also use rules to take action on a predetermined schedule. For example, you can configure
|
|
61
|
-
* rules to:</p>
|
|
62
|
-
* <ul>
|
|
63
|
-
* <li>
|
|
64
|
-
* <p>Automatically invoke an Lambda function to update DNS entries when an event
|
|
65
|
-
* notifies you that Amazon EC2 instance enters the running state.</p>
|
|
66
|
-
* </li>
|
|
67
|
-
* <li>
|
|
68
|
-
* <p>Direct specific API records from CloudTrail to an Amazon Kinesis data stream for
|
|
69
|
-
* detailed analysis of potential security or availability risks.</p>
|
|
70
|
-
* </li>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>Periodically invoke a built-in target to create a snapshot of an Amazon EBS
|
|
73
|
-
* volume.</p>
|
|
74
|
-
* </li>
|
|
75
|
-
* </ul>
|
|
76
|
-
* <p>For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon EventBridge User
|
|
77
|
-
* Guide</a>.</p>
|
|
78
|
-
*/
|
|
79
56
|
class EventBridge extends EventBridgeClient_1.EventBridgeClient {
|
|
80
57
|
activateEventSource(args, optionsOrCb, cb) {
|
|
81
58
|
const command = new ActivateEventSourceCommand_1.ActivateEventSourceCommand(args);
|
|
@@ -10,29 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <p>Amazon EventBridge helps you to respond to state changes in your Amazon Web Services resources. When your
|
|
15
|
-
* resources change state, they automatically send events to an event stream. You can create
|
|
16
|
-
* rules that match selected events in the stream and route them to targets to take action. You
|
|
17
|
-
* can also use rules to take action on a predetermined schedule. For example, you can configure
|
|
18
|
-
* rules to:</p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>Automatically invoke an Lambda function to update DNS entries when an event
|
|
22
|
-
* notifies you that Amazon EC2 instance enters the running state.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>Direct specific API records from CloudTrail to an Amazon Kinesis data stream for
|
|
26
|
-
* detailed analysis of potential security or availability risks.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>Periodically invoke a built-in target to create a snapshot of an Amazon EBS
|
|
30
|
-
* volume.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* </ul>
|
|
33
|
-
* <p>For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon EventBridge User
|
|
34
|
-
* Guide</a>.</p>
|
|
35
|
-
*/
|
|
36
13
|
class EventBridgeClient extends smithy_client_1.Client {
|
|
37
14
|
constructor(configuration) {
|
|
38
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -51,11 +28,6 @@ class EventBridgeClient extends smithy_client_1.Client {
|
|
|
51
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
52
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
53
30
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
56
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
57
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
58
|
-
*/
|
|
59
31
|
destroy() {
|
|
60
32
|
super.destroy();
|
|
61
33
|
}
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Activates a partner event source that has been deactivated. Once activated, your matching
|
|
10
|
-
* event bus will start receiving events from the event source.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, ActivateEventSourceCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, ActivateEventSourceCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new ActivateEventSourceCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ActivateEventSourceCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ActivateEventSourceCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class ActivateEventSourceCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Cancels the specified replay.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { EventBridgeClient, CancelReplayCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
14
|
-
* // const { EventBridgeClient, CancelReplayCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
15
|
-
* const client = new EventBridgeClient(config);
|
|
16
|
-
* const command = new CancelReplayCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link CancelReplayCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link CancelReplayCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class CancelReplayCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates an API destination, which is an HTTP invocation endpoint configured as a target
|
|
10
|
-
* for events.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, CreateApiDestinationCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, CreateApiDestinationCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new CreateApiDestinationCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link CreateApiDestinationCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link CreateApiDestinationCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class CreateApiDestinationCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates an archive of events with the specified settings. When you create an archive,
|
|
10
|
-
* incoming events might not immediately start being sent to the archive. Allow a short period of
|
|
11
|
-
* time for changes to take effect. If you do not specify a pattern to filter events sent to the
|
|
12
|
-
* archive, all events are sent to the archive except replayed events. Replayed events are not
|
|
13
|
-
* sent to an archive.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { EventBridgeClient, CreateArchiveCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
18
|
-
* // const { EventBridgeClient, CreateArchiveCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
19
|
-
* const client = new EventBridgeClient(config);
|
|
20
|
-
* const command = new CreateArchiveCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link CreateArchiveCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link CreateArchiveCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class CreateArchiveCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a connection. A connection defines the authorization type and credentials to use
|
|
10
|
-
* for authorization with an API destination HTTP endpoint.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, CreateConnectionCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, CreateConnectionCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new CreateConnectionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link CreateConnectionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link CreateConnectionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class CreateConnectionCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a new event bus within your account. This can be a custom event bus which you can
|
|
10
|
-
* use to receive events from your custom applications and services, or it can be a partner event
|
|
11
|
-
* bus which can be matched to a partner event source.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { EventBridgeClient, CreateEventBusCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
16
|
-
* // const { EventBridgeClient, CreateEventBusCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
17
|
-
* const client = new EventBridgeClient(config);
|
|
18
|
-
* const command = new CreateEventBusCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link CreateEventBusCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link CreateEventBusCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class CreateEventBusCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,58 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Called by an SaaS partner to create a partner event source. This operation is not used by
|
|
10
|
-
* Amazon Web Services customers.</p>
|
|
11
|
-
* <p>Each partner event source can be used by one Amazon Web Services account to create a matching partner
|
|
12
|
-
* event bus in that Amazon Web Services account. A SaaS partner must create one partner event source for each
|
|
13
|
-
* Amazon Web Services account that wants to receive those event types. </p>
|
|
14
|
-
* <p>A partner event source creates events based on resources within the SaaS partner's service
|
|
15
|
-
* or application.</p>
|
|
16
|
-
* <p>An Amazon Web Services account that creates a partner event bus that matches the partner event source can
|
|
17
|
-
* use that event bus to receive events from the partner, and then process them using Amazon Web Services Events
|
|
18
|
-
* rules and targets.</p>
|
|
19
|
-
* <p>Partner event source names follow this format:</p>
|
|
20
|
-
* <p>
|
|
21
|
-
* <code>
|
|
22
|
-
* <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
|
|
23
|
-
* </code>
|
|
24
|
-
* </p>
|
|
25
|
-
* <p>
|
|
26
|
-
* <i>partner_name</i> is determined during partner registration and identifies
|
|
27
|
-
* the partner to Amazon Web Services customers. <i>event_namespace</i> is determined by the
|
|
28
|
-
* partner and is a way for the partner to categorize their events.
|
|
29
|
-
* <i>event_name</i> is determined by the partner, and should uniquely identify
|
|
30
|
-
* an event-generating resource within the partner system. The combination of
|
|
31
|
-
* <i>event_namespace</i> and <i>event_name</i> should help Amazon Web Services
|
|
32
|
-
* customers decide whether to create an event bus to receive these events.</p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { EventBridgeClient, CreatePartnerEventSourceCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
37
|
-
* // const { EventBridgeClient, CreatePartnerEventSourceCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
38
|
-
* const client = new EventBridgeClient(config);
|
|
39
|
-
* const command = new CreatePartnerEventSourceCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link CreatePartnerEventSourceCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link CreatePartnerEventSourceCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
8
|
class CreatePartnerEventSourceCommand extends smithy_client_1.Command {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
9
|
constructor(input) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
10
|
super();
|
|
54
11
|
this.input = input;
|
|
55
|
-
// End section: command_constructor
|
|
56
12
|
}
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
61
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
62
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>You can use this operation to temporarily stop receiving events from the specified partner
|
|
10
|
-
* event source. The matching event bus is not deleted. </p>
|
|
11
|
-
* <p>When you deactivate a partner event source, the source goes into PENDING state. If it
|
|
12
|
-
* remains in PENDING state for more than two weeks, it is deleted.</p>
|
|
13
|
-
* <p>To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { EventBridgeClient, DeactivateEventSourceCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
18
|
-
* // const { EventBridgeClient, DeactivateEventSourceCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
19
|
-
* const client = new EventBridgeClient(config);
|
|
20
|
-
* const command = new DeactivateEventSourceCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link DeactivateEventSourceCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link DeactivateEventSourceCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class DeactivateEventSourceCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Removes all authorization parameters from the connection. This lets you remove the secret
|
|
10
|
-
* from the connection so you can reuse it without having to create a new connection.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, DeauthorizeConnectionCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, DeauthorizeConnectionCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new DeauthorizeConnectionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DeauthorizeConnectionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DeauthorizeConnectionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class DeauthorizeConnectionCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes the specified API destination.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { EventBridgeClient, DeleteApiDestinationCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
14
|
-
* // const { EventBridgeClient, DeleteApiDestinationCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
15
|
-
* const client = new EventBridgeClient(config);
|
|
16
|
-
* const command = new DeleteApiDestinationCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteApiDestinationCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteApiDestinationCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeleteApiDestinationCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes the specified archive.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { EventBridgeClient, DeleteArchiveCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
14
|
-
* // const { EventBridgeClient, DeleteArchiveCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
15
|
-
* const client = new EventBridgeClient(config);
|
|
16
|
-
* const command = new DeleteArchiveCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteArchiveCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteArchiveCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeleteArchiveCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a connection.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { EventBridgeClient, DeleteConnectionCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
14
|
-
* // const { EventBridgeClient, DeleteConnectionCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
15
|
-
* const client = new EventBridgeClient(config);
|
|
16
|
-
* const command = new DeleteConnectionCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteConnectionCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteConnectionCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeleteConnectionCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes the specified custom event bus or partner event bus. All rules associated with
|
|
10
|
-
* this event bus need to be deleted. You can't delete your account's default event bus.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, DeleteEventBusCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, DeleteEventBusCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new DeleteEventBusCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DeleteEventBusCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DeleteEventBusCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class DeleteEventBusCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|