Webhook constructor
Webhook(
- String name, {
- WebhookArgs? args,
- CustomResourceOptions? options,
Creates a new Webhook.
name The Pulumi resource name.
args Arguments used to configure this Webhook. The set of arguments for Webhook.
options Resource options controlling this resource's behavior.
Implementation
Webhook(
String name, {
WebhookArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:codebuild/webhook:Webhook',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
additionalSecretOutputs: const ['secret'],
) {
branchFilter = registerOutput<String?>('branchFilter');
buildType = registerOutput<String?>('buildType');
filterGroups = registerOutput<List<WebhookFilterGroup>?>('filterGroups', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<WebhookFilterGroup>(guardedValue, (value) => WebhookFilterGroup.fromMap((value as Map).cast<String, dynamic>())); });
manualCreation = registerOutput<bool?>('manualCreation');
payloadUrl = registerOutput<String>('payloadUrl');
projectName = registerOutput<String>('projectName');
pullRequestBuildPolicy = registerOutput<WebhookPullRequestBuildPolicy>('pullRequestBuildPolicy', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return WebhookPullRequestBuildPolicy.fromMap((guardedValue as Map).cast<String, dynamic>()); });
region = registerOutput<String>('region');
scopeConfiguration = registerOutput<WebhookScopeConfiguration?>('scopeConfiguration', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return WebhookScopeConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>()); });
secret = registerOutput<String>('secret', isSecret: true);
url = registerOutput<String>('url');
}