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

cloudflare.StreamCaptionLanguage

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 exampleStreamCaptionLanguage = new cloudflare.StreamCaptionLanguage("example_stream_caption_language", {
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        identifier: "ea95132c15732412d22c1476fa83f27a",
        language: "tr",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_stream_caption_language = cloudflare.StreamCaptionLanguage("example_stream_caption_language",
        account_id="023e105f4ecef8ad9ca31a8372d0c353",
        identifier="ea95132c15732412d22c1476fa83f27a",
        language="tr")
    
    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.NewStreamCaptionLanguage(ctx, "example_stream_caption_language", &cloudflare.StreamCaptionLanguageArgs{
    			AccountId:  pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Identifier: pulumi.String("ea95132c15732412d22c1476fa83f27a"),
    			Language:   pulumi.String("tr"),
    		})
    		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 exampleStreamCaptionLanguage = new Cloudflare.StreamCaptionLanguage("example_stream_caption_language", new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Identifier = "ea95132c15732412d22c1476fa83f27a",
            Language = "tr",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.StreamCaptionLanguage;
    import com.pulumi.cloudflare.StreamCaptionLanguageArgs;
    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 exampleStreamCaptionLanguage = new StreamCaptionLanguage("exampleStreamCaptionLanguage", StreamCaptionLanguageArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .identifier("ea95132c15732412d22c1476fa83f27a")
                .language("tr")
                .build());
    
        }
    }
    
    resources:
      exampleStreamCaptionLanguage:
        type: cloudflare:StreamCaptionLanguage
        name: example_stream_caption_language
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          identifier: ea95132c15732412d22c1476fa83f27a
          language: tr
    

    Create StreamCaptionLanguage Resource

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

    Constructor syntax

    new StreamCaptionLanguage(name: string, args: StreamCaptionLanguageArgs, opts?: CustomResourceOptions);
    @overload
    def StreamCaptionLanguage(resource_name: str,
                              args: StreamCaptionLanguageArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def StreamCaptionLanguage(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              account_id: Optional[str] = None,
                              identifier: Optional[str] = None,
                              language: Optional[str] = None,
                              file: Optional[str] = None)
    func NewStreamCaptionLanguage(ctx *Context, name string, args StreamCaptionLanguageArgs, opts ...ResourceOption) (*StreamCaptionLanguage, error)
    public StreamCaptionLanguage(string name, StreamCaptionLanguageArgs args, CustomResourceOptions? opts = null)
    public StreamCaptionLanguage(String name, StreamCaptionLanguageArgs args)
    public StreamCaptionLanguage(String name, StreamCaptionLanguageArgs args, CustomResourceOptions options)
    
    type: cloudflare:StreamCaptionLanguage
    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 StreamCaptionLanguageArgs
    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 StreamCaptionLanguageArgs
    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 StreamCaptionLanguageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StreamCaptionLanguageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StreamCaptionLanguageArgs
    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 streamCaptionLanguageResource = new Cloudflare.StreamCaptionLanguage("streamCaptionLanguageResource", new()
    {
        AccountId = "string",
        Identifier = "string",
        Language = "string",
        File = "string",
    });
    
    example, err := cloudflare.NewStreamCaptionLanguage(ctx, "streamCaptionLanguageResource", &cloudflare.StreamCaptionLanguageArgs{
    	AccountId:  pulumi.String("string"),
    	Identifier: pulumi.String("string"),
    	Language:   pulumi.String("string"),
    	File:       pulumi.String("string"),
    })
    
    var streamCaptionLanguageResource = new StreamCaptionLanguage("streamCaptionLanguageResource", StreamCaptionLanguageArgs.builder()
        .accountId("string")
        .identifier("string")
        .language("string")
        .file("string")
        .build());
    
    stream_caption_language_resource = cloudflare.StreamCaptionLanguage("streamCaptionLanguageResource",
        account_id="string",
        identifier="string",
        language="string",
        file="string")
    
    const streamCaptionLanguageResource = new cloudflare.StreamCaptionLanguage("streamCaptionLanguageResource", {
        accountId: "string",
        identifier: "string",
        language: "string",
        file: "string",
    });
    
    type: cloudflare:StreamCaptionLanguage
    properties:
        accountId: string
        file: string
        identifier: string
        language: string
    

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

    AccountId string
    Identifier.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    Language string
    The language tag in BCP 47 format.
    File string
    The WebVTT file containing the caption or subtitle content.
    AccountId string
    Identifier.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    Language string
    The language tag in BCP 47 format.
    File string
    The WebVTT file containing the caption or subtitle content.
    accountId String
    Identifier.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    language String
    The language tag in BCP 47 format.
    file String
    The WebVTT file containing the caption or subtitle content.
    accountId string
    Identifier.
    identifier string
    A Cloudflare-generated unique identifier for a media item.
    language string
    The language tag in BCP 47 format.
    file string
    The WebVTT file containing the caption or subtitle content.
    account_id str
    Identifier.
    identifier str
    A Cloudflare-generated unique identifier for a media item.
    language str
    The language tag in BCP 47 format.
    file str
    The WebVTT file containing the caption or subtitle content.
    accountId String
    Identifier.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    language String
    The language tag in BCP 47 format.
    file String
    The WebVTT file containing the caption or subtitle content.

    Outputs

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

    Generated bool
    Whether the caption was generated via AI.
    Id string
    The provider-assigned unique ID for this managed resource.
    Label string
    The language label displayed in the native language to users.
    Status string
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    Generated bool
    Whether the caption was generated via AI.
    Id string
    The provider-assigned unique ID for this managed resource.
    Label string
    The language label displayed in the native language to users.
    Status string
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    generated Boolean
    Whether the caption was generated via AI.
    id String
    The provider-assigned unique ID for this managed resource.
    label String
    The language label displayed in the native language to users.
    status String
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    generated boolean
    Whether the caption was generated via AI.
    id string
    The provider-assigned unique ID for this managed resource.
    label string
    The language label displayed in the native language to users.
    status string
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    generated bool
    Whether the caption was generated via AI.
    id str
    The provider-assigned unique ID for this managed resource.
    label str
    The language label displayed in the native language to users.
    status str
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    generated Boolean
    Whether the caption was generated via AI.
    id String
    The provider-assigned unique ID for this managed resource.
    label String
    The language label displayed in the native language to users.
    status String
    The status of a generated caption. Available values: "ready", "inprogress", "error".

    Look up Existing StreamCaptionLanguage Resource

    Get an existing StreamCaptionLanguage 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?: StreamCaptionLanguageState, opts?: CustomResourceOptions): StreamCaptionLanguage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            file: Optional[str] = None,
            generated: Optional[bool] = None,
            identifier: Optional[str] = None,
            label: Optional[str] = None,
            language: Optional[str] = None,
            status: Optional[str] = None) -> StreamCaptionLanguage
    func GetStreamCaptionLanguage(ctx *Context, name string, id IDInput, state *StreamCaptionLanguageState, opts ...ResourceOption) (*StreamCaptionLanguage, error)
    public static StreamCaptionLanguage Get(string name, Input<string> id, StreamCaptionLanguageState? state, CustomResourceOptions? opts = null)
    public static StreamCaptionLanguage get(String name, Output<String> id, StreamCaptionLanguageState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:StreamCaptionLanguage    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
    Identifier.
    File string
    The WebVTT file containing the caption or subtitle content.
    Generated bool
    Whether the caption was generated via AI.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    Label string
    The language label displayed in the native language to users.
    Language string
    The language tag in BCP 47 format.
    Status string
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    AccountId string
    Identifier.
    File string
    The WebVTT file containing the caption or subtitle content.
    Generated bool
    Whether the caption was generated via AI.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    Label string
    The language label displayed in the native language to users.
    Language string
    The language tag in BCP 47 format.
    Status string
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    accountId String
    Identifier.
    file String
    The WebVTT file containing the caption or subtitle content.
    generated Boolean
    Whether the caption was generated via AI.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    label String
    The language label displayed in the native language to users.
    language String
    The language tag in BCP 47 format.
    status String
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    accountId string
    Identifier.
    file string
    The WebVTT file containing the caption or subtitle content.
    generated boolean
    Whether the caption was generated via AI.
    identifier string
    A Cloudflare-generated unique identifier for a media item.
    label string
    The language label displayed in the native language to users.
    language string
    The language tag in BCP 47 format.
    status string
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    account_id str
    Identifier.
    file str
    The WebVTT file containing the caption or subtitle content.
    generated bool
    Whether the caption was generated via AI.
    identifier str
    A Cloudflare-generated unique identifier for a media item.
    label str
    The language label displayed in the native language to users.
    language str
    The language tag in BCP 47 format.
    status str
    The status of a generated caption. Available values: "ready", "inprogress", "error".
    accountId String
    Identifier.
    file String
    The WebVTT file containing the caption or subtitle content.
    generated Boolean
    Whether the caption was generated via AI.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    label String
    The language label displayed in the native language to users.
    language String
    The language tag in BCP 47 format.
    status String
    The status of a generated caption. Available values: "ready", "inprogress", "error".

    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