mdl

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

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 StreamLiveInput

type StreamLiveInput struct {
	pulumi.CustomResourceState

	// Input settings. For the type `RTMP_PUSH`, `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL`, 1 or 2 inputs of the corresponding type can be configured.
	InputSettings StreamLiveInputInputSettingArrayOutput `pulumi:"inputSettings"`
	// Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level.
	Name pulumi.StringOutput `pulumi:"name"`
	// ID of the input security group to attachYou can attach only one security group to an input.
	SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"`
	// Input typeValid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL`.
	Type pulumi.StringOutput `pulumi:"type"`
}

Provides a resource to create a mdl streamliveInput

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Mdl"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Mdl.NewStreamLiveInput(ctx, "streamLiveInput", &Mdl.StreamLiveInputArgs{
			SecurityGroupIds: pulumi.StringArray{
				pulumi.String("6405DF9D000007DFB4EC"),
			},
			Type: pulumi.String("RTP_PUSH"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

mdl stream_live_input can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Mdl/streamLiveInput:StreamLiveInput stream_live_input id

```

func GetStreamLiveInput

func GetStreamLiveInput(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StreamLiveInputState, opts ...pulumi.ResourceOption) (*StreamLiveInput, error)

GetStreamLiveInput gets an existing StreamLiveInput 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 NewStreamLiveInput

func NewStreamLiveInput(ctx *pulumi.Context,
	name string, args *StreamLiveInputArgs, opts ...pulumi.ResourceOption) (*StreamLiveInput, error)

NewStreamLiveInput registers a new resource with the given unique name, arguments, and options.

func (*StreamLiveInput) ElementType

func (*StreamLiveInput) ElementType() reflect.Type

func (*StreamLiveInput) ToStreamLiveInputOutput

func (i *StreamLiveInput) ToStreamLiveInputOutput() StreamLiveInputOutput

func (*StreamLiveInput) ToStreamLiveInputOutputWithContext

func (i *StreamLiveInput) ToStreamLiveInputOutputWithContext(ctx context.Context) StreamLiveInputOutput

type StreamLiveInputArgs

type StreamLiveInputArgs struct {
	// Input settings. For the type `RTMP_PUSH`, `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL`, 1 or 2 inputs of the corresponding type can be configured.
	InputSettings StreamLiveInputInputSettingArrayInput
	// Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level.
	Name pulumi.StringPtrInput
	// ID of the input security group to attachYou can attach only one security group to an input.
	SecurityGroupIds pulumi.StringArrayInput
	// Input typeValid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL`.
	Type pulumi.StringInput
}

The set of arguments for constructing a StreamLiveInput resource.

func (StreamLiveInputArgs) ElementType

func (StreamLiveInputArgs) ElementType() reflect.Type

type StreamLiveInputArray

type StreamLiveInputArray []StreamLiveInputInput

func (StreamLiveInputArray) ElementType

func (StreamLiveInputArray) ElementType() reflect.Type

func (StreamLiveInputArray) ToStreamLiveInputArrayOutput

func (i StreamLiveInputArray) ToStreamLiveInputArrayOutput() StreamLiveInputArrayOutput

func (StreamLiveInputArray) ToStreamLiveInputArrayOutputWithContext

func (i StreamLiveInputArray) ToStreamLiveInputArrayOutputWithContext(ctx context.Context) StreamLiveInputArrayOutput

type StreamLiveInputArrayInput

type StreamLiveInputArrayInput interface {
	pulumi.Input

	ToStreamLiveInputArrayOutput() StreamLiveInputArrayOutput
	ToStreamLiveInputArrayOutputWithContext(context.Context) StreamLiveInputArrayOutput
}

StreamLiveInputArrayInput is an input type that accepts StreamLiveInputArray and StreamLiveInputArrayOutput values. You can construct a concrete instance of `StreamLiveInputArrayInput` via:

StreamLiveInputArray{ StreamLiveInputArgs{...} }

type StreamLiveInputArrayOutput

type StreamLiveInputArrayOutput struct{ *pulumi.OutputState }

func (StreamLiveInputArrayOutput) ElementType

func (StreamLiveInputArrayOutput) ElementType() reflect.Type

func (StreamLiveInputArrayOutput) Index

func (StreamLiveInputArrayOutput) ToStreamLiveInputArrayOutput

func (o StreamLiveInputArrayOutput) ToStreamLiveInputArrayOutput() StreamLiveInputArrayOutput

func (StreamLiveInputArrayOutput) ToStreamLiveInputArrayOutputWithContext

func (o StreamLiveInputArrayOutput) ToStreamLiveInputArrayOutputWithContext(ctx context.Context) StreamLiveInputArrayOutput

