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

cloudflare.StreamDownload

Explore with Pulumi AI

Example Usage

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

const exampleStreamDownload = new cloudflare.StreamDownload("example_stream_download", {
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    identifier: "ea95132c15732412d22c1476fa83f27a",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_stream_download = cloudflare.StreamDownload("example_stream_download",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
    identifier="ea95132c15732412d22c1476fa83f27a")
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.NewStreamDownload(ctx, "example_stream_download", &cloudflare.StreamDownloadArgs{
			AccountId:  pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
			Identifier: pulumi.String("ea95132c15732412d22c1476fa83f27a"),
		})
		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 exampleStreamDownload = new Cloudflare.StreamDownload("example_stream_download", new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        Identifier = "ea95132c15732412d22c1476fa83f27a",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.StreamDownload;
import com.pulumi.cloudflare.StreamDownloadArgs;
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 exampleStreamDownload = new StreamDownload("exampleStreamDownload", StreamDownloadArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .identifier("ea95132c15732412d22c1476fa83f27a")
            .build());

    }
}
Copy
resources:
  exampleStreamDownload:
    type: cloudflare:StreamDownload
    name: example_stream_download
    properties:
      accountId: 023e105f4ecef8ad9ca31a8372d0c353
      identifier: ea95132c15732412d22c1476fa83f27a
Copy

Create StreamDownload Resource

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

Constructor syntax

new StreamDownload(name: string, args: StreamDownloadArgs, opts?: CustomResourceOptions);
@overload
def StreamDownload(resource_name: str,
                   args: StreamDownloadArgs,
                   opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. StreamDownloadArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. StreamDownloadArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. StreamDownloadArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. StreamDownloadArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. StreamDownloadArgs
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 streamDownloadResource = new Cloudflare.StreamDownload("streamDownloadResource", new()
{
    AccountId = "string",
    Identifier = "string",
});
Copy
example, err := cloudflare.NewStreamDownload(ctx, "streamDownloadResource", &cloudflare.StreamDownloadArgs{
	AccountId:  pulumi.String("string"),
	Identifier: pulumi.String("string"),
})
Copy
var streamDownloadResource = new StreamDownload("streamDownloadResource", StreamDownloadArgs.builder()
    .accountId("string")
    .identifier("string")
    .build());
Copy
stream_download_resource = cloudflare.StreamDownload("streamDownloadResource",
    account_id="string",
    identifier="string")
Copy
const streamDownloadResource = new cloudflare.StreamDownload("streamDownloadResource", {
    accountId: "string",
    identifier: "string",
});
Copy
type: cloudflare:StreamDownload
properties:
    accountId: string
    identifier: string
Copy

StreamDownload 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 StreamDownload resource accepts the following input properties:

AccountId This property is required. string
Identifier
Identifier This property is required. string
A Cloudflare-generated unique identifier for a media item.
AccountId This property is required. string
Identifier
Identifier This property is required. string
A Cloudflare-generated unique identifier for a media item.
accountId This property is required. String
Identifier
identifier This property is required. String
A Cloudflare-generated unique identifier for a media item.
accountId This property is required. string
Identifier
identifier This property is required. string
A Cloudflare-generated unique identifier for a media item.
account_id This property is required. str
Identifier
identifier This property is required. str
A Cloudflare-generated unique identifier for a media item.
accountId This property is required. String
Identifier
identifier This property is required. String
A Cloudflare-generated unique identifier for a media item.

Outputs

All input properties are implicitly available as output properties. Additionally, the StreamDownload 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 StreamDownload Resource

Get an existing StreamDownload 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?: StreamDownloadState, opts?: CustomResourceOptions): StreamDownload
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        identifier: Optional[str] = None) -> StreamDownload
func GetStreamDownload(ctx *Context, name string, id IDInput, state *StreamDownloadState, opts ...ResourceOption) (*StreamDownload, error)
public static StreamDownload Get(string name, Input<string> id, StreamDownloadState? state, CustomResourceOptions? opts = null)
public static StreamDownload get(String name, Output<String> id, StreamDownloadState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:StreamDownload    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Identifier
Identifier string
A Cloudflare-generated unique identifier for a media item.
AccountId string
Identifier
Identifier string
A Cloudflare-generated unique identifier for a media item.
accountId String
Identifier
identifier String
A Cloudflare-generated unique identifier for a media item.
accountId string
Identifier
identifier string
A Cloudflare-generated unique identifier for a media item.
account_id str
Identifier
identifier str
A Cloudflare-generated unique identifier for a media item.
accountId String
Identifier
identifier String
A Cloudflare-generated unique identifier for a media item.

Package Details

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