UpdateAgent
Update Custom Agent
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:UpdateAgent |
get |
*全部资源
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
Agent name |
my-agent |
| Description |
string |
No |
Event source description details |
Filter rules for MNS |
| Prompt |
string |
No |
You are an IoT data analysis assistant... |
Switzerland freezes Maduro's assets in Switzerland |
| Metadata |
object |
No |
Associated metadata |
|
| Attachments |
array<object> |
No |
Bound metadata objects |
|
|
object |
No |
Array of bound metadata objects |
||
| MimeType |
string |
No |
Type of the bound metadata object |
inner-resource/event-table |
| Arn |
string |
No |
ARN of the bound metadata object |
acs:eventbridge:cn-hangzhou:12345:eventhouse/system-rocketmq/namespace/rmq-cn-xxx/table/order |
| ClientToken |
string |
No |
The request token generated by the user, used to ensure the idempotency of the request. Note: This parameter value is generated by the client and must be unique across different requests, with a maximum length of 64 ASCII characters. |
TF-CreateRule-1652253755-aa33f762-7e99-4aee-bd27-d3370afa5625 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Return value |
||
| Message |
string |
Error message. |
InvalidArgument |
| RequestId |
string |
Request ID. |
382E6272-XXXXX-A8AF0BFAC1A5 |
| Data |
object |
Whether the operation was successful. |
|
| AgentArn |
string |
Agent ARN |
acs:eventbridge:{region}:{accountId}:agent/{agentName} |
| Code |
string |
API return code:
|
Success |
| Success |
boolean |
Returns true if the operation is successful. |
true |
Examples
Success response
JSON format
{
"Message": "InvalidArgument",
"RequestId": "382E6272-XXXXX-A8AF0BFAC1A5",
"Data": {
"AgentArn": "acs:eventbridge:{region}:{accountId}:agent/{agentName} "
},
"Code": "Success",
"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.