UpdateAgent
Updates a custom agent.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:UpdateAgent |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The name of the agent. |
my-agent |
| Description |
string |
No |
The description of the event source. |
MNS的过滤规则 |
| Prompt |
string |
No |
You are an IoT data analytics assistant... |
瑞士冻结马杜罗在瑞资产 |
| Metadata |
object |
No |
The associated metadata. |
|
| Attachments |
array<object> |
No |
The attached metadata objects. |
|
|
object |
No |
The array of attached metadata objects. |
||
| MimeType |
string |
No |
The object type of the attached metadata. |
inner-resource/event-table |
| Arn |
string |
No |
The ARN of the attached metadata object. |
acs:eventbridge:cn-hangzhou:12345:eventhouse/system-rocketmq/namespace/rmq-cn-xxx/table/order |
| ClientToken |
string |
No |
The client-generated request token. Used to ensure the idempotence of the request. Note: This parameter value is generated by the client. It must be unique across different requests and cannot exceed 64 ASCII characters in length. |
TF-CreateRule-1652253755-aa33f762-7e99-4aee-bd27-d3370afa5625 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Message |
string |
The error message. |
InvalidArgument |
| RequestId |
string |
The request ID. |
382E6272-XXXXX-A8AF0BFAC1A5 |
| Data |
object |
Indicates whether the operation was successful. |
|
| AgentArn |
string |
Agent ARN |
acs:eventbridge:{region}:{accountId}:agent/{agentName} |
| Code |
string |
The response code. Valid values:
|
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.