cloudflare.StreamAudioTrack
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleStreamAudioTrack = new cloudflare.StreamAudioTrack("example_stream_audio_track", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
identifier: "ea95132c15732412d22c1476fa83f27a",
audioIdentifier: "ea95132c15732412d22c1476fa83f27a",
"default": true,
label: "director commentary",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_stream_audio_track = cloudflare.StreamAudioTrack("example_stream_audio_track",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
audio_identifier="ea95132c15732412d22c1476fa83f27a",
default=True,
label="director commentary")
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.NewStreamAudioTrack(ctx, "example_stream_audio_track", &cloudflare.StreamAudioTrackArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Identifier: pulumi.String("ea95132c15732412d22c1476fa83f27a"),
AudioIdentifier: pulumi.String("ea95132c15732412d22c1476fa83f27a"),
Default: pulumi.Bool(true),
Label: pulumi.String("director commentary"),
})
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 exampleStreamAudioTrack = new Cloudflare.StreamAudioTrack("example_stream_audio_track", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
Identifier = "ea95132c15732412d22c1476fa83f27a",
AudioIdentifier = "ea95132c15732412d22c1476fa83f27a",
Default = true,
Label = "director commentary",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.StreamAudioTrack;
import com.pulumi.cloudflare.StreamAudioTrackArgs;
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 exampleStreamAudioTrack = new StreamAudioTrack("exampleStreamAudioTrack", StreamAudioTrackArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.identifier("ea95132c15732412d22c1476fa83f27a")
.audioIdentifier("ea95132c15732412d22c1476fa83f27a")
.default_(true)
.label("director commentary")
.build());
}
}
resources:
exampleStreamAudioTrack:
type: cloudflare:StreamAudioTrack
name: example_stream_audio_track
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
identifier: ea95132c15732412d22c1476fa83f27a
audioIdentifier: ea95132c15732412d22c1476fa83f27a
default: true
label: director commentary
Create StreamAudioTrack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StreamAudioTrack(name: string, args: StreamAudioTrackArgs, opts?: CustomResourceOptions);
@overload
def StreamAudioTrack(resource_name: str,
args: StreamAudioTrackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StreamAudioTrack(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
identifier: Optional[str] = None,
audio_identifier: Optional[str] = None,
default: Optional[bool] = None,
label: Optional[str] = None)
func NewStreamAudioTrack(ctx *Context, name string, args StreamAudioTrackArgs, opts ...ResourceOption) (*StreamAudioTrack, error)
public StreamAudioTrack(string name, StreamAudioTrackArgs args, CustomResourceOptions? opts = null)
public StreamAudioTrack(String name, StreamAudioTrackArgs args)
public StreamAudioTrack(String name, StreamAudioTrackArgs args, CustomResourceOptions options)
type: cloudflare:StreamAudioTrack
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 StreamAudioTrackArgs
- 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 StreamAudioTrackArgs
- 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 StreamAudioTrackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StreamAudioTrackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StreamAudioTrackArgs
- 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 streamAudioTrackResource = new Cloudflare.StreamAudioTrack("streamAudioTrackResource", new()
{
AccountId = "string",
Identifier = "string",
AudioIdentifier = "string",
Default = false,
Label = "string",
});
example, err := cloudflare.NewStreamAudioTrack(ctx, "streamAudioTrackResource", &cloudflare.StreamAudioTrackArgs{
AccountId: pulumi.String("string"),
Identifier: pulumi.String("string"),
AudioIdentifier: pulumi.String("string"),
Default: pulumi.Bool(false),
Label: pulumi.String("string"),
})
var streamAudioTrackResource = new StreamAudioTrack("streamAudioTrackResource", StreamAudioTrackArgs.builder()
.accountId("string")
.identifier("string")
.audioIdentifier("string")
.default_(false)
.label("string")
.build());
stream_audio_track_resource = cloudflare.StreamAudioTrack("streamAudioTrackResource",
account_id="string",
identifier="string",
audio_identifier="string",
default=False,
label="string")
const streamAudioTrackResource = new cloudflare.StreamAudioTrack("streamAudioTrackResource", {
accountId: "string",
identifier: "string",
audioIdentifier: "string",
"default": false,
label: "string",
});
type: cloudflare:StreamAudioTrack
properties:
accountId: string
audioIdentifier: string
default: false
identifier: string
label: string
StreamAudioTrack 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 StreamAudioTrack resource accepts the following input properties:
- Account
Id string - The account identifier tag.
- Identifier string
- A Cloudflare-generated unique identifier for a media item.
- Audio
Identifier string - The unique identifier for an additional audio track.
- Default bool
- Denotes whether the audio track will be played by default in a player.
- Label string
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- Account
Id string - The account identifier tag.
- Identifier string
- A Cloudflare-generated unique identifier for a media item.
- Audio
Identifier string - The unique identifier for an additional audio track.
- Default bool
- Denotes whether the audio track will be played by default in a player.
- Label string
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- account
Id String - The account identifier tag.
- identifier String
- A Cloudflare-generated unique identifier for a media item.
- audio
Identifier String - The unique identifier for an additional audio track.
- default_ Boolean
- Denotes whether the audio track will be played by default in a player.
- label String
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- account
Id string - The account identifier tag.
- identifier string
- A Cloudflare-generated unique identifier for a media item.
- audio
Identifier string - The unique identifier for an additional audio track.
- default boolean
- Denotes whether the audio track will be played by default in a player.
- label string
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- account_
id str - The account identifier tag.
- identifier str
- A Cloudflare-generated unique identifier for a media item.
- audio_
identifier str - The unique identifier for an additional audio track.
- default bool
- Denotes whether the audio track will be played by default in a player.
- label str
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- account
Id String - The account identifier tag.
- identifier String
- A Cloudflare-generated unique identifier for a media item.
- audio
Identifier String - The unique identifier for an additional audio track.
- default Boolean
- Denotes whether the audio track will be played by default in a player.
- label String
- A string to uniquely identify the track amongst other audio track labels for the specified video.
Outputs
All input properties are implicitly available as output properties. Additionally, the StreamAudioTrack resource produces the following output properties:
Look up Existing StreamAudioTrack Resource
Get an existing StreamAudioTrack 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?: StreamAudioTrackState, opts?: CustomResourceOptions): StreamAudioTrack
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
audio_identifier: Optional[str] = None,
default: Optional[bool] = None,
identifier: Optional[str] = None,
label: Optional[str] = None,
status: Optional[str] = None,
uid: Optional[str] = None) -> StreamAudioTrack
func GetStreamAudioTrack(ctx *Context, name string, id IDInput, state *StreamAudioTrackState, opts ...ResourceOption) (*StreamAudioTrack, error)
public static StreamAudioTrack Get(string name, Input<string> id, StreamAudioTrackState? state, CustomResourceOptions? opts = null)
public static StreamAudioTrack get(String name, Output<String> id, StreamAudioTrackState state, CustomResourceOptions options)
resources: _: type: cloudflare:StreamAudioTrack 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.
- Account
Id string - The account identifier tag.
- Audio
Identifier string - The unique identifier for an additional audio track.
- Default bool
- Denotes whether the audio track will be played by default in a player.
- Identifier string
- A Cloudflare-generated unique identifier for a media item.
- Label string
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- Status string
- Specifies the processing status of the video. Available values: "queued", "ready", "error".
- Uid string
- A Cloudflare-generated unique identifier for a media item.
- Account
Id string - The account identifier tag.
- Audio
Identifier string - The unique identifier for an additional audio track.
- Default bool
- Denotes whether the audio track will be played by default in a player.
- Identifier string
- A Cloudflare-generated unique identifier for a media item.
- Label string
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- Status string
- Specifies the processing status of the video. Available values: "queued", "ready", "error".
- Uid string
- A Cloudflare-generated unique identifier for a media item.
- account
Id String - The account identifier tag.
- audio
Identifier String - The unique identifier for an additional audio track.
- default_ Boolean
- Denotes whether the audio track will be played by default in a player.
- identifier String
- A Cloudflare-generated unique identifier for a media item.
- label String
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- status String
- Specifies the processing status of the video. Available values: "queued", "ready", "error".
- uid String
- A Cloudflare-generated unique identifier for a media item.
- account
Id string - The account identifier tag.
- audio
Identifier string - The unique identifier for an additional audio track.
- default boolean
- Denotes whether the audio track will be played by default in a player.
- identifier string
- A Cloudflare-generated unique identifier for a media item.
- label string
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- status string
- Specifies the processing status of the video. Available values: "queued", "ready", "error".
- uid string
- A Cloudflare-generated unique identifier for a media item.
- account_
id str - The account identifier tag.
- audio_
identifier str - The unique identifier for an additional audio track.
- default bool
- Denotes whether the audio track will be played by default in a player.
- identifier str
- A Cloudflare-generated unique identifier for a media item.
- label str
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- status str
- Specifies the processing status of the video. Available values: "queued", "ready", "error".
- uid str
- A Cloudflare-generated unique identifier for a media item.
- account
Id String - The account identifier tag.
- audio
Identifier String - The unique identifier for an additional audio track.
- default Boolean
- Denotes whether the audio track will be played by default in a player.
- identifier String
- A Cloudflare-generated unique identifier for a media item.
- label String
- A string to uniquely identify the track amongst other audio track labels for the specified video.
- status String
- Specifies the processing status of the video. Available values: "queued", "ready", "error".
- uid 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.