Cloudflare v6.3.0 published on Tuesday, Jun 10, 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",
queueId: "queue_id",
});
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",
queue_id="queue_id")
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",
QueueId: "queue_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
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",
QueueId = "queue_id",
});
});
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")
.queueId("queue_id")
.build());
}
}
variables:
exampleR2BucketEventNotification:
fn::invoke:
function: cloudflare:getR2BucketEventNotification
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
bucketName: example-bucket
queueId: queue_id
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>
def get_r2_bucket_event_notification(account_id: Optional[str] = None,
bucket_name: Optional[str] = None,
queue_id: 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,
queue_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetR2BucketEventNotificationResult]
func LookupR2BucketEventNotification(ctx *Context, args *LookupR2BucketEventNotificationArgs, opts ...InvokeOption) (*LookupR2BucketEventNotificationResult, error)
func LookupR2BucketEventNotificationOutput(ctx *Context, args *LookupR2BucketEventNotificationOutputArgs, opts ...InvokeOption) LookupR2BucketEventNotificationResultOutput
> 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)
}
public static CompletableFuture<GetR2BucketEventNotificationResult> getR2BucketEventNotification(GetR2BucketEventNotificationArgs args, InvokeOptions options)
public static Output<GetR2BucketEventNotificationResult> getR2BucketEventNotification(GetR2BucketEventNotificationArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getR2BucketEventNotification:getR2BucketEventNotification
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Account ID.
- Bucket
Name string - Name of the bucket.
- Queue
Id string - Queue ID.
- Account
Id string - Account ID.
- Bucket
Name string - Name of the bucket.
- Queue
Id string - Queue ID.
- account
Id String - Account ID.
- bucket
Name String - Name of the bucket.
- queue
Id String - Queue ID.
- account
Id string - Account ID.
- bucket
Name string - Name of the bucket.
- queue
Id string - Queue ID.
- account_
id str - Account ID.
- bucket_
name str - Name of the bucket.
- queue_
id str - Queue ID.
- account
Id String - Account ID.
- bucket
Name String - Name of the bucket.
- queue
Id String - Queue ID.
getR2BucketEventNotification Result
The following output properties are available:
- Abort
Multipart GetUploads Transition R2Bucket Event Notification Abort Multipart Uploads Transition - Transition to abort ongoing multipart uploads.
- Account
Id string - Account ID.
- Bucket
Name string - Name of the bucket.
- Conditions
Get
R2Bucket Event Notification Conditions - Conditions that apply to all transitions of this rule.
- Delete
Objects GetTransition R2Bucket Event Notification Delete Objects Transition - Transition to delete objects.
- Enabled bool
- Whether or not this rule is in effect.
- Id string
- Unique identifier for this rule.
- Queue
Id string - Queue ID.
- Storage
Class List<GetTransitions R2Bucket Event Notification Storage Class Transition> - Transitions to change the storage class of objects.
- Abort
Multipart GetUploads Transition R2Bucket Event Notification Abort Multipart Uploads Transition - Transition to abort ongoing multipart uploads.
- Account
Id string - Account ID.
- Bucket
Name string - Name of the bucket.
- Conditions
Get
R2Bucket Event Notification Conditions - Conditions that apply to all transitions of this rule.
- Delete
Objects GetTransition R2Bucket Event Notification Delete Objects Transition - Transition to delete objects.
- Enabled bool
- Whether or not this rule is in effect.
- Id string
- Unique identifier for this rule.
- Queue
Id string - Queue ID.
- Storage
Class []GetTransitions R2Bucket Event Notification Storage Class Transition - Transitions to change the storage class of objects.
- abort
Multipart GetUploads Transition R2Bucket Event Notification Abort Multipart Uploads Transition - Transition to abort ongoing multipart uploads.
- account
Id String - Account ID.
- bucket
Name String - Name of the bucket.
- conditions
Get
R2Bucket Event Notification Conditions - Conditions that apply to all transitions of this rule.
- delete
Objects GetTransition R2Bucket Event Notification Delete Objects Transition - Transition to delete objects.
- enabled Boolean
- Whether or not this rule is in effect.
- id String
- Unique identifier for this rule.
- queue
Id String - Queue ID.
- storage
Class List<GetTransitions R2Bucket Event Notification Storage Class Transition> - Transitions to change the storage class of objects.
- abort
Multipart GetUploads Transition R2Bucket Event Notification Abort Multipart Uploads Transition - Transition to abort ongoing multipart uploads.
- account
Id string - Account ID.
- bucket
Name string - Name of the bucket.
- conditions
Get
R2Bucket Event Notification Conditions - Conditions that apply to all transitions of this rule.
- delete
Objects GetTransition R2Bucket Event Notification Delete Objects Transition - Transition to delete objects.
- enabled boolean
- Whether or not this rule is in effect.
- id string
- Unique identifier for this rule.
- queue
Id string - Queue ID.
- storage
Class GetTransitions R2Bucket Event Notification Storage Class Transition[] - Transitions to change the storage class of objects.
- abort_
multipart_ Getuploads_ transition R2Bucket Event Notification Abort Multipart Uploads Transition - Transition to abort ongoing multipart uploads.
- account_
id str - Account ID.
- bucket_
name str - Name of the bucket.
- conditions
Get
R2Bucket Event Notification Conditions - Conditions that apply to all transitions of this rule.
- delete_
objects_ Gettransition R2Bucket Event Notification Delete Objects Transition - Transition to delete objects.
- enabled bool
- Whether or not this rule is in effect.
- id str
- Unique identifier for this rule.
- queue_
id str - Queue ID.
- storage_
class_ Sequence[Gettransitions R2Bucket Event Notification Storage Class Transition] - Transitions to change the storage class of objects.
- abort
Multipart Property MapUploads Transition - Transition to abort ongoing multipart uploads.
- account
Id String - Account ID.
- bucket
Name String - Name of the bucket.
- conditions Property Map
- Conditions that apply to all transitions of this rule.
- delete
Objects Property MapTransition - Transition to delete objects.
- enabled Boolean
- Whether or not this rule is in effect.
- id String
- Unique identifier for this rule.
- queue
Id String - Queue ID.
- storage
Class List<Property Map>Transitions - Transitions to change the storage class of objects.
Supporting Types
GetR2BucketEventNotificationAbortMultipartUploadsTransition
- Condition
Get
R2Bucket Event Notification Abort Multipart Uploads Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- Condition
Get
R2Bucket Event Notification Abort Multipart Uploads Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- condition
Get
R2Bucket Event Notification Abort Multipart Uploads Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- condition
Get
R2Bucket Event Notification Abort Multipart Uploads Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- condition
Get
R2Bucket Event Notification Abort Multipart Uploads Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- condition Property Map
- Condition for lifecycle transitions to apply after an object reaches an age in seconds.
GetR2BucketEventNotificationAbortMultipartUploadsTransitionCondition
GetR2BucketEventNotificationConditions
- Prefix string
- Transitions will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads.
- Prefix string
- Transitions will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads.
- prefix String
- Transitions will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads.
- prefix string
- Transitions will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads.
- prefix str
- Transitions will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads.
- prefix String
- Transitions will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads.
GetR2BucketEventNotificationDeleteObjectsTransition
- Condition
Get
R2Bucket Event Notification Delete Objects Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- Condition
Get
R2Bucket Event Notification Delete Objects Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- condition
Get
R2Bucket Event Notification Delete Objects Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- condition
Get
R2Bucket Event Notification Delete Objects Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- condition
Get
R2Bucket Event Notification Delete Objects Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- condition Property Map
- Condition for lifecycle transitions to apply after an object reaches an age in seconds.
GetR2BucketEventNotificationDeleteObjectsTransitionCondition
GetR2BucketEventNotificationStorageClassTransition
- Condition
Get
R2Bucket Event Notification Storage Class Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- Storage
Class string - Available values: "InfrequentAccess".
- Condition
Get
R2Bucket Event Notification Storage Class Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- Storage
Class string - Available values: "InfrequentAccess".
- condition
Get
R2Bucket Event Notification Storage Class Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- storage
Class String - Available values: "InfrequentAccess".
- condition
Get
R2Bucket Event Notification Storage Class Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- storage
Class string - Available values: "InfrequentAccess".
- condition
Get
R2Bucket Event Notification Storage Class Transition Condition - Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- storage_
class str - Available values: "InfrequentAccess".
- condition Property Map
- Condition for lifecycle transitions to apply after an object reaches an age in seconds.
- storage
Class String - Available values: "InfrequentAccess".
GetR2BucketEventNotificationStorageClassTransitionCondition
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.