1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getR2BucketEventNotification
Cloudflare v6.3.0 published on Tuesday, Jun 10, 2025 by Pulumi

cloudflare.getR2BucketEventNotification

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.3.0 published on Tuesday, Jun 10, 2025 by Pulumi

    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:

    AccountId string
    Account ID.
    BucketName string
    Name of the bucket.
    QueueId string
    Queue ID.
    AccountId string
    Account ID.
    BucketName string
    Name of the bucket.
    QueueId string
    Queue ID.
    accountId String
    Account ID.
    bucketName String
    Name of the bucket.
    queueId String
    Queue ID.
    accountId string
    Account ID.
    bucketName string
    Name of the bucket.
    queueId string
    Queue ID.
    account_id str
    Account ID.
    bucket_name str
    Name of the bucket.
    queue_id str
    Queue ID.
    accountId String
    Account ID.
    bucketName String
    Name of the bucket.
    queueId String
    Queue ID.

    getR2BucketEventNotification Result

    The following output properties are available:

    AbortMultipartUploadsTransition GetR2BucketEventNotificationAbortMultipartUploadsTransition
    Transition to abort ongoing multipart uploads.
    AccountId string
    Account ID.
    BucketName string
    Name of the bucket.
    Conditions GetR2BucketEventNotificationConditions
    Conditions that apply to all transitions of this rule.
    DeleteObjectsTransition GetR2BucketEventNotificationDeleteObjectsTransition
    Transition to delete objects.
    Enabled bool
    Whether or not this rule is in effect.
    Id string
    Unique identifier for this rule.
    QueueId string
    Queue ID.
    StorageClassTransitions List<GetR2BucketEventNotificationStorageClassTransition>
    Transitions to change the storage class of objects.
    AbortMultipartUploadsTransition GetR2BucketEventNotificationAbortMultipartUploadsTransition
    Transition to abort ongoing multipart uploads.
    AccountId string
    Account ID.
    BucketName string
    Name of the bucket.
    Conditions GetR2BucketEventNotificationConditions
    Conditions that apply to all transitions of this rule.
    DeleteObjectsTransition GetR2BucketEventNotificationDeleteObjectsTransition
    Transition to delete objects.
    Enabled bool
    Whether or not this rule is in effect.
    Id string
    Unique identifier for this rule.
    QueueId string
    Queue ID.
    StorageClassTransitions []GetR2BucketEventNotificationStorageClassTransition
    Transitions to change the storage class of objects.
    abortMultipartUploadsTransition GetR2BucketEventNotificationAbortMultipartUploadsTransition
    Transition to abort ongoing multipart uploads.
    accountId String
    Account ID.
    bucketName String
    Name of the bucket.
    conditions GetR2BucketEventNotificationConditions
    Conditions that apply to all transitions of this rule.
    deleteObjectsTransition GetR2BucketEventNotificationDeleteObjectsTransition
    Transition to delete objects.
    enabled Boolean
    Whether or not this rule is in effect.
    id String
    Unique identifier for this rule.
    queueId String
    Queue ID.
    storageClassTransitions List<GetR2BucketEventNotificationStorageClassTransition>
    Transitions to change the storage class of objects.
    abortMultipartUploadsTransition GetR2BucketEventNotificationAbortMultipartUploadsTransition
    Transition to abort ongoing multipart uploads.
    accountId string
    Account ID.
    bucketName string
    Name of the bucket.
    conditions GetR2BucketEventNotificationConditions
    Conditions that apply to all transitions of this rule.
    deleteObjectsTransition GetR2BucketEventNotificationDeleteObjectsTransition
    Transition to delete objects.
    enabled boolean
    Whether or not this rule is in effect.
    id string
    Unique identifier for this rule.
    queueId string
    Queue ID.
    storageClassTransitions GetR2BucketEventNotificationStorageClassTransition[]
    Transitions to change the storage class of objects.
    abort_multipart_uploads_transition GetR2BucketEventNotificationAbortMultipartUploadsTransition
    Transition to abort ongoing multipart uploads.
    account_id str
    Account ID.
    bucket_name str
    Name of the bucket.
    conditions GetR2BucketEventNotificationConditions
    Conditions that apply to all transitions of this rule.
    delete_objects_transition GetR2BucketEventNotificationDeleteObjectsTransition
    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_transitions Sequence[GetR2BucketEventNotificationStorageClassTransition]
    Transitions to change the storage class of objects.
    abortMultipartUploadsTransition Property Map
    Transition to abort ongoing multipart uploads.
    accountId String
    Account ID.
    bucketName String
    Name of the bucket.
    conditions Property Map
    Conditions that apply to all transitions of this rule.
    deleteObjectsTransition Property Map
    Transition to delete objects.
    enabled Boolean
    Whether or not this rule is in effect.
    id String
    Unique identifier for this rule.
    queueId String
    Queue ID.
    storageClassTransitions List<Property Map>
    Transitions to change the storage class of objects.

    Supporting Types

    GetR2BucketEventNotificationAbortMultipartUploadsTransition

    Condition GetR2BucketEventNotificationAbortMultipartUploadsTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    Condition GetR2BucketEventNotificationAbortMultipartUploadsTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    condition GetR2BucketEventNotificationAbortMultipartUploadsTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    condition GetR2BucketEventNotificationAbortMultipartUploadsTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    condition GetR2BucketEventNotificationAbortMultipartUploadsTransitionCondition
    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

    MaxAge int
    Type string
    Available values: "Age".
    MaxAge int
    Type string
    Available values: "Age".
    maxAge Integer
    type String
    Available values: "Age".
    maxAge number
    type string
    Available values: "Age".
    max_age int
    type str
    Available values: "Age".
    maxAge Number
    type String
    Available values: "Age".

    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 GetR2BucketEventNotificationDeleteObjectsTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    Condition GetR2BucketEventNotificationDeleteObjectsTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    condition GetR2BucketEventNotificationDeleteObjectsTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    condition GetR2BucketEventNotificationDeleteObjectsTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    condition GetR2BucketEventNotificationDeleteObjectsTransitionCondition
    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

    Date string
    MaxAge int
    Type string
    Available values: "Age", "Date".
    Date string
    MaxAge int
    Type string
    Available values: "Age", "Date".
    date String
    maxAge Integer
    type String
    Available values: "Age", "Date".
    date string
    maxAge number
    type string
    Available values: "Age", "Date".
    date str
    max_age int
    type str
    Available values: "Age", "Date".
    date String
    maxAge Number
    type String
    Available values: "Age", "Date".

    GetR2BucketEventNotificationStorageClassTransition

    Condition GetR2BucketEventNotificationStorageClassTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    StorageClass string
    Available values: "InfrequentAccess".
    Condition GetR2BucketEventNotificationStorageClassTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    StorageClass string
    Available values: "InfrequentAccess".
    condition GetR2BucketEventNotificationStorageClassTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    storageClass String
    Available values: "InfrequentAccess".
    condition GetR2BucketEventNotificationStorageClassTransitionCondition
    Condition for lifecycle transitions to apply after an object reaches an age in seconds.
    storageClass string
    Available values: "InfrequentAccess".
    condition GetR2BucketEventNotificationStorageClassTransitionCondition
    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.
    storageClass String
    Available values: "InfrequentAccess".

    GetR2BucketEventNotificationStorageClassTransitionCondition

    Date string
    MaxAge int
    Type string
    Available values: "Age", "Date".
    Date string
    MaxAge int
    Type string
    Available values: "Age", "Date".
    date String
    maxAge Integer
    type String
    Available values: "Age", "Date".
    date string
    maxAge number
    type string
    Available values: "Age", "Date".
    date str
    max_age int
    type str
    Available values: "Age", "Date".
    date String
    maxAge Number
    type String
    Available values: "Age", "Date".

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.3.0 published on Tuesday, Jun 10, 2025 by Pulumi