1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getR2BucketEventNotification
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getR2BucketEventNotification

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      exampleR2BucketEventNotification:
        fn::invoke:
          function: cloudflare:getR2BucketEventNotification
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            bucketName: example-bucket
    

    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,
                                         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]
    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
    AccountId string
    Account ID
    BucketName string
    Name of the bucket
    accountId String
    Account ID
    bucketName String
    Name of the bucket
    accountId string
    Account ID
    bucketName string
    Name of the bucket
    account_id str
    Account ID
    bucket_name str
    Name of the bucket
    accountId String
    Account ID
    bucketName 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 string
    Queue ID
    QueueName string
    Name of the queue
    Rules []GetR2BucketEventNotificationQueueRule
    queueId string
    Queue ID
    queueName string
    Name of the queue
    rules GetR2BucketEventNotificationQueueRule[]
    queueId String
    Queue ID
    queueName String
    Name of the queue
    rules List<Property Map>

    GetR2BucketEventNotificationQueueRule

    Actions List<string>
    Array of R2 object actions that will trigger notifications
    CreatedAt string
    Timestamp when the rule was created
    Description string
    A description that can be used to identify the event notification rule after creation
    Prefix string
    Notifications will be sent only for objects with this prefix
    RuleId string
    Rule ID
    Suffix string
    Notifications will be sent only for objects with this suffix
    Actions []string
    Array of R2 object actions that will trigger notifications
    CreatedAt string
    Timestamp when the rule was created
    Description string
    A description that can be used to identify the event notification rule after creation
    Prefix string
    Notifications will be sent only for objects with this prefix
    RuleId string
    Rule ID
    Suffix string
    Notifications will be sent only for objects with this suffix
    actions List<String>
    Array of R2 object actions that will trigger notifications
    createdAt String
    Timestamp when the rule was created
    description String
    A description that can be used to identify the event notification rule after creation
    prefix String
    Notifications will be sent only for objects with this prefix
    ruleId String
    Rule ID
    suffix String
    Notifications will be sent only for objects with this suffix
    actions string[]
    Array of R2 object actions that will trigger notifications
    createdAt string
    Timestamp when the rule was created
    description string
    A description that can be used to identify the event notification rule after creation
    prefix string
    Notifications will be sent only for objects with this prefix
    ruleId string
    Rule ID
    suffix string
    Notifications will be sent only for objects with this suffix
    actions Sequence[str]
    Array of R2 object actions that will trigger notifications
    created_at str
    Timestamp when the rule was created
    description str
    A description that can be used to identify the event notification rule after creation
    prefix str
    Notifications will be sent only for objects with this prefix
    rule_id str
    Rule ID
    suffix str
    Notifications will be sent only for objects with this suffix
    actions List<String>
    Array of R2 object actions that will trigger notifications
    createdAt String
    Timestamp when the rule was created
    description String
    A description that can be used to identify the event notification rule after creation
    prefix String
    Notifications will be sent only for objects with this prefix
    ruleId String
    Rule ID
    suffix 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.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi