

# `aws:invokeWebhook` – 调用 Automation Webhook 集成

调用指定的自动化 Webhook 集成。有关创建 Automation 集成的信息，请参阅 [为 Automation 创建 Webhook 集成](creating-webhook-integrations.md)。

**注意**  
`aws:invokeWebhook` 操作支持自动节流重试。有关更多信息，请参阅 [为节流的操作配置自动重试](automation-throttling-retry.md)。

**注意**  
要使用 `aws:invokeWebhook` 操作，您的用户或服务角色必须允许以下操作：  
ssm:GetParameter
kms:Decrypt
只有当您使用客户托管密钥加密集成的参数时，才需要 AWS Key Management Service (AWS KMS) `Decrypt` 操作的权限。

**Input**  
提供您希望调用的 Automation 集成的信息。

------
#### [ YAML ]

```yaml
action: "aws:invokeWebhook"
inputs: 
 IntegrationName: "{{exampleIntegration}}"
 Body: "{{Request body}}"
```

------
#### [ JSON ]

```json
{
    "action": "aws:invokeWebhook",
    "inputs": {
        "IntegrationName": "{{exampleIntegration}}",
        "Body": "{{Request body}}"
    }
}
```

------

IntegrationName  
Automation 集成的名称。例如 `exampleIntegration`。您指定的集成必须已存在。  
类型：字符串  
是否必需：是

Body  
调用 Webhook 集成时要发送的有效负载。  
类型：字符串  
必需：否Output

响应  
从 Webhook 提供商响应中收到的文本。

ResponseCode  
从 Webhook 提供商响应中收到的 HTTP 状态代码。