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

cloudflare.StreamWebhook

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 exampleStreamWebhook = new cloudflare.StreamWebhook("example_stream_webhook", {
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        notificationUrl: "https://example.com",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_stream_webhook = cloudflare.StreamWebhook("example_stream_webhook",
        account_id="023e105f4ecef8ad9ca31a8372d0c353",
        notification_url="https://example.com")
    
    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.NewStreamWebhook(ctx, "example_stream_webhook", &cloudflare.StreamWebhookArgs{
    			AccountId:       pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			NotificationUrl: pulumi.String("https://example.com"),
    		})
    		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 exampleStreamWebhook = new Cloudflare.StreamWebhook("example_stream_webhook", new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            NotificationUrl = "https://example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.StreamWebhook;
    import com.pulumi.cloudflare.StreamWebhookArgs;
    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) {
            var exampleStreamWebhook = new StreamWebhook("exampleStreamWebhook", StreamWebhookArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .notificationUrl("https://example.com")
                .build());
    
        }
    }
    
    resources:
      exampleStreamWebhook:
        type: cloudflare:StreamWebhook
        name: example_stream_webhook
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          notificationUrl: https://example.com
    

    Create StreamWebhook Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StreamWebhook(name: string, args: StreamWebhookArgs, opts?: CustomResourceOptions);
    @overload
    def StreamWebhook(resource_name: str,
                      args: StreamWebhookArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def StreamWebhook(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      account_id: Optional[str] = None,
                      notification_url: Optional[str] = None)
    func NewStreamWebhook(ctx *Context, name string, args StreamWebhookArgs, opts ...ResourceOption) (*StreamWebhook, error)
    public StreamWebhook(string name, StreamWebhookArgs args, CustomResourceOptions? opts = null)
    public StreamWebhook(String name, StreamWebhookArgs args)
    public StreamWebhook(String name, StreamWebhookArgs args, CustomResourceOptions options)
    
    type: cloudflare:StreamWebhook
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args StreamWebhookArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StreamWebhookArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StreamWebhookArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StreamWebhookArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StreamWebhookArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var streamWebhookResource = new Cloudflare.StreamWebhook("streamWebhookResource", new()
    {
        AccountId = "string",
        NotificationUrl = "string",
    });
    
    example, err := cloudflare.NewStreamWebhook(ctx, "streamWebhookResource", &cloudflare.StreamWebhookArgs{
    	AccountId:       pulumi.String("string"),
    	NotificationUrl: pulumi.String("string"),
    })
    
    var streamWebhookResource = new StreamWebhook("streamWebhookResource", StreamWebhookArgs.builder()
        .accountId("string")
        .notificationUrl("string")
        .build());
    
    stream_webhook_resource = cloudflare.StreamWebhook("streamWebhookResource",
        account_id="string",
        notification_url="string")
    
    const streamWebhookResource = new cloudflare.StreamWebhook("streamWebhookResource", {
        accountId: "string",
        notificationUrl: "string",
    });
    
    type: cloudflare:StreamWebhook
    properties:
        accountId: string
        notificationUrl: string
    

    StreamWebhook Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The StreamWebhook resource accepts the following input properties:

    AccountId string
    The account identifier tag.
    NotificationUrl string
    The URL where webhooks will be sent.
    AccountId string
    The account identifier tag.
    NotificationUrl string
    The URL where webhooks will be sent.
    accountId String
    The account identifier tag.
    notificationUrl String
    The URL where webhooks will be sent.
    accountId string
    The account identifier tag.
    notificationUrl string
    The URL where webhooks will be sent.
    account_id str
    The account identifier tag.
    notification_url str
    The URL where webhooks will be sent.
    accountId String
    The account identifier tag.
    notificationUrl String
    The URL where webhooks will be sent.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StreamWebhook resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing StreamWebhook Resource

    Get an existing StreamWebhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: StreamWebhookState, opts?: CustomResourceOptions): StreamWebhook
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            notification_url: Optional[str] = None) -> StreamWebhook
    func GetStreamWebhook(ctx *Context, name string, id IDInput, state *StreamWebhookState, opts ...ResourceOption) (*StreamWebhook, error)
    public static StreamWebhook Get(string name, Input<string> id, StreamWebhookState? state, CustomResourceOptions? opts = null)
    public static StreamWebhook get(String name, Output<String> id, StreamWebhookState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:StreamWebhook    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    The account identifier tag.
    NotificationUrl string
    The URL where webhooks will be sent.
    AccountId string
    The account identifier tag.
    NotificationUrl string
    The URL where webhooks will be sent.
    accountId String
    The account identifier tag.
    notificationUrl String
    The URL where webhooks will be sent.
    accountId string
    The account identifier tag.
    notificationUrl string
    The URL where webhooks will be sent.
    account_id str
    The account identifier tag.
    notification_url str
    The URL where webhooks will be sent.
    accountId String
    The account identifier tag.
    notificationUrl String
    The URL where webhooks will be sent.

    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