cloudwatchevents.d.ts (26236B)
1 import {Request} from '../lib/request'; 2 import {Response} from '../lib/response'; 3 import {AWSError} from '../lib/error'; 4 import {Service} from '../lib/service'; 5 import {ServiceConfigurationOptions} from '../lib/service'; 6 import {ConfigBase as Config} from '../lib/config'; 7 interface Blob {} 8 declare class CloudWatchEvents extends Service { 9 /** 10 * Constructs a service object. This object has one method for each API operation. 11 */ 12 constructor(options?: CloudWatchEvents.Types.ClientConfiguration) 13 config: Config & CloudWatchEvents.Types.ClientConfiguration; 14 /** 15 * Deletes a rule. You must remove all targets from a rule using RemoveTargets before you can delete the rule. Note: When you delete a rule, incoming events might still continue to match to the deleted rule. Please allow a short period of time for changes to take effect. 16 */ 17 deleteRule(params: CloudWatchEvents.Types.DeleteRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 18 /** 19 * Deletes a rule. You must remove all targets from a rule using RemoveTargets before you can delete the rule. Note: When you delete a rule, incoming events might still continue to match to the deleted rule. Please allow a short period of time for changes to take effect. 20 */ 21 deleteRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 22 /** 23 * Describes the details of the specified rule. 24 */ 25 describeRule(params: CloudWatchEvents.Types.DescribeRuleRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.DescribeRuleResponse) => void): Request<CloudWatchEvents.Types.DescribeRuleResponse, AWSError>; 26 /** 27 * Describes the details of the specified rule. 28 */ 29 describeRule(callback?: (err: AWSError, data: CloudWatchEvents.Types.DescribeRuleResponse) => void): Request<CloudWatchEvents.Types.DescribeRuleResponse, AWSError>; 30 /** 31 * Disables a rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression. Note: When you disable a rule, incoming events might still continue to match to the disabled rule. Please allow a short period of time for changes to take effect. 32 */ 33 disableRule(params: CloudWatchEvents.Types.DisableRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 34 /** 35 * Disables a rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression. Note: When you disable a rule, incoming events might still continue to match to the disabled rule. Please allow a short period of time for changes to take effect. 36 */ 37 disableRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 38 /** 39 * Enables a rule. If the rule does not exist, the operation fails. Note: When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Please allow a short period of time for changes to take effect. 40 */ 41 enableRule(params: CloudWatchEvents.Types.EnableRuleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 42 /** 43 * Enables a rule. If the rule does not exist, the operation fails. Note: When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Please allow a short period of time for changes to take effect. 44 */ 45 enableRule(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; 46 /** 47 * Lists the names of the rules that the given target is put to. You can see which of the rules in Amazon CloudWatch Events can invoke a specific target in your account. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRulesByTarget until the NextToken in the response is returned as null. 48 */ 49 listRuleNamesByTarget(params: CloudWatchEvents.Types.ListRuleNamesByTargetRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.ListRuleNamesByTargetResponse) => void): Request<CloudWatchEvents.Types.ListRuleNamesByTargetResponse, AWSError>; 50 /** 51 * Lists the names of the rules that the given target is put to. You can see which of the rules in Amazon CloudWatch Events can invoke a specific target in your account. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRulesByTarget until the NextToken in the response is returned as null. 52 */ 53 listRuleNamesByTarget(callback?: (err: AWSError, data: CloudWatchEvents.Types.ListRuleNamesByTargetResponse) => void): Request<CloudWatchEvents.Types.ListRuleNamesByTargetResponse, AWSError>; 54 /** 55 * Lists the Amazon CloudWatch Events rules in your account. You can either list all the rules or you can provide a prefix to match to the rule names. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRules until the NextToken in the response is returned as null. 56 */ 57 listRules(params: CloudWatchEvents.Types.ListRulesRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.ListRulesResponse) => void): Request<CloudWatchEvents.Types.ListRulesResponse, AWSError>; 58 /** 59 * Lists the Amazon CloudWatch Events rules in your account. You can either list all the rules or you can provide a prefix to match to the rule names. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRules until the NextToken in the response is returned as null. 60 */ 61 listRules(callback?: (err: AWSError, data: CloudWatchEvents.Types.ListRulesResponse) => void): Request<CloudWatchEvents.Types.ListRulesResponse, AWSError>; 62 /** 63 * Lists of targets assigned to the rule. 64 */ 65 listTargetsByRule(params: CloudWatchEvents.Types.ListTargetsByRuleRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.ListTargetsByRuleResponse) => void): Request<CloudWatchEvents.Types.ListTargetsByRuleResponse, AWSError>; 66 /** 67 * Lists of targets assigned to the rule. 68 */ 69 listTargetsByRule(callback?: (err: AWSError, data: CloudWatchEvents.Types.ListTargetsByRuleResponse) => void): Request<CloudWatchEvents.Types.ListTargetsByRuleResponse, AWSError>; 70 /** 71 * Sends custom events to Amazon CloudWatch Events so that they can be matched to rules. 72 */ 73 putEvents(params: CloudWatchEvents.Types.PutEventsRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.PutEventsResponse) => void): Request<CloudWatchEvents.Types.PutEventsResponse, AWSError>; 74 /** 75 * Sends custom events to Amazon CloudWatch Events so that they can be matched to rules. 76 */ 77 putEvents(callback?: (err: AWSError, data: CloudWatchEvents.Types.PutEventsResponse) => void): Request<CloudWatchEvents.Types.PutEventsResponse, AWSError>; 78 /** 79 * Creates or updates a rule. Rules are enabled by default, or based on value of the State parameter. You can disable a rule using DisableRule. Note: When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Please 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 will trigger on matching events as well as on a schedule. Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events 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. 80 */ 81 putRule(params: CloudWatchEvents.Types.PutRuleRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.PutRuleResponse) => void): Request<CloudWatchEvents.Types.PutRuleResponse, AWSError>; 82 /** 83 * Creates or updates a rule. Rules are enabled by default, or based on value of the State parameter. You can disable a rule using DisableRule. Note: When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Please 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 will trigger on matching events as well as on a schedule. Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events 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. 84 */ 85 putRule(callback?: (err: AWSError, data: CloudWatchEvents.Types.PutRuleResponse) => void): Request<CloudWatchEvents.Types.PutRuleResponse, AWSError>; 86 /** 87 * Adds target(s) to a rule. Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets. Updates the target(s) if they are already associated with the role. In other words, if there is already a target with the given target ID, then the target associated with that ID is updated. In order to be able to make API calls against the resources you own, Amazon CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, CloudWatch Events relies on resource-based policies. For Amazon Kinesis streams, CloudWatch Events relies on IAM roles. For more information, see Permissions for Sending Events to Targets in the Amazon CloudWatch Developer Guide. Input and InputPath are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target: Neither Input nor InputPath is specified, then the entire event is passed to the target in JSON form. InputPath is specified in the form of JSONPath (e.g. $.detail), then only the part of the event specified in the path is passed to the target (e.g. only the detail part of the event is passed). Input is specified in the form of a valid JSON, then the matched event is overridden with this constant. Note: When you add targets to a rule, when the associated rule triggers, new or updated targets might not be immediately invoked. Please allow a short period of time for changes to take effect. 88 */ 89 putTargets(params: CloudWatchEvents.Types.PutTargetsRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.PutTargetsResponse) => void): Request<CloudWatchEvents.Types.PutTargetsResponse, AWSError>; 90 /** 91 * Adds target(s) to a rule. Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets. Updates the target(s) if they are already associated with the role. In other words, if there is already a target with the given target ID, then the target associated with that ID is updated. In order to be able to make API calls against the resources you own, Amazon CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, CloudWatch Events relies on resource-based policies. For Amazon Kinesis streams, CloudWatch Events relies on IAM roles. For more information, see Permissions for Sending Events to Targets in the Amazon CloudWatch Developer Guide. Input and InputPath are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target: Neither Input nor InputPath is specified, then the entire event is passed to the target in JSON form. InputPath is specified in the form of JSONPath (e.g. $.detail), then only the part of the event specified in the path is passed to the target (e.g. only the detail part of the event is passed). Input is specified in the form of a valid JSON, then the matched event is overridden with this constant. Note: When you add targets to a rule, when the associated rule triggers, new or updated targets might not be immediately invoked. Please allow a short period of time for changes to take effect. 92 */ 93 putTargets(callback?: (err: AWSError, data: CloudWatchEvents.Types.PutTargetsResponse) => void): Request<CloudWatchEvents.Types.PutTargetsResponse, AWSError>; 94 /** 95 * Removes target(s) from a rule so that when the rule is triggered, those targets will no longer be invoked. Note: When you remove a target, when the associated rule triggers, removed targets might still continue to be invoked. Please allow a short period of time for changes to take effect. 96 */ 97 removeTargets(params: CloudWatchEvents.Types.RemoveTargetsRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.RemoveTargetsResponse) => void): Request<CloudWatchEvents.Types.RemoveTargetsResponse, AWSError>; 98 /** 99 * Removes target(s) from a rule so that when the rule is triggered, those targets will no longer be invoked. Note: When you remove a target, when the associated rule triggers, removed targets might still continue to be invoked. Please allow a short period of time for changes to take effect. 100 */ 101 removeTargets(callback?: (err: AWSError, data: CloudWatchEvents.Types.RemoveTargetsResponse) => void): Request<CloudWatchEvents.Types.RemoveTargetsResponse, AWSError>; 102 /** 103 * Tests whether an event pattern matches the provided event. Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events 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. 104 */ 105 testEventPattern(params: CloudWatchEvents.Types.TestEventPatternRequest, callback?: (err: AWSError, data: CloudWatchEvents.Types.TestEventPatternResponse) => void): Request<CloudWatchEvents.Types.TestEventPatternResponse, AWSError>; 106 /** 107 * Tests whether an event pattern matches the provided event. Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events 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. 108 */ 109 testEventPattern(callback?: (err: AWSError, data: CloudWatchEvents.Types.TestEventPatternResponse) => void): Request<CloudWatchEvents.Types.TestEventPatternResponse, AWSError>; 110 } 111 declare namespace CloudWatchEvents.Types { 112 export type Boolean = boolean; 113 export interface DeleteRuleRequest { 114 /** 115 * The name of the rule to be deleted. 116 */ 117 Name: RuleName; 118 } 119 export interface DescribeRuleRequest { 120 /** 121 * The name of the rule you want to describe details for. 122 */ 123 Name: RuleName; 124 } 125 export interface DescribeRuleResponse { 126 /** 127 * The rule's name. 128 */ 129 Name?: RuleName; 130 /** 131 * The Amazon Resource Name (ARN) associated with the rule. 132 */ 133 Arn?: RuleArn; 134 /** 135 * The event pattern. 136 */ 137 EventPattern?: EventPattern; 138 /** 139 * The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". 140 */ 141 ScheduleExpression?: ScheduleExpression; 142 /** 143 * Specifies whether the rule is enabled or disabled. 144 */ 145 State?: RuleState; 146 /** 147 * The rule's description. 148 */ 149 Description?: RuleDescription; 150 /** 151 * The Amazon Resource Name (ARN) of the IAM role associated with the rule. 152 */ 153 RoleArn?: RoleArn; 154 } 155 export interface DisableRuleRequest { 156 /** 157 * The name of the rule you want to disable. 158 */ 159 Name: RuleName; 160 } 161 export interface EnableRuleRequest { 162 /** 163 * The name of the rule that you want to enable. 164 */ 165 Name: RuleName; 166 } 167 export type ErrorCode = string; 168 export type ErrorMessage = string; 169 export type EventId = string; 170 export type EventPattern = string; 171 export type EventResource = string; 172 export type EventResourceList = EventResource[]; 173 export type EventTime = Date; 174 export type Integer = number; 175 export type LimitMax100 = number; 176 export interface ListRuleNamesByTargetRequest { 177 /** 178 * The Amazon Resource Name (ARN) of the target resource that you want to list the rules for. 179 */ 180 TargetArn: TargetArn; 181 /** 182 * The token returned by a previous call to indicate that there is more data available. 183 */ 184 NextToken?: NextToken; 185 /** 186 * The maximum number of results to return. 187 */ 188 Limit?: LimitMax100; 189 } 190 export interface ListRuleNamesByTargetResponse { 191 /** 192 * List of rules names that can invoke the given target. 193 */ 194 RuleNames?: RuleNameList; 195 /** 196 * Indicates that there are additional results to retrieve. 197 */ 198 NextToken?: NextToken; 199 } 200 export interface ListRulesRequest { 201 /** 202 * The prefix matching the rule name. 203 */ 204 NamePrefix?: RuleName; 205 /** 206 * The token returned by a previous call to indicate that there is more data available. 207 */ 208 NextToken?: NextToken; 209 /** 210 * The maximum number of results to return. 211 */ 212 Limit?: LimitMax100; 213 } 214 export interface ListRulesResponse { 215 /** 216 * List of rules matching the specified criteria. 217 */ 218 Rules?: RuleResponseList; 219 /** 220 * Indicates that there are additional results to retrieve. 221 */ 222 NextToken?: NextToken; 223 } 224 export interface ListTargetsByRuleRequest { 225 /** 226 * The name of the rule whose targets you want to list. 227 */ 228 Rule: RuleName; 229 /** 230 * The token returned by a previous call to indicate that there is more data available. 231 */ 232 NextToken?: NextToken; 233 /** 234 * The maximum number of results to return. 235 */ 236 Limit?: LimitMax100; 237 } 238 export interface ListTargetsByRuleResponse { 239 /** 240 * Lists the targets assigned to the rule. 241 */ 242 Targets?: TargetList; 243 /** 244 * Indicates that there are additional results to retrieve. 245 */ 246 NextToken?: NextToken; 247 } 248 export type NextToken = string; 249 export interface PutEventsRequest { 250 /** 251 * 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. 252 */ 253 Entries: PutEventsRequestEntryList; 254 } 255 export interface PutEventsRequestEntry { 256 /** 257 * Timestamp of event, per RFC3339. If no timestamp is provided, the timestamp of the PutEvents call will be used. 258 */ 259 Time?: EventTime; 260 /** 261 * The source of the event. 262 */ 263 Source?: String; 264 /** 265 * AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present. 266 */ 267 Resources?: EventResourceList; 268 /** 269 * Free-form string used to decide what fields to expect in the event detail. 270 */ 271 DetailType?: String; 272 /** 273 * In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents. 274 */ 275 Detail?: String; 276 } 277 export type PutEventsRequestEntryList = PutEventsRequestEntry[]; 278 export interface PutEventsResponse { 279 /** 280 * The number of failed entries. 281 */ 282 FailedEntryCount?: Integer; 283 /** 284 * A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry. 285 */ 286 Entries?: PutEventsResultEntryList; 287 } 288 export interface PutEventsResultEntry { 289 /** 290 * The ID of the event submitted to Amazon CloudWatch Events. 291 */ 292 EventId?: EventId; 293 /** 294 * The error code representing why the event submission failed on this entry. 295 */ 296 ErrorCode?: ErrorCode; 297 /** 298 * The error message explaining why the event submission failed on this entry. 299 */ 300 ErrorMessage?: ErrorMessage; 301 } 302 export type PutEventsResultEntryList = PutEventsResultEntry[]; 303 export interface PutRuleRequest { 304 /** 305 * The name of the rule that you are creating or updating. 306 */ 307 Name: RuleName; 308 /** 309 * The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". 310 */ 311 ScheduleExpression?: ScheduleExpression; 312 /** 313 * The event pattern. 314 */ 315 EventPattern?: EventPattern; 316 /** 317 * Indicates whether the rule is enabled or disabled. 318 */ 319 State?: RuleState; 320 /** 321 * A description of the rule. 322 */ 323 Description?: RuleDescription; 324 /** 325 * The Amazon Resource Name (ARN) of the IAM role associated with the rule. 326 */ 327 RoleArn?: RoleArn; 328 } 329 export interface PutRuleResponse { 330 /** 331 * The Amazon Resource Name (ARN) that identifies the rule. 332 */ 333 RuleArn?: RuleArn; 334 } 335 export interface PutTargetsRequest { 336 /** 337 * The name of the rule you want to add targets to. 338 */ 339 Rule: RuleName; 340 /** 341 * List of targets you want to update or add to the rule. 342 */ 343 Targets: TargetList; 344 } 345 export interface PutTargetsResponse { 346 /** 347 * The number of failed entries. 348 */ 349 FailedEntryCount?: Integer; 350 /** 351 * An array of failed target entries. 352 */ 353 FailedEntries?: PutTargetsResultEntryList; 354 } 355 export interface PutTargetsResultEntry { 356 /** 357 * The ID of the target submitted to Amazon CloudWatch Events. 358 */ 359 TargetId?: TargetId; 360 /** 361 * The error code representing why the target submission failed on this entry. 362 */ 363 ErrorCode?: ErrorCode; 364 /** 365 * The error message explaining why the target submission failed on this entry. 366 */ 367 ErrorMessage?: ErrorMessage; 368 } 369 export type PutTargetsResultEntryList = PutTargetsResultEntry[]; 370 export interface RemoveTargetsRequest { 371 /** 372 * The name of the rule you want to remove targets from. 373 */ 374 Rule: RuleName; 375 /** 376 * The list of target IDs to remove from the rule. 377 */ 378 Ids: TargetIdList; 379 } 380 export interface RemoveTargetsResponse { 381 /** 382 * The number of failed entries. 383 */ 384 FailedEntryCount?: Integer; 385 /** 386 * An array of failed target entries. 387 */ 388 FailedEntries?: RemoveTargetsResultEntryList; 389 } 390 export interface RemoveTargetsResultEntry { 391 /** 392 * The ID of the target requested to be removed by Amazon CloudWatch Events. 393 */ 394 TargetId?: TargetId; 395 /** 396 * The error code representing why the target removal failed on this entry. 397 */ 398 ErrorCode?: ErrorCode; 399 /** 400 * The error message explaining why the target removal failed on this entry. 401 */ 402 ErrorMessage?: ErrorMessage; 403 } 404 export type RemoveTargetsResultEntryList = RemoveTargetsResultEntry[]; 405 export type RoleArn = string; 406 export interface Rule { 407 /** 408 * The rule's name. 409 */ 410 Name?: RuleName; 411 /** 412 * The Amazon Resource Name (ARN) of the rule. 413 */ 414 Arn?: RuleArn; 415 /** 416 * The event pattern of the rule. 417 */ 418 EventPattern?: EventPattern; 419 /** 420 * The rule's state. 421 */ 422 State?: RuleState; 423 /** 424 * The description of the rule. 425 */ 426 Description?: RuleDescription; 427 /** 428 * The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". 429 */ 430 ScheduleExpression?: ScheduleExpression; 431 /** 432 * The Amazon Resource Name (ARN) associated with the role that is used for target invocation. 433 */ 434 RoleArn?: RoleArn; 435 } 436 export type RuleArn = string; 437 export type RuleDescription = string; 438 export type RuleName = string; 439 export type RuleNameList = RuleName[]; 440 export type RuleResponseList = Rule[]; 441 export type RuleState = "ENABLED"|"DISABLED"|string; 442 export type ScheduleExpression = string; 443 export type String = string; 444 export interface Target { 445 /** 446 * The unique target assignment ID. 447 */ 448 Id: TargetId; 449 /** 450 * The Amazon Resource Name (ARN) associated of the target. 451 */ 452 Arn: TargetArn; 453 /** 454 * Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format. 455 */ 456 Input?: TargetInput; 457 /** 458 * The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see JSONPath. 459 */ 460 InputPath?: TargetInputPath; 461 } 462 export type TargetArn = string; 463 export type TargetId = string; 464 export type TargetIdList = TargetId[]; 465 export type TargetInput = string; 466 export type TargetInputPath = string; 467 export type TargetList = Target[]; 468 export interface TestEventPatternRequest { 469 /** 470 * The event pattern you want to test. 471 */ 472 EventPattern: EventPattern; 473 /** 474 * The event in the JSON format to test against the event pattern. 475 */ 476 Event: String; 477 } 478 export interface TestEventPatternResponse { 479 /** 480 * Indicates whether the event matches the event pattern. 481 */ 482 Result?: Boolean; 483 } 484 /** 485 * 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. 486 */ 487 export type apiVersion = "2014-02-03"|"2015-10-07"|"latest"|string; 488 export interface ClientApiVersions { 489 /** 490 * 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. 491 */ 492 apiVersion?: apiVersion; 493 } 494 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions; 495 } 496 export = CloudWatchEvents;