Updates the configurations of an event rule.
Operation description
Updates the configurations of an event rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:UpdateRule |
update |
*Rule
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EventBusName |
string |
Yes |
The name of the event bus. |
hw-test |
| Description |
string |
No |
The description of the event bus. |
demo |
| RuleName |
string |
Yes |
The name of the event rule. |
tf-testacc-rule |
| Status |
string |
No |
The status of the event rule. Valid values: ENABLE (default): enables the event rule. DISABLE: disables the event rule. |
ENABLE |
| FilterPattern |
string |
Yes |
The event pattern, in JSON format. Valid values: stringEqual stringExpression Each field can have a maximum of five expressions in the map data structure. |
{\"source\":[\"acs.oss\"],\"type\":[\"oss:BucketQueried:GetBucketStat\"]} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The error message returned if the request failed. |
EventRuleFilterPatternSchemaError |
| RequestId |
string |
The request ID. |
7439944D-D9FC-5614-B65E-07A468988924 |
| Data |
boolean |
The result of the operation. |
true |
| Code |
string |
The response code. A value of Success indicates a successful request. For other values, see Error codes. |
200 |
| Success |
boolean |
Indicates whether the request was successful. A value of true indicates success. |
true |
Examples
Success response
JSON format
{
"Message": "EventRuleFilterPatternSchemaError",
"RequestId": "7439944D-D9FC-5614-B65E-07A468988924",
"Data": true,
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.