BucketNotification constructor

BucketNotification(
  1. String name, {
  2. BucketNotificationArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

BucketNotification(
  String name, {
  BucketNotificationArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:s3/bucketNotification:BucketNotification',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  bucket = registerOutput<String>('bucket');
  eventbridge = registerOutput<bool?>('eventbridge');
  lambdaFunctions = registerOutput<List<BucketNotificationLambdaFunction>?>('lambdaFunctions', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BucketNotificationLambdaFunction>(guardedValue, (value) => BucketNotificationLambdaFunction.fromMap((value as Map).cast<String, dynamic>())); });
  queues = registerOutput<List<BucketNotificationQueue>?>('queues', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BucketNotificationQueue>(guardedValue, (value) => BucketNotificationQueue.fromMap((value as Map).cast<String, dynamic>())); });
  region = registerOutput<String>('region');
  topics = registerOutput<List<BucketNotificationTopic>?>('topics', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BucketNotificationTopic>(guardedValue, (value) => BucketNotificationTopic.fromMap((value as Map).cast<String, dynamic>())); });
}