Webhook.reference constructor
Webhook.reference(
- String urn
Creates a typed reference to an existing Webhook resource.
Implementation
Webhook.reference(String urn)
: super(
'aws:codepipeline/webhook:Webhook',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
arn = registerOutput<String>('arn');
authentication = registerOutput<String>('authentication');
authenticationConfiguration = registerOutput<WebhookAuthenticationConfiguration?>('authenticationConfiguration', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return WebhookAuthenticationConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>()); });
filters = registerOutput<List<WebhookFilter>>('filters', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<WebhookFilter>(guardedValue, (value) => WebhookFilter.fromMap((value as Map).cast<String, dynamic>())); });
this.name = registerOutput<String>('name');
region = registerOutput<String>('region');
tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
targetAction = registerOutput<String>('targetAction');
targetPipeline = registerOutput<String>('targetPipeline');
url = registerOutput<String>('url');
}