UNPKG

86.1 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class EventBridge extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: EventBridge.Types.ClientConfiguration)
13 config: Config & EventBridge.Types.ClientConfiguration;
14 /**
15 * Activates a partner event source that has been deactivated. Once activated, your matching event bus will start receiving events from the event source. This operation is performed by AWS customers, not by SaaS partners.
16 */
17 activateEventSource(params: EventBridge.Types.ActivateEventSourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
18 /**
19 * Activates a partner event source that has been deactivated. Once activated, your matching event bus will start receiving events from the event source. This operation is performed by AWS customers, not by SaaS partners.
20 */
21 activateEventSource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
22 /**
23 * Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your own custom applications and services, or it can be a partner event bus which can be matched to a partner event source. This operation is used by AWS customers, not by SaaS partners.
24 */
25 createEventBus(params: EventBridge.Types.CreateEventBusRequest, callback?: (err: AWSError, data: EventBridge.Types.CreateEventBusResponse) => void): Request<EventBridge.Types.CreateEventBusResponse, AWSError>;
26 /**
27 * Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your own custom applications and services, or it can be a partner event bus which can be matched to a partner event source. This operation is used by AWS customers, not by SaaS partners.
28 */
29 createEventBus(callback?: (err: AWSError, data: EventBridge.Types.CreateEventBusResponse) => void): Request<EventBridge.Types.CreateEventBusResponse, AWSError>;
30 /**
31 * Called by an SaaS partner to create a partner event source. This operation is not used by AWS customers. Each partner event source can be used by one AWS account to create a matching partner event bus in that AWS account. A SaaS partner must create one partner event source for each AWS account that wants to receive those event types. A partner event source creates events based on resources in the SaaS partner's service or application. An AWS account that creates a partner event bus that matches the partner event source can use that event bus to receive events from the partner, and then process them using AWS Events rules and targets. Partner event source names follow this format: aws.partner/partner_name/event_namespace/event_name partner_name is determined during partner registration and identifies the partner to AWS customers. For event_namespace, we recommend that partners use a string that identifies the AWS customer within the partner's system. This should not be the customer's AWS account ID. event_name is determined by the partner, and should uniquely identify an event-generating resource within the partner system. This should help AWS customers decide whether to create an event bus to receive these events.
32 */
33 createPartnerEventSource(params: EventBridge.Types.CreatePartnerEventSourceRequest, callback?: (err: AWSError, data: EventBridge.Types.CreatePartnerEventSourceResponse) => void): Request<EventBridge.Types.CreatePartnerEventSourceResponse, AWSError>;
34 /**
35 * Called by an SaaS partner to create a partner event source. This operation is not used by AWS customers. Each partner event source can be used by one AWS account to create a matching partner event bus in that AWS account. A SaaS partner must create one partner event source for each AWS account that wants to receive those event types. A partner event source creates events based on resources in the SaaS partner's service or application. An AWS account that creates a partner event bus that matches the partner event source can use that event bus to receive events from the partner, and then process them using AWS Events rules and targets. Partner event source names follow this format: aws.partner/partner_name/event_namespace/event_name partner_name is determined during partner registration and identifies the partner to AWS customers. For event_namespace, we recommend that partners use a string that identifies the AWS customer within the partner's system. This should not be the customer's AWS account ID. event_name is determined by the partner, and should uniquely identify an event-generating resource within the partner system. This should help AWS customers decide whether to create an event bus to receive these events.
36 */
37 createPartnerEventSource(callback?: (err: AWSError, data: EventBridge.Types.CreatePartnerEventSourceResponse) => void): Request<EventBridge.Types.CreatePartnerEventSourceResponse, AWSError>;
38 /**
39 * An AWS customer uses this operation to temporarily stop receiving events from the specified partner event source. The matching event bus isn't deleted. When you deactivate a partner event source, the source goes into PENDING state. If it remains in PENDING state for more than two weeks, it's deleted. To activate a deactivated partner event source, use ActivateEventSource.
40 */
41 deactivateEventSource(params: EventBridge.Types.DeactivateEventSourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
42 /**
43 * An AWS customer uses this operation to temporarily stop receiving events from the specified partner event source. The matching event bus isn't deleted. When you deactivate a partner event source, the source goes into PENDING state. If it remains in PENDING state for more than two weeks, it's deleted. To activate a deactivated partner event source, use ActivateEventSource.
44 */
45 deactivateEventSource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
46 /**
47 * Deletes the specified custom event bus or partner event bus. All rules associated with this event bus are also deleted. You can't delete your account's default event bus. This operation is performed by AWS customers, not by SaaS partners.
48 */
49 deleteEventBus(params: EventBridge.Types.DeleteEventBusRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
50 /**
51 * Deletes the specified custom event bus or partner event bus. All rules associated with this event bus are also deleted. You can't delete your account's default event bus. This operation is performed by AWS customers, not by SaaS partners.
52 */
53 deleteEventBus(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
54 /**
55 * This operation is used by SaaS partners to delete a partner event source. AWS customers don't use this operation. When you delete an event source, the status of the corresponding partner event bus in the AWS customer account becomes DELETED.
56 */
57 deletePartnerEventSource(params: EventBridge.Types.DeletePartnerEventSourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
58 /**
59 * This operation is used by SaaS partners to delete a partner event source. AWS customers don't use this operation. When you delete an event source, the status of the corresponding partner event bus in the AWS customer account becomes DELETED.
60 */
61 deletePartnerEventSource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
62 /**
63 * Deletes the specified rule. Before you can delete the rule, you must remove all targets, using RemoveTargets. When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect. Managed rules are rules created and managed by another AWS service on your behalf. These rules are created by those other AWS services to support functionality in those services. You can delete these rules using the Force option, but you should do so only if you're sure that the other service isn't still using that rule.
64 */
65 deleteRule(params: EventBridge.Types.DeleteRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
66 /**
67 * Deletes the specified rule. Before you can delete the rule, you must remove all targets, using RemoveTargets. When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect. Managed rules are rules created and managed by another AWS service on your behalf. These rules are created by those other AWS services to support functionality in those services. You can delete these rules using the Force option, but you should do so only if you're sure that the other service isn't still using that rule.
68 */
69 deleteRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
70 /**
71 * Displays details about an event bus in your account. This can include the external AWS accounts that are permitted to write events to your default event bus, and the associated policy. For custom event buses and partner event buses, it displays the name, ARN, policy, state, and creation time. To enable your account to receive events from other accounts on its default event bus, use PutPermission. For more information about partner event buses, see CreateEventBus.
72 */
73 describeEventBus(params: EventBridge.Types.DescribeEventBusRequest, callback?: (err: AWSError, data: EventBridge.Types.DescribeEventBusResponse) => void): Request<EventBridge.Types.DescribeEventBusResponse, AWSError>;
74 /**
75 * Displays details about an event bus in your account. This can include the external AWS accounts that are permitted to write events to your default event bus, and the associated policy. For custom event buses and partner event buses, it displays the name, ARN, policy, state, and creation time. To enable your account to receive events from other accounts on its default event bus, use PutPermission. For more information about partner event buses, see CreateEventBus.
76 */
77 describeEventBus(callback?: (err: AWSError, data: EventBridge.Types.DescribeEventBusResponse) => void): Request<EventBridge.Types.DescribeEventBusResponse, AWSError>;
78 /**
79 * This operation lists details about a partner event source that is shared with your account. This operation is run by AWS customers, not by SaaS partners.
80 */
81 describeEventSource(params: EventBridge.Types.DescribeEventSourceRequest, callback?: (err: AWSError, data: EventBridge.Types.DescribeEventSourceResponse) => void): Request<EventBridge.Types.DescribeEventSourceResponse, AWSError>;
82 /**
83 * This operation lists details about a partner event source that is shared with your account. This operation is run by AWS customers, not by SaaS partners.
84 */
85 describeEventSource(callback?: (err: AWSError, data: EventBridge.Types.DescribeEventSourceResponse) => void): Request<EventBridge.Types.DescribeEventSourceResponse, AWSError>;
86 /**
87 * An SaaS partner can use this operation to list details about a partner event source that they have created. AWS customers do not use this operation. Instead, AWS customers can use DescribeEventSource to see details about a partner event source that is shared with them.
88 */
89 describePartnerEventSource(params: EventBridge.Types.DescribePartnerEventSourceRequest, callback?: (err: AWSError, data: EventBridge.Types.DescribePartnerEventSourceResponse) => void): Request<EventBridge.Types.DescribePartnerEventSourceResponse, AWSError>;
90 /**
91 * An SaaS partner can use this operation to list details about a partner event source that they have created. AWS customers do not use this operation. Instead, AWS customers can use DescribeEventSource to see details about a partner event source that is shared with them.
92 */
93 describePartnerEventSource(callback?: (err: AWSError, data: EventBridge.Types.DescribePartnerEventSourceResponse) => void): Request<EventBridge.Types.DescribePartnerEventSourceResponse, AWSError>;
94 /**
95 * Describes the specified rule. DescribeRule doesn't list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.
96 */
97 describeRule(params: EventBridge.Types.DescribeRuleRequest, callback?: (err: AWSError, data: EventBridge.Types.DescribeRuleResponse) => void): Request<EventBridge.Types.DescribeRuleResponse, AWSError>;
98 /**
99 * Describes the specified rule. DescribeRule doesn't list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.
100 */
101 describeRule(callback?: (err: AWSError, data: EventBridge.Types.DescribeRuleResponse) => void): Request<EventBridge.Types.DescribeRuleResponse, AWSError>;
102 /**
103 * Disables the specified rule. A disabled rule won't match any events and won't self-trigger if it has a schedule expression. When you disable a rule, incoming events might continue to match to the disabled rule. Allow a short period of time for changes to take effect.
104 */
105 disableRule(params: EventBridge.Types.DisableRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
106 /**
107 * Disables the specified rule. A disabled rule won't match any events and won't self-trigger if it has a schedule expression. When you disable a rule, incoming events might continue to match to the disabled rule. Allow a short period of time for changes to take effect.
108 */
109 disableRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
110 /**
111 * Enables the specified rule. If the rule doesn't exist, the operation fails. When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Allow a short period of time for changes to take effect.
112 */
113 enableRule(params: EventBridge.Types.EnableRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
114 /**
115 * Enables the specified rule. If the rule doesn't exist, the operation fails. When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Allow a short period of time for changes to take effect.
116 */
117 enableRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
118 /**
119 * Lists all the event buses in your account, including the default event bus, custom event buses, and partner event buses. This operation is run by AWS customers, not by SaaS partners.
120 */
121 listEventBuses(params: EventBridge.Types.ListEventBusesRequest, callback?: (err: AWSError, data: EventBridge.Types.ListEventBusesResponse) => void): Request<EventBridge.Types.ListEventBusesResponse, AWSError>;
122 /**
123 * Lists all the event buses in your account, including the default event bus, custom event buses, and partner event buses. This operation is run by AWS customers, not by SaaS partners.
124 */
125 listEventBuses(callback?: (err: AWSError, data: EventBridge.Types.ListEventBusesResponse) => void): Request<EventBridge.Types.ListEventBusesResponse, AWSError>;
126 /**
127 * You can use this to see all the partner event sources that have been shared with your AWS account. For more information about partner event sources, see CreateEventBus. This operation is run by AWS customers, not by SaaS partners.
128 */
129 listEventSources(params: EventBridge.Types.ListEventSourcesRequest, callback?: (err: AWSError, data: EventBridge.Types.ListEventSourcesResponse) => void): Request<EventBridge.Types.ListEventSourcesResponse, AWSError>;
130 /**
131 * You can use this to see all the partner event sources that have been shared with your AWS account. For more information about partner event sources, see CreateEventBus. This operation is run by AWS customers, not by SaaS partners.
132 */
133 listEventSources(callback?: (err: AWSError, data: EventBridge.Types.ListEventSourcesResponse) => void): Request<EventBridge.Types.ListEventSourcesResponse, AWSError>;
134 /**
135 * An SaaS partner can use this operation to display the AWS account ID that a particular partner event source name is associated with. This operation is used by SaaS partners, not by AWS customers.
136 */
137 listPartnerEventSourceAccounts(params: EventBridge.Types.ListPartnerEventSourceAccountsRequest, callback?: (err: AWSError, data: EventBridge.Types.ListPartnerEventSourceAccountsResponse) => void): Request<EventBridge.Types.ListPartnerEventSourceAccountsResponse, AWSError>;
138 /**
139 * An SaaS partner can use this operation to display the AWS account ID that a particular partner event source name is associated with. This operation is used by SaaS partners, not by AWS customers.
140 */
141 listPartnerEventSourceAccounts(callback?: (err: AWSError, data: EventBridge.Types.ListPartnerEventSourceAccountsResponse) => void): Request<EventBridge.Types.ListPartnerEventSourceAccountsResponse, AWSError>;
142 /**
143 * An SaaS partner can use this operation to list all the partner event source names that they have created. This operation is not used by AWS customers.
144 */
145 listPartnerEventSources(params: EventBridge.Types.ListPartnerEventSourcesRequest, callback?: (err: AWSError, data: EventBridge.Types.ListPartnerEventSourcesResponse) => void): Request<EventBridge.Types.ListPartnerEventSourcesResponse, AWSError>;
146 /**
147 * An SaaS partner can use this operation to list all the partner event source names that they have created. This operation is not used by AWS customers.
148 */
149 listPartnerEventSources(callback?: (err: AWSError, data: EventBridge.Types.ListPartnerEventSourcesResponse) => void): Request<EventBridge.Types.ListPartnerEventSourcesResponse, AWSError>;
150 /**
151 * Lists the rules for the specified target. You can see which rules can invoke a specific target in your account.
152 */
153 listRuleNamesByTarget(params: EventBridge.Types.ListRuleNamesByTargetRequest, callback?: (err: AWSError, data: EventBridge.Types.ListRuleNamesByTargetResponse) => void): Request<EventBridge.Types.ListRuleNamesByTargetResponse, AWSError>;
154 /**
155 * Lists the rules for the specified target. You can see which rules can invoke a specific target in your account.
156 */
157 listRuleNamesByTarget(callback?: (err: AWSError, data: EventBridge.Types.ListRuleNamesByTargetResponse) => void): Request<EventBridge.Types.ListRuleNamesByTargetResponse, AWSError>;
158 /**
159 * Lists your EventBridge rules. You can either list all the rules or provide a prefix to match to the rule names. ListRules doesn't list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.
160 */
161 listRules(params: EventBridge.Types.ListRulesRequest, callback?: (err: AWSError, data: EventBridge.Types.ListRulesResponse) => void): Request<EventBridge.Types.ListRulesResponse, AWSError>;
162 /**
163 * Lists your EventBridge rules. You can either list all the rules or provide a prefix to match to the rule names. ListRules doesn't list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.
164 */
165 listRules(callback?: (err: AWSError, data: EventBridge.Types.ListRulesResponse) => void): Request<EventBridge.Types.ListRulesResponse, AWSError>;
166 /**
167 * Displays the tags associated with an EventBridge resource. In EventBridge, rules can be tagged.
168 */
169 listTagsForResource(params: EventBridge.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: EventBridge.Types.ListTagsForResourceResponse) => void): Request<EventBridge.Types.ListTagsForResourceResponse, AWSError>;
170 /**
171 * Displays the tags associated with an EventBridge resource. In EventBridge, rules can be tagged.
172 */
173 listTagsForResource(callback?: (err: AWSError, data: EventBridge.Types.ListTagsForResourceResponse) => void): Request<EventBridge.Types.ListTagsForResourceResponse, AWSError>;
174 /**
175 * Lists the targets assigned to the specified rule.
176 */
177 listTargetsByRule(params: EventBridge.Types.ListTargetsByRuleRequest, callback?: (err: AWSError, data: EventBridge.Types.ListTargetsByRuleResponse) => void): Request<EventBridge.Types.ListTargetsByRuleResponse, AWSError>;
178 /**
179 * Lists the targets assigned to the specified rule.
180 */
181 listTargetsByRule(callback?: (err: AWSError, data: EventBridge.Types.ListTargetsByRuleResponse) => void): Request<EventBridge.Types.ListTargetsByRuleResponse, AWSError>;
182 /**
183 * Sends custom events to EventBridge so that they can be matched to rules. These events can be from your custom applications and services.
184 */
185 putEvents(params: EventBridge.Types.PutEventsRequest, callback?: (err: AWSError, data: EventBridge.Types.PutEventsResponse) => void): Request<EventBridge.Types.PutEventsResponse, AWSError>;
186 /**
187 * Sends custom events to EventBridge so that they can be matched to rules. These events can be from your custom applications and services.
188 */
189 putEvents(callback?: (err: AWSError, data: EventBridge.Types.PutEventsResponse) => void): Request<EventBridge.Types.PutEventsResponse, AWSError>;
190 /**
191 * This is used by SaaS partners to write events to a customer's partner event bus. AWS customers do not use this operation. Instead, AWS customers can use PutEvents to write custom events from their own applications to an event bus.
192 */
193 putPartnerEvents(params: EventBridge.Types.PutPartnerEventsRequest, callback?: (err: AWSError, data: EventBridge.Types.PutPartnerEventsResponse) => void): Request<EventBridge.Types.PutPartnerEventsResponse, AWSError>;
194 /**
195 * This is used by SaaS partners to write events to a customer's partner event bus. AWS customers do not use this operation. Instead, AWS customers can use PutEvents to write custom events from their own applications to an event bus.
196 */
197 putPartnerEvents(callback?: (err: AWSError, data: EventBridge.Types.PutPartnerEventsResponse) => void): Request<EventBridge.Types.PutPartnerEventsResponse, AWSError>;
198 /**
199 * Running PutPermission permits the specified AWS account or AWS organization to put events to the specified event bus. Rules in your account are triggered by these events arriving to an event bus in your account. For another account to send events to your account, that external account must have a rule with your account's event bus as a target. To enable multiple AWS accounts to put events to an event bus, run PutPermission once for each of these accounts. Or, if all the accounts are members of the same AWS organization, you can run PutPermission once specifying Principal as "*" and specifying the AWS organization ID in Condition, to grant permissions to all accounts in that organization. If you grant permissions using an organization, then accounts in that organization must specify a RoleArn with proper permissions when they use PutTarget to add your account's event bus as a target. For more information, see Sending and Receiving Events Between AWS Accounts in the Amazon EventBridge User Guide. The permission policy on an event bus can't exceed 10 KB in size.
200 */
201 putPermission(params: EventBridge.Types.PutPermissionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
202 /**
203 * Running PutPermission permits the specified AWS account or AWS organization to put events to the specified event bus. Rules in your account are triggered by these events arriving to an event bus in your account. For another account to send events to your account, that external account must have a rule with your account's event bus as a target. To enable multiple AWS accounts to put events to an event bus, run PutPermission once for each of these accounts. Or, if all the accounts are members of the same AWS organization, you can run PutPermission once specifying Principal as "*" and specifying the AWS organization ID in Condition, to grant permissions to all accounts in that organization. If you grant permissions using an organization, then accounts in that organization must specify a RoleArn with proper permissions when they use PutTarget to add your account's event bus as a target. For more information, see Sending and Receiving Events Between AWS Accounts in the Amazon EventBridge User Guide. The permission policy on an event bus can't exceed 10 KB in size.
204 */
205 putPermission(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
206 /**
207 * Creates or updates the specified rule. Rules are enabled by default or based on value of the state. You can disable a rule using DisableRule. A single rule watches for events from a single event bus. Events generated by AWS services go to your account's default event bus. Events generated by SaaS partner services or applications go to the matching partner event bus. If you have custom applications or services, you can specify whether their events go to your default event bus or a custom event bus that you have created. For more information, see CreateEventBus. If you're updating an existing rule, the rule is replaced with what you specify in this PutRule command. If you omit arguments in PutRule, the old values for those arguments aren't kept. Instead, they're replaced with null values. When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Allow a short period of time for changes to take effect. A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule triggers on matching events as well as on a schedule. When you initially create a rule, you can optionally assign one or more tags to the rule. Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only rules with certain tag values. To use the PutRule operation and assign tags, you must have both the events:PutRule and events:TagResource permissions. If you are updating an existing rule, any tags you specify in the PutRule operation are ignored. To update the tags of an existing rule, use TagResource and UntagResource. Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, EventBridge uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event that you want to match. In EventBridge, you could create rules that lead to infinite loops, where a rule is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket, and trigger software to change them to the desired state. If you don't write the rule carefully, the subsequent change to the ACLs fires the rule again, creating an infinite loop. To prevent this, write the rules so that the triggered actions don't refire the same rule. For example, your rule could fire only if ACLs are found to be in a bad state, instead of after any change. An infinite loop can quickly cause higher than expected charges. We recommend that you use budgeting, which alerts you when charges exceed your specified limit. For more information, see Managing Your Costs with Budgets.
208 */
209 putRule(params: EventBridge.Types.PutRuleRequest, callback?: (err: AWSError, data: EventBridge.Types.PutRuleResponse) => void): Request<EventBridge.Types.PutRuleResponse, AWSError>;
210 /**
211 * Creates or updates the specified rule. Rules are enabled by default or based on value of the state. You can disable a rule using DisableRule. A single rule watches for events from a single event bus. Events generated by AWS services go to your account's default event bus. Events generated by SaaS partner services or applications go to the matching partner event bus. If you have custom applications or services, you can specify whether their events go to your default event bus or a custom event bus that you have created. For more information, see CreateEventBus. If you're updating an existing rule, the rule is replaced with what you specify in this PutRule command. If you omit arguments in PutRule, the old values for those arguments aren't kept. Instead, they're replaced with null values. When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Allow a short period of time for changes to take effect. A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule triggers on matching events as well as on a schedule. When you initially create a rule, you can optionally assign one or more tags to the rule. Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only rules with certain tag values. To use the PutRule operation and assign tags, you must have both the events:PutRule and events:TagResource permissions. If you are updating an existing rule, any tags you specify in the PutRule operation are ignored. To update the tags of an existing rule, use TagResource and UntagResource. Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, EventBridge uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event that you want to match. In EventBridge, you could create rules that lead to infinite loops, where a rule is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket, and trigger software to change them to the desired state. If you don't write the rule carefully, the subsequent change to the ACLs fires the rule again, creating an infinite loop. To prevent this, write the rules so that the triggered actions don't refire the same rule. For example, your rule could fire only if ACLs are found to be in a bad state, instead of after any change. An infinite loop can quickly cause higher than expected charges. We recommend that you use budgeting, which alerts you when charges exceed your specified limit. For more information, see Managing Your Costs with Budgets.
212 */
213 putRule(callback?: (err: AWSError, data: EventBridge.Types.PutRuleResponse) => void): Request<EventBridge.Types.PutRuleResponse, AWSError>;
214 /**
215 * Adds the specified targets to the specified rule, or updates the targets if they're already associated with the rule. Targets are the resources that are invoked when a rule is triggered. You can configure the following as targets in EventBridge: EC2 instances SSM Run Command SSM Automation AWS Lambda functions Data streams in Amazon Kinesis Data Streams Data delivery streams in Amazon Kinesis Data Firehose Amazon ECS tasks AWS Step Functions state machines AWS Batch jobs AWS CodeBuild projects Pipelines in AWS CodePipeline Amazon Inspector assessment templates Amazon SNS topics Amazon SQS queues, including FIFO queues The default event bus of another AWS account Creating rules with built-in targets is supported only on the AWS Management Console. The built-in targets are EC2 CreateSnapshot API call, EC2 RebootInstances API call, EC2 StopInstances API call, and EC2 TerminateInstances API call. For some target types, PutTargets provides target-specific parameters. If the target is a Kinesis data stream, you can optionally specify which shard the event goes to by using the KinesisParameters argument. To invoke a command on multiple EC2 instances with one rule, you can use the RunCommandParameters field. To be able to make API calls against the resources that you own, Amazon EventBridge needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, EventBridge relies on resource-based policies. For EC2 instances, Kinesis data streams, and AWS Step Functions state machines, EventBridge relies on IAM roles that you specify in the RoleARN argument in PutTargets. For more information, see Authentication and Access Control in the Amazon EventBridge User Guide. If another AWS account is in the same Region and has granted you permission (using PutPermission), you can send events to that account. Set that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the Arn value when you run PutTargets. If your account sends events to another account, your account is charged for each sent event. Each event sent to another account is charged as a custom event. The account receiving the event isn't charged. For more information, see Amazon EventBridge Pricing. If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a RoleArn with proper permissions in the Target structure. For more information, see Sending and Receiving Events Between AWS Accounts in the Amazon EventBridge User Guide. For more information about enabling cross-account events, see PutPermission. Input, InputPath, and InputTransformer are mutually exclusive and optional parameters of a target. When a rule is triggered due to a matched event: If none of the following arguments are specified for a target, the entire event is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from the event is passed to the target). If Input is specified in the form of valid JSON, then the matched event is overridden with this constant. If InputPath is specified in the form of JSONPath (for example, $.detail), only the part of the event specified in the path is passed to the target (for example, only the detail part of the event is passed). If InputTransformer is specified, one or more specified JSONPaths are extracted from the event and used as values in a template that you specify as the input to the target. When you specify InputPath or InputTransformer, you must use JSON dot notation, not bracket notation. When you add targets to a rule and the associated rule triggers soon after, new or updated targets might not be immediately invoked. Allow a short period of time for changes to take effect. This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is nonzero in the response, and each entry in FailedEntries provides the ID of the failed target and the error code.
216 */
217 putTargets(params: EventBridge.Types.PutTargetsRequest, callback?: (err: AWSError, data: EventBridge.Types.PutTargetsResponse) => void): Request<EventBridge.Types.PutTargetsResponse, AWSError>;
218 /**
219 * Adds the specified targets to the specified rule, or updates the targets if they're already associated with the rule. Targets are the resources that are invoked when a rule is triggered. You can configure the following as targets in EventBridge: EC2 instances SSM Run Command SSM Automation AWS Lambda functions Data streams in Amazon Kinesis Data Streams Data delivery streams in Amazon Kinesis Data Firehose Amazon ECS tasks AWS Step Functions state machines AWS Batch jobs AWS CodeBuild projects Pipelines in AWS CodePipeline Amazon Inspector assessment templates Amazon SNS topics Amazon SQS queues, including FIFO queues The default event bus of another AWS account Creating rules with built-in targets is supported only on the AWS Management Console. The built-in targets are EC2 CreateSnapshot API call, EC2 RebootInstances API call, EC2 StopInstances API call, and EC2 TerminateInstances API call. For some target types, PutTargets provides target-specific parameters. If the target is a Kinesis data stream, you can optionally specify which shard the event goes to by using the KinesisParameters argument. To invoke a command on multiple EC2 instances with one rule, you can use the RunCommandParameters field. To be able to make API calls against the resources that you own, Amazon EventBridge needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, EventBridge relies on resource-based policies. For EC2 instances, Kinesis data streams, and AWS Step Functions state machines, EventBridge relies on IAM roles that you specify in the RoleARN argument in PutTargets. For more information, see Authentication and Access Control in the Amazon EventBridge User Guide. If another AWS account is in the same Region and has granted you permission (using PutPermission), you can send events to that account. Set that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the Arn value when you run PutTargets. If your account sends events to another account, your account is charged for each sent event. Each event sent to another account is charged as a custom event. The account receiving the event isn't charged. For more information, see Amazon EventBridge Pricing. If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a RoleArn with proper permissions in the Target structure. For more information, see Sending and Receiving Events Between AWS Accounts in the Amazon EventBridge User Guide. For more information about enabling cross-account events, see PutPermission. Input, InputPath, and InputTransformer are mutually exclusive and optional parameters of a target. When a rule is triggered due to a matched event: If none of the following arguments are specified for a target, the entire event is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from the event is passed to the target). If Input is specified in the form of valid JSON, then the matched event is overridden with this constant. If InputPath is specified in the form of JSONPath (for example, $.detail), only the part of the event specified in the path is passed to the target (for example, only the detail part of the event is passed). If InputTransformer is specified, one or more specified JSONPaths are extracted from the event and used as values in a template that you specify as the input to the target. When you specify InputPath or InputTransformer, you must use JSON dot notation, not bracket notation. When you add targets to a rule and the associated rule triggers soon after, new or updated targets might not be immediately invoked. Allow a short period of time for changes to take effect. This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is nonzero in the response, and each entry in FailedEntries provides the ID of the failed target and the error code.
220 */
221 putTargets(callback?: (err: AWSError, data: EventBridge.Types.PutTargetsResponse) => void): Request<EventBridge.Types.PutTargetsResponse, AWSError>;
222 /**
223 * Revokes the permission of another AWS account to be able to put events to the specified event bus. Specify the account to revoke by the StatementId value that you associated with the account when you granted it permission with PutPermission. You can find the StatementId by using DescribeEventBus.
224 */
225 removePermission(params: EventBridge.Types.RemovePermissionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
226 /**
227 * Revokes the permission of another AWS account to be able to put events to the specified event bus. Specify the account to revoke by the StatementId value that you associated with the account when you granted it permission with PutPermission. You can find the StatementId by using DescribeEventBus.
228 */
229 removePermission(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
230 /**
231 * Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked. When you remove a target, when the associated rule triggers, removed targets might continue to be invoked. Allow a short period of time for changes to take effect. This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the ID of the failed target and the error code.
232 */
233 removeTargets(params: EventBridge.Types.RemoveTargetsRequest, callback?: (err: AWSError, data: EventBridge.Types.RemoveTargetsResponse) => void): Request<EventBridge.Types.RemoveTargetsResponse, AWSError>;
234 /**
235 * Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked. When you remove a target, when the associated rule triggers, removed targets might continue to be invoked. Allow a short period of time for changes to take effect. This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the ID of the failed target and the error code.
236 */
237 removeTargets(callback?: (err: AWSError, data: EventBridge.Types.RemoveTargetsResponse) => void): Request<EventBridge.Types.RemoveTargetsResponse, AWSError>;
238 /**
239 * Assigns one or more tags (key-value pairs) to the specified EventBridge resource. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. In EventBridge, rules can be tagged. Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters. You can use the TagResource action with a rule that already has tags. If you specify a new tag key for the rule, this tag is appended to the list of tags associated with the rule. If you specify a tag key that is already associated with the rule, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a resource.
240 */
241 tagResource(params: EventBridge.Types.TagResourceRequest, callback?: (err: AWSError, data: EventBridge.Types.TagResourceResponse) => void): Request<EventBridge.Types.TagResourceResponse, AWSError>;
242 /**
243 * Assigns one or more tags (key-value pairs) to the specified EventBridge resource. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. In EventBridge, rules can be tagged. Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters. You can use the TagResource action with a rule that already has tags. If you specify a new tag key for the rule, this tag is appended to the list of tags associated with the rule. If you specify a tag key that is already associated with the rule, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a resource.
244 */
245 tagResource(callback?: (err: AWSError, data: EventBridge.Types.TagResourceResponse) => void): Request<EventBridge.Types.TagResourceResponse, AWSError>;
246 /**
247 * Tests whether the specified event pattern matches the provided event. Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, EventBridge uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event that you want to match.
248 */
249 testEventPattern(params: EventBridge.Types.TestEventPatternRequest, callback?: (err: AWSError, data: EventBridge.Types.TestEventPatternResponse) => void): Request<EventBridge.Types.TestEventPatternResponse, AWSError>;
250 /**
251 * Tests whether the specified event pattern matches the provided event. Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, EventBridge uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event that you want to match.
252 */
253 testEventPattern(callback?: (err: AWSError, data: EventBridge.Types.TestEventPatternResponse) => void): Request<EventBridge.Types.TestEventPatternResponse, AWSError>;
254 /**
255 * Removes one or more tags from the specified EventBridge resource. In EventBridge, rules can be tagged.
256 */
257 untagResource(params: EventBridge.Types.UntagResourceRequest, callback?: (err: AWSError, data: EventBridge.Types.UntagResourceResponse) => void): Request<EventBridge.Types.UntagResourceResponse, AWSError>;
258 /**
259 * Removes one or more tags from the specified EventBridge resource. In EventBridge, rules can be tagged.
260 */
261 untagResource(callback?: (err: AWSError, data: EventBridge.Types.UntagResourceResponse) => void): Request<EventBridge.Types.UntagResourceResponse, AWSError>;
262}
263declare namespace EventBridge {
264 export type AccountId = string;
265 export type Action = string;
266 export interface ActivateEventSourceRequest {
267 /**
268 * The name of the partner event source to activate.
269 */
270 Name: EventSourceName;
271 }
272 export type Arn = string;
273 export type AssignPublicIp = "ENABLED"|"DISABLED"|string;
274 export interface AwsVpcConfiguration {
275 /**
276 * Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
277 */
278 Subnets: StringList;
279 /**
280 * Specifies the security groups associated with the task. These security groups must all be in the same VPC. You can specify as many as five security groups. If you don't specify a security group, the default security group for the VPC is used.
281 */
282 SecurityGroups?: StringList;
283 /**
284 * Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE.
285 */
286 AssignPublicIp?: AssignPublicIp;
287 }
288 export interface BatchArrayProperties {
289 /**
290 * The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000.
291 */
292 Size?: Integer;
293 }
294 export interface BatchParameters {
295 /**
296 * The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist.
297 */
298 JobDefinition: String;
299 /**
300 * The name to use for this execution of the job, if the target is an AWS Batch job.
301 */
302 JobName: String;
303 /**
304 * The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.
305 */
306 ArrayProperties?: BatchArrayProperties;
307 /**
308 * The retry strategy to use for failed jobs if the target is an AWS Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1–10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
309 */
310 RetryStrategy?: BatchRetryStrategy;
311 }
312 export interface BatchRetryStrategy {
313 /**
314 * The number of times to attempt to retry, if the job fails. Valid values are 1–10.
315 */
316 Attempts?: Integer;
317 }
318 export type Boolean = boolean;
319 export interface Condition {
320 /**
321 * The type of condition. Currently, the only supported value is StringEquals.
322 */
323 Type: String;
324 /**
325 * The key for the condition. Currently, the only supported key is aws:PrincipalOrgID.
326 */
327 Key: String;
328 /**
329 * The value for the key. Currently, this must be the ID of the organization.
330 */
331 Value: String;
332 }
333 export interface CreateEventBusRequest {
334 /**
335 * The name of the new event bus. The names of custom event buses can't contain the / character. You can't use the name default for a custom event bus because this name is already used for your account's default event bus. If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to. This name will include the / character.
336 */
337 Name: EventBusName;
338 /**
339 * If you're creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
340 */
341 EventSourceName?: EventSourceName;
342 }
343 export interface CreateEventBusResponse {
344 /**
345 * The ARN of the new event bus.
346 */
347 EventBusArn?: String;
348 }
349 export interface CreatePartnerEventSourceRequest {
350 /**
351 * The name of the partner event source. This name must be unique and must be in the format partner_name/event_namespace/event_name . The AWS account that wants to use this partner event source must create a partner event bus with a name that matches the name of the partner event source.
352 */
353 Name: EventSourceName;
354 /**
355 * The AWS account ID of the customer who is permitted to create a matching partner event bus for this partner event source.
356 */
357 Account: AccountId;
358 }
359 export interface CreatePartnerEventSourceResponse {
360 /**
361 * The ARN of the partner event source.
362 */
363 EventSourceArn?: String;
364 }
365 export interface DeactivateEventSourceRequest {
366 /**
367 * The name of the partner event source to deactivate.
368 */
369 Name: EventSourceName;
370 }
371 export interface DeleteEventBusRequest {
372 /**
373 * The name of the event bus to delete.
374 */
375 Name: EventBusName;
376 }
377 export interface DeletePartnerEventSourceRequest {
378 /**
379 * The name of the event source to delete.
380 */
381 Name: EventSourceName;
382 /**
383 * The AWS account ID of the AWS customer that the event source was created for.
384 */
385 Account: AccountId;
386 }
387 export interface DeleteRuleRequest {
388 /**
389 * The name of the rule.
390 */
391 Name: RuleName;
392 /**
393 * The event bus associated with the rule. If you omit this, the default event bus is used.
394 */
395 EventBusName?: EventBusName;
396 /**
397 * If this is a managed rule, created by an AWS service on your behalf, you must specify Force as True to delete the rule. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response.
398 */
399 Force?: Boolean;
400 }
401 export interface DescribeEventBusRequest {
402 /**
403 * The name of the event bus to show details for. If you omit this, the default event bus is displayed.
404 */
405 Name?: EventBusName;
406 }
407 export interface DescribeEventBusResponse {
408 /**
409 * The name of the event bus. Currently, this is always default.
410 */
411 Name?: String;
412 /**
413 * The Amazon Resource Name (ARN) of the account permitted to write events to the current account.
414 */
415 Arn?: String;
416 /**
417 * The policy that enables the external account to send events to your account.
418 */
419 Policy?: String;
420 }
421 export interface DescribeEventSourceRequest {
422 /**
423 * The name of the partner event source to display the details of.
424 */
425 Name: EventSourceName;
426 }
427 export interface DescribeEventSourceResponse {
428 /**
429 * The ARN of the partner event source.
430 */
431 Arn?: String;
432 /**
433 * The name of the SaaS partner that created the event source.
434 */
435 CreatedBy?: String;
436 /**
437 * The date and time that the event source was created.
438 */
439 CreationTime?: Timestamp;
440 /**
441 * The date and time that the event source will expire if you don't create a matching event bus.
442 */
443 ExpirationTime?: Timestamp;
444 /**
445 * The name of the partner event source.
446 */
447 Name?: String;
448 /**
449 * The state of the event source. If it's ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it's PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it's DELETED, you have created a matching event bus, but the event source has since been deleted.
450 */
451 State?: EventSourceState;
452 }
453 export interface DescribePartnerEventSourceRequest {
454 /**
455 * The name of the event source to display.
456 */
457 Name: EventSourceName;
458 }
459 export interface DescribePartnerEventSourceResponse {
460 /**
461 * The ARN of the event source.
462 */
463 Arn?: String;
464 /**
465 * The name of the event source.
466 */
467 Name?: String;
468 }
469 export interface DescribeRuleRequest {
470 /**
471 * The name of the rule.
472 */
473 Name: RuleName;
474 /**
475 * The event bus associated with the rule. If you omit this, the default event bus is used.
476 */
477 EventBusName?: EventBusName;
478 }
479 export interface DescribeRuleResponse {
480 /**
481 * The name of the rule.
482 */
483 Name?: RuleName;
484 /**
485 * The Amazon Resource Name (ARN) of the rule.
486 */
487 Arn?: RuleArn;
488 /**
489 * The event pattern. For more information, see Event Patterns in the Amazon EventBridge User Guide.
490 */
491 EventPattern?: EventPattern;
492 /**
493 * The scheduling expression: for example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
494 */
495 ScheduleExpression?: ScheduleExpression;
496 /**
497 * Specifies whether the rule is enabled or disabled.
498 */
499 State?: RuleState;
500 /**
501 * The description of the rule.
502 */
503 Description?: RuleDescription;
504 /**
505 * The Amazon Resource Name (ARN) of the IAM role associated with the rule.
506 */
507 RoleArn?: RoleArn;
508 /**
509 * If this is a managed rule, created by an AWS service on your behalf, this field displays the principal name of the AWS service that created the rule.
510 */
511 ManagedBy?: ManagedBy;
512 /**
513 * The event bus associated with the rule.
514 */
515 EventBusName?: EventBusName;
516 }
517 export interface DisableRuleRequest {
518 /**
519 * The name of the rule.
520 */
521 Name: RuleName;
522 /**
523 * The event bus associated with the rule. If you omit this, the default event bus is used.
524 */
525 EventBusName?: EventBusName;
526 }
527 export interface EcsParameters {
528 /**
529 * The ARN of the task definition to use if the event target is an Amazon ECS task.
530 */
531 TaskDefinitionArn: Arn;
532 /**
533 * The number of tasks to create based on TaskDefinition. The default is 1.
534 */
535 TaskCount?: LimitMin1;
536 /**
537 * Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. The FARGATE value is supported only in the Regions where AWS Fargate with Amazon ECS is supported. For more information, see AWS Fargate on Amazon ECS in the Amazon Elastic Container Service Developer Guide.
538 */
539 LaunchType?: LaunchType;
540 /**
541 * Use this structure if the ECS task uses the awsvpc network mode. This structure specifies the VPC subnets and security groups associated with the task and whether a public IP address is to be used. This structure is required if LaunchType is FARGATE because the awsvpc mode is required for Fargate tasks. If you specify NetworkConfiguration when the target ECS task doesn't use the awsvpc network mode, the task fails.
542 */
543 NetworkConfiguration?: NetworkConfiguration;
544 /**
545 * Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. This structure is used only if LaunchType is FARGATE. For more information about valid platform versions, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.
546 */
547 PlatformVersion?: String;
548 /**
549 * Specifies an ECS task group for the task. The maximum length is 255 characters.
550 */
551 Group?: String;
552 }
553 export interface EnableRuleRequest {
554 /**
555 * The name of the rule.
556 */
557 Name: RuleName;
558 /**
559 * The event bus associated with the rule. If you omit this, the default event bus is used.
560 */
561 EventBusName?: EventBusName;
562 }
563 export type ErrorCode = string;
564 export type ErrorMessage = string;
565 export interface EventBus {
566 /**
567 * The name of the event bus.
568 */
569 Name?: String;
570 /**
571 * The ARN of the event bus.
572 */
573 Arn?: String;
574 /**
575 * The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.
576 */
577 Policy?: String;
578 }
579 export type EventBusList = EventBus[];
580 export type EventBusName = string;
581 export type EventId = string;
582 export type EventPattern = string;
583 export type EventResource = string;
584 export type EventResourceList = EventResource[];
585 export interface EventSource {
586 /**
587 * The ARN of the event source.
588 */
589 Arn?: String;
590 /**
591 * The name of the partner that created the event source.
592 */
593 CreatedBy?: String;
594 /**
595 * The date and time when the event source was created.
596 */
597 CreationTime?: Timestamp;
598 /**
599 * The date and time when the event source will expire if the AWS account doesn't create a matching event bus for it.
600 */
601 ExpirationTime?: Timestamp;
602 /**
603 * The name of the event source.
604 */
605 Name?: String;
606 /**
607 * The state of the event source. If it's ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it's PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it's DELETED, you have created a matching event bus, but the event source has since been deleted.
608 */
609 State?: EventSourceState;
610 }
611 export type EventSourceList = EventSource[];
612 export type EventSourceName = string;
613 export type EventSourceNamePrefix = string;
614 export type EventSourceState = "PENDING"|"ACTIVE"|"DELETED"|string;
615 export type EventTime = Date;
616 export interface InputTransformer {
617 /**
618 * Map of JSON paths to be extracted from the event. You can then insert these in the template in InputTemplate to produce the output to be sent to the target. InputPathsMap is an array key-value pairs, where each value is a valid JSON path. You can have as many as 10 key-value pairs. You must use JSON dot notation, not bracket notation. The keys can't start with "AWS".
619 */
620 InputPathsMap?: TransformerPaths;
621 /**
622 * Input template where you specify placeholders that will be filled with the values of the keys from InputPathsMap to customize the data sent to the target. Enclose each InputPathsMaps value in brackets: &lt;value&gt;. The InputTemplate must be valid JSON. If InputTemplate is a JSON object (surrounded by curly braces), the following restrictions apply: The placeholder can't be used as an object key Object values can't include quote marks The following example shows the syntax for using InputPathsMap and InputTemplate. "InputTransformer": { "InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"}, "InputTemplate": "&lt;instance&gt; is in state &lt;status&gt;" } To have the InputTemplate include quote marks within a JSON string, escape each quote marks with a slash, as in the following example: "InputTransformer": { "InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"}, "InputTemplate": "&lt;instance&gt; is in state \"&lt;status&gt;\"" }
623 */
624 InputTemplate: TransformerInput;
625 }
626 export type InputTransformerPathKey = string;
627 export type Integer = number;
628 export interface KinesisParameters {
629 /**
630 * The JSON path to be extracted from the event and used as the partition key. For more information, see Amazon Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer Guide.
631 */
632 PartitionKeyPath: TargetPartitionKeyPath;
633 }
634 export type LaunchType = "EC2"|"FARGATE"|string;
635 export type LimitMax100 = number;
636 export type LimitMin1 = number;
637 export interface ListEventBusesRequest {
638 /**
639 * Specifying this limits the results to only those event buses with names that start with the specified prefix.
640 */
641 NamePrefix?: EventBusName;
642 /**
643 * The token returned by a previous call to retrieve the next set of results.
644 */
645 NextToken?: NextToken;
646 /**
647 * Specifying this limits the number of results returned by this operation. The operation also returns a NextToken that you can use in a subsequent operation to retrieve the next set of results.
648 */
649 Limit?: LimitMax100;
650 }
651 export interface ListEventBusesResponse {
652 /**
653 * This list of event buses.
654 */
655 EventBuses?: EventBusList;
656 /**
657 * A token you can use in a subsequent operation to retrieve the next set of results.
658 */
659 NextToken?: NextToken;
660 }
661 export interface ListEventSourcesRequest {
662 /**
663 * Specifying this limits the results to only those partner event sources with names that start with the specified prefix.
664 */
665 NamePrefix?: EventSourceNamePrefix;
666 /**
667 * The token returned by a previous call to retrieve the next set of results.
668 */
669 NextToken?: NextToken;
670 /**
671 * Specifying this limits the number of results returned by this operation. The operation also returns a NextToken that you can use in a subsequent operation to retrieve the next set of results.
672 */
673 Limit?: LimitMax100;
674 }
675 export interface ListEventSourcesResponse {
676 /**
677 * The list of event sources.
678 */
679 EventSources?: EventSourceList;
680 /**
681 * A token you can use in a subsequent operation to retrieve the next set of results.
682 */
683 NextToken?: NextToken;
684 }
685 export interface ListPartnerEventSourceAccountsRequest {
686 /**
687 * The name of the partner event source to display account information about.
688 */
689 EventSourceName: EventSourceName;
690 /**
691 * The token returned by a previous call to this operation. Specifying this retrieves the next set of results.
692 */
693 NextToken?: NextToken;
694 /**
695 * Specifying this limits the number of results returned by this operation. The operation also returns a NextToken that you can use in a subsequent operation to retrieve the next set of results.
696 */
697 Limit?: LimitMax100;
698 }
699 export interface ListPartnerEventSourceAccountsResponse {
700 /**
701 * The list of partner event sources returned by the operation.
702 */
703 PartnerEventSourceAccounts?: PartnerEventSourceAccountList;
704 /**
705 * A token you can use in a subsequent operation to retrieve the next set of results.
706 */
707 NextToken?: NextToken;
708 }
709 export interface ListPartnerEventSourcesRequest {
710 /**
711 * If you specify this, the results are limited to only those partner event sources that start with the string you specify.
712 */
713 NamePrefix: PartnerEventSourceNamePrefix;
714 /**
715 * The token returned by a previous call to this operation. Specifying this retrieves the next set of results.
716 */
717 NextToken?: NextToken;
718 /**
719 * pecifying this limits the number of results returned by this operation. The operation also returns a NextToken that you can use in a subsequent operation to retrieve the next set of results.
720 */
721 Limit?: LimitMax100;
722 }
723 export interface ListPartnerEventSourcesResponse {
724 /**
725 * The list of partner event sources returned by the operation.
726 */
727 PartnerEventSources?: PartnerEventSourceList;
728 /**
729 * A token you can use in a subsequent operation to retrieve the next set of results.
730 */
731 NextToken?: NextToken;
732 }
733 export interface ListRuleNamesByTargetRequest {
734 /**
735 * The Amazon Resource Name (ARN) of the target resource.
736 */
737 TargetArn: TargetArn;
738 /**
739 * Limits the results to show only the rules associated with the specified event bus.
740 */
741 EventBusName?: EventBusName;
742 /**
743 * The token returned by a previous call to retrieve the next set of results.
744 */
745 NextToken?: NextToken;
746 /**
747 * The maximum number of results to return.
748 */
749 Limit?: LimitMax100;
750 }
751 export interface ListRuleNamesByTargetResponse {
752 /**
753 * The names of the rules that can invoke the given target.
754 */
755 RuleNames?: RuleNameList;
756 /**
757 * Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
758 */
759 NextToken?: NextToken;
760 }
761 export interface ListRulesRequest {
762 /**
763 * The prefix matching the rule name.
764 */
765 NamePrefix?: RuleName;
766 /**
767 * Limits the results to show only the rules associated with the specified event bus.
768 */
769 EventBusName?: EventBusName;
770 /**
771 * The token returned by a previous call to retrieve the next set of results.
772 */
773 NextToken?: NextToken;
774 /**
775 * The maximum number of results to return.
776 */
777 Limit?: LimitMax100;
778 }
779 export interface ListRulesResponse {
780 /**
781 * The rules that match the specified criteria.
782 */
783 Rules?: RuleResponseList;
784 /**
785 * Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
786 */
787 NextToken?: NextToken;
788 }
789 export interface ListTagsForResourceRequest {
790 /**
791 * The ARN of the rule for which you want to view tags.
792 */
793 ResourceARN: Arn;
794 }
795 export interface ListTagsForResourceResponse {
796 /**
797 * The list of tag keys and values associated with the rule that you specified.
798 */
799 Tags?: TagList;
800 }
801 export interface ListTargetsByRuleRequest {
802 /**
803 * The name of the rule.
804 */
805 Rule: RuleName;
806 /**
807 * The event bus associated with the rule. If you omit this, the default event bus is used.
808 */
809 EventBusName?: EventBusName;
810 /**
811 * The token returned by a previous call to retrieve the next set of results.
812 */
813 NextToken?: NextToken;
814 /**
815 * The maximum number of results to return.
816 */
817 Limit?: LimitMax100;
818 }
819 export interface ListTargetsByRuleResponse {
820 /**
821 * The targets assigned to the rule.
822 */
823 Targets?: TargetList;
824 /**
825 * Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
826 */
827 NextToken?: NextToken;
828 }
829 export type ManagedBy = string;
830 export type MessageGroupId = string;
831 export interface NetworkConfiguration {
832 /**
833 * Use this structure to specify the VPC subnets and security groups for the task and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the awsvpc network mode.
834 */
835 awsvpcConfiguration?: AwsVpcConfiguration;
836 }
837 export type NextToken = string;
838 export type NonPartnerEventBusName = string;
839 export interface PartnerEventSource {
840 /**
841 * The ARN of the partner event source.
842 */
843 Arn?: String;
844 /**
845 * The name of the partner event source.
846 */
847 Name?: String;
848 }
849 export interface PartnerEventSourceAccount {
850 /**
851 * The AWS account ID that the partner event source was offered to.
852 */
853 Account?: AccountId;
854 /**
855 * The date and time when the event source was created.
856 */
857 CreationTime?: Timestamp;
858 /**
859 * The date and time when the event source will expire if the AWS account doesn't create a matching event bus for it.
860 */
861 ExpirationTime?: Timestamp;
862 /**
863 * The state of the event source. If it's ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it's PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it's DELETED, you have created a matching event bus, but the event source has since been deleted.
864 */
865 State?: EventSourceState;
866 }
867 export type PartnerEventSourceAccountList = PartnerEventSourceAccount[];
868 export type PartnerEventSourceList = PartnerEventSource[];
869 export type PartnerEventSourceNamePrefix = string;
870 export type Principal = string;
871 export interface PutEventsRequest {
872 /**
873 * The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.
874 */
875 Entries: PutEventsRequestEntryList;
876 }
877 export interface PutEventsRequestEntry {
878 /**
879 * The timestamp of the event, per RFC3339. If no timestamp is provided, the timestamp of the PutEvents call is used.
880 */
881 Time?: EventTime;
882 /**
883 * The source of the event. This field is required.
884 */
885 Source?: String;
886 /**
887 * AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number, including zero, can be present.
888 */
889 Resources?: EventResourceList;
890 /**
891 * Free-form string used to decide which fields to expect in the event detail. This field is required.
892 */
893 DetailType?: String;
894 /**
895 * A valid JSON object. There is no other schema imposed. The JSON object can contain fields and nested subobjects. This field is required.
896 */
897 Detail?: String;
898 /**
899 * The event bus that will receive the event. Only the rules that are associated with this event bus can match the event.
900 */
901 EventBusName?: NonPartnerEventBusName;
902 }
903 export type PutEventsRequestEntryList = PutEventsRequestEntry[];
904 export interface PutEventsResponse {
905 /**
906 * The number of failed entries.
907 */
908 FailedEntryCount?: Integer;
909 /**
910 * The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.
911 */
912 Entries?: PutEventsResultEntryList;
913 }
914 export interface PutEventsResultEntry {
915 /**
916 * The ID of the event.
917 */
918 EventId?: EventId;
919 /**
920 * The error code that indicates why the event submission failed.
921 */
922 ErrorCode?: ErrorCode;
923 /**
924 * The error message that explains why the event submission failed.
925 */
926 ErrorMessage?: ErrorMessage;
927 }
928 export type PutEventsResultEntryList = PutEventsResultEntry[];
929 export interface PutPartnerEventsRequest {
930 /**
931 * The list of events to write to the event bus.
932 */
933 Entries: PutPartnerEventsRequestEntryList;
934 }
935 export interface PutPartnerEventsRequestEntry {
936 /**
937 * The date and time of the event.
938 */
939 Time?: EventTime;
940 /**
941 * The event source that is generating the evntry. This field is required.
942 */
943 Source?: String;
944 /**
945 * AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number, including zero, can be present.
946 */
947 Resources?: EventResourceList;
948 /**
949 * A free-form string used to decide which fields to expect in the event detail. This field is required.
950 */
951 DetailType?: String;
952 /**
953 * A valid JSON object. There is no other schema imposed. The JSON object can contain fields and nested subobjects. This field is required.
954 */
955 Detail?: String;
956 }
957 export type PutPartnerEventsRequestEntryList = PutPartnerEventsRequestEntry[];
958 export interface PutPartnerEventsResponse {
959 /**
960 * The number of events from this operation that couldn't be written to the partner event bus.
961 */
962 FailedEntryCount?: Integer;
963 /**
964 * The list of events from this operation that were successfully written to the partner event bus.
965 */
966 Entries?: PutPartnerEventsResultEntryList;
967 }
968 export interface PutPartnerEventsResultEntry {
969 /**
970 * The ID of the event.
971 */
972 EventId?: EventId;
973 /**
974 * The error code that indicates why the event submission failed.
975 */
976 ErrorCode?: ErrorCode;
977 /**
978 * The error message that explains why the event submission failed.
979 */
980 ErrorMessage?: ErrorMessage;
981 }
982 export type PutPartnerEventsResultEntryList = PutPartnerEventsResultEntry[];
983 export interface PutPermissionRequest {
984 /**
985 * The event bus associated with the rule. If you omit this, the default event bus is used.
986 */
987 EventBusName?: NonPartnerEventBusName;
988 /**
989 * The action that you're enabling the other account to perform. Currently, this must be events:PutEvents.
990 */
991 Action: Action;
992 /**
993 * The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify "*" to permit any account to put events to your default event bus. If you specify "*" without specifying Condition, avoid creating rules that might match undesirable events. To create more secure rules, make sure that the event pattern for each rule contains an account field with a specific account ID to receive events from. Rules that have an account field match events sent only from accounts that are listed in the rule's account field.
994 */
995 Principal: Principal;
996 /**
997 * An identifier string for the external account that you're granting permissions to. If you later want to revoke the permission for this external account, specify this StatementId when you run RemovePermission.
998 */
999 StatementId: StatementId;
1000 /**
1001 * This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain AWS organization. For more information about AWS Organizations, see What Is AWS Organizations? in the AWS Organizations User Guide. If you specify Condition with an AWS organization ID and specify "*" as the value for Principal, you grant permission to all the accounts in the named organization. The Condition is a JSON string that must contain Type, Key, and Value fields.
1002 */
1003 Condition?: Condition;
1004 }
1005 export interface PutRuleRequest {
1006 /**
1007 * The name of the rule that you're creating or updating. A rule can't have the same name as another rule in the same Region or on the same event bus.
1008 */
1009 Name: RuleName;
1010 /**
1011 * The scheduling expression: for example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
1012 */
1013 ScheduleExpression?: ScheduleExpression;
1014 /**
1015 * The event pattern. For more information, see Event Patterns in the Amazon EventBridge User Guide.
1016 */
1017 EventPattern?: EventPattern;
1018 /**
1019 * Indicates whether the rule is enabled or disabled.
1020 */
1021 State?: RuleState;
1022 /**
1023 * A description of the rule.
1024 */
1025 Description?: RuleDescription;
1026 /**
1027 * The Amazon Resource Name (ARN) of the IAM role associated with the rule.
1028 */
1029 RoleArn?: RoleArn;
1030 /**
1031 * The list of key-value pairs to associate with the rule.
1032 */
1033 Tags?: TagList;
1034 /**
1035 * The event bus to associate with this rule. If you omit this, the default event bus is used.
1036 */
1037 EventBusName?: EventBusName;
1038 }
1039 export interface PutRuleResponse {
1040 /**
1041 * The Amazon Resource Name (ARN) of the rule.
1042 */
1043 RuleArn?: RuleArn;
1044 }
1045 export interface PutTargetsRequest {
1046 /**
1047 * The name of the rule.
1048 */
1049 Rule: RuleName;
1050 /**
1051 * The name of the event bus associated with the rule. If you omit this, the default event bus is used.
1052 */
1053 EventBusName?: EventBusName;
1054 /**
1055 * The targets to update or add to the rule.
1056 */
1057 Targets: TargetList;
1058 }
1059 export interface PutTargetsResponse {
1060 /**
1061 * The number of failed entries.
1062 */
1063 FailedEntryCount?: Integer;
1064 /**
1065 * The failed target entries.
1066 */
1067 FailedEntries?: PutTargetsResultEntryList;
1068 }
1069 export interface PutTargetsResultEntry {
1070 /**
1071 * The ID of the target.
1072 */
1073 TargetId?: TargetId;
1074 /**
1075 * The error code that indicates why the target addition failed. If the value is ConcurrentModificationException, too many requests were made at the same time.
1076 */
1077 ErrorCode?: ErrorCode;
1078 /**
1079 * The error message that explains why the target addition failed.
1080 */
1081 ErrorMessage?: ErrorMessage;
1082 }
1083 export type PutTargetsResultEntryList = PutTargetsResultEntry[];
1084 export interface RemovePermissionRequest {
1085 /**
1086 * The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.
1087 */
1088 StatementId: StatementId;
1089 /**
1090 * The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.
1091 */
1092 EventBusName?: NonPartnerEventBusName;
1093 }
1094 export interface RemoveTargetsRequest {
1095 /**
1096 * The name of the rule.
1097 */
1098 Rule: RuleName;
1099 /**
1100 * The name of the event bus associated with the rule.
1101 */
1102 EventBusName?: EventBusName;
1103 /**
1104 * The IDs of the targets to remove from the rule.
1105 */
1106 Ids: TargetIdList;
1107 /**
1108 * If this is a managed rule created by an AWS service on your behalf, you must specify Force as True to remove targets. This parameter is ignored for rules that aren't managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response.
1109 */
1110 Force?: Boolean;
1111 }
1112 export interface RemoveTargetsResponse {
1113 /**
1114 * The number of failed entries.
1115 */
1116 FailedEntryCount?: Integer;
1117 /**
1118 * The failed target entries.
1119 */
1120 FailedEntries?: RemoveTargetsResultEntryList;
1121 }
1122 export interface RemoveTargetsResultEntry {
1123 /**
1124 * The ID of the target.
1125 */
1126 TargetId?: TargetId;
1127 /**
1128 * The error code that indicates why the target removal failed. If the value is ConcurrentModificationException, too many requests were made at the same time.
1129 */
1130 ErrorCode?: ErrorCode;
1131 /**
1132 * The error message that explains why the target removal failed.
1133 */
1134 ErrorMessage?: ErrorMessage;
1135 }
1136 export type RemoveTargetsResultEntryList = RemoveTargetsResultEntry[];
1137 export type RoleArn = string;
1138 export interface Rule {
1139 /**
1140 * The name of the rule.
1141 */
1142 Name?: RuleName;
1143 /**
1144 * The Amazon Resource Name (ARN) of the rule.
1145 */
1146 Arn?: RuleArn;
1147 /**
1148 * The event pattern of the rule. For more information, see Event Patterns in the Amazon EventBridge User Guide.
1149 */
1150 EventPattern?: EventPattern;
1151 /**
1152 * The state of the rule.
1153 */
1154 State?: RuleState;
1155 /**
1156 * The description of the rule.
1157 */
1158 Description?: RuleDescription;
1159 /**
1160 * The scheduling expression: for example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
1161 */
1162 ScheduleExpression?: ScheduleExpression;
1163 /**
1164 * The Amazon Resource Name (ARN) of the role that is used for target invocation.
1165 */
1166 RoleArn?: RoleArn;
1167 /**
1168 * If an AWS service created the rule on behalf of your account, this field displays the principal name of the service that created the rule.
1169 */
1170 ManagedBy?: ManagedBy;
1171 /**
1172 * The event bus associated with the rule.
1173 */
1174 EventBusName?: EventBusName;
1175 }
1176 export type RuleArn = string;
1177 export type RuleDescription = string;
1178 export type RuleName = string;
1179 export type RuleNameList = RuleName[];
1180 export type RuleResponseList = Rule[];
1181 export type RuleState = "ENABLED"|"DISABLED"|string;
1182 export interface RunCommandParameters {
1183 /**
1184 * Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
1185 */
1186 RunCommandTargets: RunCommandTargets;
1187 }
1188 export interface RunCommandTarget {
1189 /**
1190 * Can be either tag: tag-key or InstanceIds.
1191 */
1192 Key: RunCommandTargetKey;
1193 /**
1194 * If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.
1195 */
1196 Values: RunCommandTargetValues;
1197 }
1198 export type RunCommandTargetKey = string;
1199 export type RunCommandTargetValue = string;
1200 export type RunCommandTargetValues = RunCommandTargetValue[];
1201 export type RunCommandTargets = RunCommandTarget[];
1202 export type ScheduleExpression = string;
1203 export interface SqsParameters {
1204 /**
1205 * The FIFO message group ID to use as the target.
1206 */
1207 MessageGroupId?: MessageGroupId;
1208 }
1209 export type StatementId = string;
1210 export type String = string;
1211 export type StringList = String[];
1212 export interface Tag {
1213 /**
1214 * A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.
1215 */
1216 Key: TagKey;
1217 /**
1218 * The value for the specified tag key.
1219 */
1220 Value: TagValue;
1221 }
1222 export type TagKey = string;
1223 export type TagKeyList = TagKey[];
1224 export type TagList = Tag[];
1225 export interface TagResourceRequest {
1226 /**
1227 * The ARN of the rule that you're adding tags to.
1228 */
1229 ResourceARN: Arn;
1230 /**
1231 * The list of key-value pairs to associate with the rule.
1232 */
1233 Tags: TagList;
1234 }
1235 export interface TagResourceResponse {
1236 }
1237 export type TagValue = string;
1238 export interface Target {
1239 /**
1240 * A name for the target. Use a string that will help you identify the target. Each target associated with a rule must have an Id unique for that rule.
1241 */
1242 Id: TargetId;
1243 /**
1244 * The Amazon Resource Name (ARN) of the target.
1245 */
1246 Arn: TargetArn;
1247 /**
1248 * The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. If one rule triggers multiple targets, you can use a different IAM role for each target.
1249 */
1250 RoleArn?: RoleArn;
1251 /**
1252 * Valid JSON text passed to the target. In this case, nothing from the event itself is passed to the target. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format.
1253 */
1254 Input?: TargetInput;
1255 /**
1256 * The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. You must use JSON dot notation, not bracket notation. For more information about JSON paths, see JSONPath.
1257 */
1258 InputPath?: TargetInputPath;
1259 /**
1260 * Settings to enable you to provide custom input to a target based on certain event data. You can extract one or more key-value pairs from the event and then use that data to send customized input to the target.
1261 */
1262 InputTransformer?: InputTransformer;
1263 /**
1264 * The custom parameter that you can use to control the shard assignment when the target is a Kinesis data stream. If you don't include this parameter, the default is to use the eventId as the partition key.
1265 */
1266 KinesisParameters?: KinesisParameters;
1267 /**
1268 * Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
1269 */
1270 RunCommandParameters?: RunCommandParameters;
1271 /**
1272 * Contains the Amazon ECS task definition and task count to be used if the event target is an Amazon ECS task. For more information about Amazon ECS tasks, see Task Definitions in the Amazon EC2 Container Service Developer Guide.
1273 */
1274 EcsParameters?: EcsParameters;
1275 /**
1276 * If the event target is an AWS Batch job, this contains the job definition, job name, and other parameters. For more information, see Jobs in the AWS Batch User Guide.
1277 */
1278 BatchParameters?: BatchParameters;
1279 /**
1280 * Contains the message group ID to use when the target is a FIFO queue. If you specify an SQS FIFO queue as a target, the queue must have content-based deduplication enabled.
1281 */
1282 SqsParameters?: SqsParameters;
1283 }
1284 export type TargetArn = string;
1285 export type TargetId = string;
1286 export type TargetIdList = TargetId[];
1287 export type TargetInput = string;
1288 export type TargetInputPath = string;
1289 export type TargetList = Target[];
1290 export type TargetPartitionKeyPath = string;
1291 export interface TestEventPatternRequest {
1292 /**
1293 * The event pattern. For more information, see Event Patterns in the Amazon EventBridge User Guide.
1294 */
1295 EventPattern: EventPattern;
1296 /**
1297 * The event, in JSON format, to test against the event pattern.
1298 */
1299 Event: String;
1300 }
1301 export interface TestEventPatternResponse {
1302 /**
1303 * Indicates whether the event matches the event pattern.
1304 */
1305 Result?: Boolean;
1306 }
1307 export type Timestamp = Date;
1308 export type TransformerInput = string;
1309 export type TransformerPaths = {[key: string]: TargetInputPath};
1310 export interface UntagResourceRequest {
1311 /**
1312 * The ARN of the rule that you're removing tags from.
1313 */
1314 ResourceARN: Arn;
1315 /**
1316 * The list of tag keys to remove from the resource.
1317 */
1318 TagKeys: TagKeyList;
1319 }
1320 export interface UntagResourceResponse {
1321 }
1322 /**
1323 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1324 */
1325 export type apiVersion = "2015-10-07"|"latest"|string;
1326 export interface ClientApiVersions {
1327 /**
1328 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1329 */
1330 apiVersion?: apiVersion;
1331 }
1332 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1333 /**
1334 * Contains interfaces for use with the EventBridge client.
1335 */
1336 export import Types = EventBridge;
1337}
1338export = EventBridge;