Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getStreamCaptionLanguage
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleStreamCaptionLanguage = cloudflare.getStreamCaptionLanguage({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
identifier: "ea95132c15732412d22c1476fa83f27a",
language: "tr",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_stream_caption_language = cloudflare.get_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.LookupStreamCaptionLanguage(ctx, &cloudflare.LookupStreamCaptionLanguageArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
Identifier: "ea95132c15732412d22c1476fa83f27a",
Language: "tr",
}, 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 exampleStreamCaptionLanguage = Cloudflare.GetStreamCaptionLanguage.Invoke(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.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());
}
}
variables:
exampleStreamCaptionLanguage:
fn::invoke:
function: cloudflare:getStreamCaptionLanguage
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
identifier: ea95132c15732412d22c1476fa83f27a
language: tr
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>
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]
func LookupStreamCaptionLanguage(ctx *Context, args *LookupStreamCaptionLanguageArgs, opts ...InvokeOption) (*LookupStreamCaptionLanguageResult, error)
func LookupStreamCaptionLanguageOutput(ctx *Context, args *LookupStreamCaptionLanguageOutputArgs, opts ...InvokeOption) LookupStreamCaptionLanguageResultOutput
> 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)
}
public static CompletableFuture<GetStreamCaptionLanguageResult> getStreamCaptionLanguage(GetStreamCaptionLanguageArgs args, InvokeOptions options)
public static Output<GetStreamCaptionLanguageResult> getStreamCaptionLanguage(GetStreamCaptionLanguageArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getStreamCaptionLanguage:getStreamCaptionLanguage
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Identifier.
- Identifier string
- A Cloudflare-generated unique identifier for a media item.
- Language string
- The language tag in BCP 47 format.
- Account
Id string - Identifier.
- Identifier string
- A Cloudflare-generated unique identifier for a media item.
- Language string
- The language tag in BCP 47 format.
- account
Id String - Identifier.
- identifier String
- A Cloudflare-generated unique identifier for a media item.
- language String
- The language tag in BCP 47 format.
- account
Id string - Identifier.
- identifier string
- A Cloudflare-generated unique identifier for a media item.
- language string
- The language tag in BCP 47 format.
- account_
id str - Identifier.
- identifier str
- A Cloudflare-generated unique identifier for a media item.
- language str
- The language tag in BCP 47 format.
- account
Id String - Identifier.
- identifier String
- A Cloudflare-generated unique identifier for a media item.
- language String
- The language tag in BCP 47 format.
getStreamCaptionLanguage Result
The following output properties are available:
- Account
Id 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".
- Account
Id 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".
- account
Id 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 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".
- account
Id 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.