Webhook.reference constructor
Webhook.reference(
- String urn
Creates a typed reference to an existing Webhook resource.
Implementation
Webhook.reference(String urn)
: super(
'aws:codebuild/webhook:Webhook',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
additionalSecretOutputs: const ['secret'],
isResourceReference: true,
) {
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');
}