create_pipeline_webhook
Set up a webhook to automatically trigger AWS CodePipeline actions by defining pipeline name, webhook name, target action, authentication, and event filters.
Instructions
Create a webhook for a pipeline to enable automatic triggering
Input Schema
Name | Required | Description | Default |
---|---|---|---|
authentication | Yes | Authentication method for the webhook | |
authenticationConfiguration | No | Authentication configuration based on the authentication type | |
filters | No | Event filters for the webhook | |
pipelineName | Yes | Name of the pipeline | |
targetAction | Yes | The name of the action in the pipeline that processes the webhook | |
webhookName | Yes | Name for the webhook |
Input Schema (JSON Schema)
{
"properties": {
"authentication": {
"description": "Authentication method for the webhook",
"enum": [
"GITHUB_HMAC",
"IP",
"UNAUTHENTICATED"
],
"type": "string"
},
"authenticationConfiguration": {
"description": "Authentication configuration based on the authentication type",
"properties": {
"AllowedIpRange": {
"description": "Allowed IP range for IP authentication",
"type": "string"
},
"SecretToken": {
"description": "Secret token for GITHUB_HMAC authentication",
"type": "string"
}
},
"type": "object"
},
"filters": {
"description": "Event filters for the webhook",
"items": {
"properties": {
"jsonPath": {
"description": "JSON path to filter events",
"type": "string"
},
"matchEquals": {
"description": "Value to match in the JSON path",
"type": "string"
}
},
"required": [
"jsonPath"
],
"type": "object"
},
"type": "array"
},
"pipelineName": {
"description": "Name of the pipeline",
"type": "string"
},
"targetAction": {
"description": "The name of the action in the pipeline that processes the webhook",
"type": "string"
},
"webhookName": {
"description": "Name for the webhook",
"type": "string"
}
},
"required": [
"pipelineName",
"webhookName",
"targetAction",
"authentication"
],
"type": "object"
}