EventRule.reference constructor
EventRule.reference(
- String urn
Creates a typed reference to an existing EventRule resource.
Implementation
EventRule.reference(String urn)
: super(
'aws:notifications/eventRule:EventRule',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
arn = registerOutput<String>('arn');
eventPattern = registerOutput<String?>('eventPattern');
eventType = registerOutput<String>('eventType');
notificationConfigurationArn = registerOutput<String>('notificationConfigurationArn');
regions = registerOutput<List<String>>('regions', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
source = registerOutput<String>('source');
}