1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getR2BucketEventNotification
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getR2BucketEventNotification

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleR2BucketEventNotification = cloudflare.getR2BucketEventNotification({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    bucketName: "example-bucket",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_r2_bucket_event_notification = cloudflare.get_r2_bucket_event_notification(account_id="023e105f4ecef8ad9ca31a8372d0c353",
    bucket_name="example-bucket")
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.LookupR2BucketEventNotification(ctx, &cloudflare.LookupR2BucketEventNotificationArgs{
			AccountId:  "023e105f4ecef8ad9ca31a8372d0c353",
			BucketName: "example-bucket",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleR2BucketEventNotification = Cloudflare.GetR2BucketEventNotification.Invoke(new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        BucketName = "example-bucket",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetR2BucketEventNotificationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var exampleR2BucketEventNotification = CloudflareFunctions.getR2BucketEventNotification(GetR2BucketEventNotificationArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .bucketName("example-bucket")
            .build());

    }
}
Copy
variables:
  exampleR2BucketEventNotification:
    fn::invoke:
      function: cloudflare:getR2BucketEventNotification
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
        bucketName: example-bucket
Copy

Using getR2BucketEventNotification

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getR2BucketEventNotification(args: GetR2BucketEventNotificationArgs, opts?: InvokeOptions): Promise<GetR2BucketEventNotificationResult>
function getR2BucketEventNotificationOutput(args: GetR2BucketEventNotificationOutputArgs, opts?: InvokeOptions): Output<GetR2BucketEventNotificationResult>
Copy
def get_r2_bucket_event_notification(account_id: Optional[str] = None,
                                     bucket_name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetR2BucketEventNotificationResult
def get_r2_bucket_event_notification_output(account_id: Optional[pulumi.Input[str]] = None,
                                     bucket_name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetR2BucketEventNotificationResult]
Copy
func LookupR2BucketEventNotification(ctx *Context, args *LookupR2BucketEventNotificationArgs, opts ...InvokeOption) (*LookupR2BucketEventNotificationResult, error)
func LookupR2BucketEventNotificationOutput(ctx *Context, args *LookupR2BucketEventNotificationOutputArgs, opts ...InvokeOption) LookupR2BucketEventNotificationResultOutput
Copy

> Note: This function is named LookupR2BucketEventNotification in the Go SDK.

public static class GetR2BucketEventNotification 
{
    public static Task<GetR2BucketEventNotificationResult> InvokeAsync(GetR2BucketEventNotificationArgs args, InvokeOptions? opts = null)
    public static Output<GetR2BucketEventNotificationResult> Invoke(GetR2BucketEventNotificationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetR2BucketEventNotificationResult> getR2BucketEventNotification(GetR2BucketEventNotificationArgs args, InvokeOptions options)
public static Output<GetR2BucketEventNotificationResult> getR2BucketEventNotification(GetR2BucketEventNotificationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getR2BucketEventNotification:getR2BucketEventNotification
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Account ID
BucketName This property is required. string
Name of the bucket
AccountId This property is required. string
Account ID
BucketName This property is required. string
Name of the bucket
accountId This property is required. String
Account ID
bucketName This property is required. String
Name of the bucket
accountId This property is required. string
Account ID
bucketName This property is required. string
Name of the bucket
account_id This property is required. str
Account ID
bucket_name This property is required. str
Name of the bucket
accountId This property is required. String
Account ID
bucketName This property is required. String
Name of the bucket

getR2BucketEventNotification Result

The following output properties are available:

AccountId string
Account ID
BucketName string
Name of the bucket
Id string
The provider-assigned unique ID for this managed resource.
Queues List<GetR2BucketEventNotificationQueue>
List of queues associated with the bucket.
AccountId string
Account ID
BucketName string
Name of the bucket
Id string
The provider-assigned unique ID for this managed resource.
Queues []GetR2BucketEventNotificationQueue
List of queues associated with the bucket.
accountId String
Account ID
bucketName String
Name of the bucket
id String
The provider-assigned unique ID for this managed resource.
queues List<GetR2BucketEventNotificationQueue>
List of queues associated with the bucket.
accountId string
Account ID
bucketName string
Name of the bucket
id string
The provider-assigned unique ID for this managed resource.
queues GetR2BucketEventNotificationQueue[]
List of queues associated with the bucket.
account_id str
Account ID
bucket_name str
Name of the bucket
id str
The provider-assigned unique ID for this managed resource.
queues Sequence[GetR2BucketEventNotificationQueue]
List of queues associated with the bucket.
accountId String
Account ID
bucketName String
Name of the bucket
id String
The provider-assigned unique ID for this managed resource.
queues List<Property Map>
List of queues associated with the bucket.

Supporting Types

GetR2BucketEventNotificationQueue

QueueId This property is required. string
Queue ID
QueueName This property is required. string
Name of the queue
Rules This property is required. List<GetR2BucketEventNotificationQueueRule>
QueueId This property is required. string
Queue ID
QueueName This property is required. string
Name of the queue
Rules This property is required. []GetR2BucketEventNotificationQueueRule
queueId This property is required. String
Queue ID
queueName This property is required. String
Name of the queue
rules This property is required. List<GetR2BucketEventNotificationQueueRule>
queueId This property is required. string
Queue ID
queueName This property is required. string
Name of the queue
rules This property is required. GetR2BucketEventNotificationQueueRule[]
queue_id This property is required. str
Queue ID
queue_name This property is required. str
Name of the queue
rules This property is required. Sequence[GetR2BucketEventNotificationQueueRule]
queueId This property is required. String
Queue ID
queueName This property is required. String
Name of the queue
rules This property is required. List<Property Map>

GetR2BucketEventNotificationQueueRule

Actions This property is required. List<string>
Array of R2 object actions that will trigger notifications
CreatedAt This property is required. string
Timestamp when the rule was created
Description This property is required. string
A description that can be used to identify the event notification rule after creation
Prefix This property is required. string
Notifications will be sent only for objects with this prefix
RuleId This property is required. string
Rule ID
Suffix This property is required. string
Notifications will be sent only for objects with this suffix
Actions This property is required. []string
Array of R2 object actions that will trigger notifications
CreatedAt This property is required. string
Timestamp when the rule was created
Description This property is required. string
A description that can be used to identify the event notification rule after creation
Prefix This property is required. string
Notifications will be sent only for objects with this prefix
RuleId This property is required. string
Rule ID
Suffix This property is required. string
Notifications will be sent only for objects with this suffix
actions This property is required. List<String>
Array of R2 object actions that will trigger notifications
createdAt This property is required. String
Timestamp when the rule was created
description This property is required. String
A description that can be used to identify the event notification rule after creation
prefix This property is required. String
Notifications will be sent only for objects with this prefix
ruleId This property is required. String
Rule ID
suffix This property is required. String
Notifications will be sent only for objects with this suffix
actions This property is required. string[]
Array of R2 object actions that will trigger notifications
createdAt This property is required. string
Timestamp when the rule was created
description This property is required. string
A description that can be used to identify the event notification rule after creation
prefix This property is required. string
Notifications will be sent only for objects with this prefix
ruleId This property is required. string
Rule ID
suffix This property is required. string
Notifications will be sent only for objects with this suffix
actions This property is required. Sequence[str]
Array of R2 object actions that will trigger notifications
created_at This property is required. str
Timestamp when the rule was created
description This property is required. str
A description that can be used to identify the event notification rule after creation
prefix This property is required. str
Notifications will be sent only for objects with this prefix
rule_id This property is required. str
Rule ID
suffix This property is required. str
Notifications will be sent only for objects with this suffix
actions This property is required. List<String>
Array of R2 object actions that will trigger notifications
createdAt This property is required. String
Timestamp when the rule was created
description This property is required. String
A description that can be used to identify the event notification rule after creation
prefix This property is required. String
Notifications will be sent only for objects with this prefix
ruleId This property is required. String
Rule ID
suffix This property is required. String
Notifications will be sent only for objects with this suffix

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.