@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
|
@@ -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>You can use this to see all the partner event sources that have been shared with your Amazon Web Services
|
|
10
|
-
* account. For more information about partner event sources, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, ListEventSourcesCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, ListEventSourcesCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new ListEventSourcesCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListEventSourcesCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListEventSourcesCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class ListEventSourcesCommand 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>An SaaS partner can use this operation to display the Amazon Web Services account ID that a particular
|
|
10
|
-
* partner event source name is associated with. This operation is not used by Amazon Web Services
|
|
11
|
-
* customers.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { EventBridgeClient, ListPartnerEventSourceAccountsCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
16
|
-
* // const { EventBridgeClient, ListPartnerEventSourceAccountsCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
17
|
-
* const client = new EventBridgeClient(config);
|
|
18
|
-
* const command = new ListPartnerEventSourceAccountsCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link ListPartnerEventSourceAccountsCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link ListPartnerEventSourceAccountsCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class ListPartnerEventSourceAccountsCommand 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,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>An SaaS partner can use this operation to list all the partner event source names that
|
|
10
|
-
* they have created. This operation is not used by Amazon Web Services customers.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, ListPartnerEventSourcesCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, ListPartnerEventSourcesCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new ListPartnerEventSourcesCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListPartnerEventSourcesCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListPartnerEventSourcesCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class ListPartnerEventSourcesCommand 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,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>Lists your replays. You can either list all the replays or you can provide a prefix to
|
|
10
|
-
* match to the replay names. Filter parameters are exclusive.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, ListReplaysCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, ListReplaysCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new ListReplaysCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListReplaysCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListReplaysCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class ListReplaysCommand 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,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>Lists the rules for the specified target. You can see which of the rules in Amazon
|
|
10
|
-
* EventBridge can invoke a specific target in your account.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, ListRuleNamesByTargetCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, ListRuleNamesByTargetCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new ListRuleNamesByTargetCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListRuleNamesByTargetCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListRuleNamesByTargetCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class ListRuleNamesByTargetCommand 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>Lists your Amazon EventBridge rules. You can either list all the rules or you can provide
|
|
10
|
-
* a prefix to match to the rule names.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>ListRules does not list the targets of a rule. To see the targets associated with a rule,
|
|
13
|
-
* use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</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, ListRulesCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
18
|
-
* // const { EventBridgeClient, ListRulesCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
19
|
-
* const client = new EventBridgeClient(config);
|
|
20
|
-
* const command = new ListRulesCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link ListRulesCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link ListRulesCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class ListRulesCommand 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>Displays the tags associated with an EventBridge resource. In EventBridge, rules and event
|
|
10
|
-
* buses can be tagged.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, ListTagsForResourceCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, ListTagsForResourceCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new ListTagsForResourceCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class ListTagsForResourceCommand 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>Lists the targets assigned to the specified rule.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { EventBridgeClient, ListTargetsByRuleCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
14
|
-
* // const { EventBridgeClient, ListTargetsByRuleCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
15
|
-
* const client = new EventBridgeClient(config);
|
|
16
|
-
* const command = new ListTargetsByRuleCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link ListTargetsByRuleCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link ListTargetsByRuleCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class ListTargetsByRuleCommand 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>Sends custom events to Amazon EventBridge so that they can be matched to rules.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { EventBridgeClient, PutEventsCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
14
|
-
* // const { EventBridgeClient, PutEventsCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
15
|
-
* const client = new EventBridgeClient(config);
|
|
16
|
-
* const command = new PutEventsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link PutEventsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link PutEventsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class PutEventsCommand 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>This is used by SaaS partners to write events to a customer's partner event bus. Amazon Web Services
|
|
10
|
-
* customers do not use this operation.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { EventBridgeClient, PutPartnerEventsCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
15
|
-
* // const { EventBridgeClient, PutPartnerEventsCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
16
|
-
* const client = new EventBridgeClient(config);
|
|
17
|
-
* const command = new PutPartnerEventsCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link PutPartnerEventsCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link PutPartnerEventsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class PutPartnerEventsCommand 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,54 +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>Running <code>PutPermission</code> permits the specified Amazon Web Services account or Amazon Web Services organization
|
|
10
|
-
* to put events to the specified <i>event bus</i>. Amazon EventBridge (CloudWatch
|
|
11
|
-
* Events) rules in your account are triggered by these events arriving to an event bus in your
|
|
12
|
-
* account. </p>
|
|
13
|
-
* <p>For another account to send events to your account, that external account must have an
|
|
14
|
-
* EventBridge rule with your account's event bus as a target.</p>
|
|
15
|
-
*
|
|
16
|
-
* <p>To enable multiple Amazon Web Services accounts to put events to your event bus, run
|
|
17
|
-
* <code>PutPermission</code> once for each of these accounts. Or, if all the accounts are
|
|
18
|
-
* members of the same Amazon Web Services organization, you can run <code>PutPermission</code> once specifying
|
|
19
|
-
* <code>Principal</code> as "*" and specifying the Amazon Web Services organization ID in
|
|
20
|
-
* <code>Condition</code>, to grant permissions to all accounts in that organization.</p>
|
|
21
|
-
*
|
|
22
|
-
* <p>If you grant permissions using an organization, then accounts in that organization must
|
|
23
|
-
* specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code> to
|
|
24
|
-
* add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending and
|
|
25
|
-
* Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
|
|
26
|
-
* Guide</i>.</p>
|
|
27
|
-
*
|
|
28
|
-
* <p>The permission policy on the event bus cannot exceed 10 KB in size.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { EventBridgeClient, PutPermissionCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
33
|
-
* // const { EventBridgeClient, PutPermissionCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
34
|
-
* const client = new EventBridgeClient(config);
|
|
35
|
-
* const command = new PutPermissionCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link PutPermissionCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link PutPermissionCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
8
|
class PutPermissionCommand extends smithy_client_1.Command {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
9
|
constructor(input) {
|
|
48
|
-
// Start section: command_constructor
|
|
49
10
|
super();
|
|
50
11
|
this.input = input;
|
|
51
|
-
// End section: command_constructor
|
|
52
12
|
}
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
57
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
58
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,81 +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 or updates the specified rule. Rules are enabled by default, or based on value of
|
|
10
|
-
* the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>A single rule watches for events from a single event bus. Events generated by Amazon Web Services services
|
|
13
|
-
* go to your account's default event bus. Events generated by SaaS partner services or
|
|
14
|
-
* applications go to the matching partner event bus. If you have custom applications or
|
|
15
|
-
* services, you can specify whether their events go to your default event bus or a custom event
|
|
16
|
-
* bus that you have created. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.</p>
|
|
17
|
-
*
|
|
18
|
-
* <p>If you are updating an existing rule, the rule is replaced with what you specify in this
|
|
19
|
-
* <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>, the old values
|
|
20
|
-
* for those arguments are not kept. Instead, they are replaced with null values.</p>
|
|
21
|
-
*
|
|
22
|
-
* <p>When you create or update a rule, incoming events might not immediately start matching to
|
|
23
|
-
* new or updated rules. Allow a short period of time for changes to take effect.</p>
|
|
24
|
-
*
|
|
25
|
-
* <p>A rule must contain at least an EventPattern or ScheduleExpression. Rules with
|
|
26
|
-
* EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions
|
|
27
|
-
* self-trigger based on the given schedule. A rule can have both an EventPattern and a
|
|
28
|
-
* ScheduleExpression, in which case the rule triggers on matching events as well as on a
|
|
29
|
-
* schedule.</p>
|
|
30
|
-
*
|
|
31
|
-
* <p>When you initially create a rule, you can optionally assign one or more tags to the rule.
|
|
32
|
-
* Tags can help you organize and categorize your resources. You can also use them to scope user
|
|
33
|
-
* permissions, by granting a user permission to access or change only rules with certain tag
|
|
34
|
-
* values. To use the <code>PutRule</code> operation and assign tags, you must have both the
|
|
35
|
-
* <code>events:PutRule</code> and <code>events:TagResource</code> permissions.</p>
|
|
36
|
-
* <p>If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
|
|
37
|
-
* operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a> and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.</p>
|
|
38
|
-
*
|
|
39
|
-
* <p>Most services in Amazon Web Services treat : or / as the same character in Amazon Resource Names (ARNs).
|
|
40
|
-
* However, EventBridge uses an exact match in event patterns and rules. Be sure to use the
|
|
41
|
-
* correct ARN characters when creating event patterns so that they match the ARN syntax in the
|
|
42
|
-
* event you want to match.</p>
|
|
43
|
-
*
|
|
44
|
-
* <p>In EventBridge, it is possible to create rules that lead to infinite loops, where a rule
|
|
45
|
-
* is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket,
|
|
46
|
-
* and trigger software to change them to the desired state. If the rule is not written
|
|
47
|
-
* carefully, the subsequent change to the ACLs fires the rule again, creating an infinite
|
|
48
|
-
* loop.</p>
|
|
49
|
-
* <p>To prevent this, write the rules so that the triggered actions do not re-fire the same
|
|
50
|
-
* rule. For example, your rule could fire only if ACLs are found to be in a bad state, instead
|
|
51
|
-
* of after any change. </p>
|
|
52
|
-
* <p>An infinite loop can quickly cause higher than expected charges. We recommend that you use
|
|
53
|
-
* budgeting, which alerts you when charges exceed your specified limit. For more information,
|
|
54
|
-
* see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing Your Costs with
|
|
55
|
-
* Budgets</a>.</p>
|
|
56
|
-
* @example
|
|
57
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
58
|
-
* ```javascript
|
|
59
|
-
* import { EventBridgeClient, PutRuleCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
|
|
60
|
-
* // const { EventBridgeClient, PutRuleCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
|
|
61
|
-
* const client = new EventBridgeClient(config);
|
|
62
|
-
* const command = new PutRuleCommand(input);
|
|
63
|
-
* const response = await client.send(command);
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @see {@link PutRuleCommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link PutRuleCommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link EventBridgeClientResolvedConfig | config} for command's `input` shape.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
8
|
class PutRuleCommand extends smithy_client_1.Command {
|
|
72
|
-
// Start section: command_properties
|
|
73
|
-
// End section: command_properties
|
|
74
9
|
constructor(input) {
|
|
75
|
-
// Start section: command_constructor
|
|
76
10
|
super();
|
|
77
11
|
this.input = input;
|
|
78
|
-
// End section: command_constructor
|
|
79
12
|
}
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
84
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
85
15
|
const stack = clientStack.concat(this.middlewareStack);
|