Notification.reference constructor

Notification.reference(
  1. String urn
)

Creates a typed reference to an existing Notification resource.

Implementation

Notification.reference(String urn)
  : super(
      'gcp:storage/notification:Notification',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  bucket = registerOutput<String>('bucket');
  customAttributes = registerOutput<Map<String, String>?>('customAttributes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  eventTypes = registerOutput<List<String>?>('eventTypes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  notificationId = registerOutput<String>('notificationId');
  objectNamePrefix = registerOutput<String?>('objectNamePrefix');
  payloadFormat = registerOutput<String>('payloadFormat');
  selfLink = registerOutput<String>('selfLink');
  topic = registerOutput<String>('topic');
}