1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getStreamCaptionLanguage
Cloudflare v6.0.0 published on Monday, Apr 14, 2025 by Pulumi

cloudflare.getStreamCaptionLanguage

Explore with Pulumi AI

Cloudflare v6.0.0 published on Monday, Apr 14, 2025 by Pulumi

Example Usage

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

const exampleStreamCaptionLanguage = cloudflare.getStreamCaptionLanguage({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    identifier: "ea95132c15732412d22c1476fa83f27a",
    language: "tr",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_stream_caption_language = cloudflare.get_stream_caption_language(account_id="023e105f4ecef8ad9ca31a8372d0c353",
    identifier="ea95132c15732412d22c1476fa83f27a",
    language="tr")
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.LookupStreamCaptionLanguage(ctx, &cloudflare.LookupStreamCaptionLanguageArgs{
			AccountId:  "023e105f4ecef8ad9ca31a8372d0c353",
			Identifier: "ea95132c15732412d22c1476fa83f27a",
			Language:   "tr",
		}, nil)
		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 exampleStreamCaptionLanguage = Cloudflare.GetStreamCaptionLanguage.Invoke(new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        Identifier = "ea95132c15732412d22c1476fa83f27a",
        Language = "tr",
    });

});
Copy
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.GetStreamCaptionLanguageArgs;
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 exampleStreamCaptionLanguage = CloudflareFunctions.getStreamCaptionLanguage(GetStreamCaptionLanguageArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .identifier("ea95132c15732412d22c1476fa83f27a")
            .language("tr")
            .build());

    }
}
Copy
variables:
  exampleStreamCaptionLanguage:
    fn::invoke:
      function: cloudflare:getStreamCaptionLanguage
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
        identifier: ea95132c15732412d22c1476fa83f27a
        language: tr
Copy

Using getStreamCaptionLanguage

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 getStreamCaptionLanguage(args: GetStreamCaptionLanguageArgs, opts?: InvokeOptions): Promise<GetStreamCaptionLanguageResult>
function getStreamCaptionLanguageOutput(args: GetStreamCaptionLanguageOutputArgs, opts?: InvokeOptions): Output<GetStreamCaptionLanguageResult>
Copy
def get_stream_caption_language(account_id: Optional[str] = None,
                                identifier: Optional[str] = None,
                                language: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetStreamCaptionLanguageResult
def get_stream_caption_language_output(account_id: Optional[pulumi.Input[str]] = None,
                                identifier: Optional[pulumi.Input[str]] = None,
                                language: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetStreamCaptionLanguageResult]
Copy
func LookupStreamCaptionLanguage(ctx *Context, args *LookupStreamCaptionLanguageArgs, opts ...InvokeOption) (*LookupStreamCaptionLanguageResult, error)
func LookupStreamCaptionLanguageOutput(ctx *Context, args *LookupStreamCaptionLanguageOutputArgs, opts ...InvokeOption) LookupStreamCaptionLanguageResultOutput
Copy

> Note: This function is named LookupStreamCaptionLanguage in the Go SDK.

public static class GetStreamCaptionLanguage 
{
    public static Task<GetStreamCaptionLanguageResult> InvokeAsync(GetStreamCaptionLanguageArgs args, InvokeOptions? opts = null)
    public static Output<GetStreamCaptionLanguageResult> Invoke(GetStreamCaptionLanguageInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetStreamCaptionLanguageResult> getStreamCaptionLanguage(GetStreamCaptionLanguageArgs args, InvokeOptions options)
public static Output<GetStreamCaptionLanguageResult> getStreamCaptionLanguage(GetStreamCaptionLanguageArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getStreamCaptionLanguage:getStreamCaptionLanguage
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Identifier
Identifier This property is required. string
A Cloudflare-generated unique identifier for a media item.
Language This property is required. string
The language tag in BCP 47 format.
AccountId This property is required. string
Identifier
Identifier This property is required. string
A Cloudflare-generated unique identifier for a media item.
Language This property is required. string
The language tag in BCP 47 format.
accountId This property is required. String
Identifier
identifier This property is required. String
A Cloudflare-generated unique identifier for a media item.
language This property is required. String
The language tag in BCP 47 format.
accountId This property is required. string
Identifier
identifier This property is required. string
A Cloudflare-generated unique identifier for a media item.
language This property is required. string
The language tag in BCP 47 format.
account_id This property is required. str
Identifier
identifier This property is required. str
A Cloudflare-generated unique identifier for a media item.
language This property is required. str
The language tag in BCP 47 format.
accountId This property is required. String
Identifier
identifier This property is required. String
A Cloudflare-generated unique identifier for a media item.
language This property is required. String
The language tag in BCP 47 format.

getStreamCaptionLanguage Result

The following output properties are available:

AccountId string
Identifier
Generated bool
Whether the caption was generated via AI.
Id string
The provider-assigned unique ID for this managed resource.
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
Generated bool
Whether the caption was generated via AI.
Id string
The provider-assigned unique ID for this managed resource.
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
generated Boolean
Whether the caption was generated via AI.
id String
The provider-assigned unique ID for this managed resource.
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
generated boolean
Whether the caption was generated via AI.
id string
The provider-assigned unique ID for this managed resource.
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
generated bool
Whether the caption was generated via AI.
id str
The provider-assigned unique ID for this managed resource.
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
generated Boolean
Whether the caption was generated via AI.
id String
The provider-assigned unique ID for this managed resource.
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 v6.0.0 published on Monday, Apr 14, 2025 by Pulumi