type StreamLiveInputInput

type StreamLiveInputInput interface {
	pulumi.Input

	ToStreamLiveInputOutput() StreamLiveInputOutput
	ToStreamLiveInputOutputWithContext(ctx context.Context) StreamLiveInputOutput
}

type StreamLiveInputInputSetting

type StreamLiveInputInputSetting struct {
	// Application name, which is valid if `Type` is `RTMP_PUSH` and can contain 1-32 letters and digitsNote: This field may return `null`, indicating that no valid value was found.
	AppName *string `pulumi:"appName"`
	// Delayed time (ms) for playback, which is valid if `Type` is `RTMP_PUSH`Value range: 0 (default) or 10000-600000The value must be a multiple of 1,000.Note: This field may return `null`, indicating that no valid value was found.
	DelayTime *int `pulumi:"delayTime"`
	// RTP/UDP input address, which does not need to be entered for the input parameter.Note: this field may return null, indicating that no valid values can be obtained.
	InputAddress *string `pulumi:"inputAddress"`
	// The domain of an SRT_PUSH address. If this is a request parameter, you do not need to specify it.Note: This field may return `null`, indicating that no valid value was found.
	InputDomain *string `pulumi:"inputDomain"`
	// The password, which is used for authentication.Note: This field may return `null`, indicating that no valid value was found.
	Password *string `pulumi:"password"`
	// Source type for stream pulling and relaying. To pull content from private-read COS buckets under the current account, set this parameter to `TencentCOS`; otherwise, leave it empty.Note: this field may return `null`, indicating that no valid value was found.
	SourceType *string `pulumi:"sourceType"`
	// Source URL, which is valid if `Type` is `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL` and can contain 1-512 charactersNote: This field may return `null`, indicating that no valid value was found.
	SourceUrl *string `pulumi:"sourceUrl"`
	// Stream name, which is valid if `Type` is `RTMP_PUSH` and can contain 1-32 letters and digitsNote: This field may return `null`, indicating that no valid value was found.
	StreamName *string `pulumi:"streamName"`
	// The username, which is used for authentication.Note: This field may return `null`, indicating that no valid value was found.
	UserName *string `pulumi:"userName"`
}

type StreamLiveInputInputSettingArgs

type StreamLiveInputInputSettingArgs struct {
	// Application name, which is valid if `Type` is `RTMP_PUSH` and can contain 1-32 letters and digitsNote: This field may return `null`, indicating that no valid value was found.
	AppName pulumi.StringPtrInput `pulumi:"appName"`
	// Delayed time (ms) for playback, which is valid if `Type` is `RTMP_PUSH`Value range: 0 (default) or 10000-600000The value must be a multiple of 1,000.Note: This field may return `null`, indicating that no valid value was found.
	DelayTime pulumi.IntPtrInput `pulumi:"delayTime"`
	// RTP/UDP input address, which does not need to be entered for the input parameter.Note: this field may return null, indicating that no valid values can be obtained.
	InputAddress pulumi.StringPtrInput `pulumi:"inputAddress"`
	// The domain of an SRT_PUSH address. If this is a request parameter, you do not need to specify it.Note: This field may return `null`, indicating that no valid value was found.
	InputDomain pulumi.StringPtrInput `pulumi:"inputDomain"`
	// The password, which is used for authentication.Note: This field may return `null`, indicating that no valid value was found.
	Password pulumi.StringPtrInput `pulumi:"password"`
	// Source type for stream pulling and relaying. To pull content from private-read COS buckets under the current account, set this parameter to `TencentCOS`; otherwise, leave it empty.Note: this field may return `null`, indicating that no valid value was found.
	SourceType pulumi.StringPtrInput `pulumi:"sourceType"`
	// Source URL, which is valid if `Type` is `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL` and can contain 1-512 charactersNote: This field may return `null`, indicating that no valid value was found.
	SourceUrl pulumi.StringPtrInput `pulumi:"sourceUrl"`
	// Stream name, which is valid if `Type` is `RTMP_PUSH` and can contain 1-32 letters and digitsNote: This field may return `null`, indicating that no valid value was found.
	StreamName pulumi.StringPtrInput `pulumi:"streamName"`
	// The username, which is used for authentication.Note: This field may return `null`, indicating that no valid value was found.
	UserName pulumi.StringPtrInput `pulumi:"userName"`
}

func (StreamLiveInputInputSettingArgs) ElementType

func (StreamLiveInputInputSettingArgs) ToStreamLiveInputInputSettingOutput

func (i StreamLiveInputInputSettingArgs) ToStreamLiveInputInputSettingOutput() StreamLiveInputInputSettingOutput

