1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2014-02-03", 5 "endpointPrefix":"events", 6 "jsonVersion":"1.1", 7 "serviceFullName":"Amazon CloudWatch Events", 8 "signatureVersion":"v4", 9 "targetPrefix":"AWSEvents", 10 "protocol":"json" 11 }, 12 "documentation":"<p>Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule. For example, you can configure rules to: </p> <ul> <li>Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state.</li> <li>Direct specific API records from CloudTrail to an Amazon Kinesis stream for detailed analysis of potential security or availability risks.</li> <li>Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.</li> </ul> <p> For more information about Amazon CloudWatch Events features, see the <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide\">Amazon CloudWatch Developer Guide</a>. </p>", 13 "operations":{ 14 "DeleteRule":{ 15 "name":"DeleteRule", 16 "http":{ 17 "method":"POST", 18 "requestUri":"/" 19 }, 20 "input":{ 21 "shape":"DeleteRuleRequest", 22 "documentation":"<p>Container for the parameters to the <a>DeleteRule</a> operation.</p>" 23 }, 24 "errors":[ 25 { 26 "shape":"ConcurrentModificationException", 27 "exception":true, 28 "documentation":"<p>This exception occurs if there is concurrent modification on rule or target.</p>" 29 }, 30 { 31 "shape":"InternalException", 32 "exception":true, 33 "fault":true, 34 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 35 } 36 ], 37 "documentation":"<p>Deletes a rule. You must remove all targets from a rule using <a>RemoveTargets</a> before you can delete the rule.</p> <p> <b>Note:</b> When you make a change with this action, incoming events might still continue to match to the deleted rule. Please allow a short period of time for changes to take effect. </p>" 38 }, 39 "DescribeRule":{ 40 "name":"DescribeRule", 41 "http":{ 42 "method":"POST", 43 "requestUri":"/" 44 }, 45 "input":{ 46 "shape":"DescribeRuleRequest", 47 "documentation":"<p>Container for the parameters to the <a>DescribeRule</a> operation.</p>" 48 }, 49 "output":{ 50 "shape":"DescribeRuleResponse", 51 "documentation":"<p>The result of the <a>DescribeRule</a> operation.</p>" 52 }, 53 "errors":[ 54 { 55 "shape":"ResourceNotFoundException", 56 "exception":true, 57 "documentation":"<p>The rule does not exist.</p>" 58 }, 59 { 60 "shape":"InternalException", 61 "exception":true, 62 "fault":true, 63 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 64 } 65 ], 66 "documentation":"<p>Describes the details of the specified rule.</p>" 67 }, 68 "DisableRule":{ 69 "name":"DisableRule", 70 "http":{ 71 "method":"POST", 72 "requestUri":"/" 73 }, 74 "input":{ 75 "shape":"DisableRuleRequest", 76 "documentation":"<p>Container for the parameters to the <a>DisableRule</a> operation.</p>" 77 }, 78 "errors":[ 79 { 80 "shape":"ResourceNotFoundException", 81 "exception":true, 82 "documentation":"<p>The rule does not exist.</p>" 83 }, 84 { 85 "shape":"ConcurrentModificationException", 86 "exception":true, 87 "documentation":"<p>This exception occurs if there is concurrent modification on rule or target.</p>" 88 }, 89 { 90 "shape":"InternalException", 91 "exception":true, 92 "fault":true, 93 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 94 } 95 ], 96 "documentation":"<p>Disables a rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.</p> <p> <b>Note:</b> When you make a change with this action, incoming events might still continue to match to the disabled rule. Please allow a short period of time for changes to take effect. </p>" 97 }, 98 "EnableRule":{ 99 "name":"EnableRule", 100 "http":{ 101 "method":"POST", 102 "requestUri":"/" 103 }, 104 "input":{ 105 "shape":"EnableRuleRequest", 106 "documentation":"<p>Container for the parameters to the <a>EnableRule</a> operation.</p>" 107 }, 108 "errors":[ 109 { 110 "shape":"ResourceNotFoundException", 111 "exception":true, 112 "documentation":"<p>The rule does not exist.</p>" 113 }, 114 { 115 "shape":"ConcurrentModificationException", 116 "exception":true, 117 "documentation":"<p>This exception occurs if there is concurrent modification on rule or target.</p>" 118 }, 119 { 120 "shape":"InternalException", 121 "exception":true, 122 "fault":true, 123 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 124 } 125 ], 126 "documentation":"<p>Enables a rule. If the rule does not exist, the operation fails.</p> <p> <b>Note:</b> When you make a change with this action, incoming events might not immediately start matching to a newly enabled rule. Please allow a short period of time for changes to take effect. </p>" 127 }, 128 "ListRuleNamesByTarget":{ 129 "name":"ListRuleNamesByTarget", 130 "http":{ 131 "method":"POST", 132 "requestUri":"/" 133 }, 134 "input":{ 135 "shape":"ListRuleNamesByTargetRequest", 136 "documentation":"<p>Container for the parameters to the <a>ListRuleNamesByTarget</a> operation.</p>" 137 }, 138 "output":{ 139 "shape":"ListRuleNamesByTargetResponse", 140 "documentation":"<p>The result of the <a>ListRuleNamesByTarget</a> operation.</p>" 141 }, 142 "errors":[ 143 { 144 "shape":"InternalException", 145 "exception":true, 146 "fault":true, 147 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 148 } 149 ], 150 "documentation":"<p>Lists the names of the rules that the given target is put to. Using this action, you can find out 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 the ListRulesByTarget action until the NextToken in the response is returned as null.</p>" 151 }, 152 "ListRules":{ 153 "name":"ListRules", 154 "http":{ 155 "method":"POST", 156 "requestUri":"/" 157 }, 158 "input":{ 159 "shape":"ListRulesRequest", 160 "documentation":"<p>Container for the parameters to the <a>ListRules</a> operation.</p>" 161 }, 162 "output":{ 163 "shape":"ListRulesResponse", 164 "documentation":"<p>The result of the <a>ListRules</a> operation.</p>" 165 }, 166 "errors":[ 167 { 168 "shape":"InternalException", 169 "exception":true, 170 "fault":true, 171 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 172 } 173 ], 174 "documentation":"<p>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 the ListRules action until the NextToken in the response is returned as null.</p>" 175 }, 176 "ListTargetsByRule":{ 177 "name":"ListTargetsByRule", 178 "http":{ 179 "method":"POST", 180 "requestUri":"/" 181 }, 182 "input":{ 183 "shape":"ListTargetsByRuleRequest", 184 "documentation":"<p>Container for the parameters to the <a>ListTargetsByRule</a> operation.</p>" 185 }, 186 "output":{ 187 "shape":"ListTargetsByRuleResponse", 188 "documentation":"<p>The result of the <a>ListTargetsByRule</a> operation.</p>" 189 }, 190 "errors":[ 191 { 192 "shape":"ResourceNotFoundException", 193 "exception":true, 194 "documentation":"<p>The rule does not exist.</p>" 195 }, 196 { 197 "shape":"InternalException", 198 "exception":true, 199 "fault":true, 200 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 201 } 202 ], 203 "documentation":"<p>Lists of targets assigned to the rule.</p>" 204 }, 205 "PutEvents":{ 206 "name":"PutEvents", 207 "http":{ 208 "method":"POST", 209 "requestUri":"/" 210 }, 211 "input":{ 212 "shape":"PutEventsRequest", 213 "documentation":"<p>Container for the parameters to the <a>PutEvents</a> operation.</p>" 214 }, 215 "output":{ 216 "shape":"PutEventsResponse", 217 "documentation":"<p>The result of the <a>PutEvents</a> operation.</p>" 218 }, 219 "errors":[ 220 { 221 "shape":"InternalException", 222 "exception":true, 223 "fault":true, 224 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 225 } 226 ], 227 "documentation":"<p>Sends custom events to Amazon CloudWatch Events so that they can be matched to rules.</p>" 228 }, 229 "PutRule":{ 230 "name":"PutRule", 231 "http":{ 232 "method":"POST", 233 "requestUri":"/" 234 }, 235 "input":{ 236 "shape":"PutRuleRequest", 237 "documentation":"<p>Container for the parameters to the <a>PutRule</a> operation.</p>" 238 }, 239 "output":{ 240 "shape":"PutRuleResponse", 241 "documentation":"<p>The result of the <a>PutRule</a> operation.</p>" 242 }, 243 "errors":[ 244 { 245 "shape":"InvalidEventPatternException", 246 "exception":true, 247 "documentation":"<p>The event pattern is invalid.</p>" 248 }, 249 { 250 "shape":"LimitExceededException", 251 "exception":true, 252 "documentation":"<p>This exception occurs if you try to create more rules or add more targets to a rule than allowed by default.</p>" 253 }, 254 { 255 "shape":"ConcurrentModificationException", 256 "exception":true, 257 "documentation":"<p>This exception occurs if there is concurrent modification on rule or target.</p>" 258 }, 259 { 260 "shape":"InternalException", 261 "exception":true, 262 "fault":true, 263 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 264 } 265 ], 266 "documentation":"<p>Creates or updates a rule. Rules are enabled by default, or based on value of the State parameter. You can disable a rule using <a>DisableRule</a>.</p> <p> <b>Note:</b> When you make a change with this action, incoming events might not immediately start matching to new or updated rules. Please allow a short period of time for changes to take effect.</p> <p>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.</p> <p> <b>Note:</b> 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. </p>" 267 }, 268 "PutTargets":{ 269 "name":"PutTargets", 270 "http":{ 271 "method":"POST", 272 "requestUri":"/" 273 }, 274 "input":{ 275 "shape":"PutTargetsRequest", 276 "documentation":"<p>Container for the parameters to the <a>PutTargets</a> operation.</p>" 277 }, 278 "output":{ 279 "shape":"PutTargetsResponse", 280 "documentation":"<p>The result of the <a>PutTargets</a> operation.</p>" 281 }, 282 "errors":[ 283 { 284 "shape":"ResourceNotFoundException", 285 "exception":true, 286 "documentation":"<p>The rule does not exist.</p>" 287 }, 288 { 289 "shape":"ConcurrentModificationException", 290 "exception":true, 291 "documentation":"<p>This exception occurs if there is concurrent modification on rule or target.</p>" 292 }, 293 { 294 "shape":"LimitExceededException", 295 "exception":true, 296 "documentation":"<p>This exception occurs if you try to create more rules or add more targets to a rule than allowed by default.</p>" 297 }, 298 { 299 "shape":"InternalException", 300 "exception":true, 301 "fault":true, 302 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 303 } 304 ], 305 "documentation":"<p>Adds target(s) to a rule. 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.</p> <p> <b>Note:</b> When you make a change with this action, 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. </p>" 306 }, 307 "RemoveTargets":{ 308 "name":"RemoveTargets", 309 "http":{ 310 "method":"POST", 311 "requestUri":"/" 312 }, 313 "input":{ 314 "shape":"RemoveTargetsRequest", 315 "documentation":"<p>Container for the parameters to the <a>RemoveTargets</a> operation.</p>" 316 }, 317 "output":{ 318 "shape":"RemoveTargetsResponse", 319 "documentation":"<p>The result of the <a>RemoveTargets</a> operation.</p>" 320 }, 321 "errors":[ 322 { 323 "shape":"ResourceNotFoundException", 324 "exception":true, 325 "documentation":"<p>The rule does not exist.</p>" 326 }, 327 { 328 "shape":"ConcurrentModificationException", 329 "exception":true, 330 "documentation":"<p>This exception occurs if there is concurrent modification on rule or target.</p>" 331 }, 332 { 333 "shape":"InternalException", 334 "exception":true, 335 "fault":true, 336 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 337 } 338 ], 339 "documentation":"<p>Removes target(s) from a rule so that when the rule is triggered, those targets will no longer be invoked.</p> <p> <b>Note:</b> When you make a change with this action, 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. </p>" 340 }, 341 "TestEventPattern":{ 342 "name":"TestEventPattern", 343 "http":{ 344 "method":"POST", 345 "requestUri":"/" 346 }, 347 "input":{ 348 "shape":"TestEventPatternRequest", 349 "documentation":"<p>Container for the parameters to the <a>TestEventPattern</a> operation.</p>" 350 }, 351 "output":{ 352 "shape":"TestEventPatternResponse", 353 "documentation":"<p>The result of the <a>TestEventPattern</a> operation.</p>" 354 }, 355 "errors":[ 356 { 357 "shape":"InvalidEventPatternException", 358 "exception":true, 359 "documentation":"<p>The event pattern is invalid.</p>" 360 }, 361 { 362 "shape":"InternalException", 363 "exception":true, 364 "fault":true, 365 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 366 } 367 ], 368 "documentation":"<p>Tests whether an event pattern matches the provided event.</p> <p> <b>Note:</b> 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. </p>" 369 } 370 }, 371 "shapes":{ 372 "Boolean":{"type":"boolean"}, 373 "ConcurrentModificationException":{ 374 "type":"structure", 375 "members":{ 376 }, 377 "exception":true, 378 "documentation":"<p>This exception occurs if there is concurrent modification on rule or target.</p>" 379 }, 380 "DeleteRuleRequest":{ 381 "type":"structure", 382 "required":["Name"], 383 "members":{ 384 "Name":{ 385 "shape":"RuleName", 386 "documentation":"<p>The name of the rule to be deleted.</p>" 387 } 388 }, 389 "documentation":"<p>Container for the parameters to the <a>DeleteRule</a> operation.</p>" 390 }, 391 "DescribeRuleRequest":{ 392 "type":"structure", 393 "required":["Name"], 394 "members":{ 395 "Name":{ 396 "shape":"RuleName", 397 "documentation":"<p>The name of the rule you want to describe details for.</p>" 398 } 399 }, 400 "documentation":"<p>Container for the parameters to the <a>DescribeRule</a> operation.</p>" 401 }, 402 "DescribeRuleResponse":{ 403 "type":"structure", 404 "members":{ 405 "Name":{ 406 "shape":"RuleName", 407 "documentation":"<p>The rule's name.</p>" 408 }, 409 "Arn":{ 410 "shape":"RuleArn", 411 "documentation":"<p>The Amazon Resource Name (ARN) associated with the rule.</p>" 412 }, 413 "EventPattern":{ 414 "shape":"EventPattern", 415 "documentation":"<p>The event pattern.</p>" 416 }, 417 "ScheduleExpression":{ 418 "shape":"ScheduleExpression", 419 "documentation":"<p>The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".</p>" 420 }, 421 "State":{ 422 "shape":"RuleState", 423 "documentation":"<p>Specifies whether the rule is enabled or disabled.</p>" 424 }, 425 "Description":{ 426 "shape":"RuleDescription", 427 "documentation":"<p>The rule's description.</p>" 428 }, 429 "RoleArn":{ 430 "shape":"RoleArn", 431 "documentation":"<p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>" 432 } 433 }, 434 "documentation":"<p>The result of the <a>DescribeRule</a> operation.</p>" 435 }, 436 "DisableRuleRequest":{ 437 "type":"structure", 438 "required":["Name"], 439 "members":{ 440 "Name":{ 441 "shape":"RuleName", 442 "documentation":"<p>The name of the rule you want to disable.</p>" 443 } 444 }, 445 "documentation":"<p>Container for the parameters to the <a>DisableRule</a> operation.</p>" 446 }, 447 "EnableRuleRequest":{ 448 "type":"structure", 449 "required":["Name"], 450 "members":{ 451 "Name":{ 452 "shape":"RuleName", 453 "documentation":"<p>The name of the rule that you want to enable.</p>" 454 } 455 }, 456 "documentation":"<p>Container for the parameters to the <a>EnableRule</a> operation.</p>" 457 }, 458 "ErrorCode":{"type":"string"}, 459 "ErrorMessage":{"type":"string"}, 460 "EventId":{"type":"string"}, 461 "EventPattern":{ 462 "type":"string", 463 "max":2048 464 }, 465 "EventResource":{"type":"string"}, 466 "EventResourceList":{ 467 "type":"list", 468 "member":{"shape":"EventResource"} 469 }, 470 "EventTime":{"type":"timestamp"}, 471 "Integer":{"type":"integer"}, 472 "InternalException":{ 473 "type":"structure", 474 "members":{ 475 }, 476 "exception":true, 477 "fault":true, 478 "documentation":"<p>This exception occurs due to unexpected causes.</p>" 479 }, 480 "InvalidEventPatternException":{ 481 "type":"structure", 482 "members":{ 483 }, 484 "exception":true, 485 "documentation":"<p>The event pattern is invalid.</p>" 486 }, 487 "LimitExceededException":{ 488 "type":"structure", 489 "members":{ 490 }, 491 "exception":true, 492 "documentation":"<p>This exception occurs if you try to create more rules or add more targets to a rule than allowed by default.</p>" 493 }, 494 "LimitMax100":{ 495 "type":"integer", 496 "min":1, 497 "max":100 498 }, 499 "ListRuleNamesByTargetRequest":{ 500 "type":"structure", 501 "required":["TargetArn"], 502 "members":{ 503 "TargetArn":{ 504 "shape":"TargetArn", 505 "documentation":"<p>The Amazon Resource Name (ARN) of the target resource that you want to list the rules for.</p>" 506 }, 507 "NextToken":{ 508 "shape":"NextToken", 509 "documentation":"<p>The token returned by a previous call to indicate that there is more data available.</p>" 510 }, 511 "Limit":{ 512 "shape":"LimitMax100", 513 "documentation":"<p>The maximum number of results to return.</p>" 514 } 515 }, 516 "documentation":"<p>Container for the parameters to the <a>ListRuleNamesByTarget</a> operation.</p>" 517 }, 518 "ListRuleNamesByTargetResponse":{ 519 "type":"structure", 520 "members":{ 521 "RuleNames":{ 522 "shape":"RuleNameList", 523 "documentation":"<p>List of rules names that can invoke the given target.</p>" 524 }, 525 "NextToken":{ 526 "shape":"NextToken", 527 "documentation":"<p>Indicates that there are additional results to retrieve.</p>" 528 } 529 }, 530 "documentation":"<p>The result of the <a>ListRuleNamesByTarget</a> operation.</p>" 531 }, 532 "ListRulesRequest":{ 533 "type":"structure", 534 "members":{ 535 "NamePrefix":{ 536 "shape":"RuleName", 537 "documentation":"<p>The prefix matching the rule name.</p>" 538 }, 539 "NextToken":{ 540 "shape":"NextToken", 541 "documentation":"<p>The token returned by a previous call to indicate that there is more data available.</p>" 542 }, 543 "Limit":{ 544 "shape":"LimitMax100", 545 "documentation":"<p>The maximum number of results to return.</p>" 546 } 547 }, 548 "documentation":"<p>Container for the parameters to the <a>ListRules</a> operation.</p>" 549 }, 550 "ListRulesResponse":{ 551 "type":"structure", 552 "members":{ 553 "Rules":{ 554 "shape":"RuleResponseList", 555 "documentation":"<p>List of rules matching the specified criteria.</p>" 556 }, 557 "NextToken":{ 558 "shape":"NextToken", 559 "documentation":"<p>Indicates that there are additional results to retrieve.</p>" 560 } 561 }, 562 "documentation":"<p>The result of the <a>ListRules</a> operation.</p>" 563 }, 564 "ListTargetsByRuleRequest":{ 565 "type":"structure", 566 "required":["Rule"], 567 "members":{ 568 "Rule":{ 569 "shape":"RuleName", 570 "documentation":"<p>The name of the rule whose targets you want to list.</p>" 571 }, 572 "NextToken":{ 573 "shape":"NextToken", 574 "documentation":"<p>The token returned by a previous call to indicate that there is more data available.</p>" 575 }, 576 "Limit":{ 577 "shape":"LimitMax100", 578 "documentation":"<p>The maximum number of results to return.</p>" 579 } 580 }, 581 "documentation":"<p>Container for the parameters to the <a>ListTargetsByRule</a> operation.</p>" 582 }, 583 "ListTargetsByRuleResponse":{ 584 "type":"structure", 585 "members":{ 586 "Targets":{ 587 "shape":"TargetList", 588 "documentation":"<p>Lists the targets assigned to the rule.</p>" 589 }, 590 "NextToken":{ 591 "shape":"NextToken", 592 "documentation":"<p>Indicates that there are additional results to retrieve.</p>" 593 } 594 }, 595 "documentation":"<p>The result of the <a>ListTargetsByRule</a> operation.</p>" 596 }, 597 "NextToken":{ 598 "type":"string", 599 "min":1, 600 "max":2048 601 }, 602 "PutEventsRequest":{ 603 "type":"structure", 604 "required":["Entries"], 605 "members":{ 606 "Entries":{ 607 "shape":"PutEventsRequestEntryList", 608 "documentation":"<p>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.</p>" 609 } 610 }, 611 "documentation":"<p>Container for the parameters to the <a>PutEvents</a> operation.</p>" 612 }, 613 "PutEventsRequestEntry":{ 614 "type":"structure", 615 "members":{ 616 "Time":{ 617 "shape":"EventTime", 618 "documentation":"<p>Timestamp of event, per <a href=\"https://www.rfc-editor.org/rfc/rfc3339.txt\">RFC3339</a>. If no timestamp is provided, the timestamp of the <a>PutEvents</a> call will be used.</p>" 619 }, 620 "Source":{ 621 "shape":"String", 622 "documentation":"<p>The source of the event.</p>" 623 }, 624 "Resources":{ 625 "shape":"EventResourceList", 626 "documentation":"<p>AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.</p>" 627 }, 628 "DetailType":{ 629 "shape":"String", 630 "documentation":"<p>Free-form string used to decide what fields to expect in the event detail.</p>" 631 }, 632 "Detail":{ 633 "shape":"String", 634 "documentation":"<p>In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.</p>" 635 } 636 }, 637 "documentation":"<p>Contains information about the event to be used in the PutEvents action.</p>" 638 }, 639 "PutEventsRequestEntryList":{ 640 "type":"list", 641 "member":{"shape":"PutEventsRequestEntry"}, 642 "min":1, 643 "max":10 644 }, 645 "PutEventsResponse":{ 646 "type":"structure", 647 "members":{ 648 "FailedEntryCount":{ 649 "shape":"Integer", 650 "documentation":"<p>The number of failed entries.</p>" 651 }, 652 "Entries":{ 653 "shape":"PutEventsResultEntryList", 654 "documentation":"<p>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.</p>" 655 } 656 }, 657 "documentation":"<p>The result of the <a>PutEvents</a> operation.</p>" 658 }, 659 "PutEventsResultEntry":{ 660 "type":"structure", 661 "members":{ 662 "EventId":{ 663 "shape":"EventId", 664 "documentation":"<p>The ID of the event submitted to Amazon CloudWatch Events.</p>" 665 }, 666 "ErrorCode":{ 667 "shape":"ErrorCode", 668 "documentation":"<p>The error code representing why the event submission failed on this entry.</p>" 669 }, 670 "ErrorMessage":{ 671 "shape":"ErrorMessage", 672 "documentation":"<p>The error message explaining why the event submission failed on this entry.</p>" 673 } 674 }, 675 "documentation":"<p>A PutEventsResult contains a list of PutEventsResultEntry.</p>" 676 }, 677 "PutEventsResultEntryList":{ 678 "type":"list", 679 "member":{"shape":"PutEventsResultEntry"} 680 }, 681 "PutRuleRequest":{ 682 "type":"structure", 683 "required":["Name"], 684 "members":{ 685 "Name":{ 686 "shape":"RuleName", 687 "documentation":"<p>The name of the rule that you are creating or updating.</p>" 688 }, 689 "ScheduleExpression":{ 690 "shape":"ScheduleExpression", 691 "documentation":"<p>The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".</p>" 692 }, 693 "EventPattern":{ 694 "shape":"EventPattern", 695 "documentation":"<p>The event pattern.</p>" 696 }, 697 "State":{ 698 "shape":"RuleState", 699 "documentation":"<p>Indicates whether the rule is enabled or disabled.</p>" 700 }, 701 "Description":{ 702 "shape":"RuleDescription", 703 "documentation":"<p>A description of the rule.</p>" 704 }, 705 "RoleArn":{ 706 "shape":"RoleArn", 707 "documentation":"<p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>" 708 } 709 }, 710 "documentation":"<p>Container for the parameters to the <a>PutRule</a> operation.</p>" 711 }, 712 "PutRuleResponse":{ 713 "type":"structure", 714 "members":{ 715 "RuleArn":{ 716 "shape":"RuleArn", 717 "documentation":"<p>The Amazon Resource Name (ARN) that identifies the rule.</p>" 718 } 719 }, 720 "documentation":"<p>The result of the <a>PutRule</a> operation.</p>" 721 }, 722 "PutTargetsRequest":{ 723 "type":"structure", 724 "required":[ 725 "Rule", 726 "Targets" 727 ], 728 "members":{ 729 "Rule":{ 730 "shape":"RuleName", 731 "documentation":"<p>The name of the rule you want to add targets to.</p>" 732 }, 733 "Targets":{ 734 "shape":"TargetList", 735 "documentation":"<p>List of targets you want to update or add to the rule.</p>" 736 } 737 }, 738 "documentation":"<p>Container for the parameters to the <a>PutTargets</a> operation.</p>" 739 }, 740 "PutTargetsResponse":{ 741 "type":"structure", 742 "members":{ 743 "FailedEntryCount":{ 744 "shape":"Integer", 745 "documentation":"<p>The number of failed entries.</p>" 746 }, 747 "FailedEntries":{ 748 "shape":"PutTargetsResultEntryList", 749 "documentation":"<p>An array of failed target entries.</p>" 750 } 751 }, 752 "documentation":"<p>The result of the <a>PutTargets</a> operation.</p>" 753 }, 754 "PutTargetsResultEntry":{ 755 "type":"structure", 756 "members":{ 757 "TargetId":{ 758 "shape":"TargetId", 759 "documentation":"<p>The ID of the target submitted to Amazon CloudWatch Events.</p>" 760 }, 761 "ErrorCode":{ 762 "shape":"ErrorCode", 763 "documentation":"<p>The error code representing why the target submission failed on this entry.</p>" 764 }, 765 "ErrorMessage":{ 766 "shape":"ErrorMessage", 767 "documentation":"<p>The error message explaining why the target submission failed on this entry.</p>" 768 } 769 }, 770 "documentation":"<p>A PutTargetsResult contains a list of PutTargetsResultEntry.</p>" 771 }, 772 "PutTargetsResultEntryList":{ 773 "type":"list", 774 "member":{"shape":"PutTargetsResultEntry"} 775 }, 776 "RemoveTargetsRequest":{ 777 "type":"structure", 778 "required":[ 779 "Rule", 780 "Ids" 781 ], 782 "members":{ 783 "Rule":{ 784 "shape":"RuleName", 785 "documentation":"<p>The name of the rule you want to remove targets from.</p>" 786 }, 787 "Ids":{ 788 "shape":"TargetIdList", 789 "documentation":"<p>The list of target IDs to remove from the rule.</p>" 790 } 791 }, 792 "documentation":"<p>Container for the parameters to the <a>RemoveTargets</a> operation.</p>" 793 }, 794 "RemoveTargetsResponse":{ 795 "type":"structure", 796 "members":{ 797 "FailedEntryCount":{ 798 "shape":"Integer", 799 "documentation":"<p>The number of failed entries.</p>" 800 }, 801 "FailedEntries":{ 802 "shape":"RemoveTargetsResultEntryList", 803 "documentation":"<p>An array of failed target entries.</p>" 804 } 805 }, 806 "documentation":"<p>The result of the <a>RemoveTargets</a> operation.</p>" 807 }, 808 "RemoveTargetsResultEntry":{ 809 "type":"structure", 810 "members":{ 811 "TargetId":{ 812 "shape":"TargetId", 813 "documentation":"<p>The ID of the target requested to be removed by Amazon CloudWatch Events.</p>" 814 }, 815 "ErrorCode":{ 816 "shape":"ErrorCode", 817 "documentation":"<p>The error code representing why the target removal failed on this entry.</p>" 818 }, 819 "ErrorMessage":{ 820 "shape":"ErrorMessage", 821 "documentation":"<p>The error message explaining why the target removal failed on this entry.</p>" 822 } 823 }, 824 "documentation":"<p>The ID of the target requested to be removed from the rule by Amazon CloudWatch Events.</p>" 825 }, 826 "RemoveTargetsResultEntryList":{ 827 "type":"list", 828 "member":{"shape":"RemoveTargetsResultEntry"} 829 }, 830 "ResourceNotFoundException":{ 831 "type":"structure", 832 "members":{ 833 }, 834 "exception":true, 835 "documentation":"<p>The rule does not exist.</p>" 836 }, 837 "RoleArn":{ 838 "type":"string", 839 "min":1, 840 "max":1600 841 }, 842 "Rule":{ 843 "type":"structure", 844 "members":{ 845 "Name":{ 846 "shape":"RuleName", 847 "documentation":"<p>The rule's name.</p>" 848 }, 849 "Arn":{ 850 "shape":"RuleArn", 851 "documentation":"<p>The Amazon Resource Name (ARN) of the rule.</p>" 852 }, 853 "EventPattern":{ 854 "shape":"EventPattern", 855 "documentation":"<p>The event pattern of the rule.</p>" 856 }, 857 "State":{ 858 "shape":"RuleState", 859 "documentation":"<p>The rule's state.</p>" 860 }, 861 "Description":{ 862 "shape":"RuleDescription", 863 "documentation":"<p>The description of the rule.</p>" 864 }, 865 "ScheduleExpression":{ 866 "shape":"ScheduleExpression", 867 "documentation":"<p>The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".</p>" 868 }, 869 "RoleArn":{ 870 "shape":"RoleArn", 871 "documentation":"<p>The Amazon Resource Name (ARN) associated with the role that is used for target invocation.</p>" 872 } 873 }, 874 "documentation":"<p>Contains information about a rule in Amazon CloudWatch Events. A ListRulesResult contains a list of Rules.</p>" 875 }, 876 "RuleArn":{ 877 "type":"string", 878 "min":1, 879 "max":1600 880 }, 881 "RuleDescription":{ 882 "type":"string", 883 "max":512 884 }, 885 "RuleName":{ 886 "type":"string", 887 "min":1, 888 "max":64, 889 "pattern":"[\\.\\-_A-Za-z0-9]+" 890 }, 891 "RuleNameList":{ 892 "type":"list", 893 "member":{"shape":"RuleName"} 894 }, 895 "RuleResponseList":{ 896 "type":"list", 897 "member":{"shape":"Rule"} 898 }, 899 "RuleState":{ 900 "type":"string", 901 "enum":[ 902 "ENABLED", 903 "DISABLED" 904 ] 905 }, 906 "ScheduleExpression":{ 907 "type":"string", 908 "max":256 909 }, 910 "String":{"type":"string"}, 911 "Target":{ 912 "type":"structure", 913 "required":[ 914 "Id", 915 "Arn" 916 ], 917 "members":{ 918 "Id":{ 919 "shape":"TargetId", 920 "documentation":"<p>The unique target assignment ID.</p>" 921 }, 922 "Arn":{ 923 "shape":"TargetArn", 924 "documentation":"<p>The Amazon Resource Name (ARN) associated of the target.</p>" 925 }, 926 "Input":{ 927 "shape":"TargetInput", 928 "documentation":"<p>Valid JSON text passed to the target. For more information about JSON text, see <a href=\"http://www.rfc-editor.org/rfc/rfc7159.txt\">The JavaScript Object Notation (JSON) Data Interchange Format</a>.</p>" 929 }, 930 "InputPath":{ 931 "shape":"TargetInputPath", 932 "documentation":"<p>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 <a href=\"http://goessner.net/articles/JsonPath/\">JSONPath</a>.</p>" 933 } 934 }, 935 "documentation":"<p>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.</p> <p><b>Input</b> and <b>InputPath</b> are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target:</p> <ul> <li>Neither <b>Input</b> nor <b>InputPath</b> is specified, then the entire event is passed to the target in JSON form.</li> <li> <b>InputPath</b> is specified in the form of JSONPath (e.g. <b>$.detail</b>), 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). </li> <li> <b>Input</b> is specified in the form of a valid JSON, then the matched event is overridden with this constant.</li> </ul>" 936 }, 937 "TargetArn":{ 938 "type":"string", 939 "min":1, 940 "max":1600 941 }, 942 "TargetId":{ 943 "type":"string", 944 "min":1, 945 "max":64, 946 "pattern":"[\\.\\-_A-Za-z0-9]+" 947 }, 948 "TargetIdList":{ 949 "type":"list", 950 "member":{"shape":"TargetId"}, 951 "min":1, 952 "max":100 953 }, 954 "TargetInput":{ 955 "type":"string", 956 "max":8192 957 }, 958 "TargetInputPath":{ 959 "type":"string", 960 "max":256 961 }, 962 "TargetList":{ 963 "type":"list", 964 "member":{"shape":"Target"} 965 }, 966 "TestEventPatternRequest":{ 967 "type":"structure", 968 "required":[ 969 "EventPattern", 970 "Event" 971 ], 972 "members":{ 973 "EventPattern":{ 974 "shape":"EventPattern", 975 "documentation":"<p>The event pattern you want to test.</p>" 976 }, 977 "Event":{ 978 "shape":"String", 979 "documentation":"<p>The event in the JSON format to test against the event pattern.</p>" 980 } 981 }, 982 "documentation":"<p>Container for the parameters to the <a>TestEventPattern</a> operation.</p>" 983 }, 984 "TestEventPatternResponse":{ 985 "type":"structure", 986 "members":{ 987 "Result":{ 988 "shape":"Boolean", 989 "documentation":"<p>Indicates whether the event matches the event pattern.</p>" 990 } 991 }, 992 "documentation":"<p>The result of the <a>TestEventPattern</a> operation.</p>" 993 } 994 }, 995 "examples":{ 996 } 997} 998