Mengaktifkan aturan event.
Deskripsi operasi
Anda dapat memanggil operasi API ini untuk mengaktifkan aturan event.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:EnableRule |
update |
*Rule
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EventBusName |
string |
Yes |
Nama event bus. |
MyEventBus |
| RuleName |
string |
Yes |
Nama aturan event. |
ramrolechange |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
Pesan kesalahan yang dikembalikan jika permintaan gagal. |
EventRuleNotExisted |
| RequestId |
string |
ID permintaan. |
580A938B-6107-586C-8EC7-F22EEBEDA9E6 |
| Code |
string |
Kode kesalahan. Nilai Success menunjukkan bahwa permintaan berhasil. |
Success |
| Success |
boolean |
Menunjukkan apakah operasi berhasil. Nilai yang valid: true dan false. |
true |
Contoh
Respons sukses
JSONformat
{
"Message": "EventRuleNotExisted",
"RequestId": "580A938B-6107-586C-8EC7-F22EEBEDA9E6",
"Code": "Success",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.