func (StreamLiveInputInputSettingArgs) ToStreamLiveInputInputSettingOutputWithContext

func (i StreamLiveInputInputSettingArgs) ToStreamLiveInputInputSettingOutputWithContext(ctx context.Context) StreamLiveInputInputSettingOutput

type StreamLiveInputInputSettingArray

type StreamLiveInputInputSettingArray []StreamLiveInputInputSettingInput

func (StreamLiveInputInputSettingArray) ElementType

func (StreamLiveInputInputSettingArray) ToStreamLiveInputInputSettingArrayOutput

func (i StreamLiveInputInputSettingArray) ToStreamLiveInputInputSettingArrayOutput() StreamLiveInputInputSettingArrayOutput

func (StreamLiveInputInputSettingArray) ToStreamLiveInputInputSettingArrayOutputWithContext

func (i StreamLiveInputInputSettingArray) ToStreamLiveInputInputSettingArrayOutputWithContext(ctx context.Context) StreamLiveInputInputSettingArrayOutput

type StreamLiveInputInputSettingArrayInput

type StreamLiveInputInputSettingArrayInput interface {
	pulumi.Input

	ToStreamLiveInputInputSettingArrayOutput() StreamLiveInputInputSettingArrayOutput
	ToStreamLiveInputInputSettingArrayOutputWithContext(context.Context) StreamLiveInputInputSettingArrayOutput
}

StreamLiveInputInputSettingArrayInput is an input type that accepts StreamLiveInputInputSettingArray and StreamLiveInputInputSettingArrayOutput values. You can construct a concrete instance of `StreamLiveInputInputSettingArrayInput` via:

StreamLiveInputInputSettingArray{ StreamLiveInputInputSettingArgs{...} }

type StreamLiveInputInputSettingArrayOutput

type StreamLiveInputInputSettingArrayOutput struct{ *pulumi.OutputState }

func (StreamLiveInputInputSettingArrayOutput) ElementType

func (StreamLiveInputInputSettingArrayOutput) Index

func (StreamLiveInputInputSettingArrayOutput) ToStreamLiveInputInputSettingArrayOutput

func (o StreamLiveInputInputSettingArrayOutput) ToStreamLiveInputInputSettingArrayOutput() StreamLiveInputInputSettingArrayOutput

func (StreamLiveInputInputSettingArrayOutput) ToStreamLiveInputInputSettingArrayOutputWithContext

func (o StreamLiveInputInputSettingArrayOutput) ToStreamLiveInputInputSettingArrayOutputWithContext(ctx context.Context) StreamLiveInputInputSettingArrayOutput

type StreamLiveInputInputSettingInput

type StreamLiveInputInputSettingInput interface {
	pulumi.Input

	ToStreamLiveInputInputSettingOutput() StreamLiveInputInputSettingOutput
	ToStreamLiveInputInputSettingOutputWithContext(context.Context) StreamLiveInputInputSettingOutput
}

StreamLiveInputInputSettingInput is an input type that accepts StreamLiveInputInputSettingArgs and StreamLiveInputInputSettingOutput values. You can construct a concrete instance of `StreamLiveInputInputSettingInput` via:

StreamLiveInputInputSettingArgs{...}

type StreamLiveInputInputSettingOutput

type StreamLiveInputInputSettingOutput struct{ *pulumi.OutputState }

func (StreamLiveInputInputSettingOutput) AppName

Application name, which is valid if `Type` is `RTMP_PUSH` and can contain 1-32 letters and digitsNote: This field may return `null`, indicating that no valid value was found.

func (StreamLiveInputInputSettingOutput) DelayTime

Delayed time (ms) for playback, which is valid if `Type` is `RTMP_PUSH`Value range: 0 (default) or 10000-600000The value must be a multiple of 1,000.Note: This field may return `null`, indicating that no valid value was found.

func (StreamLiveInputInputSettingOutput) ElementType

func (StreamLiveInputInputSettingOutput) InputAddress

RTP/UDP input address, which does not need to be entered for the input parameter.Note: this field may return null, indicating that no valid values can be obtained.

func (StreamLiveInputInputSettingOutput) InputDomain

The domain of an SRT_PUSH address. If this is a request parameter, you do not need to specify it.Note: This field may return `null`, indicating that no valid value was found.

func (StreamLiveInputInputSettingOutput) Password

The password, which is used for authentication.Note: This field may return `null`, indicating that no valid value was found.

func (StreamLiveInputInputSettingOutput) SourceType

Source type for stream pulling and relaying. To pull content from private-read COS buckets under the current account, set this parameter to `TencentCOS`; otherwise, leave it empty.Note: this field may return `null`, indicating that no valid value was found.

