UNPKG

85.3 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.
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.
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 custom applications and services, or it can be a partner event bus which can be matched to a partner event source.
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 custom applications and services, or it can be a partner event bus which can be matched to a partner event source.
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 within 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: partner_name/event_namespace/event_name partner_name is determined during partner registration and identifies the partner to AWS customers. event_namespace is determined by the partner and is a way for the partner to categorize their events. event_name is determined by the partner, and should uniquely identify an event-generating resource within the partner system. The combination of event_namespace and event_name 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 within 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: partner_name/event_namespace/event_name partner_name is determined during partner registration and identifies the partner to AWS customers. event_namespace is determined by the partner and is a way for the partner to categorize their events. event_name is determined by the partner, and should uniquely identify an event-generating resource within the partner system. The combination of event_namespace and event_name 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 * You can use this operation to temporarily stop receiving events from the specified partner event source. The matching event bus is not 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 is 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 * You can use this operation to temporarily stop receiving events from the specified partner event source. The matching event bus is not 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 is 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 need to be deleted. You can't delete your account's default event bus.
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 need to be deleted. You can't delete your account's default event bus.
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. This operation is not used by AWS customers. 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. This operation is not used by AWS customers. 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 are sure the other service is not 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 are sure the other service is not 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.
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.
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 does not 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 does not 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 does not 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 does not 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.
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.
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.
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.
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 not used 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 not used 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 of the rules in Amazon EventBridge 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 of the rules in Amazon EventBridge 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 Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to match to the rule names. ListRules does not 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 Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to match to the rule names. ListRules does not 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 and event buses 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 and event buses 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 Amazon EventBridge so that they can be matched to rules.
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 Amazon EventBridge so that they can be matched to rules.
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.
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.
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. CloudWatch Events 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 an EventBridge rule with your account's event bus as a target. To enable multiple AWS accounts to put events to your 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 the default event bus cannot 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. CloudWatch Events 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 an EventBridge rule with your account's event bus as a target. To enable multiple AWS accounts to put events to your 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 the default event bus cannot 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 are 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 are not kept. Instead, they are 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 you want to match. In EventBridge, it is possible to 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 the rule is not written 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 do not re-fire 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 are 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 are not kept. Instead, they are 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 you want to match. In EventBridge, it is possible to 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 the rule is not written 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 do not re-fire 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 are already associated with the rule. Targets are the resources that are invoked when a rule is triggered. You can configure the following as targets for Events: 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 in 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 CloudWatch Events 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 is not charged. For more information, see Amazon CloudWatch Pricing. Input, InputPath, and InputTransformer are not available with PutTarget if the target is an event bus of a different AWS account. If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then 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, then 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), then 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, then 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 non-zero 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 are already associated with the rule. Targets are the resources that are invoked when a rule is triggered. You can configure the following as targets for Events: 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 in 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 CloudWatch Events 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 is not charged. For more information, see Amazon CloudWatch Pricing. Input, InputPath, and InputTransformer are not available with PutTarget if the target is an event bus of a different AWS account. If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then 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, then 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), then 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, then 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 non-zero 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 and event buses 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 resource that already has tags. If you specify a new tag key, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, 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 and event buses 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 resource that already has tags. If you specify a new tag key, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, 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 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 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 CloudWatch Events, rules and event buses 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 CloudWatch Events, rules and event buses 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 do not 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 * Specifies the type of condition. Currently the only supported value is StringEquals.
322 */
323 Type: String;
324 /**
325 * Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
326 */
327 Key: String;
328 /**
329 * Specifies 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. Event bus names cannot contain the / character. You can't use the name default for a custom event bus, as 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.
336 */
337 Name: EventBusName;
338 /**
339 * If you are 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 * Tags to associate with the event bus.
344 */
345 Tags?: TagList;
346 }
347 export interface CreateEventBusResponse {
348 /**
349 * The ARN of the new event bus.
350 */
351 EventBusArn?: String;
352 }
353 export interface CreatePartnerEventSourceRequest {
354 /**
355 * 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.
356 */
357 Name: EventSourceName;
358 /**
359 * The AWS account ID that is permitted to create a matching partner event bus for this partner event source.
360 */
361 Account: AccountId;
362 }
363 export interface CreatePartnerEventSourceResponse {
364 /**
365 * The ARN of the partner event source.
366 */
367 EventSourceArn?: String;
368 }
369 export interface DeactivateEventSourceRequest {
370 /**
371 * The name of the partner event source to deactivate.
372 */
373 Name: EventSourceName;
374 }
375 export interface DeleteEventBusRequest {
376 /**
377 * The name of the event bus to delete.
378 */
379 Name: EventBusName;
380 }
381 export interface DeletePartnerEventSourceRequest {
382 /**
383 * The name of the event source to delete.
384 */
385 Name: EventSourceName;
386 /**
387 * The AWS account ID of the AWS customer that the event source was created for.
388 */
389 Account: AccountId;
390 }
391 export interface DeleteRuleRequest {
392 /**
393 * The name of the rule.
394 */
395 Name: RuleName;
396 /**
397 * The event bus associated with the rule. If you omit this, the default event bus is used.
398 */
399 EventBusName?: EventBusName;
400 /**
401 * 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.
402 */
403 Force?: Boolean;
404 }
405 export interface DescribeEventBusRequest {
406 /**
407 * The name of the event bus to show details for. If you omit this, the default event bus is displayed.
408 */
409 Name?: EventBusName;
410 }
411 export interface DescribeEventBusResponse {
412 /**
413 * The name of the event bus. Currently, this is always default.
414 */
415 Name?: String;
416 /**
417 * The Amazon Resource Name (ARN) of the account permitted to write events to the current account.
418 */
419 Arn?: String;
420 /**
421 * The policy that enables the external account to send events to your account.
422 */
423 Policy?: String;
424 }
425 export interface DescribeEventSourceRequest {
426 /**
427 * The name of the partner event source to display the details of.
428 */
429 Name: EventSourceName;
430 }
431 export interface DescribeEventSourceResponse {
432 /**
433 * The ARN of the partner event source.
434 */
435 Arn?: String;
436 /**
437 * The name of the SaaS partner that created the event source.
438 */
439 CreatedBy?: String;
440 /**
441 * The date and time that the event source was created.
442 */
443 CreationTime?: Timestamp;
444 /**
445 * The date and time that the event source will expire if you do not create a matching event bus.
446 */
447 ExpirationTime?: Timestamp;
448 /**
449 * The name of the partner event source.
450 */
451 Name?: String;
452 /**
453 * The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
454 */
455 State?: EventSourceState;
456 }
457 export interface DescribePartnerEventSourceRequest {
458 /**
459 * The name of the event source to display.
460 */
461 Name: EventSourceName;
462 }
463 export interface DescribePartnerEventSourceResponse {
464 /**
465 * The ARN of the event source.
466 */
467 Arn?: String;
468 /**
469 * The name of the event source.
470 */
471 Name?: String;
472 }
473 export interface DescribeRuleRequest {
474 /**
475 * The name of the rule.
476 */
477 Name: RuleName;
478 /**
479 * The event bus associated with the rule. If you omit this, the default event bus is used.
480 */
481 EventBusName?: EventBusName;
482 }
483 export interface DescribeRuleResponse {
484 /**
485 * The name of the rule.
486 */
487 Name?: RuleName;
488 /**
489 * The Amazon Resource Name (ARN) of the rule.
490 */
491 Arn?: RuleArn;
492 /**
493 * The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
494 */
495 EventPattern?: EventPattern;
496 /**
497 * The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
498 */
499 ScheduleExpression?: ScheduleExpression;
500 /**
501 * Specifies whether the rule is enabled or disabled.
502 */
503 State?: RuleState;
504 /**
505 * The description of the rule.
506 */
507 Description?: RuleDescription;
508 /**
509 * The Amazon Resource Name (ARN) of the IAM role associated with the rule.
510 */
511 RoleArn?: RoleArn;
512 /**
513 * 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.
514 */
515 ManagedBy?: ManagedBy;
516 /**
517 * The event bus associated with the rule.
518 */
519 EventBusName?: EventBusName;
520 }
521 export interface DisableRuleRequest {
522 /**
523 * The name of the rule.
524 */
525 Name: RuleName;
526 /**
527 * The event bus associated with the rule. If you omit this, the default event bus is used.
528 */
529 EventBusName?: EventBusName;
530 }
531 export interface EcsParameters {
532 /**
533 * The ARN of the task definition to use if the event target is an Amazon ECS task.
534 */
535 TaskDefinitionArn: Arn;
536 /**
537 * The number of tasks to create based on TaskDefinition. The default is 1.
538 */
539 TaskCount?: LimitMin1;
540 /**
541 * 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.
542 */
543 LaunchType?: LaunchType;
544 /**
545 * 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 does not use the awsvpc network mode, the task fails.
546 */
547 NetworkConfiguration?: NetworkConfiguration;
548 /**
549 * 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.
550 */
551 PlatformVersion?: String;
552 /**
553 * Specifies an ECS task group for the task. The maximum length is 255 characters.
554 */
555 Group?: String;
556 }
557 export interface EnableRuleRequest {
558 /**
559 * The name of the rule.
560 */
561 Name: RuleName;
562 /**
563 * The event bus associated with the rule. If you omit this, the default event bus is used.
564 */
565 EventBusName?: EventBusName;
566 }
567 export type ErrorCode = string;
568 export type ErrorMessage = string;
569 export interface EventBus {
570 /**
571 * The name of the event bus.
572 */
573 Name?: String;
574 /**
575 * The ARN of the event bus.
576 */
577 Arn?: String;
578 /**
579 * The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.
580 */
581 Policy?: String;
582 }
583 export type EventBusList = EventBus[];
584 export type EventBusName = string;
585 export type EventId = string;
586 export type EventPattern = string;
587 export type EventResource = string;
588 export type EventResourceList = EventResource[];
589 export interface EventSource {
590 /**
591 * The ARN of the event source.
592 */
593 Arn?: String;
594 /**
595 * The name of the partner that created the event source.
596 */
597 CreatedBy?: String;
598 /**
599 * The date and time the event source was created.
600 */
601 CreationTime?: Timestamp;
602 /**
603 * The date and time that the event source will expire, if the AWS account doesn't create a matching event bus for it.
604 */
605 ExpirationTime?: Timestamp;
606 /**
607 * The name of the event source.
608 */
609 Name?: String;
610 /**
611 * The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
612 */
613 State?: EventSourceState;
614 }
615 export type EventSourceList = EventSource[];
616 export type EventSourceName = string;
617 export type EventSourceNamePrefix = string;
618 export type EventSourceState = "PENDING"|"ACTIVE"|"DELETED"|string;
619 export type EventTime = Date;
620 export interface InputTransformer {
621 /**
622 * Map of JSON paths to be extracted from the event. You can then insert these in the template in InputTemplate to produce the output you want 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 cannot start with "AWS."
623 */
624 InputPathsMap?: TransformerPaths;
625 /**
626 * 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 cannot be used as an object key. Object values cannot 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;\"" }
627 */
628 InputTemplate: TransformerInput;
629 }
630 export type InputTransformerPathKey = string;
631 export type Integer = number;
632 export interface KinesisParameters {
633 /**
634 * 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.
635 */
636 PartitionKeyPath: TargetPartitionKeyPath;
637 }
638 export type LaunchType = "EC2"|"FARGATE"|string;
639 export type LimitMax100 = number;
640 export type LimitMin1 = number;
641 export interface ListEventBusesRequest {
642 /**
643 * Specifying this limits the results to only those event buses with names that start with the specified prefix.
644 */
645 NamePrefix?: EventBusName;
646 /**
647 * The token returned by a previous call to retrieve the next set of results.
648 */
649 NextToken?: NextToken;
650 /**
651 * Specifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.
652 */
653 Limit?: LimitMax100;
654 }
655 export interface ListEventBusesResponse {
656 /**
657 * This list of event buses.
658 */
659 EventBuses?: EventBusList;
660 /**
661 * A token you can use in a subsequent operation to retrieve the next set of results.
662 */
663 NextToken?: NextToken;
664 }
665 export interface ListEventSourcesRequest {
666 /**
667 * Specifying this limits the results to only those partner event sources with names that start with the specified prefix.
668 */
669 NamePrefix?: EventSourceNamePrefix;
670 /**
671 * The token returned by a previous call to retrieve the next set of results.
672 */
673 NextToken?: NextToken;
674 /**
675 * Specifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.
676 */
677 Limit?: LimitMax100;
678 }
679 export interface ListEventSourcesResponse {
680 /**
681 * The list of event sources.
682 */
683 EventSources?: EventSourceList;
684 /**
685 * A token you can use in a subsequent operation to retrieve the next set of results.
686 */
687 NextToken?: NextToken;
688 }
689 export interface ListPartnerEventSourceAccountsRequest {
690 /**
691 * The name of the partner event source to display account information about.
692 */
693 EventSourceName: EventSourceName;
694 /**
695 * The token returned by a previous call to this operation. Specifying this retrieves the next set of results.
696 */
697 NextToken?: NextToken;
698 /**
699 * Specifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.
700 */
701 Limit?: LimitMax100;
702 }
703 export interface ListPartnerEventSourceAccountsResponse {
704 /**
705 * The list of partner event sources returned by the operation.
706 */
707 PartnerEventSourceAccounts?: PartnerEventSourceAccountList;
708 /**
709 * A token you can use in a subsequent operation to retrieve the next set of results.
710 */
711 NextToken?: NextToken;
712 }
713 export interface ListPartnerEventSourcesRequest {
714 /**
715 * If you specify this, the results are limited to only those partner event sources that start with the string you specify.
716 */
717 NamePrefix: PartnerEventSourceNamePrefix;
718 /**
719 * The token returned by a previous call to this operation. Specifying this retrieves the next set of results.
720 */
721 NextToken?: NextToken;
722 /**
723 * pecifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.
724 */
725 Limit?: LimitMax100;
726 }
727 export interface ListPartnerEventSourcesResponse {
728 /**
729 * The list of partner event sources returned by the operation.
730 */
731 PartnerEventSources?: PartnerEventSourceList;
732 /**
733 * A token you can use in a subsequent operation to retrieve the next set of results.
734 */
735 NextToken?: NextToken;
736 }
737 export interface ListRuleNamesByTargetRequest {
738 /**
739 * The Amazon Resource Name (ARN) of the target resource.
740 */
741 TargetArn: TargetArn;
742 /**
743 * Limits the results to show only the rules associated with the specified event bus.
744 */
745 EventBusName?: EventBusName;
746 /**
747 * The token returned by a previous call to retrieve the next set of results.
748 */
749 NextToken?: NextToken;
750 /**
751 * The maximum number of results to return.
752 */
753 Limit?: LimitMax100;
754 }
755 export interface ListRuleNamesByTargetResponse {
756 /**
757 * The names of the rules that can invoke the given target.
758 */
759 RuleNames?: RuleNameList;
760 /**
761 * Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
762 */
763 NextToken?: NextToken;
764 }
765 export interface ListRulesRequest {
766 /**
767 * The prefix matching the rule name.
768 */
769 NamePrefix?: RuleName;
770 /**
771 * Limits the results to show only the rules associated with the specified event bus.
772 */
773 EventBusName?: EventBusName;
774 /**
775 * The token returned by a previous call to retrieve the next set of results.
776 */
777 NextToken?: NextToken;
778 /**
779 * The maximum number of results to return.
780 */
781 Limit?: LimitMax100;
782 }
783 export interface ListRulesResponse {
784 /**
785 * The rules that match the specified criteria.
786 */
787 Rules?: RuleResponseList;
788 /**
789 * Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
790 */
791 NextToken?: NextToken;
792 }
793 export interface ListTagsForResourceRequest {
794 /**
795 * The ARN of the EventBridge resource for which you want to view tags.
796 */
797 ResourceARN: Arn;
798 }
799 export interface ListTagsForResourceResponse {
800 /**
801 * The list of tag keys and values associated with the resource you specified
802 */
803 Tags?: TagList;
804 }
805 export interface ListTargetsByRuleRequest {
806 /**
807 * The name of the rule.
808 */
809 Rule: RuleName;
810 /**
811 * The event bus associated with the rule. If you omit this, the default event bus is used.
812 */
813 EventBusName?: EventBusName;
814 /**
815 * The token returned by a previous call to retrieve the next set of results.
816 */
817 NextToken?: NextToken;
818 /**
819 * The maximum number of results to return.
820 */
821 Limit?: LimitMax100;
822 }
823 export interface ListTargetsByRuleResponse {
824 /**
825 * The targets assigned to the rule.
826 */
827 Targets?: TargetList;
828 /**
829 * Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
830 */
831 NextToken?: NextToken;
832 }
833 export type ManagedBy = string;
834 export type MessageGroupId = string;
835 export interface NetworkConfiguration {
836 /**
837 * 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.
838 */
839 awsvpcConfiguration?: AwsVpcConfiguration;
840 }
841 export type NextToken = string;
842 export type NonPartnerEventBusName = string;
843 export interface PartnerEventSource {
844 /**
845 * The ARN of the partner event source.
846 */
847 Arn?: String;
848 /**
849 * The name of the partner event source.
850 */
851 Name?: String;
852 }
853 export interface PartnerEventSourceAccount {
854 /**
855 * The AWS account ID that the partner event source was offered to.
856 */
857 Account?: AccountId;
858 /**
859 * The date and time the event source was created.
860 */
861 CreationTime?: Timestamp;
862 /**
863 * The date and time that the event source will expire, if the AWS account doesn't create a matching event bus for it.
864 */
865 ExpirationTime?: Timestamp;
866 /**
867 * The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
868 */
869 State?: EventSourceState;
870 }
871 export type PartnerEventSourceAccountList = PartnerEventSourceAccount[];
872 export type PartnerEventSourceList = PartnerEventSource[];
873 export type PartnerEventSourceNamePrefix = string;
874 export type Principal = string;
875 export interface PutEventsRequest {
876 /**
877 * 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.
878 */
879 Entries: PutEventsRequestEntryList;
880 }
881 export interface PutEventsRequestEntry {
882 /**
883 * The time stamp of the event, per RFC3339. If no time stamp is provided, the time stamp of the PutEvents call is used.
884 */
885 Time?: EventTime;
886 /**
887 * The source of the event.
888 */
889 Source?: String;
890 /**
891 * AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
892 */
893 Resources?: EventResourceList;
894 /**
895 * Free-form string used to decide what fields to expect in the event detail.
896 */
897 DetailType?: String;
898 /**
899 * A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.
900 */
901 Detail?: String;
902 /**
903 * The event bus that will receive the event. Only the rules that are associated with this event bus will be able to match the event.
904 */
905 EventBusName?: NonPartnerEventBusName;
906 }
907 export type PutEventsRequestEntryList = PutEventsRequestEntry[];
908 export interface PutEventsResponse {
909 /**
910 * The number of failed entries.
911 */
912 FailedEntryCount?: Integer;
913 /**
914 * 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.
915 */
916 Entries?: PutEventsResultEntryList;
917 }
918 export interface PutEventsResultEntry {
919 /**
920 * The ID of the event.
921 */
922 EventId?: EventId;
923 /**
924 * The error code that indicates why the event submission failed.
925 */
926 ErrorCode?: ErrorCode;
927 /**
928 * The error message that explains why the event submission failed.
929 */
930 ErrorMessage?: ErrorMessage;
931 }
932 export type PutEventsResultEntryList = PutEventsResultEntry[];
933 export interface PutPartnerEventsRequest {
934 /**
935 * The list of events to write to the event bus.
936 */
937 Entries: PutPartnerEventsRequestEntryList;
938 }
939 export interface PutPartnerEventsRequestEntry {
940 /**
941 * The date and time of the event.
942 */
943 Time?: EventTime;
944 /**
945 * The event source that is generating the evntry.
946 */
947 Source?: EventSourceName;
948 /**
949 * AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
950 */
951 Resources?: EventResourceList;
952 /**
953 * A free-form string used to decide what fields to expect in the event detail.
954 */
955 DetailType?: String;
956 /**
957 * A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.
958 */
959 Detail?: String;
960 }
961 export type PutPartnerEventsRequestEntryList = PutPartnerEventsRequestEntry[];
962 export interface PutPartnerEventsResponse {
963 /**
964 * The number of events from this operation that could not be written to the partner event bus.
965 */
966 FailedEntryCount?: Integer;
967 /**
968 * The list of events from this operation that were successfully written to the partner event bus.
969 */
970 Entries?: PutPartnerEventsResultEntryList;
971 }
972 export interface PutPartnerEventsResultEntry {
973 /**
974 * The ID of the event.
975 */
976 EventId?: EventId;
977 /**
978 * The error code that indicates why the event submission failed.
979 */
980 ErrorCode?: ErrorCode;
981 /**
982 * The error message that explains why the event submission failed.
983 */
984 ErrorMessage?: ErrorMessage;
985 }
986 export type PutPartnerEventsResultEntryList = PutPartnerEventsResultEntry[];
987 export interface PutPermissionRequest {
988 /**
989 * The event bus associated with the rule. If you omit this, the default event bus is used.
990 */
991 EventBusName?: NonPartnerEventBusName;
992 /**
993 * The action that you are enabling the other account to perform. Currently, this must be events:PutEvents.
994 */
995 Action: Action;
996 /**
997 * 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 may 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 from which to receive events. Rules with an account field do not match any events sent from other accounts.
998 */
999 Principal: Principal;
1000 /**
1001 * An identifier string for the external account that you are granting permissions to. If you later want to revoke the permission for this external account, specify this StatementId when you run RemovePermission.
1002 */
1003 StatementId: StatementId;
1004 /**
1005 * 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 which must contain Type, Key, and Value fields.
1006 */
1007 Condition?: Condition;
1008 }
1009 export interface PutRuleRequest {
1010 /**
1011 * The name of the rule that you are creating or updating.
1012 */
1013 Name: RuleName;
1014 /**
1015 * The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
1016 */
1017 ScheduleExpression?: ScheduleExpression;
1018 /**
1019 * The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
1020 */
1021 EventPattern?: EventPattern;
1022 /**
1023 * Indicates whether the rule is enabled or disabled.
1024 */
1025 State?: RuleState;
1026 /**
1027 * A description of the rule.
1028 */
1029 Description?: RuleDescription;
1030 /**
1031 * The Amazon Resource Name (ARN) of the IAM role associated with the rule.
1032 */
1033 RoleArn?: RoleArn;
1034 /**
1035 * The list of key-value pairs to associate with the rule.
1036 */
1037 Tags?: TagList;
1038 /**
1039 * The event bus to associate with this rule. If you omit this, the default event bus is used.
1040 */
1041 EventBusName?: EventBusName;
1042 }
1043 export interface PutRuleResponse {
1044 /**
1045 * The Amazon Resource Name (ARN) of the rule.
1046 */
1047 RuleArn?: RuleArn;
1048 }
1049 export interface PutTargetsRequest {
1050 /**
1051 * The name of the rule.
1052 */
1053 Rule: RuleName;
1054 /**
1055 * The name of the event bus associated with the rule. If you omit this, the default event bus is used.
1056 */
1057 EventBusName?: EventBusName;
1058 /**
1059 * The targets to update or add to the rule.
1060 */
1061 Targets: TargetList;
1062 }
1063 export interface PutTargetsResponse {
1064 /**
1065 * The number of failed entries.
1066 */
1067 FailedEntryCount?: Integer;
1068 /**
1069 * The failed target entries.
1070 */
1071 FailedEntries?: PutTargetsResultEntryList;
1072 }
1073 export interface PutTargetsResultEntry {
1074 /**
1075 * The ID of the target.
1076 */
1077 TargetId?: TargetId;
1078 /**
1079 * The error code that indicates why the target addition failed. If the value is ConcurrentModificationException, too many requests were made at the same time.
1080 */
1081 ErrorCode?: ErrorCode;
1082 /**
1083 * The error message that explains why the target addition failed.
1084 */
1085 ErrorMessage?: ErrorMessage;
1086 }
1087 export type PutTargetsResultEntryList = PutTargetsResultEntry[];
1088 export interface RemovePermissionRequest {
1089 /**
1090 * The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.
1091 */
1092 StatementId: StatementId;
1093 /**
1094 * The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.
1095 */
1096 EventBusName?: NonPartnerEventBusName;
1097 }
1098 export interface RemoveTargetsRequest {
1099 /**
1100 * The name of the rule.
1101 */
1102 Rule: RuleName;
1103 /**
1104 * The name of the event bus associated with the rule.
1105 */
1106 EventBusName?: EventBusName;
1107 /**
1108 * The IDs of the targets to remove from the rule.
1109 */
1110 Ids: TargetIdList;
1111 /**
1112 * 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 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.
1113 */
1114 Force?: Boolean;
1115 }
1116 export interface RemoveTargetsResponse {
1117 /**
1118 * The number of failed entries.
1119 */
1120 FailedEntryCount?: Integer;
1121 /**
1122 * The failed target entries.
1123 */
1124 FailedEntries?: RemoveTargetsResultEntryList;
1125 }
1126 export interface RemoveTargetsResultEntry {
1127 /**
1128 * The ID of the target.
1129 */
1130 TargetId?: TargetId;
1131 /**
1132 * The error code that indicates why the target removal failed. If the value is ConcurrentModificationException, too many requests were made at the same time.
1133 */
1134 ErrorCode?: ErrorCode;
1135 /**
1136 * The error message that explains why the target removal failed.
1137 */
1138 ErrorMessage?: ErrorMessage;
1139 }
1140 export type RemoveTargetsResultEntryList = RemoveTargetsResultEntry[];
1141 export type RoleArn = string;
1142 export interface Rule {
1143 /**
1144 * The name of the rule.
1145 */
1146 Name?: RuleName;
1147 /**
1148 * The Amazon Resource Name (ARN) of the rule.
1149 */
1150 Arn?: RuleArn;
1151 /**
1152 * The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
1153 */
1154 EventPattern?: EventPattern;
1155 /**
1156 * The state of the rule.
1157 */
1158 State?: RuleState;
1159 /**
1160 * The description of the rule.
1161 */
1162 Description?: RuleDescription;
1163 /**
1164 * The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
1165 */
1166 ScheduleExpression?: ScheduleExpression;
1167 /**
1168 * The Amazon Resource Name (ARN) of the role that is used for target invocation.
1169 */
1170 RoleArn?: RoleArn;
1171 /**
1172 * If the rule was created on behalf of your account by an AWS service, this field displays the principal name of the service that created the rule.
1173 */
1174 ManagedBy?: ManagedBy;
1175 /**
1176 * The event bus associated with the rule.
1177 */
1178 EventBusName?: EventBusName;
1179 }
1180 export type RuleArn = string;
1181 export type RuleDescription = string;
1182 export type RuleName = string;
1183 export type RuleNameList = RuleName[];
1184 export type RuleResponseList = Rule[];
1185 export type RuleState = "ENABLED"|"DISABLED"|string;
1186 export interface RunCommandParameters {
1187 /**
1188 * Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
1189 */
1190 RunCommandTargets: RunCommandTargets;
1191 }
1192 export interface RunCommandTarget {
1193 /**
1194 * Can be either tag: tag-key or InstanceIds.
1195 */
1196 Key: RunCommandTargetKey;
1197 /**
1198 * 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.
1199 */
1200 Values: RunCommandTargetValues;
1201 }
1202 export type RunCommandTargetKey = string;
1203 export type RunCommandTargetValue = string;
1204 export type RunCommandTargetValues = RunCommandTargetValue[];
1205 export type RunCommandTargets = RunCommandTarget[];
1206 export type ScheduleExpression = string;
1207 export interface SqsParameters {
1208 /**
1209 * The FIFO message group ID to use as the target.
1210 */
1211 MessageGroupId?: MessageGroupId;
1212 }
1213 export type StatementId = string;
1214 export type String = string;
1215 export type StringList = String[];
1216 export interface Tag {
1217 /**
1218 * A string you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.
1219 */
1220 Key: TagKey;
1221 /**
1222 * The value for the specified tag key.
1223 */
1224 Value: TagValue;
1225 }
1226 export type TagKey = string;
1227 export type TagKeyList = TagKey[];
1228 export type TagList = Tag[];
1229 export interface TagResourceRequest {
1230 /**
1231 * The ARN of the EventBridge resource that you're adding tags to.
1232 */
1233 ResourceARN: Arn;
1234 /**
1235 * The list of key-value pairs to associate with the resource.
1236 */
1237 Tags: TagList;
1238 }
1239 export interface TagResourceResponse {
1240 }
1241 export type TagValue = string;
1242 export interface Target {
1243 /**
1244 * The ID of the target.
1245 */
1246 Id: TargetId;
1247 /**
1248 * The Amazon Resource Name (ARN) of the target.
1249 */
1250 Arn: TargetArn;
1251 /**
1252 * 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.
1253 */
1254 RoleArn?: RoleArn;
1255 /**
1256 * 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.
1257 */
1258 Input?: TargetInput;
1259 /**
1260 * 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.
1261 */
1262 InputPath?: TargetInputPath;
1263 /**
1264 * 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.
1265 */
1266 InputTransformer?: InputTransformer;
1267 /**
1268 * The custom parameter you can use to control the shard assignment, when the target is a Kinesis data stream. If you do not include this parameter, the default is to use the eventId as the partition key.
1269 */
1270 KinesisParameters?: KinesisParameters;
1271 /**
1272 * Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
1273 */
1274 RunCommandParameters?: RunCommandParameters;
1275 /**
1276 * 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.
1277 */
1278 EcsParameters?: EcsParameters;
1279 /**
1280 * 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.
1281 */
1282 BatchParameters?: BatchParameters;
1283 /**
1284 * 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.
1285 */
1286 SqsParameters?: SqsParameters;
1287 }
1288 export type TargetArn = string;
1289 export type TargetId = string;
1290 export type TargetIdList = TargetId[];
1291 export type TargetInput = string;
1292 export type TargetInputPath = string;
1293 export type TargetList = Target[];
1294 export type TargetPartitionKeyPath = string;
1295 export interface TestEventPatternRequest {
1296 /**
1297 * The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
1298 */
1299 EventPattern: EventPattern;
1300 /**
1301 * The event, in JSON format, to test against the event pattern.
1302 */
1303 Event: String;
1304 }
1305 export interface TestEventPatternResponse {
1306 /**
1307 * Indicates whether the event matches the event pattern.
1308 */
1309 Result?: Boolean;
1310 }
1311 export type Timestamp = Date;
1312 export type TransformerInput = string;
1313 export type TransformerPaths = {[key: string]: TargetInputPath};
1314 export interface UntagResourceRequest {
1315 /**
1316 * The ARN of the EventBridge resource from which you are removing tags.
1317 */
1318 ResourceARN: Arn;
1319 /**
1320 * The list of tag keys to remove from the resource.
1321 */
1322 TagKeys: TagKeyList;
1323 }
1324 export interface UntagResourceResponse {
1325 }
1326 /**
1327 * 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.
1328 */
1329 export type apiVersion = "2015-10-07"|"latest"|string;
1330 export interface ClientApiVersions {
1331 /**
1332 * 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.
1333 */
1334 apiVersion?: apiVersion;
1335 }
1336 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1337 /**
1338 * Contains interfaces for use with the EventBridge client.
1339 */
1340 export import Types = EventBridge;
1341}
1342export = EventBridge;