Notification constructor

Notification(
  1. String name, {
  2. NotificationArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new Notification. name The Pulumi resource name. args Arguments used to configure this Notification. The set of arguments for Notification. options Resource options controlling this resource's behavior.

Implementation

Notification(
  String name, {
  NotificationArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:storage/notification:Notification',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
      ) {
  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');
}