We recommend new projects start with resources from the AWS provider.
aws-native.codepipeline.Webhook
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::CodePipeline::Webhook
Create Webhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Webhook(name: string, args: WebhookArgs, opts?: CustomResourceOptions);
@overload
def Webhook(resource_name: str,
args: WebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Webhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
authentication: Optional[WebhookAuthentication] = None,
authentication_configuration: Optional[WebhookAuthConfigurationArgs] = None,
filters: Optional[Sequence[WebhookFilterRuleArgs]] = None,
target_action: Optional[str] = None,
target_pipeline: Optional[str] = None,
name: Optional[str] = None,
register_with_third_party: Optional[bool] = None,
target_pipeline_version: Optional[int] = None)
func NewWebhook(ctx *Context, name string, args WebhookArgs, opts ...ResourceOption) (*Webhook, error)
public Webhook(string name, WebhookArgs args, CustomResourceOptions? opts = null)
public Webhook(String name, WebhookArgs args)
public Webhook(String name, WebhookArgs args, CustomResourceOptions options)
type: aws-native:codepipeline:Webhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Webhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Webhook resource accepts the following input properties:
- Authentication
Pulumi.
Aws Native. Code Pipeline. Webhook Authentication - Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
- Authentication
Configuration Pulumi.Aws Native. Code Pipeline. Inputs. Webhook Auth Configuration - Properties that configure the authentication applied to incoming webhook trigger requests
- Filters
List<Pulumi.
Aws Native. Code Pipeline. Inputs. Webhook Filter Rule> - A list of rules applied to the body/payload sent in the POST request to a webhook URL
- Target
Action string - The name of the action in a pipeline you want to connect to the webhook.
- Target
Pipeline string - The name of the pipeline you want to connect to the webhook.
- Name string
- The name of the webhook
- Register
With boolThird Party - Configures a connection between the webhook that was created and the external tool with events to be detected.
- Target
Pipeline intVersion - The version number of the pipeline to be connected to the trigger request.
- Authentication
Webhook
Authentication - Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
- Authentication
Configuration WebhookAuth Configuration Args - Properties that configure the authentication applied to incoming webhook trigger requests
- Filters
[]Webhook
Filter Rule Args - A list of rules applied to the body/payload sent in the POST request to a webhook URL
- Target
Action string - The name of the action in a pipeline you want to connect to the webhook.
- Target
Pipeline string - The name of the pipeline you want to connect to the webhook.
- Name string
- The name of the webhook
- Register
With boolThird Party - Configures a connection between the webhook that was created and the external tool with events to be detected.
- Target
Pipeline intVersion - The version number of the pipeline to be connected to the trigger request.
- authentication
Webhook
Authentication - Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
- authentication
Configuration WebhookAuth Configuration - Properties that configure the authentication applied to incoming webhook trigger requests
- filters
List<Webhook
Filter Rule> - A list of rules applied to the body/payload sent in the POST request to a webhook URL
- target
Action String - The name of the action in a pipeline you want to connect to the webhook.
- target
Pipeline String - The name of the pipeline you want to connect to the webhook.
- name String
- The name of the webhook
- register
With BooleanThird Party - Configures a connection between the webhook that was created and the external tool with events to be detected.
- target
Pipeline IntegerVersion - The version number of the pipeline to be connected to the trigger request.
- authentication
Webhook
Authentication - Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
- authentication
Configuration WebhookAuth Configuration - Properties that configure the authentication applied to incoming webhook trigger requests
- filters
Webhook
Filter Rule[] - A list of rules applied to the body/payload sent in the POST request to a webhook URL
- target
Action string - The name of the action in a pipeline you want to connect to the webhook.
- target
Pipeline string - The name of the pipeline you want to connect to the webhook.
- name string
- The name of the webhook
- register
With booleanThird Party - Configures a connection between the webhook that was created and the external tool with events to be detected.
- target
Pipeline numberVersion - The version number of the pipeline to be connected to the trigger request.
- authentication
Webhook
Authentication - Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
- authentication_
configuration WebhookAuth Configuration Args - Properties that configure the authentication applied to incoming webhook trigger requests
- filters
Sequence[Webhook
Filter Rule Args] - A list of rules applied to the body/payload sent in the POST request to a webhook URL
- target_
action str - The name of the action in a pipeline you want to connect to the webhook.
- target_
pipeline str - The name of the pipeline you want to connect to the webhook.
- name str
- The name of the webhook
- register_
with_ boolthird_ party - Configures a connection between the webhook that was created and the external tool with events to be detected.
- target_
pipeline_ intversion - The version number of the pipeline to be connected to the trigger request.
- authentication "GITHUB_HMAC" | "IP" | "UNAUTHENTICATED"
- Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
- authentication
Configuration Property Map - Properties that configure the authentication applied to incoming webhook trigger requests
- filters List<Property Map>
- A list of rules applied to the body/payload sent in the POST request to a webhook URL
- target
Action String - The name of the action in a pipeline you want to connect to the webhook.
- target
Pipeline String - The name of the pipeline you want to connect to the webhook.
- name String
- The name of the webhook
- register
With BooleanThird Party - Configures a connection between the webhook that was created and the external tool with events to be detected.
- target
Pipeline NumberVersion - The version number of the pipeline to be connected to the trigger request.
Outputs
All input properties are implicitly available as output properties. Additionally, the Webhook resource produces the following output properties:
Supporting Types
WebhookAuthConfiguration, WebhookAuthConfigurationArgs
- Allowed
Ip stringRange - The property used to configure acceptance of webhooks in an IP address range. For IP, only the AllowedIPRange property must be set. This property must be set to a valid CIDR range.
- Secret
Token string - The property used to configure GitHub authentication. For GITHUB_HMAC, only the SecretToken property must be set.
- Allowed
Ip stringRange - The property used to configure acceptance of webhooks in an IP address range. For IP, only the AllowedIPRange property must be set. This property must be set to a valid CIDR range.
- Secret
Token string - The property used to configure GitHub authentication. For GITHUB_HMAC, only the SecretToken property must be set.
- allowed
Ip StringRange - The property used to configure acceptance of webhooks in an IP address range. For IP, only the AllowedIPRange property must be set. This property must be set to a valid CIDR range.
- secret
Token String - The property used to configure GitHub authentication. For GITHUB_HMAC, only the SecretToken property must be set.
- allowed
Ip stringRange - The property used to configure acceptance of webhooks in an IP address range. For IP, only the AllowedIPRange property must be set. This property must be set to a valid CIDR range.
- secret
Token string - The property used to configure GitHub authentication. For GITHUB_HMAC, only the SecretToken property must be set.
- allowed_
ip_ strrange - The property used to configure acceptance of webhooks in an IP address range. For IP, only the AllowedIPRange property must be set. This property must be set to a valid CIDR range.
- secret_
token str - The property used to configure GitHub authentication. For GITHUB_HMAC, only the SecretToken property must be set.
- allowed
Ip StringRange - The property used to configure acceptance of webhooks in an IP address range. For IP, only the AllowedIPRange property must be set. This property must be set to a valid CIDR range.
- secret
Token String - The property used to configure GitHub authentication. For GITHUB_HMAC, only the SecretToken property must be set.
WebhookAuthentication, WebhookAuthenticationArgs
- Github
Hmac - GITHUB_HMAC
- Ip
- IP
- Unauthenticated
- UNAUTHENTICATED
- Webhook
Authentication Github Hmac - GITHUB_HMAC
- Webhook
Authentication Ip - IP
- Webhook
Authentication Unauthenticated - UNAUTHENTICATED
- Github
Hmac - GITHUB_HMAC
- Ip
- IP
- Unauthenticated
- UNAUTHENTICATED
- Github
Hmac - GITHUB_HMAC
- Ip
- IP
- Unauthenticated
- UNAUTHENTICATED
- GITHUB_HMAC
- GITHUB_HMAC
- IP
- IP
- UNAUTHENTICATED
- UNAUTHENTICATED
- "GITHUB_HMAC"
- GITHUB_HMAC
- "IP"
- IP
- "UNAUTHENTICATED"
- UNAUTHENTICATED
WebhookFilterRule, WebhookFilterRuleArgs
- Json
Path string - A JsonPath expression that is applied to the body/payload of the webhook. The value selected by the JsonPath expression must match the value specified in the MatchEquals field. Otherwise, the request is ignored.
- Match
Equals string - The value selected by the JsonPath expression must match what is supplied in the MatchEquals field. Otherwise, the request is ignored.
- Json
Path string - A JsonPath expression that is applied to the body/payload of the webhook. The value selected by the JsonPath expression must match the value specified in the MatchEquals field. Otherwise, the request is ignored.
- Match
Equals string - The value selected by the JsonPath expression must match what is supplied in the MatchEquals field. Otherwise, the request is ignored.
- json
Path String - A JsonPath expression that is applied to the body/payload of the webhook. The value selected by the JsonPath expression must match the value specified in the MatchEquals field. Otherwise, the request is ignored.
- match
Equals String - The value selected by the JsonPath expression must match what is supplied in the MatchEquals field. Otherwise, the request is ignored.
- json
Path string - A JsonPath expression that is applied to the body/payload of the webhook. The value selected by the JsonPath expression must match the value specified in the MatchEquals field. Otherwise, the request is ignored.
- match
Equals string - The value selected by the JsonPath expression must match what is supplied in the MatchEquals field. Otherwise, the request is ignored.
- json_
path str - A JsonPath expression that is applied to the body/payload of the webhook. The value selected by the JsonPath expression must match the value specified in the MatchEquals field. Otherwise, the request is ignored.
- match_
equals str - The value selected by the JsonPath expression must match what is supplied in the MatchEquals field. Otherwise, the request is ignored.
- json
Path String - A JsonPath expression that is applied to the body/payload of the webhook. The value selected by the JsonPath expression must match the value specified in the MatchEquals field. Otherwise, the request is ignored.
- match
Equals String - The value selected by the JsonPath expression must match what is supplied in the MatchEquals field. Otherwise, the request is ignored.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.