Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Domain
- type DomainArgs
- type DomainArray
- type DomainArrayInput
- type DomainArrayOutput
- type DomainInput
- type DomainMap
- type DomainMapInput
- type DomainMapOutput
- type DomainOutput
- func (o DomainOutput) Cname() pulumi.StringOutput
- func (DomainOutput) ElementType() reflect.Type
- func (o DomainOutput) IngestDomainName() pulumi.StringPtrOutput
- func (o DomainOutput) Name() pulumi.StringOutput
- func (o DomainOutput) Region() pulumi.StringOutput
- func (o DomainOutput) Status() pulumi.StringOutput
- func (o DomainOutput) ToDomainOutput() DomainOutput
- func (o DomainOutput) ToDomainOutputWithContext(ctx context.Context) DomainOutput
- func (o DomainOutput) Type() pulumi.StringOutput
- type DomainState
- type RecordCallback
- type RecordCallbackArgs
- type RecordCallbackArray
- type RecordCallbackArrayInput
- type RecordCallbackArrayOutput
- func (RecordCallbackArrayOutput) ElementType() reflect.Type
- func (o RecordCallbackArrayOutput) Index(i pulumi.IntInput) RecordCallbackOutput
- func (o RecordCallbackArrayOutput) ToRecordCallbackArrayOutput() RecordCallbackArrayOutput
- func (o RecordCallbackArrayOutput) ToRecordCallbackArrayOutputWithContext(ctx context.Context) RecordCallbackArrayOutput
- type RecordCallbackInput
- type RecordCallbackMap
- type RecordCallbackMapInput
- type RecordCallbackMapOutput
- func (RecordCallbackMapOutput) ElementType() reflect.Type
- func (o RecordCallbackMapOutput) MapIndex(k pulumi.StringInput) RecordCallbackOutput
- func (o RecordCallbackMapOutput) ToRecordCallbackMapOutput() RecordCallbackMapOutput
- func (o RecordCallbackMapOutput) ToRecordCallbackMapOutputWithContext(ctx context.Context) RecordCallbackMapOutput
- type RecordCallbackOutput
- func (o RecordCallbackOutput) DomainName() pulumi.StringOutput
- func (RecordCallbackOutput) ElementType() reflect.Type
- func (o RecordCallbackOutput) Region() pulumi.StringOutput
- func (o RecordCallbackOutput) ToRecordCallbackOutput() RecordCallbackOutput
- func (o RecordCallbackOutput) ToRecordCallbackOutputWithContext(ctx context.Context) RecordCallbackOutput
- func (o RecordCallbackOutput) Types() pulumi.StringArrayOutput
- func (o RecordCallbackOutput) Url() pulumi.StringOutput
- type RecordCallbackState
- type Recording
- type RecordingArgs
- type RecordingArray
- type RecordingArrayInput
- type RecordingArrayOutput
- func (RecordingArrayOutput) ElementType() reflect.Type
- func (o RecordingArrayOutput) Index(i pulumi.IntInput) RecordingOutput
- func (o RecordingArrayOutput) ToRecordingArrayOutput() RecordingArrayOutput
- func (o RecordingArrayOutput) ToRecordingArrayOutputWithContext(ctx context.Context) RecordingArrayOutput
- type RecordingFlv
- type RecordingFlvArgs
- func (RecordingFlvArgs) ElementType() reflect.Type
- func (i RecordingFlvArgs) ToRecordingFlvOutput() RecordingFlvOutput
- func (i RecordingFlvArgs) ToRecordingFlvOutputWithContext(ctx context.Context) RecordingFlvOutput
- func (i RecordingFlvArgs) ToRecordingFlvPtrOutput() RecordingFlvPtrOutput
- func (i RecordingFlvArgs) ToRecordingFlvPtrOutputWithContext(ctx context.Context) RecordingFlvPtrOutput
- type RecordingFlvInput
- type RecordingFlvOutput
- func (RecordingFlvOutput) ElementType() reflect.Type
- func (o RecordingFlvOutput) FileNaming() pulumi.StringPtrOutput
- func (o RecordingFlvOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
- func (o RecordingFlvOutput) RecordingLength() pulumi.IntOutput
- func (o RecordingFlvOutput) ToRecordingFlvOutput() RecordingFlvOutput
- func (o RecordingFlvOutput) ToRecordingFlvOutputWithContext(ctx context.Context) RecordingFlvOutput
- func (o RecordingFlvOutput) ToRecordingFlvPtrOutput() RecordingFlvPtrOutput
- func (o RecordingFlvOutput) ToRecordingFlvPtrOutputWithContext(ctx context.Context) RecordingFlvPtrOutput
- type RecordingFlvPtrInput
- type RecordingFlvPtrOutput
- func (o RecordingFlvPtrOutput) Elem() RecordingFlvOutput
- func (RecordingFlvPtrOutput) ElementType() reflect.Type
- func (o RecordingFlvPtrOutput) FileNaming() pulumi.StringPtrOutput
- func (o RecordingFlvPtrOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
- func (o RecordingFlvPtrOutput) RecordingLength() pulumi.IntPtrOutput
- func (o RecordingFlvPtrOutput) ToRecordingFlvPtrOutput() RecordingFlvPtrOutput
- func (o RecordingFlvPtrOutput) ToRecordingFlvPtrOutputWithContext(ctx context.Context) RecordingFlvPtrOutput
- type RecordingHls
- type RecordingHlsArgs
- func (RecordingHlsArgs) ElementType() reflect.Type
- func (i RecordingHlsArgs) ToRecordingHlsOutput() RecordingHlsOutput
- func (i RecordingHlsArgs) ToRecordingHlsOutputWithContext(ctx context.Context) RecordingHlsOutput
- func (i RecordingHlsArgs) ToRecordingHlsPtrOutput() RecordingHlsPtrOutput
- func (i RecordingHlsArgs) ToRecordingHlsPtrOutputWithContext(ctx context.Context) RecordingHlsPtrOutput
- type RecordingHlsInput
- type RecordingHlsOutput
- func (RecordingHlsOutput) ElementType() reflect.Type
- func (o RecordingHlsOutput) FileNaming() pulumi.StringPtrOutput
- func (o RecordingHlsOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
- func (o RecordingHlsOutput) RecordingLength() pulumi.IntOutput
- func (o RecordingHlsOutput) ToRecordingHlsOutput() RecordingHlsOutput
- func (o RecordingHlsOutput) ToRecordingHlsOutputWithContext(ctx context.Context) RecordingHlsOutput
- func (o RecordingHlsOutput) ToRecordingHlsPtrOutput() RecordingHlsPtrOutput
- func (o RecordingHlsOutput) ToRecordingHlsPtrOutputWithContext(ctx context.Context) RecordingHlsPtrOutput
- func (o RecordingHlsOutput) TsFileNaming() pulumi.StringPtrOutput
- type RecordingHlsPtrInput
- type RecordingHlsPtrOutput
- func (o RecordingHlsPtrOutput) Elem() RecordingHlsOutput
- func (RecordingHlsPtrOutput) ElementType() reflect.Type
- func (o RecordingHlsPtrOutput) FileNaming() pulumi.StringPtrOutput
- func (o RecordingHlsPtrOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
- func (o RecordingHlsPtrOutput) RecordingLength() pulumi.IntPtrOutput
- func (o RecordingHlsPtrOutput) ToRecordingHlsPtrOutput() RecordingHlsPtrOutput
- func (o RecordingHlsPtrOutput) ToRecordingHlsPtrOutputWithContext(ctx context.Context) RecordingHlsPtrOutput
- func (o RecordingHlsPtrOutput) TsFileNaming() pulumi.StringPtrOutput
- type RecordingInput
- type RecordingMap
- type RecordingMapInput
- type RecordingMapOutput
- type RecordingMp4
- type RecordingMp4Args
- func (RecordingMp4Args) ElementType() reflect.Type
- func (i RecordingMp4Args) ToRecordingMp4Output() RecordingMp4Output
- func (i RecordingMp4Args) ToRecordingMp4OutputWithContext(ctx context.Context) RecordingMp4Output
- func (i RecordingMp4Args) ToRecordingMp4PtrOutput() RecordingMp4PtrOutput
- func (i RecordingMp4Args) ToRecordingMp4PtrOutputWithContext(ctx context.Context) RecordingMp4PtrOutput
- type RecordingMp4Input
- type RecordingMp4Output
- func (RecordingMp4Output) ElementType() reflect.Type
- func (o RecordingMp4Output) FileNaming() pulumi.StringPtrOutput
- func (o RecordingMp4Output) MaxStreamPauseLength() pulumi.IntPtrOutput
- func (o RecordingMp4Output) RecordingLength() pulumi.IntOutput
- func (o RecordingMp4Output) ToRecordingMp4Output() RecordingMp4Output
- func (o RecordingMp4Output) ToRecordingMp4OutputWithContext(ctx context.Context) RecordingMp4Output
- func (o RecordingMp4Output) ToRecordingMp4PtrOutput() RecordingMp4PtrOutput
- func (o RecordingMp4Output) ToRecordingMp4PtrOutputWithContext(ctx context.Context) RecordingMp4PtrOutput
- type RecordingMp4PtrInput
- type RecordingMp4PtrOutput
- func (o RecordingMp4PtrOutput) Elem() RecordingMp4Output
- func (RecordingMp4PtrOutput) ElementType() reflect.Type
- func (o RecordingMp4PtrOutput) FileNaming() pulumi.StringPtrOutput
- func (o RecordingMp4PtrOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
- func (o RecordingMp4PtrOutput) RecordingLength() pulumi.IntPtrOutput
- func (o RecordingMp4PtrOutput) ToRecordingMp4PtrOutput() RecordingMp4PtrOutput
- func (o RecordingMp4PtrOutput) ToRecordingMp4PtrOutputWithContext(ctx context.Context) RecordingMp4PtrOutput
- type RecordingObs
- type RecordingObsArgs
- func (RecordingObsArgs) ElementType() reflect.Type
- func (i RecordingObsArgs) ToRecordingObsOutput() RecordingObsOutput
- func (i RecordingObsArgs) ToRecordingObsOutputWithContext(ctx context.Context) RecordingObsOutput
- func (i RecordingObsArgs) ToRecordingObsPtrOutput() RecordingObsPtrOutput
- func (i RecordingObsArgs) ToRecordingObsPtrOutputWithContext(ctx context.Context) RecordingObsPtrOutput
- type RecordingObsInput
- type RecordingObsOutput
- func (o RecordingObsOutput) Bucket() pulumi.StringOutput
- func (RecordingObsOutput) ElementType() reflect.Type
- func (o RecordingObsOutput) Object() pulumi.StringPtrOutput
- func (o RecordingObsOutput) Region() pulumi.StringOutput
- func (o RecordingObsOutput) ToRecordingObsOutput() RecordingObsOutput
- func (o RecordingObsOutput) ToRecordingObsOutputWithContext(ctx context.Context) RecordingObsOutput
- func (o RecordingObsOutput) ToRecordingObsPtrOutput() RecordingObsPtrOutput
- func (o RecordingObsOutput) ToRecordingObsPtrOutputWithContext(ctx context.Context) RecordingObsPtrOutput
- type RecordingObsPtrInput
- type RecordingObsPtrOutput
- func (o RecordingObsPtrOutput) Bucket() pulumi.StringPtrOutput
- func (o RecordingObsPtrOutput) Elem() RecordingObsOutput
- func (RecordingObsPtrOutput) ElementType() reflect.Type
- func (o RecordingObsPtrOutput) Object() pulumi.StringPtrOutput
- func (o RecordingObsPtrOutput) Region() pulumi.StringPtrOutput
- func (o RecordingObsPtrOutput) ToRecordingObsPtrOutput() RecordingObsPtrOutput
- func (o RecordingObsPtrOutput) ToRecordingObsPtrOutputWithContext(ctx context.Context) RecordingObsPtrOutput
- type RecordingOutput
- func (o RecordingOutput) AppName() pulumi.StringOutput
- func (o RecordingOutput) DomainName() pulumi.StringOutput
- func (RecordingOutput) ElementType() reflect.Type
- func (o RecordingOutput) Flv() RecordingFlvPtrOutput
- func (o RecordingOutput) Hls() RecordingHlsPtrOutput
- func (o RecordingOutput) Mp4() RecordingMp4PtrOutput
- func (o RecordingOutput) Obs() RecordingObsOutput
- func (o RecordingOutput) Region() pulumi.StringOutput
- func (o RecordingOutput) StreamName() pulumi.StringOutput
- func (o RecordingOutput) ToRecordingOutput() RecordingOutput
- func (o RecordingOutput) ToRecordingOutputWithContext(ctx context.Context) RecordingOutput
- func (o RecordingOutput) Type() pulumi.StringOutput
- type RecordingState
- type Transcoding
- type TranscodingArgs
- type TranscodingArray
- type TranscodingArrayInput
- type TranscodingArrayOutput
- func (TranscodingArrayOutput) ElementType() reflect.Type
- func (o TranscodingArrayOutput) Index(i pulumi.IntInput) TranscodingOutput
- func (o TranscodingArrayOutput) ToTranscodingArrayOutput() TranscodingArrayOutput
- func (o TranscodingArrayOutput) ToTranscodingArrayOutputWithContext(ctx context.Context) TranscodingArrayOutput
- type TranscodingInput
- type TranscodingMap
- type TranscodingMapInput
- type TranscodingMapOutput
- func (TranscodingMapOutput) ElementType() reflect.Type
- func (o TranscodingMapOutput) MapIndex(k pulumi.StringInput) TranscodingOutput
- func (o TranscodingMapOutput) ToTranscodingMapOutput() TranscodingMapOutput
- func (o TranscodingMapOutput) ToTranscodingMapOutputWithContext(ctx context.Context) TranscodingMapOutput
- type TranscodingOutput
- func (o TranscodingOutput) AppName() pulumi.StringOutput
- func (o TranscodingOutput) DomainName() pulumi.StringOutput
- func (TranscodingOutput) ElementType() reflect.Type
- func (o TranscodingOutput) LowBitrateHd() pulumi.BoolOutput
- func (o TranscodingOutput) Region() pulumi.StringOutput
- func (o TranscodingOutput) Templates() TranscodingTemplateArrayOutput
- func (o TranscodingOutput) ToTranscodingOutput() TranscodingOutput
- func (o TranscodingOutput) ToTranscodingOutputWithContext(ctx context.Context) TranscodingOutput
- func (o TranscodingOutput) VideoEncoding() pulumi.StringOutput
- type TranscodingState
- type TranscodingTemplate
- type TranscodingTemplateArgs
- type TranscodingTemplateArray
- type TranscodingTemplateArrayInput
- type TranscodingTemplateArrayOutput
- func (TranscodingTemplateArrayOutput) ElementType() reflect.Type
- func (o TranscodingTemplateArrayOutput) Index(i pulumi.IntInput) TranscodingTemplateOutput
- func (o TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutput() TranscodingTemplateArrayOutput
- func (o TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutputWithContext(ctx context.Context) TranscodingTemplateArrayOutput
- type TranscodingTemplateInput
- type TranscodingTemplateOutput
- func (o TranscodingTemplateOutput) Bitrate() pulumi.IntOutput
- func (TranscodingTemplateOutput) ElementType() reflect.Type
- func (o TranscodingTemplateOutput) FrameRate() pulumi.IntPtrOutput
- func (o TranscodingTemplateOutput) Height() pulumi.IntOutput
- func (o TranscodingTemplateOutput) Name() pulumi.StringOutput
- func (o TranscodingTemplateOutput) ToTranscodingTemplateOutput() TranscodingTemplateOutput
- func (o TranscodingTemplateOutput) ToTranscodingTemplateOutputWithContext(ctx context.Context) TranscodingTemplateOutput
- func (o TranscodingTemplateOutput) Width() pulumi.IntOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Domain ¶
type Domain struct { pulumi.CustomResourceState // CNAME record of the domain name. Cname pulumi.StringOutput `pulumi:"cname"` // Specifies the ingest domain name, which associates with the streaming // domain name to push streams to nearby CDN nodes. IngestDomainName pulumi.StringPtrOutput `pulumi:"ingestDomainName"` // Specifies the domain name. Changing this parameter will create a new resource. Name pulumi.StringOutput `pulumi:"name"` // Specifies the region in which to create the Live domain resource. If omitted, // the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies status of the domain name. The options are as follows: // + **on**: enable the domain name. // + **off**: disable the domain name. Status pulumi.StringOutput `pulumi:"status"` // Specifies the type of domain name. The options are as follows: // + **pull**: streaming domain name. // + **push**: ingest domain name. Type pulumi.StringOutput `pulumi:"type"` }
Manages a Live domain within HuaweiCloud.
## Example Usage ### Create an ingest domain name and a streaming domain name
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Live" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") ingestDomainName := cfg.RequireObject("ingestDomainName") streamingDomainName := cfg.RequireObject("streamingDomainName") ingestDomain, err := Live.NewDomain(ctx, "ingestDomain", &Live.DomainArgs{ Type: pulumi.String("push"), }) if err != nil { return err } _, err = Live.NewDomain(ctx, "streamingDomain", &Live.DomainArgs{ Type: pulumi.String("pull"), IngestDomainName: ingestDomain.Name, }) if err != nil { return err } return nil }) }
```
## Import
Domains can be imported using the `name`, e.g.
```sh
$ pulumi import huaweicloud:Live/domain:Domain test domainName
```
func GetDomain ¶
func GetDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DomainState, opts ...pulumi.ResourceOption) (*Domain, error)
GetDomain gets an existing Domain resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDomain ¶
func NewDomain(ctx *pulumi.Context, name string, args *DomainArgs, opts ...pulumi.ResourceOption) (*Domain, error)
NewDomain registers a new resource with the given unique name, arguments, and options.
func (*Domain) ElementType ¶
func (*Domain) ToDomainOutput ¶
func (i *Domain) ToDomainOutput() DomainOutput
func (*Domain) ToDomainOutputWithContext ¶
func (i *Domain) ToDomainOutputWithContext(ctx context.Context) DomainOutput
type DomainArgs ¶
type DomainArgs struct { // Specifies the ingest domain name, which associates with the streaming // domain name to push streams to nearby CDN nodes. IngestDomainName pulumi.StringPtrInput // Specifies the domain name. Changing this parameter will create a new resource. Name pulumi.StringPtrInput // Specifies the region in which to create the Live domain resource. If omitted, // the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringPtrInput // Specifies status of the domain name. The options are as follows: // + **on**: enable the domain name. // + **off**: disable the domain name. Status pulumi.StringPtrInput // Specifies the type of domain name. The options are as follows: // + **pull**: streaming domain name. // + **push**: ingest domain name. Type pulumi.StringInput }
The set of arguments for constructing a Domain resource.
func (DomainArgs) ElementType ¶
func (DomainArgs) ElementType() reflect.Type
type DomainArray ¶
type DomainArray []DomainInput
func (DomainArray) ElementType ¶
func (DomainArray) ElementType() reflect.Type
func (DomainArray) ToDomainArrayOutput ¶
func (i DomainArray) ToDomainArrayOutput() DomainArrayOutput
func (DomainArray) ToDomainArrayOutputWithContext ¶
func (i DomainArray) ToDomainArrayOutputWithContext(ctx context.Context) DomainArrayOutput
type DomainArrayInput ¶
type DomainArrayInput interface { pulumi.Input ToDomainArrayOutput() DomainArrayOutput ToDomainArrayOutputWithContext(context.Context) DomainArrayOutput }
DomainArrayInput is an input type that accepts DomainArray and DomainArrayOutput values. You can construct a concrete instance of `DomainArrayInput` via:
DomainArray{ DomainArgs{...} }
type DomainArrayOutput ¶
type DomainArrayOutput struct{ *pulumi.OutputState }
func (DomainArrayOutput) ElementType ¶
func (DomainArrayOutput) ElementType() reflect.Type
func (DomainArrayOutput) Index ¶
func (o DomainArrayOutput) Index(i pulumi.IntInput) DomainOutput
func (DomainArrayOutput) ToDomainArrayOutput ¶
func (o DomainArrayOutput) ToDomainArrayOutput() DomainArrayOutput
func (DomainArrayOutput) ToDomainArrayOutputWithContext ¶
func (o DomainArrayOutput) ToDomainArrayOutputWithContext(ctx context.Context) DomainArrayOutput
type DomainInput ¶
type DomainInput interface { pulumi.Input ToDomainOutput() DomainOutput ToDomainOutputWithContext(ctx context.Context) DomainOutput }
type DomainMap ¶
type DomainMap map[string]DomainInput
func (DomainMap) ElementType ¶
func (DomainMap) ToDomainMapOutput ¶
func (i DomainMap) ToDomainMapOutput() DomainMapOutput
func (DomainMap) ToDomainMapOutputWithContext ¶
func (i DomainMap) ToDomainMapOutputWithContext(ctx context.Context) DomainMapOutput
type DomainMapInput ¶
type DomainMapInput interface { pulumi.Input ToDomainMapOutput() DomainMapOutput ToDomainMapOutputWithContext(context.Context) DomainMapOutput }
DomainMapInput is an input type that accepts DomainMap and DomainMapOutput values. You can construct a concrete instance of `DomainMapInput` via:
DomainMap{ "key": DomainArgs{...} }
type DomainMapOutput ¶
type DomainMapOutput struct{ *pulumi.OutputState }
func (DomainMapOutput) ElementType ¶
func (DomainMapOutput) ElementType() reflect.Type
func (DomainMapOutput) MapIndex ¶
func (o DomainMapOutput) MapIndex(k pulumi.StringInput) DomainOutput
func (DomainMapOutput) ToDomainMapOutput ¶
func (o DomainMapOutput) ToDomainMapOutput() DomainMapOutput
func (DomainMapOutput) ToDomainMapOutputWithContext ¶
func (o DomainMapOutput) ToDomainMapOutputWithContext(ctx context.Context) DomainMapOutput
type DomainOutput ¶
type DomainOutput struct{ *pulumi.OutputState }
func (DomainOutput) Cname ¶
func (o DomainOutput) Cname() pulumi.StringOutput
CNAME record of the domain name.
func (DomainOutput) ElementType ¶
func (DomainOutput) ElementType() reflect.Type
func (DomainOutput) IngestDomainName ¶
func (o DomainOutput) IngestDomainName() pulumi.StringPtrOutput
Specifies the ingest domain name, which associates with the streaming domain name to push streams to nearby CDN nodes.
func (DomainOutput) Name ¶
func (o DomainOutput) Name() pulumi.StringOutput
Specifies the domain name. Changing this parameter will create a new resource.
func (DomainOutput) Region ¶
func (o DomainOutput) Region() pulumi.StringOutput
Specifies the region in which to create the Live domain resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
func (DomainOutput) Status ¶
func (o DomainOutput) Status() pulumi.StringOutput
Specifies status of the domain name. The options are as follows: + **on**: enable the domain name. + **off**: disable the domain name.
func (DomainOutput) ToDomainOutput ¶
func (o DomainOutput) ToDomainOutput() DomainOutput
func (DomainOutput) ToDomainOutputWithContext ¶
func (o DomainOutput) ToDomainOutputWithContext(ctx context.Context) DomainOutput
func (DomainOutput) Type ¶
func (o DomainOutput) Type() pulumi.StringOutput
Specifies the type of domain name. The options are as follows: + **pull**: streaming domain name. + **push**: ingest domain name.
type DomainState ¶
type DomainState struct { // CNAME record of the domain name. Cname pulumi.StringPtrInput // Specifies the ingest domain name, which associates with the streaming // domain name to push streams to nearby CDN nodes. IngestDomainName pulumi.StringPtrInput // Specifies the domain name. Changing this parameter will create a new resource. Name pulumi.StringPtrInput // Specifies the region in which to create the Live domain resource. If omitted, // the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringPtrInput // Specifies status of the domain name. The options are as follows: // + **on**: enable the domain name. // + **off**: disable the domain name. Status pulumi.StringPtrInput // Specifies the type of domain name. The options are as follows: // + **pull**: streaming domain name. // + **push**: ingest domain name. Type pulumi.StringPtrInput }
func (DomainState) ElementType ¶
func (DomainState) ElementType() reflect.Type
type RecordCallback ¶
type RecordCallback struct { pulumi.CustomResourceState // Specifies the ingest domain name. // Changing this parameter will create a new resource. DomainName pulumi.StringOutput `pulumi:"domainName"` // Specifies the region in which to create the resource. // If omitted, the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies the types of recording notifications. The options are as follows: // + **RECORD_NEW_FILE_START**: Recording started. // + **RECORD_FILE_COMPLETE**: Recording file generated. // + **RECORD_OVER**: Recording completed. // + **RECORD_FAILED**: Recording failed. Types pulumi.StringArrayOutput `pulumi:"types"` // Specifies the callback URL for sending recording notifications, which must start with // `http://` or `https://`, and cannot contain message headers or parameters. Url pulumi.StringOutput `pulumi:"url"` }
Manages a callback configuration within HuaweiCloud Live.
> Only one callback configuration can be created for an ingestion domain name.
## Example Usage ### Create a callback configuration for an ingest domain name
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Live" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") ingestDomainName := cfg.RequireObject("ingestDomainName") _, err := Live.NewDomain(ctx, "ingestDomain", &Live.DomainArgs{ Type: pulumi.String("push"), }) if err != nil { return err } _, err = Live.NewRecordCallback(ctx, "callback", &Live.RecordCallbackArgs{ DomainName: pulumi.Any(ingestDomainName), Url: pulumi.String("http://mycallback.com.cn/record_notify"), Types: pulumi.StringArray{ pulumi.String("RECORD_NEW_FILE_START"), }, }) if err != nil { return err } return nil }) }
```
## Import
Callback configurations can be imported using the `id`, e.g.
```sh
$ pulumi import huaweicloud:Live/recordCallback:RecordCallback test 55534eaa-533a-419d-9b40-ec427ea7195a
```
func GetRecordCallback ¶
func GetRecordCallback(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RecordCallbackState, opts ...pulumi.ResourceOption) (*RecordCallback, error)
GetRecordCallback gets an existing RecordCallback resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRecordCallback ¶
func NewRecordCallback(ctx *pulumi.Context, name string, args *RecordCallbackArgs, opts ...pulumi.ResourceOption) (*RecordCallback, error)
NewRecordCallback registers a new resource with the given unique name, arguments, and options.
func (*RecordCallback) ElementType ¶
func (*RecordCallback) ElementType() reflect.Type
func (*RecordCallback) ToRecordCallbackOutput ¶
func (i *RecordCallback) ToRecordCallbackOutput() RecordCallbackOutput
func (*RecordCallback) ToRecordCallbackOutputWithContext ¶
func (i *RecordCallback) ToRecordCallbackOutputWithContext(ctx context.Context) RecordCallbackOutput
type RecordCallbackArgs ¶
type RecordCallbackArgs struct { // Specifies the ingest domain name. // Changing this parameter will create a new resource. DomainName pulumi.StringInput // Specifies the region in which to create the resource. // If omitted, the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringPtrInput // Specifies the types of recording notifications. The options are as follows: // + **RECORD_NEW_FILE_START**: Recording started. // + **RECORD_FILE_COMPLETE**: Recording file generated. // + **RECORD_OVER**: Recording completed. // + **RECORD_FAILED**: Recording failed. Types pulumi.StringArrayInput // Specifies the callback URL for sending recording notifications, which must start with // `http://` or `https://`, and cannot contain message headers or parameters. Url pulumi.StringInput }
The set of arguments for constructing a RecordCallback resource.
func (RecordCallbackArgs) ElementType ¶
func (RecordCallbackArgs) ElementType() reflect.Type
type RecordCallbackArray ¶
type RecordCallbackArray []RecordCallbackInput
func (RecordCallbackArray) ElementType ¶
func (RecordCallbackArray) ElementType() reflect.Type
func (RecordCallbackArray) ToRecordCallbackArrayOutput ¶
func (i RecordCallbackArray) ToRecordCallbackArrayOutput() RecordCallbackArrayOutput
func (RecordCallbackArray) ToRecordCallbackArrayOutputWithContext ¶
func (i RecordCallbackArray) ToRecordCallbackArrayOutputWithContext(ctx context.Context) RecordCallbackArrayOutput
type RecordCallbackArrayInput ¶
type RecordCallbackArrayInput interface { pulumi.Input ToRecordCallbackArrayOutput() RecordCallbackArrayOutput ToRecordCallbackArrayOutputWithContext(context.Context) RecordCallbackArrayOutput }
RecordCallbackArrayInput is an input type that accepts RecordCallbackArray and RecordCallbackArrayOutput values. You can construct a concrete instance of `RecordCallbackArrayInput` via:
RecordCallbackArray{ RecordCallbackArgs{...} }
type RecordCallbackArrayOutput ¶
type RecordCallbackArrayOutput struct{ *pulumi.OutputState }
func (RecordCallbackArrayOutput) ElementType ¶
func (RecordCallbackArrayOutput) ElementType() reflect.Type
func (RecordCallbackArrayOutput) Index ¶
func (o RecordCallbackArrayOutput) Index(i pulumi.IntInput) RecordCallbackOutput
func (RecordCallbackArrayOutput) ToRecordCallbackArrayOutput ¶
func (o RecordCallbackArrayOutput) ToRecordCallbackArrayOutput() RecordCallbackArrayOutput
func (RecordCallbackArrayOutput) ToRecordCallbackArrayOutputWithContext ¶
func (o RecordCallbackArrayOutput) ToRecordCallbackArrayOutputWithContext(ctx context.Context) RecordCallbackArrayOutput
type RecordCallbackInput ¶
type RecordCallbackInput interface { pulumi.Input ToRecordCallbackOutput() RecordCallbackOutput ToRecordCallbackOutputWithContext(ctx context.Context) RecordCallbackOutput }
type RecordCallbackMap ¶
type RecordCallbackMap map[string]RecordCallbackInput
func (RecordCallbackMap) ElementType ¶
func (RecordCallbackMap) ElementType() reflect.Type
func (RecordCallbackMap) ToRecordCallbackMapOutput ¶
func (i RecordCallbackMap) ToRecordCallbackMapOutput() RecordCallbackMapOutput
func (RecordCallbackMap) ToRecordCallbackMapOutputWithContext ¶
func (i RecordCallbackMap) ToRecordCallbackMapOutputWithContext(ctx context.Context) RecordCallbackMapOutput
type RecordCallbackMapInput ¶
type RecordCallbackMapInput interface { pulumi.Input ToRecordCallbackMapOutput() RecordCallbackMapOutput ToRecordCallbackMapOutputWithContext(context.Context) RecordCallbackMapOutput }
RecordCallbackMapInput is an input type that accepts RecordCallbackMap and RecordCallbackMapOutput values. You can construct a concrete instance of `RecordCallbackMapInput` via:
RecordCallbackMap{ "key": RecordCallbackArgs{...} }
type RecordCallbackMapOutput ¶
type RecordCallbackMapOutput struct{ *pulumi.OutputState }
func (RecordCallbackMapOutput) ElementType ¶
func (RecordCallbackMapOutput) ElementType() reflect.Type
func (RecordCallbackMapOutput) MapIndex ¶
func (o RecordCallbackMapOutput) MapIndex(k pulumi.StringInput) RecordCallbackOutput
func (RecordCallbackMapOutput) ToRecordCallbackMapOutput ¶
func (o RecordCallbackMapOutput) ToRecordCallbackMapOutput() RecordCallbackMapOutput
func (RecordCallbackMapOutput) ToRecordCallbackMapOutputWithContext ¶
func (o RecordCallbackMapOutput) ToRecordCallbackMapOutputWithContext(ctx context.Context) RecordCallbackMapOutput
type RecordCallbackOutput ¶
type RecordCallbackOutput struct{ *pulumi.OutputState }
func (RecordCallbackOutput) DomainName ¶
func (o RecordCallbackOutput) DomainName() pulumi.StringOutput
Specifies the ingest domain name. Changing this parameter will create a new resource.
func (RecordCallbackOutput) ElementType ¶
func (RecordCallbackOutput) ElementType() reflect.Type
func (RecordCallbackOutput) Region ¶
func (o RecordCallbackOutput) Region() pulumi.StringOutput
Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
func (RecordCallbackOutput) ToRecordCallbackOutput ¶
func (o RecordCallbackOutput) ToRecordCallbackOutput() RecordCallbackOutput
func (RecordCallbackOutput) ToRecordCallbackOutputWithContext ¶
func (o RecordCallbackOutput) ToRecordCallbackOutputWithContext(ctx context.Context) RecordCallbackOutput
func (RecordCallbackOutput) Types ¶
func (o RecordCallbackOutput) Types() pulumi.StringArrayOutput
Specifies the types of recording notifications. The options are as follows: + **RECORD_NEW_FILE_START**: Recording started. + **RECORD_FILE_COMPLETE**: Recording file generated. + **RECORD_OVER**: Recording completed. + **RECORD_FAILED**: Recording failed.
func (RecordCallbackOutput) Url ¶
func (o RecordCallbackOutput) Url() pulumi.StringOutput
Specifies the callback URL for sending recording notifications, which must start with `http://` or `https://`, and cannot contain message headers or parameters.
type RecordCallbackState ¶
type RecordCallbackState struct { // Specifies the ingest domain name. // Changing this parameter will create a new resource. DomainName pulumi.StringPtrInput // Specifies the region in which to create the resource. // If omitted, the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringPtrInput // Specifies the types of recording notifications. The options are as follows: // + **RECORD_NEW_FILE_START**: Recording started. // + **RECORD_FILE_COMPLETE**: Recording file generated. // + **RECORD_OVER**: Recording completed. // + **RECORD_FAILED**: Recording failed. Types pulumi.StringArrayInput // Specifies the callback URL for sending recording notifications, which must start with // `http://` or `https://`, and cannot contain message headers or parameters. Url pulumi.StringPtrInput }
func (RecordCallbackState) ElementType ¶
func (RecordCallbackState) ElementType() reflect.Type
type Recording ¶
type Recording struct { pulumi.CustomResourceState // Specifies the application name. To match all names, use an asterisk (*). AppName pulumi.StringOutput `pulumi:"appName"` // Specifies the ingest domain name. DomainName pulumi.StringOutput `pulumi:"domainName"` // Specifies the FLV configuration rule for storing recording as FLV. // The flv structure is documented below. Flv RecordingFlvPtrOutput `pulumi:"flv"` // Specifies the HLS configuration rule for storing recording as HLS. // The hls structure is documented below. Hls RecordingHlsPtrOutput `pulumi:"hls"` // Specifies the MP4 configuration rule for storing recording as MP4. // The mp4 structure is documented below. Mp4 RecordingMp4PtrOutput `pulumi:"mp4"` // Specifies the obs for storing recordings. // The obs structure is documented below. Obs RecordingObsOutput `pulumi:"obs"` // Specifies the region of OBS. Region pulumi.StringOutput `pulumi:"region"` // Specifies the stream name. To match all names, use an asterisk (*). StreamName pulumi.StringOutput `pulumi:"streamName"` // Specifies the types of recording notifications. The options are as follows: // + **CONTINUOUS_RECORD**: continuous recording. Recording is triggered once streams are pushed to the recording system. // + **COMMAND_RECORD**: command-based recording. Tenants need to run commands to start and stop recording after streams // are pushed to the recording system. Type pulumi.StringOutput `pulumi:"type"` }
Manages a recording template within HuaweiCloud Live.
## Example Usage ### Create a recording template for an ingest domain name
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Live" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Live" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") ingestDomainName := cfg.RequireObject("ingestDomainName") bucketRegion := cfg.RequireObject("bucketRegion") bucketName := cfg.RequireObject("bucketName") ingestDomain, err := Live.NewDomain(ctx, "ingestDomain", &Live.DomainArgs{ Type: pulumi.String("push"), }) if err != nil { return err } _, err = Live.NewRecording(ctx, "recording", &Live.RecordingArgs{ DomainName: ingestDomain.Name, AppName: pulumi.String("live"), StreamName: pulumi.String("stream_name"), Type: pulumi.String("CONTINUOUS_RECORD"), Obs: &live.RecordingObsArgs{ Region: pulumi.Any(bucketRegion), Bucket: pulumi.Any(bucketName), }, Hls: &live.RecordingHlsArgs{ RecordingLength: pulumi.Int(15), }, }) if err != nil { return err } return nil }) }
```
## Import
Recording templates can be imported using the `id`, e.g.
```sh
$ pulumi import huaweicloud:Live/recording:Recording test 55534eaa-533a-419d-9b40-ec427ea7195a
```
func GetRecording ¶
func GetRecording(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RecordingState, opts ...pulumi.ResourceOption) (*Recording, error)
GetRecording gets an existing Recording resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRecording ¶
func NewRecording(ctx *pulumi.Context, name string, args *RecordingArgs, opts ...pulumi.ResourceOption) (*Recording, error)
NewRecording registers a new resource with the given unique name, arguments, and options.
func (*Recording) ElementType ¶
func (*Recording) ToRecordingOutput ¶
func (i *Recording) ToRecordingOutput() RecordingOutput
func (*Recording) ToRecordingOutputWithContext ¶
func (i *Recording) ToRecordingOutputWithContext(ctx context.Context) RecordingOutput
type RecordingArgs ¶
type RecordingArgs struct { // Specifies the application name. To match all names, use an asterisk (*). AppName pulumi.StringInput // Specifies the ingest domain name. DomainName pulumi.StringInput // Specifies the FLV configuration rule for storing recording as FLV. // The flv structure is documented below. Flv RecordingFlvPtrInput // Specifies the HLS configuration rule for storing recording as HLS. // The hls structure is documented below. Hls RecordingHlsPtrInput // Specifies the MP4 configuration rule for storing recording as MP4. // The mp4 structure is documented below. Mp4 RecordingMp4PtrInput // Specifies the obs for storing recordings. // The obs structure is documented below. Obs RecordingObsInput // Specifies the region of OBS. Region pulumi.StringPtrInput // Specifies the stream name. To match all names, use an asterisk (*). StreamName pulumi.StringInput // Specifies the types of recording notifications. The options are as follows: // + **CONTINUOUS_RECORD**: continuous recording. Recording is triggered once streams are pushed to the recording system. // + **COMMAND_RECORD**: command-based recording. Tenants need to run commands to start and stop recording after streams // are pushed to the recording system. Type pulumi.StringPtrInput }
The set of arguments for constructing a Recording resource.
func (RecordingArgs) ElementType ¶
func (RecordingArgs) ElementType() reflect.Type
type RecordingArray ¶
type RecordingArray []RecordingInput
func (RecordingArray) ElementType ¶
func (RecordingArray) ElementType() reflect.Type
func (RecordingArray) ToRecordingArrayOutput ¶
func (i RecordingArray) ToRecordingArrayOutput() RecordingArrayOutput
func (RecordingArray) ToRecordingArrayOutputWithContext ¶
func (i RecordingArray) ToRecordingArrayOutputWithContext(ctx context.Context) RecordingArrayOutput
type RecordingArrayInput ¶
type RecordingArrayInput interface { pulumi.Input ToRecordingArrayOutput() RecordingArrayOutput ToRecordingArrayOutputWithContext(context.Context) RecordingArrayOutput }
RecordingArrayInput is an input type that accepts RecordingArray and RecordingArrayOutput values. You can construct a concrete instance of `RecordingArrayInput` via:
RecordingArray{ RecordingArgs{...} }
type RecordingArrayOutput ¶
type RecordingArrayOutput struct{ *pulumi.OutputState }
func (RecordingArrayOutput) ElementType ¶
func (RecordingArrayOutput) ElementType() reflect.Type
func (RecordingArrayOutput) Index ¶
func (o RecordingArrayOutput) Index(i pulumi.IntInput) RecordingOutput
func (RecordingArrayOutput) ToRecordingArrayOutput ¶
func (o RecordingArrayOutput) ToRecordingArrayOutput() RecordingArrayOutput
func (RecordingArrayOutput) ToRecordingArrayOutputWithContext ¶
func (o RecordingArrayOutput) ToRecordingArrayOutputWithContext(ctx context.Context) RecordingArrayOutput
type RecordingFlv ¶
type RecordingFlv struct { // Specifies the path and file name prefix of a recording file. The default value is // `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`. FileNaming *string `pulumi:"fileNaming"` // Specifies the interval threshold for combining recording chunks. If the // stream pause length exceeds the value of this parameter, a new recording is generated. // Value range: 0 ~ 300, unit: `second`. // If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`. MaxStreamPauseLength *int `pulumi:"maxStreamPauseLength"` // Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. // A stream exceeding the recording length will generate a new recording. RecordingLength int `pulumi:"recordingLength"` }
type RecordingFlvArgs ¶
type RecordingFlvArgs struct { // Specifies the path and file name prefix of a recording file. The default value is // `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`. FileNaming pulumi.StringPtrInput `pulumi:"fileNaming"` // Specifies the interval threshold for combining recording chunks. If the // stream pause length exceeds the value of this parameter, a new recording is generated. // Value range: 0 ~ 300, unit: `second`. // If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`. MaxStreamPauseLength pulumi.IntPtrInput `pulumi:"maxStreamPauseLength"` // Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. // A stream exceeding the recording length will generate a new recording. RecordingLength pulumi.IntInput `pulumi:"recordingLength"` }
func (RecordingFlvArgs) ElementType ¶
func (RecordingFlvArgs) ElementType() reflect.Type
func (RecordingFlvArgs) ToRecordingFlvOutput ¶
func (i RecordingFlvArgs) ToRecordingFlvOutput() RecordingFlvOutput
func (RecordingFlvArgs) ToRecordingFlvOutputWithContext ¶
func (i RecordingFlvArgs) ToRecordingFlvOutputWithContext(ctx context.Context) RecordingFlvOutput
func (RecordingFlvArgs) ToRecordingFlvPtrOutput ¶
func (i RecordingFlvArgs) ToRecordingFlvPtrOutput() RecordingFlvPtrOutput
func (RecordingFlvArgs) ToRecordingFlvPtrOutputWithContext ¶
func (i RecordingFlvArgs) ToRecordingFlvPtrOutputWithContext(ctx context.Context) RecordingFlvPtrOutput
type RecordingFlvInput ¶
type RecordingFlvInput interface { pulumi.Input ToRecordingFlvOutput() RecordingFlvOutput ToRecordingFlvOutputWithContext(context.Context) RecordingFlvOutput }
RecordingFlvInput is an input type that accepts RecordingFlvArgs and RecordingFlvOutput values. You can construct a concrete instance of `RecordingFlvInput` via:
RecordingFlvArgs{...}
type RecordingFlvOutput ¶
type RecordingFlvOutput struct{ *pulumi.OutputState }
func (RecordingFlvOutput) ElementType ¶
func (RecordingFlvOutput) ElementType() reflect.Type
func (RecordingFlvOutput) FileNaming ¶
func (o RecordingFlvOutput) FileNaming() pulumi.StringPtrOutput
Specifies the path and file name prefix of a recording file. The default value is `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`.
func (RecordingFlvOutput) MaxStreamPauseLength ¶
func (o RecordingFlvOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
Specifies the interval threshold for combining recording chunks. If the stream pause length exceeds the value of this parameter, a new recording is generated. Value range: 0 ~ 300, unit: `second`. If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`.
func (RecordingFlvOutput) RecordingLength ¶
func (o RecordingFlvOutput) RecordingLength() pulumi.IntOutput
Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. A stream exceeding the recording length will generate a new recording.
func (RecordingFlvOutput) ToRecordingFlvOutput ¶
func (o RecordingFlvOutput) ToRecordingFlvOutput() RecordingFlvOutput
func (RecordingFlvOutput) ToRecordingFlvOutputWithContext ¶
func (o RecordingFlvOutput) ToRecordingFlvOutputWithContext(ctx context.Context) RecordingFlvOutput
func (RecordingFlvOutput) ToRecordingFlvPtrOutput ¶
func (o RecordingFlvOutput) ToRecordingFlvPtrOutput() RecordingFlvPtrOutput
func (RecordingFlvOutput) ToRecordingFlvPtrOutputWithContext ¶
func (o RecordingFlvOutput) ToRecordingFlvPtrOutputWithContext(ctx context.Context) RecordingFlvPtrOutput
type RecordingFlvPtrInput ¶
type RecordingFlvPtrInput interface { pulumi.Input ToRecordingFlvPtrOutput() RecordingFlvPtrOutput ToRecordingFlvPtrOutputWithContext(context.Context) RecordingFlvPtrOutput }
RecordingFlvPtrInput is an input type that accepts RecordingFlvArgs, RecordingFlvPtr and RecordingFlvPtrOutput values. You can construct a concrete instance of `RecordingFlvPtrInput` via:
RecordingFlvArgs{...} or: nil
func RecordingFlvPtr ¶
func RecordingFlvPtr(v *RecordingFlvArgs) RecordingFlvPtrInput
type RecordingFlvPtrOutput ¶
type RecordingFlvPtrOutput struct{ *pulumi.OutputState }
func (RecordingFlvPtrOutput) Elem ¶
func (o RecordingFlvPtrOutput) Elem() RecordingFlvOutput
func (RecordingFlvPtrOutput) ElementType ¶
func (RecordingFlvPtrOutput) ElementType() reflect.Type
func (RecordingFlvPtrOutput) FileNaming ¶
func (o RecordingFlvPtrOutput) FileNaming() pulumi.StringPtrOutput
Specifies the path and file name prefix of a recording file. The default value is `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`.
func (RecordingFlvPtrOutput) MaxStreamPauseLength ¶
func (o RecordingFlvPtrOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
Specifies the interval threshold for combining recording chunks. If the stream pause length exceeds the value of this parameter, a new recording is generated. Value range: 0 ~ 300, unit: `second`. If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`.
func (RecordingFlvPtrOutput) RecordingLength ¶
func (o RecordingFlvPtrOutput) RecordingLength() pulumi.IntPtrOutput
Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. A stream exceeding the recording length will generate a new recording.
func (RecordingFlvPtrOutput) ToRecordingFlvPtrOutput ¶
func (o RecordingFlvPtrOutput) ToRecordingFlvPtrOutput() RecordingFlvPtrOutput
func (RecordingFlvPtrOutput) ToRecordingFlvPtrOutputWithContext ¶
func (o RecordingFlvPtrOutput) ToRecordingFlvPtrOutputWithContext(ctx context.Context) RecordingFlvPtrOutput
type RecordingHls ¶
type RecordingHls struct { // Specifies the path and file name prefix of a recording file. The default value is // `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`. FileNaming *string `pulumi:"fileNaming"` // Specifies the interval threshold for combining recording chunks. If the // stream pause length exceeds the value of this parameter, a new recording is generated. // Value range: 0 ~ 300, unit: `second`. // If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`. MaxStreamPauseLength *int `pulumi:"maxStreamPauseLength"` // Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. // A stream exceeding the recording length will generate a new recording. RecordingLength int `pulumi:"recordingLength"` // Specifies TS file name prefix. // The default value is `{file_start_time_unix}_{file_end_time_unix}_{ts_sequence_number}`. TsFileNaming *string `pulumi:"tsFileNaming"` }
type RecordingHlsArgs ¶
type RecordingHlsArgs struct { // Specifies the path and file name prefix of a recording file. The default value is // `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`. FileNaming pulumi.StringPtrInput `pulumi:"fileNaming"` // Specifies the interval threshold for combining recording chunks. If the // stream pause length exceeds the value of this parameter, a new recording is generated. // Value range: 0 ~ 300, unit: `second`. // If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`. MaxStreamPauseLength pulumi.IntPtrInput `pulumi:"maxStreamPauseLength"` // Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. // A stream exceeding the recording length will generate a new recording. RecordingLength pulumi.IntInput `pulumi:"recordingLength"` // Specifies TS file name prefix. // The default value is `{file_start_time_unix}_{file_end_time_unix}_{ts_sequence_number}`. TsFileNaming pulumi.StringPtrInput `pulumi:"tsFileNaming"` }
func (RecordingHlsArgs) ElementType ¶
func (RecordingHlsArgs) ElementType() reflect.Type
func (RecordingHlsArgs) ToRecordingHlsOutput ¶
func (i RecordingHlsArgs) ToRecordingHlsOutput() RecordingHlsOutput
func (RecordingHlsArgs) ToRecordingHlsOutputWithContext ¶
func (i RecordingHlsArgs) ToRecordingHlsOutputWithContext(ctx context.Context) RecordingHlsOutput
func (RecordingHlsArgs) ToRecordingHlsPtrOutput ¶
func (i RecordingHlsArgs) ToRecordingHlsPtrOutput() RecordingHlsPtrOutput
func (RecordingHlsArgs) ToRecordingHlsPtrOutputWithContext ¶
func (i RecordingHlsArgs) ToRecordingHlsPtrOutputWithContext(ctx context.Context) RecordingHlsPtrOutput
type RecordingHlsInput ¶
type RecordingHlsInput interface { pulumi.Input ToRecordingHlsOutput() RecordingHlsOutput ToRecordingHlsOutputWithContext(context.Context) RecordingHlsOutput }
RecordingHlsInput is an input type that accepts RecordingHlsArgs and RecordingHlsOutput values. You can construct a concrete instance of `RecordingHlsInput` via:
RecordingHlsArgs{...}
type RecordingHlsOutput ¶
type RecordingHlsOutput struct{ *pulumi.OutputState }
func (RecordingHlsOutput) ElementType ¶
func (RecordingHlsOutput) ElementType() reflect.Type
func (RecordingHlsOutput) FileNaming ¶
func (o RecordingHlsOutput) FileNaming() pulumi.StringPtrOutput
Specifies the path and file name prefix of a recording file. The default value is `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`.
func (RecordingHlsOutput) MaxStreamPauseLength ¶
func (o RecordingHlsOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
Specifies the interval threshold for combining recording chunks. If the stream pause length exceeds the value of this parameter, a new recording is generated. Value range: 0 ~ 300, unit: `second`. If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`.
func (RecordingHlsOutput) RecordingLength ¶
func (o RecordingHlsOutput) RecordingLength() pulumi.IntOutput
Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. A stream exceeding the recording length will generate a new recording.
func (RecordingHlsOutput) ToRecordingHlsOutput ¶
func (o RecordingHlsOutput) ToRecordingHlsOutput() RecordingHlsOutput
func (RecordingHlsOutput) ToRecordingHlsOutputWithContext ¶
func (o RecordingHlsOutput) ToRecordingHlsOutputWithContext(ctx context.Context) RecordingHlsOutput
func (RecordingHlsOutput) ToRecordingHlsPtrOutput ¶
func (o RecordingHlsOutput) ToRecordingHlsPtrOutput() RecordingHlsPtrOutput
func (RecordingHlsOutput) ToRecordingHlsPtrOutputWithContext ¶
func (o RecordingHlsOutput) ToRecordingHlsPtrOutputWithContext(ctx context.Context) RecordingHlsPtrOutput
func (RecordingHlsOutput) TsFileNaming ¶
func (o RecordingHlsOutput) TsFileNaming() pulumi.StringPtrOutput
Specifies TS file name prefix. The default value is `{file_start_time_unix}_{file_end_time_unix}_{ts_sequence_number}`.
type RecordingHlsPtrInput ¶
type RecordingHlsPtrInput interface { pulumi.Input ToRecordingHlsPtrOutput() RecordingHlsPtrOutput ToRecordingHlsPtrOutputWithContext(context.Context) RecordingHlsPtrOutput }
RecordingHlsPtrInput is an input type that accepts RecordingHlsArgs, RecordingHlsPtr and RecordingHlsPtrOutput values. You can construct a concrete instance of `RecordingHlsPtrInput` via:
RecordingHlsArgs{...} or: nil
func RecordingHlsPtr ¶
func RecordingHlsPtr(v *RecordingHlsArgs) RecordingHlsPtrInput
type RecordingHlsPtrOutput ¶
type RecordingHlsPtrOutput struct{ *pulumi.OutputState }
func (RecordingHlsPtrOutput) Elem ¶
func (o RecordingHlsPtrOutput) Elem() RecordingHlsOutput
func (RecordingHlsPtrOutput) ElementType ¶
func (RecordingHlsPtrOutput) ElementType() reflect.Type
func (RecordingHlsPtrOutput) FileNaming ¶
func (o RecordingHlsPtrOutput) FileNaming() pulumi.StringPtrOutput
Specifies the path and file name prefix of a recording file. The default value is `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`.
func (RecordingHlsPtrOutput) MaxStreamPauseLength ¶
func (o RecordingHlsPtrOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
Specifies the interval threshold for combining recording chunks. If the stream pause length exceeds the value of this parameter, a new recording is generated. Value range: 0 ~ 300, unit: `second`. If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`.
func (RecordingHlsPtrOutput) RecordingLength ¶
func (o RecordingHlsPtrOutput) RecordingLength() pulumi.IntPtrOutput
Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. A stream exceeding the recording length will generate a new recording.
func (RecordingHlsPtrOutput) ToRecordingHlsPtrOutput ¶
func (o RecordingHlsPtrOutput) ToRecordingHlsPtrOutput() RecordingHlsPtrOutput
func (RecordingHlsPtrOutput) ToRecordingHlsPtrOutputWithContext ¶
func (o RecordingHlsPtrOutput) ToRecordingHlsPtrOutputWithContext(ctx context.Context) RecordingHlsPtrOutput
func (RecordingHlsPtrOutput) TsFileNaming ¶
func (o RecordingHlsPtrOutput) TsFileNaming() pulumi.StringPtrOutput
Specifies TS file name prefix. The default value is `{file_start_time_unix}_{file_end_time_unix}_{ts_sequence_number}`.
type RecordingInput ¶
type RecordingInput interface { pulumi.Input ToRecordingOutput() RecordingOutput ToRecordingOutputWithContext(ctx context.Context) RecordingOutput }
type RecordingMap ¶
type RecordingMap map[string]RecordingInput
func (RecordingMap) ElementType ¶
func (RecordingMap) ElementType() reflect.Type
func (RecordingMap) ToRecordingMapOutput ¶
func (i RecordingMap) ToRecordingMapOutput() RecordingMapOutput
func (RecordingMap) ToRecordingMapOutputWithContext ¶
func (i RecordingMap) ToRecordingMapOutputWithContext(ctx context.Context) RecordingMapOutput
type RecordingMapInput ¶
type RecordingMapInput interface { pulumi.Input ToRecordingMapOutput() RecordingMapOutput ToRecordingMapOutputWithContext(context.Context) RecordingMapOutput }
RecordingMapInput is an input type that accepts RecordingMap and RecordingMapOutput values. You can construct a concrete instance of `RecordingMapInput` via:
RecordingMap{ "key": RecordingArgs{...} }
type RecordingMapOutput ¶
type RecordingMapOutput struct{ *pulumi.OutputState }
func (RecordingMapOutput) ElementType ¶
func (RecordingMapOutput) ElementType() reflect.Type
func (RecordingMapOutput) MapIndex ¶
func (o RecordingMapOutput) MapIndex(k pulumi.StringInput) RecordingOutput
func (RecordingMapOutput) ToRecordingMapOutput ¶
func (o RecordingMapOutput) ToRecordingMapOutput() RecordingMapOutput
func (RecordingMapOutput) ToRecordingMapOutputWithContext ¶
func (o RecordingMapOutput) ToRecordingMapOutputWithContext(ctx context.Context) RecordingMapOutput
type RecordingMp4 ¶
type RecordingMp4 struct { // Specifies the path and file name prefix of a recording file. The default value is // `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`. FileNaming *string `pulumi:"fileNaming"` // Specifies the interval threshold for combining recording chunks. If the // stream pause length exceeds the value of this parameter, a new recording is generated. // Value range: 0 ~ 300, unit: `second`. // If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`. MaxStreamPauseLength *int `pulumi:"maxStreamPauseLength"` // Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. // A stream exceeding the recording length will generate a new recording. RecordingLength int `pulumi:"recordingLength"` }
type RecordingMp4Args ¶
type RecordingMp4Args struct { // Specifies the path and file name prefix of a recording file. The default value is // `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`. FileNaming pulumi.StringPtrInput `pulumi:"fileNaming"` // Specifies the interval threshold for combining recording chunks. If the // stream pause length exceeds the value of this parameter, a new recording is generated. // Value range: 0 ~ 300, unit: `second`. // If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`. MaxStreamPauseLength pulumi.IntPtrInput `pulumi:"maxStreamPauseLength"` // Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. // A stream exceeding the recording length will generate a new recording. RecordingLength pulumi.IntInput `pulumi:"recordingLength"` }
func (RecordingMp4Args) ElementType ¶
func (RecordingMp4Args) ElementType() reflect.Type
func (RecordingMp4Args) ToRecordingMp4Output ¶
func (i RecordingMp4Args) ToRecordingMp4Output() RecordingMp4Output
func (RecordingMp4Args) ToRecordingMp4OutputWithContext ¶
func (i RecordingMp4Args) ToRecordingMp4OutputWithContext(ctx context.Context) RecordingMp4Output
func (RecordingMp4Args) ToRecordingMp4PtrOutput ¶
func (i RecordingMp4Args) ToRecordingMp4PtrOutput() RecordingMp4PtrOutput
func (RecordingMp4Args) ToRecordingMp4PtrOutputWithContext ¶
func (i RecordingMp4Args) ToRecordingMp4PtrOutputWithContext(ctx context.Context) RecordingMp4PtrOutput
type RecordingMp4Input ¶
type RecordingMp4Input interface { pulumi.Input ToRecordingMp4Output() RecordingMp4Output ToRecordingMp4OutputWithContext(context.Context) RecordingMp4Output }
RecordingMp4Input is an input type that accepts RecordingMp4Args and RecordingMp4Output values. You can construct a concrete instance of `RecordingMp4Input` via:
RecordingMp4Args{...}
type RecordingMp4Output ¶
type RecordingMp4Output struct{ *pulumi.OutputState }
func (RecordingMp4Output) ElementType ¶
func (RecordingMp4Output) ElementType() reflect.Type
func (RecordingMp4Output) FileNaming ¶
func (o RecordingMp4Output) FileNaming() pulumi.StringPtrOutput
Specifies the path and file name prefix of a recording file. The default value is `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`.
func (RecordingMp4Output) MaxStreamPauseLength ¶
func (o RecordingMp4Output) MaxStreamPauseLength() pulumi.IntPtrOutput
Specifies the interval threshold for combining recording chunks. If the stream pause length exceeds the value of this parameter, a new recording is generated. Value range: 0 ~ 300, unit: `second`. If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`.
func (RecordingMp4Output) RecordingLength ¶
func (o RecordingMp4Output) RecordingLength() pulumi.IntOutput
Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. A stream exceeding the recording length will generate a new recording.
func (RecordingMp4Output) ToRecordingMp4Output ¶
func (o RecordingMp4Output) ToRecordingMp4Output() RecordingMp4Output
func (RecordingMp4Output) ToRecordingMp4OutputWithContext ¶
func (o RecordingMp4Output) ToRecordingMp4OutputWithContext(ctx context.Context) RecordingMp4Output
func (RecordingMp4Output) ToRecordingMp4PtrOutput ¶
func (o RecordingMp4Output) ToRecordingMp4PtrOutput() RecordingMp4PtrOutput
func (RecordingMp4Output) ToRecordingMp4PtrOutputWithContext ¶
func (o RecordingMp4Output) ToRecordingMp4PtrOutputWithContext(ctx context.Context) RecordingMp4PtrOutput
type RecordingMp4PtrInput ¶
type RecordingMp4PtrInput interface { pulumi.Input ToRecordingMp4PtrOutput() RecordingMp4PtrOutput ToRecordingMp4PtrOutputWithContext(context.Context) RecordingMp4PtrOutput }
RecordingMp4PtrInput is an input type that accepts RecordingMp4Args, RecordingMp4Ptr and RecordingMp4PtrOutput values. You can construct a concrete instance of `RecordingMp4PtrInput` via:
RecordingMp4Args{...} or: nil
func RecordingMp4Ptr ¶
func RecordingMp4Ptr(v *RecordingMp4Args) RecordingMp4PtrInput
type RecordingMp4PtrOutput ¶
type RecordingMp4PtrOutput struct{ *pulumi.OutputState }
func (RecordingMp4PtrOutput) Elem ¶
func (o RecordingMp4PtrOutput) Elem() RecordingMp4Output
func (RecordingMp4PtrOutput) ElementType ¶
func (RecordingMp4PtrOutput) ElementType() reflect.Type
func (RecordingMp4PtrOutput) FileNaming ¶
func (o RecordingMp4PtrOutput) FileNaming() pulumi.StringPtrOutput
Specifies the path and file name prefix of a recording file. The default value is `Record/{publish_domain}/{app}/{record_type}/{record_format}/{stream}_{file_start_time}/{file_start_time}`.
func (RecordingMp4PtrOutput) MaxStreamPauseLength ¶
func (o RecordingMp4PtrOutput) MaxStreamPauseLength() pulumi.IntPtrOutput
Specifies the interval threshold for combining recording chunks. If the stream pause length exceeds the value of this parameter, a new recording is generated. Value range: 0 ~ 300, unit: `second`. If the value is set to `0`, a new file will be generated once the stream is interrupted. Defaults to `0`.
func (RecordingMp4PtrOutput) RecordingLength ¶
func (o RecordingMp4PtrOutput) RecordingLength() pulumi.IntPtrOutput
Specifies the recording length. Value range: 15 ~ 180, unit: `minute`. A stream exceeding the recording length will generate a new recording.
func (RecordingMp4PtrOutput) ToRecordingMp4PtrOutput ¶
func (o RecordingMp4PtrOutput) ToRecordingMp4PtrOutput() RecordingMp4PtrOutput
func (RecordingMp4PtrOutput) ToRecordingMp4PtrOutputWithContext ¶
func (o RecordingMp4PtrOutput) ToRecordingMp4PtrOutputWithContext(ctx context.Context) RecordingMp4PtrOutput
type RecordingObs ¶
type RecordingObsArgs ¶
type RecordingObsArgs struct { // Specifies OBS bucket. Bucket pulumi.StringInput `pulumi:"bucket"` // Specifies OBS object path. If omitted, recordings will be saved to the root directory. Object pulumi.StringPtrInput `pulumi:"object"` // Specifies the region of OBS. Region pulumi.StringInput `pulumi:"region"` }
func (RecordingObsArgs) ElementType ¶
func (RecordingObsArgs) ElementType() reflect.Type
func (RecordingObsArgs) ToRecordingObsOutput ¶
func (i RecordingObsArgs) ToRecordingObsOutput() RecordingObsOutput
func (RecordingObsArgs) ToRecordingObsOutputWithContext ¶
func (i RecordingObsArgs) ToRecordingObsOutputWithContext(ctx context.Context) RecordingObsOutput
func (RecordingObsArgs) ToRecordingObsPtrOutput ¶
func (i RecordingObsArgs) ToRecordingObsPtrOutput() RecordingObsPtrOutput
func (RecordingObsArgs) ToRecordingObsPtrOutputWithContext ¶
func (i RecordingObsArgs) ToRecordingObsPtrOutputWithContext(ctx context.Context) RecordingObsPtrOutput
type RecordingObsInput ¶
type RecordingObsInput interface { pulumi.Input ToRecordingObsOutput() RecordingObsOutput ToRecordingObsOutputWithContext(context.Context) RecordingObsOutput }
RecordingObsInput is an input type that accepts RecordingObsArgs and RecordingObsOutput values. You can construct a concrete instance of `RecordingObsInput` via:
RecordingObsArgs{...}
type RecordingObsOutput ¶
type RecordingObsOutput struct{ *pulumi.OutputState }
func (RecordingObsOutput) Bucket ¶
func (o RecordingObsOutput) Bucket() pulumi.StringOutput
Specifies OBS bucket.
func (RecordingObsOutput) ElementType ¶
func (RecordingObsOutput) ElementType() reflect.Type
func (RecordingObsOutput) Object ¶
func (o RecordingObsOutput) Object() pulumi.StringPtrOutput
Specifies OBS object path. If omitted, recordings will be saved to the root directory.
func (RecordingObsOutput) Region ¶
func (o RecordingObsOutput) Region() pulumi.StringOutput
Specifies the region of OBS.
func (RecordingObsOutput) ToRecordingObsOutput ¶
func (o RecordingObsOutput) ToRecordingObsOutput() RecordingObsOutput
func (RecordingObsOutput) ToRecordingObsOutputWithContext ¶
func (o RecordingObsOutput) ToRecordingObsOutputWithContext(ctx context.Context) RecordingObsOutput
func (RecordingObsOutput) ToRecordingObsPtrOutput ¶
func (o RecordingObsOutput) ToRecordingObsPtrOutput() RecordingObsPtrOutput
func (RecordingObsOutput) ToRecordingObsPtrOutputWithContext ¶
func (o RecordingObsOutput) ToRecordingObsPtrOutputWithContext(ctx context.Context) RecordingObsPtrOutput
type RecordingObsPtrInput ¶
type RecordingObsPtrInput interface { pulumi.Input ToRecordingObsPtrOutput() RecordingObsPtrOutput ToRecordingObsPtrOutputWithContext(context.Context) RecordingObsPtrOutput }
RecordingObsPtrInput is an input type that accepts RecordingObsArgs, RecordingObsPtr and RecordingObsPtrOutput values. You can construct a concrete instance of `RecordingObsPtrInput` via:
RecordingObsArgs{...} or: nil
func RecordingObsPtr ¶
func RecordingObsPtr(v *RecordingObsArgs) RecordingObsPtrInput
type RecordingObsPtrOutput ¶
type RecordingObsPtrOutput struct{ *pulumi.OutputState }
func (RecordingObsPtrOutput) Bucket ¶
func (o RecordingObsPtrOutput) Bucket() pulumi.StringPtrOutput
Specifies OBS bucket.
func (RecordingObsPtrOutput) Elem ¶
func (o RecordingObsPtrOutput) Elem() RecordingObsOutput
func (RecordingObsPtrOutput) ElementType ¶
func (RecordingObsPtrOutput) ElementType() reflect.Type
func (RecordingObsPtrOutput) Object ¶
func (o RecordingObsPtrOutput) Object() pulumi.StringPtrOutput
Specifies OBS object path. If omitted, recordings will be saved to the root directory.
func (RecordingObsPtrOutput) Region ¶
func (o RecordingObsPtrOutput) Region() pulumi.StringPtrOutput
Specifies the region of OBS.
func (RecordingObsPtrOutput) ToRecordingObsPtrOutput ¶
func (o RecordingObsPtrOutput) ToRecordingObsPtrOutput() RecordingObsPtrOutput
func (RecordingObsPtrOutput) ToRecordingObsPtrOutputWithContext ¶
func (o RecordingObsPtrOutput) ToRecordingObsPtrOutputWithContext(ctx context.Context) RecordingObsPtrOutput
type RecordingOutput ¶
type RecordingOutput struct{ *pulumi.OutputState }
func (RecordingOutput) AppName ¶
func (o RecordingOutput) AppName() pulumi.StringOutput
Specifies the application name. To match all names, use an asterisk (*).
func (RecordingOutput) DomainName ¶
func (o RecordingOutput) DomainName() pulumi.StringOutput
Specifies the ingest domain name.
func (RecordingOutput) ElementType ¶
func (RecordingOutput) ElementType() reflect.Type
func (RecordingOutput) Flv ¶
func (o RecordingOutput) Flv() RecordingFlvPtrOutput
Specifies the FLV configuration rule for storing recording as FLV. The flv structure is documented below.
func (RecordingOutput) Hls ¶
func (o RecordingOutput) Hls() RecordingHlsPtrOutput
Specifies the HLS configuration rule for storing recording as HLS. The hls structure is documented below.
func (RecordingOutput) Mp4 ¶
func (o RecordingOutput) Mp4() RecordingMp4PtrOutput
Specifies the MP4 configuration rule for storing recording as MP4. The mp4 structure is documented below.
func (RecordingOutput) Obs ¶
func (o RecordingOutput) Obs() RecordingObsOutput
Specifies the obs for storing recordings. The obs structure is documented below.
func (RecordingOutput) Region ¶
func (o RecordingOutput) Region() pulumi.StringOutput
Specifies the region of OBS.
func (RecordingOutput) StreamName ¶
func (o RecordingOutput) StreamName() pulumi.StringOutput
Specifies the stream name. To match all names, use an asterisk (*).
func (RecordingOutput) ToRecordingOutput ¶
func (o RecordingOutput) ToRecordingOutput() RecordingOutput
func (RecordingOutput) ToRecordingOutputWithContext ¶
func (o RecordingOutput) ToRecordingOutputWithContext(ctx context.Context) RecordingOutput
func (RecordingOutput) Type ¶
func (o RecordingOutput) Type() pulumi.StringOutput
Specifies the types of recording notifications. The options are as follows:
- **CONTINUOUS_RECORD**: continuous recording. Recording is triggered once streams are pushed to the recording system.
- **COMMAND_RECORD**: command-based recording. Tenants need to run commands to start and stop recording after streams are pushed to the recording system.
type RecordingState ¶
type RecordingState struct { // Specifies the application name. To match all names, use an asterisk (*). AppName pulumi.StringPtrInput // Specifies the ingest domain name. DomainName pulumi.StringPtrInput // Specifies the FLV configuration rule for storing recording as FLV. // The flv structure is documented below. Flv RecordingFlvPtrInput // Specifies the HLS configuration rule for storing recording as HLS. // The hls structure is documented below. Hls RecordingHlsPtrInput // Specifies the MP4 configuration rule for storing recording as MP4. // The mp4 structure is documented below. Mp4 RecordingMp4PtrInput // Specifies the obs for storing recordings. // The obs structure is documented below. Obs RecordingObsPtrInput // Specifies the region of OBS. Region pulumi.StringPtrInput // Specifies the stream name. To match all names, use an asterisk (*). StreamName pulumi.StringPtrInput // Specifies the types of recording notifications. The options are as follows: // + **CONTINUOUS_RECORD**: continuous recording. Recording is triggered once streams are pushed to the recording system. // + **COMMAND_RECORD**: command-based recording. Tenants need to run commands to start and stop recording after streams // are pushed to the recording system. Type pulumi.StringPtrInput }
func (RecordingState) ElementType ¶
func (RecordingState) ElementType() reflect.Type
type Transcoding ¶
type Transcoding struct { pulumi.CustomResourceState // Specifies the application name. // Changing this parameter will create a new resource. AppName pulumi.StringOutput `pulumi:"appName"` // Specifies the ingest domain name. // Changing this parameter will create a new resource. DomainName pulumi.StringOutput `pulumi:"domainName"` // Specifies whether to enable low bitrate HD rates. If enabled // the output media will have a lower bitrate with the same image quality. Defaults to `false`. LowBitrateHd pulumi.BoolOutput `pulumi:"lowBitrateHd"` // Specifies the region in which to create this resource. If omitted, // the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies the video quality templates. // The object structure is documented below. A maximum of 4 templates can be added. // For resolution and bitrate settings in the presets, // please refer to the [document](https://support.huaweicloud.com/intl/en-us/usermanual-live/live01000802.html). Templates TranscodingTemplateArrayOutput `pulumi:"templates"` // Specifies the video codec. The valid values are **H264** and **H265**. VideoEncoding pulumi.StringOutput `pulumi:"videoEncoding"` }
Manages a Live transcoding within HuaweiCloud.
## Example Usage ### Create a transcoding
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Live" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Live" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") ingestDomainName := cfg.RequireObject("ingestDomainName") ingestDomain, err := Live.NewDomain(ctx, "ingestDomain", &Live.DomainArgs{ Type: pulumi.String("push"), }) if err != nil { return err } _, err = Live.NewTranscoding(ctx, "test", &Live.TranscodingArgs{ DomainName: ingestDomain.Name, AppName: pulumi.String("live"), VideoEncoding: pulumi.String("H264"), Templates: live.TranscodingTemplateArray{ &live.TranscodingTemplateArgs{ Name: pulumi.String("L"), Width: pulumi.Int(300), Height: pulumi.Int(400), Bitrate: pulumi.Int(300), }, }, }) if err != nil { return err } return nil }) }
```
## Import
Transcodings can be imported using the `domain_name` and `app_name`, separated by a slash. e.g.
```sh
$ pulumi import huaweicloud:Live/transcoding:Transcoding test play.example.demo.com/live
```
func GetTranscoding ¶
func GetTranscoding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TranscodingState, opts ...pulumi.ResourceOption) (*Transcoding, error)
GetTranscoding gets an existing Transcoding resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewTranscoding ¶
func NewTranscoding(ctx *pulumi.Context, name string, args *TranscodingArgs, opts ...pulumi.ResourceOption) (*Transcoding, error)
NewTranscoding registers a new resource with the given unique name, arguments, and options.
func (*Transcoding) ElementType ¶
func (*Transcoding) ElementType() reflect.Type
func (*Transcoding) ToTranscodingOutput ¶
func (i *Transcoding) ToTranscodingOutput() TranscodingOutput
func (*Transcoding) ToTranscodingOutputWithContext ¶
func (i *Transcoding) ToTranscodingOutputWithContext(ctx context.Context) TranscodingOutput
type TranscodingArgs ¶
type TranscodingArgs struct { // Specifies the application name. // Changing this parameter will create a new resource. AppName pulumi.StringInput // Specifies the ingest domain name. // Changing this parameter will create a new resource. DomainName pulumi.StringInput // Specifies whether to enable low bitrate HD rates. If enabled // the output media will have a lower bitrate with the same image quality. Defaults to `false`. LowBitrateHd pulumi.BoolPtrInput // Specifies the region in which to create this resource. If omitted, // the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringPtrInput // Specifies the video quality templates. // The object structure is documented below. A maximum of 4 templates can be added. // For resolution and bitrate settings in the presets, // please refer to the [document](https://support.huaweicloud.com/intl/en-us/usermanual-live/live01000802.html). Templates TranscodingTemplateArrayInput // Specifies the video codec. The valid values are **H264** and **H265**. VideoEncoding pulumi.StringInput }
The set of arguments for constructing a Transcoding resource.
func (TranscodingArgs) ElementType ¶
func (TranscodingArgs) ElementType() reflect.Type
type TranscodingArray ¶
type TranscodingArray []TranscodingInput
func (TranscodingArray) ElementType ¶
func (TranscodingArray) ElementType() reflect.Type
func (TranscodingArray) ToTranscodingArrayOutput ¶
func (i TranscodingArray) ToTranscodingArrayOutput() TranscodingArrayOutput
func (TranscodingArray) ToTranscodingArrayOutputWithContext ¶
func (i TranscodingArray) ToTranscodingArrayOutputWithContext(ctx context.Context) TranscodingArrayOutput
type TranscodingArrayInput ¶
type TranscodingArrayInput interface { pulumi.Input ToTranscodingArrayOutput() TranscodingArrayOutput ToTranscodingArrayOutputWithContext(context.Context) TranscodingArrayOutput }
TranscodingArrayInput is an input type that accepts TranscodingArray and TranscodingArrayOutput values. You can construct a concrete instance of `TranscodingArrayInput` via:
TranscodingArray{ TranscodingArgs{...} }
type TranscodingArrayOutput ¶
type TranscodingArrayOutput struct{ *pulumi.OutputState }
func (TranscodingArrayOutput) ElementType ¶
func (TranscodingArrayOutput) ElementType() reflect.Type
func (TranscodingArrayOutput) Index ¶
func (o TranscodingArrayOutput) Index(i pulumi.IntInput) TranscodingOutput
func (TranscodingArrayOutput) ToTranscodingArrayOutput ¶
func (o TranscodingArrayOutput) ToTranscodingArrayOutput() TranscodingArrayOutput
func (TranscodingArrayOutput) ToTranscodingArrayOutputWithContext ¶
func (o TranscodingArrayOutput) ToTranscodingArrayOutputWithContext(ctx context.Context) TranscodingArrayOutput
type TranscodingInput ¶
type TranscodingInput interface { pulumi.Input ToTranscodingOutput() TranscodingOutput ToTranscodingOutputWithContext(ctx context.Context) TranscodingOutput }
type TranscodingMap ¶
type TranscodingMap map[string]TranscodingInput
func (TranscodingMap) ElementType ¶
func (TranscodingMap) ElementType() reflect.Type
func (TranscodingMap) ToTranscodingMapOutput ¶
func (i TranscodingMap) ToTranscodingMapOutput() TranscodingMapOutput
func (TranscodingMap) ToTranscodingMapOutputWithContext ¶
func (i TranscodingMap) ToTranscodingMapOutputWithContext(ctx context.Context) TranscodingMapOutput
type TranscodingMapInput ¶
type TranscodingMapInput interface { pulumi.Input ToTranscodingMapOutput() TranscodingMapOutput ToTranscodingMapOutputWithContext(context.Context) TranscodingMapOutput }
TranscodingMapInput is an input type that accepts TranscodingMap and TranscodingMapOutput values. You can construct a concrete instance of `TranscodingMapInput` via:
TranscodingMap{ "key": TranscodingArgs{...} }
type TranscodingMapOutput ¶
type TranscodingMapOutput struct{ *pulumi.OutputState }
func (TranscodingMapOutput) ElementType ¶
func (TranscodingMapOutput) ElementType() reflect.Type
func (TranscodingMapOutput) MapIndex ¶
func (o TranscodingMapOutput) MapIndex(k pulumi.StringInput) TranscodingOutput
func (TranscodingMapOutput) ToTranscodingMapOutput ¶
func (o TranscodingMapOutput) ToTranscodingMapOutput() TranscodingMapOutput
func (TranscodingMapOutput) ToTranscodingMapOutputWithContext ¶
func (o TranscodingMapOutput) ToTranscodingMapOutputWithContext(ctx context.Context) TranscodingMapOutput
type TranscodingOutput ¶
type TranscodingOutput struct{ *pulumi.OutputState }
func (TranscodingOutput) AppName ¶
func (o TranscodingOutput) AppName() pulumi.StringOutput
Specifies the application name. Changing this parameter will create a new resource.
func (TranscodingOutput) DomainName ¶
func (o TranscodingOutput) DomainName() pulumi.StringOutput
Specifies the ingest domain name. Changing this parameter will create a new resource.
func (TranscodingOutput) ElementType ¶
func (TranscodingOutput) ElementType() reflect.Type
func (TranscodingOutput) LowBitrateHd ¶
func (o TranscodingOutput) LowBitrateHd() pulumi.BoolOutput
Specifies whether to enable low bitrate HD rates. If enabled the output media will have a lower bitrate with the same image quality. Defaults to `false`.
func (TranscodingOutput) Region ¶
func (o TranscodingOutput) Region() pulumi.StringOutput
Specifies the region in which to create this resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
func (TranscodingOutput) Templates ¶
func (o TranscodingOutput) Templates() TranscodingTemplateArrayOutput
Specifies the video quality templates. The object structure is documented below. A maximum of 4 templates can be added. For resolution and bitrate settings in the presets, please refer to the [document](https://support.huaweicloud.com/intl/en-us/usermanual-live/live01000802.html).
func (TranscodingOutput) ToTranscodingOutput ¶
func (o TranscodingOutput) ToTranscodingOutput() TranscodingOutput
func (TranscodingOutput) ToTranscodingOutputWithContext ¶
func (o TranscodingOutput) ToTranscodingOutputWithContext(ctx context.Context) TranscodingOutput
func (TranscodingOutput) VideoEncoding ¶
func (o TranscodingOutput) VideoEncoding() pulumi.StringOutput
Specifies the video codec. The valid values are **H264** and **H265**.
type TranscodingState ¶
type TranscodingState struct { // Specifies the application name. // Changing this parameter will create a new resource. AppName pulumi.StringPtrInput // Specifies the ingest domain name. // Changing this parameter will create a new resource. DomainName pulumi.StringPtrInput // Specifies whether to enable low bitrate HD rates. If enabled // the output media will have a lower bitrate with the same image quality. Defaults to `false`. LowBitrateHd pulumi.BoolPtrInput // Specifies the region in which to create this resource. If omitted, // the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringPtrInput // Specifies the video quality templates. // The object structure is documented below. A maximum of 4 templates can be added. // For resolution and bitrate settings in the presets, // please refer to the [document](https://support.huaweicloud.com/intl/en-us/usermanual-live/live01000802.html). Templates TranscodingTemplateArrayInput // Specifies the video codec. The valid values are **H264** and **H265**. VideoEncoding pulumi.StringPtrInput }
func (TranscodingState) ElementType ¶
func (TranscodingState) ElementType() reflect.Type
type TranscodingTemplate ¶
type TranscodingTemplate struct { // Specifies the bitrate of a transcoded video, in kbit/s. Value range: 40 ~ 30000. Bitrate int `pulumi:"bitrate"` // Specifies the frame rate of the transcoded video, in fps. Value range: 0 ~ 30. // Value 0 indicates that the frame rate remains unchanged. FrameRate *int `pulumi:"frameRate"` // Specifies video height (unit: pixel). // + **When the video encoding is H264**, value range: 32 ~ 2160 and must be a multiple of 2. // + **When the video encoding is H265**, value range: 240 ~ 2160 and must be a multiple of 4. Height int `pulumi:"height"` // Specifies the template name. The name can contain a maximum of 64 characters, and only // contains letters, digits and hyphens (-). Name string `pulumi:"name"` // Specifies video width (unit: pixel). // + **When the video encoding is H264**, value range: 32 ~ 3840 and must be a multiple of 2. // + **When the video encoding is H265**, value range: 320 ~ 3840 and must be a multiple of 4. Width int `pulumi:"width"` }
type TranscodingTemplateArgs ¶
type TranscodingTemplateArgs struct { // Specifies the bitrate of a transcoded video, in kbit/s. Value range: 40 ~ 30000. Bitrate pulumi.IntInput `pulumi:"bitrate"` // Specifies the frame rate of the transcoded video, in fps. Value range: 0 ~ 30. // Value 0 indicates that the frame rate remains unchanged. FrameRate pulumi.IntPtrInput `pulumi:"frameRate"` // Specifies video height (unit: pixel). // + **When the video encoding is H264**, value range: 32 ~ 2160 and must be a multiple of 2. // + **When the video encoding is H265**, value range: 240 ~ 2160 and must be a multiple of 4. Height pulumi.IntInput `pulumi:"height"` // Specifies the template name. The name can contain a maximum of 64 characters, and only // contains letters, digits and hyphens (-). Name pulumi.StringInput `pulumi:"name"` // Specifies video width (unit: pixel). // + **When the video encoding is H264**, value range: 32 ~ 3840 and must be a multiple of 2. // + **When the video encoding is H265**, value range: 320 ~ 3840 and must be a multiple of 4. Width pulumi.IntInput `pulumi:"width"` }
func (TranscodingTemplateArgs) ElementType ¶
func (TranscodingTemplateArgs) ElementType() reflect.Type
func (TranscodingTemplateArgs) ToTranscodingTemplateOutput ¶
func (i TranscodingTemplateArgs) ToTranscodingTemplateOutput() TranscodingTemplateOutput
func (TranscodingTemplateArgs) ToTranscodingTemplateOutputWithContext ¶
func (i TranscodingTemplateArgs) ToTranscodingTemplateOutputWithContext(ctx context.Context) TranscodingTemplateOutput
type TranscodingTemplateArray ¶
type TranscodingTemplateArray []TranscodingTemplateInput
func (TranscodingTemplateArray) ElementType ¶
func (TranscodingTemplateArray) ElementType() reflect.Type
func (TranscodingTemplateArray) ToTranscodingTemplateArrayOutput ¶
func (i TranscodingTemplateArray) ToTranscodingTemplateArrayOutput() TranscodingTemplateArrayOutput
func (TranscodingTemplateArray) ToTranscodingTemplateArrayOutputWithContext ¶
func (i TranscodingTemplateArray) ToTranscodingTemplateArrayOutputWithContext(ctx context.Context) TranscodingTemplateArrayOutput
type TranscodingTemplateArrayInput ¶
type TranscodingTemplateArrayInput interface { pulumi.Input ToTranscodingTemplateArrayOutput() TranscodingTemplateArrayOutput ToTranscodingTemplateArrayOutputWithContext(context.Context) TranscodingTemplateArrayOutput }
TranscodingTemplateArrayInput is an input type that accepts TranscodingTemplateArray and TranscodingTemplateArrayOutput values. You can construct a concrete instance of `TranscodingTemplateArrayInput` via:
TranscodingTemplateArray{ TranscodingTemplateArgs{...} }
type TranscodingTemplateArrayOutput ¶
type TranscodingTemplateArrayOutput struct{ *pulumi.OutputState }
func (TranscodingTemplateArrayOutput) ElementType ¶
func (TranscodingTemplateArrayOutput) ElementType() reflect.Type
func (TranscodingTemplateArrayOutput) Index ¶
func (o TranscodingTemplateArrayOutput) Index(i pulumi.IntInput) TranscodingTemplateOutput
func (TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutput ¶
func (o TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutput() TranscodingTemplateArrayOutput
func (TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutputWithContext ¶
func (o TranscodingTemplateArrayOutput) ToTranscodingTemplateArrayOutputWithContext(ctx context.Context) TranscodingTemplateArrayOutput
type TranscodingTemplateInput ¶
type TranscodingTemplateInput interface { pulumi.Input ToTranscodingTemplateOutput() TranscodingTemplateOutput ToTranscodingTemplateOutputWithContext(context.Context) TranscodingTemplateOutput }
TranscodingTemplateInput is an input type that accepts TranscodingTemplateArgs and TranscodingTemplateOutput values. You can construct a concrete instance of `TranscodingTemplateInput` via:
TranscodingTemplateArgs{...}
type TranscodingTemplateOutput ¶
type TranscodingTemplateOutput struct{ *pulumi.OutputState }
func (TranscodingTemplateOutput) Bitrate ¶
func (o TranscodingTemplateOutput) Bitrate() pulumi.IntOutput
Specifies the bitrate of a transcoded video, in kbit/s. Value range: 40 ~ 30000.
func (TranscodingTemplateOutput) ElementType ¶
func (TranscodingTemplateOutput) ElementType() reflect.Type
func (TranscodingTemplateOutput) FrameRate ¶
func (o TranscodingTemplateOutput) FrameRate() pulumi.IntPtrOutput
Specifies the frame rate of the transcoded video, in fps. Value range: 0 ~ 30. Value 0 indicates that the frame rate remains unchanged.
func (TranscodingTemplateOutput) Height ¶
func (o TranscodingTemplateOutput) Height() pulumi.IntOutput
Specifies video height (unit: pixel). + **When the video encoding is H264**, value range: 32 ~ 2160 and must be a multiple of 2. + **When the video encoding is H265**, value range: 240 ~ 2160 and must be a multiple of 4.
func (TranscodingTemplateOutput) Name ¶
func (o TranscodingTemplateOutput) Name() pulumi.StringOutput
Specifies the template name. The name can contain a maximum of 64 characters, and only contains letters, digits and hyphens (-).
func (TranscodingTemplateOutput) ToTranscodingTemplateOutput ¶
func (o TranscodingTemplateOutput) ToTranscodingTemplateOutput() TranscodingTemplateOutput
func (TranscodingTemplateOutput) ToTranscodingTemplateOutputWithContext ¶
func (o TranscodingTemplateOutput) ToTranscodingTemplateOutputWithContext(ctx context.Context) TranscodingTemplateOutput
func (TranscodingTemplateOutput) Width ¶
func (o TranscodingTemplateOutput) Width() pulumi.IntOutput
Specifies video width (unit: pixel). + **When the video encoding is H264**, value range: 32 ~ 3840 and must be a multiple of 2. + **When the video encoding is H265**, value range: 320 ~ 3840 and must be a multiple of 4.