func (StreamLiveInputInputSettingOutput) SourceUrl

Source URL, which is valid if `Type` is `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL` and can contain 1-512 charactersNote: This field may return `null`, indicating that no valid value was found.

func (StreamLiveInputInputSettingOutput) StreamName

Stream name, which is valid if `Type` is `RTMP_PUSH` and can contain 1-32 letters and digitsNote: This field may return `null`, indicating that no valid value was found.

func (StreamLiveInputInputSettingOutput) ToStreamLiveInputInputSettingOutput

func (o StreamLiveInputInputSettingOutput) ToStreamLiveInputInputSettingOutput() StreamLiveInputInputSettingOutput

func (StreamLiveInputInputSettingOutput) ToStreamLiveInputInputSettingOutputWithContext

func (o StreamLiveInputInputSettingOutput) ToStreamLiveInputInputSettingOutputWithContext(ctx context.Context) StreamLiveInputInputSettingOutput

func (StreamLiveInputInputSettingOutput) UserName

The username, which is used for authentication.Note: This field may return `null`, indicating that no valid value was found.

type StreamLiveInputMap

type StreamLiveInputMap map[string]StreamLiveInputInput

func (StreamLiveInputMap) ElementType

func (StreamLiveInputMap) ElementType() reflect.Type

func (StreamLiveInputMap) ToStreamLiveInputMapOutput

func (i StreamLiveInputMap) ToStreamLiveInputMapOutput() StreamLiveInputMapOutput

func (StreamLiveInputMap) ToStreamLiveInputMapOutputWithContext

func (i StreamLiveInputMap) ToStreamLiveInputMapOutputWithContext(ctx context.Context) StreamLiveInputMapOutput

type StreamLiveInputMapInput

type StreamLiveInputMapInput interface {
	pulumi.Input

	ToStreamLiveInputMapOutput() StreamLiveInputMapOutput
	ToStreamLiveInputMapOutputWithContext(context.Context) StreamLiveInputMapOutput
}

StreamLiveInputMapInput is an input type that accepts StreamLiveInputMap and StreamLiveInputMapOutput values. You can construct a concrete instance of `StreamLiveInputMapInput` via:

StreamLiveInputMap{ "key": StreamLiveInputArgs{...} }

type StreamLiveInputMapOutput

type StreamLiveInputMapOutput struct{ *pulumi.OutputState }

func (StreamLiveInputMapOutput) ElementType

func (StreamLiveInputMapOutput) ElementType() reflect.Type

func (StreamLiveInputMapOutput) MapIndex

func (StreamLiveInputMapOutput) ToStreamLiveInputMapOutput

func (o StreamLiveInputMapOutput) ToStreamLiveInputMapOutput() StreamLiveInputMapOutput

func (StreamLiveInputMapOutput) ToStreamLiveInputMapOutputWithContext

func (o StreamLiveInputMapOutput) ToStreamLiveInputMapOutputWithContext(ctx context.Context) StreamLiveInputMapOutput

type StreamLiveInputOutput

type StreamLiveInputOutput struct{ *pulumi.OutputState }

func (StreamLiveInputOutput) ElementType

func (StreamLiveInputOutput) ElementType() reflect.Type

func (StreamLiveInputOutput) InputSettings

Input settings. For the type `RTMP_PUSH`, `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL`, 1 or 2 inputs of the corresponding type can be configured.

func (StreamLiveInputOutput) Name

Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level.

func (StreamLiveInputOutput) SecurityGroupIds

func (o StreamLiveInputOutput) SecurityGroupIds() pulumi.StringArrayOutput

ID of the input security group to attachYou can attach only one security group to an input.

func (StreamLiveInputOutput) ToStreamLiveInputOutput

func (o StreamLiveInputOutput) ToStreamLiveInputOutput() StreamLiveInputOutput

func (StreamLiveInputOutput) ToStreamLiveInputOutputWithContext

func (o StreamLiveInputOutput) ToStreamLiveInputOutputWithContext(ctx context.Context) StreamLiveInputOutput

func (StreamLiveInputOutput) Type

Input typeValid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL`.

type StreamLiveInputState

type StreamLiveInputState struct {
	// Input settings. For the type `RTMP_PUSH`, `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL`, 1 or 2 inputs of the corresponding type can be configured.
	InputSettings StreamLiveInputInputSettingArrayInput
	// Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level.
	Name pulumi.StringPtrInput
	// ID of the input security group to attachYou can attach only one security group to an input.
	SecurityGroupIds pulumi.StringArrayInput
	// Input typeValid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL`.
	Type pulumi.StringPtrInput
}

func (StreamLiveInputState) ElementType

func (StreamLiveInputState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL