media

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountFilter

type AccountFilter struct {
	pulumi.CustomResourceState

	// The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.
	FirstQualityBitrate pulumi.IntPtrOutput `pulumi:"firstQualityBitrate"`
	// The Media Services account name. Changing this forces a new Account Filter to be created.
	MediaServicesAccountName pulumi.StringOutput `pulumi:"mediaServicesAccountName"`
	// The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A `presentationTimeRange` block as defined below.
	PresentationTimeRange AccountFilterPresentationTimeRangePtrOutput `pulumi:"presentationTimeRange"`
	// The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// One or more `trackSelection` blocks as defined below.
	TrackSelections AccountFilterTrackSelectionArrayOutput `pulumi:"trackSelections"`
}

Manages a Media Services Account Filter.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/media"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
"github.com/pulumi/pulumi-azurerm/sdk/go/azurerm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("media-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("examplestoracc"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("GRS"),
		})
		if err != nil {
			return err
		}
		_, err = azurerm.NewMediaServicesAccount(ctx, "example", &azurerm.MediaServicesAccountArgs{
			Name:              "examplemediaacc",
			Location:          example.Location,
			ResourceGroupName: example.Name,
			StorageAccount: []map[string]interface{}{
				map[string]interface{}{
					"id":        exampleAccount.ID(),
					"isPrimary": true,
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = media.NewAccountFilter(ctx, "example", &media.AccountFilterArgs{
			Name:                     pulumi.String("Filter1"),
			ResourceGroupName:        pulumi.Any(testAzurermResourceGroup.Name),
			MediaServicesAccountName: pulumi.Any(test.Name),
			FirstQualityBitrate:      pulumi.Int(128000),
			PresentationTimeRange: &media.AccountFilterPresentationTimeRangeArgs{
				StartInUnits:                pulumi.Int(0),
				EndInUnits:                  pulumi.Int(15),
				PresentationWindowInUnits:   pulumi.Int(90),
				LiveBackoffInUnits:          pulumi.Int(0),
				UnitTimescaleInMilliseconds: pulumi.Int(1000),
				ForceEnd:                    pulumi.Bool(false),
			},
			TrackSelections: media.AccountFilterTrackSelectionArray{
				&media.AccountFilterTrackSelectionArgs{
					Conditions: media.AccountFilterTrackSelectionConditionArray{
						&media.AccountFilterTrackSelectionConditionArgs{
							Property:  pulumi.String("Type"),
							Operation: pulumi.String("Equal"),
							Value:     pulumi.String("Audio"),
						},
						&media.AccountFilterTrackSelectionConditionArgs{
							Property:  pulumi.String("Language"),
							Operation: pulumi.String("NotEqual"),
							Value:     pulumi.String("en"),
						},
						&media.AccountFilterTrackSelectionConditionArgs{
							Property:  pulumi.String("FourCC"),
							Operation: pulumi.String("NotEqual"),
							Value:     pulumi.String("EC-3"),
						},
					},
				},
				&media.AccountFilterTrackSelectionArgs{
					Conditions: media.AccountFilterTrackSelectionConditionArray{
						&media.AccountFilterTrackSelectionConditionArgs{
							Property:  pulumi.String("Type"),
							Operation: pulumi.String("Equal"),
							Value:     pulumi.String("Video"),
						},
						&media.AccountFilterTrackSelectionConditionArgs{
							Property:  pulumi.String("Bitrate"),
							Operation: pulumi.String("Equal"),
							Value:     pulumi.String("3000000-5000000"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Account Filters can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:media/accountFilter:AccountFilter example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaServices/account1/accountFilters/filter1 ```

func GetAccountFilter

func GetAccountFilter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountFilterState, opts ...pulumi.ResourceOption) (*AccountFilter, error)

GetAccountFilter gets an existing AccountFilter 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 NewAccountFilter

func NewAccountFilter(ctx *pulumi.Context,
	name string, args *AccountFilterArgs, opts ...pulumi.ResourceOption) (*AccountFilter, error)

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

func (*AccountFilter) ElementType

func (*AccountFilter) ElementType() reflect.Type

func (*AccountFilter) ToAccountFilterOutput

func (i *AccountFilter) ToAccountFilterOutput() AccountFilterOutput

func (*AccountFilter) ToAccountFilterOutputWithContext

func (i *AccountFilter) ToAccountFilterOutputWithContext(ctx context.Context) AccountFilterOutput

type AccountFilterArgs

type AccountFilterArgs struct {
	// The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.
	FirstQualityBitrate pulumi.IntPtrInput
	// The Media Services account name. Changing this forces a new Account Filter to be created.
	MediaServicesAccountName pulumi.StringInput
	// The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.
	Name pulumi.StringPtrInput
	// A `presentationTimeRange` block as defined below.
	PresentationTimeRange AccountFilterPresentationTimeRangePtrInput
	// The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.
	ResourceGroupName pulumi.StringInput
	// One or more `trackSelection` blocks as defined below.
	TrackSelections AccountFilterTrackSelectionArrayInput
}

The set of arguments for constructing a AccountFilter resource.

func (AccountFilterArgs) ElementType

func (AccountFilterArgs) ElementType() reflect.Type

type AccountFilterArray

type AccountFilterArray []AccountFilterInput

func (AccountFilterArray) ElementType

func (AccountFilterArray) ElementType() reflect.Type

func (AccountFilterArray) ToAccountFilterArrayOutput

func (i AccountFilterArray) ToAccountFilterArrayOutput() AccountFilterArrayOutput

func (AccountFilterArray) ToAccountFilterArrayOutputWithContext

func (i AccountFilterArray) ToAccountFilterArrayOutputWithContext(ctx context.Context) AccountFilterArrayOutput

type AccountFilterArrayInput

type AccountFilterArrayInput interface {
	pulumi.Input

	ToAccountFilterArrayOutput() AccountFilterArrayOutput
	ToAccountFilterArrayOutputWithContext(context.Context) AccountFilterArrayOutput
}

AccountFilterArrayInput is an input type that accepts AccountFilterArray and AccountFilterArrayOutput values. You can construct a concrete instance of `AccountFilterArrayInput` via:

AccountFilterArray{ AccountFilterArgs{...} }

type AccountFilterArrayOutput

type AccountFilterArrayOutput struct{ *pulumi.OutputState }

func (AccountFilterArrayOutput) ElementType

func (AccountFilterArrayOutput) ElementType() reflect.Type

func (AccountFilterArrayOutput) Index

func (AccountFilterArrayOutput) ToAccountFilterArrayOutput

func (o AccountFilterArrayOutput) ToAccountFilterArrayOutput() AccountFilterArrayOutput

func (AccountFilterArrayOutput) ToAccountFilterArrayOutputWithContext

func (o AccountFilterArrayOutput) ToAccountFilterArrayOutputWithContext(ctx context.Context) AccountFilterArrayOutput

type AccountFilterInput

type AccountFilterInput interface {
	pulumi.Input

	ToAccountFilterOutput() AccountFilterOutput
	ToAccountFilterOutputWithContext(ctx context.Context) AccountFilterOutput
}

type AccountFilterMap

type AccountFilterMap map[string]AccountFilterInput

func (AccountFilterMap) ElementType

func (AccountFilterMap) ElementType() reflect.Type

func (AccountFilterMap) ToAccountFilterMapOutput

func (i AccountFilterMap) ToAccountFilterMapOutput() AccountFilterMapOutput

func (AccountFilterMap) ToAccountFilterMapOutputWithContext

func (i AccountFilterMap) ToAccountFilterMapOutputWithContext(ctx context.Context) AccountFilterMapOutput

type AccountFilterMapInput

type AccountFilterMapInput interface {
	pulumi.Input

	ToAccountFilterMapOutput() AccountFilterMapOutput
	ToAccountFilterMapOutputWithContext(context.Context) AccountFilterMapOutput
}

AccountFilterMapInput is an input type that accepts AccountFilterMap and AccountFilterMapOutput values. You can construct a concrete instance of `AccountFilterMapInput` via:

AccountFilterMap{ "key": AccountFilterArgs{...} }

type AccountFilterMapOutput

type AccountFilterMapOutput struct{ *pulumi.OutputState }

func (AccountFilterMapOutput) ElementType

func (AccountFilterMapOutput) ElementType() reflect.Type

func (AccountFilterMapOutput) MapIndex

func (AccountFilterMapOutput) ToAccountFilterMapOutput

func (o AccountFilterMapOutput) ToAccountFilterMapOutput() AccountFilterMapOutput

func (AccountFilterMapOutput) ToAccountFilterMapOutputWithContext

func (o AccountFilterMapOutput) ToAccountFilterMapOutputWithContext(ctx context.Context) AccountFilterMapOutput

type AccountFilterOutput

type AccountFilterOutput struct{ *pulumi.OutputState }

func (AccountFilterOutput) ElementType

func (AccountFilterOutput) ElementType() reflect.Type

func (AccountFilterOutput) FirstQualityBitrate

func (o AccountFilterOutput) FirstQualityBitrate() pulumi.IntPtrOutput

The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.

func (AccountFilterOutput) MediaServicesAccountName

func (o AccountFilterOutput) MediaServicesAccountName() pulumi.StringOutput

The Media Services account name. Changing this forces a new Account Filter to be created.

func (AccountFilterOutput) Name

The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.

func (AccountFilterOutput) PresentationTimeRange

A `presentationTimeRange` block as defined below.

func (AccountFilterOutput) ResourceGroupName

func (o AccountFilterOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.

func (AccountFilterOutput) ToAccountFilterOutput

func (o AccountFilterOutput) ToAccountFilterOutput() AccountFilterOutput

func (AccountFilterOutput) ToAccountFilterOutputWithContext

func (o AccountFilterOutput) ToAccountFilterOutputWithContext(ctx context.Context) AccountFilterOutput

func (AccountFilterOutput) TrackSelections

One or more `trackSelection` blocks as defined below.

type AccountFilterPresentationTimeRange

type AccountFilterPresentationTimeRange struct {
	// The absolute end time boundary. Applies to Video on Demand (VoD).
	// For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by `unitTimescaleInMilliseconds`, so an `endInUnits` of 180 would be for 3 minutes. Use `startInUnits` and `endInUnits` to trim the fragments that will be in the playlist (manifest). For example, `startInUnits` set to 20 and `endInUnits` set to 60 using `unitTimescaleInMilliseconds` in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.
	EndInUnits *int `pulumi:"endInUnits"`
	// Indicates whether the `endInUnits` property must be present. If true, `endInUnits` must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: `false`, `true`.
	ForceEnd *bool `pulumi:"forceEnd"`
	// The relative to end right edge. Applies to Live Streaming only.
	// This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by `unitTimescaleInMilliseconds`. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.
	LiveBackoffInUnits *int `pulumi:"liveBackoffInUnits"`
	// The relative to end sliding window. Applies to Live Streaming only. Use `presentationWindowInUnits` to apply a sliding window of fragments to include in a playlist. The unit is defined by `unitTimescaleInMilliseconds`. For example, set `presentationWindowInUnits` to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.
	PresentationWindowInUnits *int `pulumi:"presentationWindowInUnits"`
	// The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by `unitTimescaleInMilliseconds`, so a `startInUnits` of 15 would be for 15 seconds. Use `startInUnits` and `endInUnits` to trim the fragments that will be in the playlist (manifest). For example, `startInUnits` set to 20 and `endInUnits` set to 60 using `unitTimescaleInMilliseconds` in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.
	StartInUnits *int `pulumi:"startInUnits"`
	// Specified as the number of milliseconds in one unit timescale. For example, if you want to set a `startInUnits` at 30 seconds, you would use a value of 30 when using the `unitTimescaleInMilliseconds` in 1000. Or if you want to set `startInUnits` in 30 milliseconds, you would use a value of 30 when using the `unitTimescaleInMilliseconds` in 1. Applies timescale to `startInUnits`, `startTimescale` and `presentationWindowInTimescale` and `liveBackoffInTimescale`.
	UnitTimescaleInMilliseconds int `pulumi:"unitTimescaleInMilliseconds"`
}

type AccountFilterPresentationTimeRangeArgs

type AccountFilterPresentationTimeRangeArgs struct {
	// The absolute end time boundary. Applies to Video on Demand (VoD).
	// For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by `unitTimescaleInMilliseconds`, so an `endInUnits` of 180 would be for 3 minutes. Use `startInUnits` and `endInUnits` to trim the fragments that will be in the playlist (manifest). For example, `startInUnits` set to 20 and `endInUnits` set to 60 using `unitTimescaleInMilliseconds` in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.
	EndInUnits pulumi.IntPtrInput `pulumi:"endInUnits"`
	// Indicates whether the `endInUnits` property must be present. If true, `endInUnits` must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: `false`, `true`.
	ForceEnd pulumi.BoolPtrInput `pulumi:"forceEnd"`
	// The relative to end right edge. Applies to Live Streaming only.
	// This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by `unitTimescaleInMilliseconds`. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.
	LiveBackoffInUnits pulumi.IntPtrInput `pulumi:"liveBackoffInUnits"`
	// The relative to end sliding window. Applies to Live Streaming only. Use `presentationWindowInUnits` to apply a sliding window of fragments to include in a playlist. The unit is defined by `unitTimescaleInMilliseconds`. For example, set `presentationWindowInUnits` to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.
	PresentationWindowInUnits pulumi.IntPtrInput `pulumi:"presentationWindowInUnits"`
	// The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by `unitTimescaleInMilliseconds`, so a `startInUnits` of 15 would be for 15 seconds. Use `startInUnits` and `endInUnits` to trim the fragments that will be in the playlist (manifest). For example, `startInUnits` set to 20 and `endInUnits` set to 60 using `unitTimescaleInMilliseconds` in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.
	StartInUnits pulumi.IntPtrInput `pulumi:"startInUnits"`
	// Specified as the number of milliseconds in one unit timescale. For example, if you want to set a `startInUnits` at 30 seconds, you would use a value of 30 when using the `unitTimescaleInMilliseconds` in 1000. Or if you want to set `startInUnits` in 30 milliseconds, you would use a value of 30 when using the `unitTimescaleInMilliseconds` in 1. Applies timescale to `startInUnits`, `startTimescale` and `presentationWindowInTimescale` and `liveBackoffInTimescale`.
	UnitTimescaleInMilliseconds pulumi.IntInput `pulumi:"unitTimescaleInMilliseconds"`
}

func (AccountFilterPresentationTimeRangeArgs) ElementType

func (AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangeOutput

func (i AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangeOutput() AccountFilterPresentationTimeRangeOutput

func (AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangeOutputWithContext

func (i AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangeOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangeOutput

func (AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangePtrOutput

func (i AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput

func (AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangePtrOutputWithContext

func (i AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangePtrOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangePtrOutput

type AccountFilterPresentationTimeRangeInput

type AccountFilterPresentationTimeRangeInput interface {
	pulumi.Input

	ToAccountFilterPresentationTimeRangeOutput() AccountFilterPresentationTimeRangeOutput
	ToAccountFilterPresentationTimeRangeOutputWithContext(context.Context) AccountFilterPresentationTimeRangeOutput
}

AccountFilterPresentationTimeRangeInput is an input type that accepts AccountFilterPresentationTimeRangeArgs and AccountFilterPresentationTimeRangeOutput values. You can construct a concrete instance of `AccountFilterPresentationTimeRangeInput` via:

AccountFilterPresentationTimeRangeArgs{...}

type AccountFilterPresentationTimeRangeOutput

type AccountFilterPresentationTimeRangeOutput struct{ *pulumi.OutputState }

func (AccountFilterPresentationTimeRangeOutput) ElementType

func (AccountFilterPresentationTimeRangeOutput) EndInUnits

The absolute end time boundary. Applies to Video on Demand (VoD). For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by `unitTimescaleInMilliseconds`, so an `endInUnits` of 180 would be for 3 minutes. Use `startInUnits` and `endInUnits` to trim the fragments that will be in the playlist (manifest). For example, `startInUnits` set to 20 and `endInUnits` set to 60 using `unitTimescaleInMilliseconds` in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

func (AccountFilterPresentationTimeRangeOutput) ForceEnd

Indicates whether the `endInUnits` property must be present. If true, `endInUnits` must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: `false`, `true`.

func (AccountFilterPresentationTimeRangeOutput) LiveBackoffInUnits

The relative to end right edge. Applies to Live Streaming only. This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by `unitTimescaleInMilliseconds`. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.

func (AccountFilterPresentationTimeRangeOutput) PresentationWindowInUnits

func (o AccountFilterPresentationTimeRangeOutput) PresentationWindowInUnits() pulumi.IntPtrOutput

The relative to end sliding window. Applies to Live Streaming only. Use `presentationWindowInUnits` to apply a sliding window of fragments to include in a playlist. The unit is defined by `unitTimescaleInMilliseconds`. For example, set `presentationWindowInUnits` to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.

func (AccountFilterPresentationTimeRangeOutput) StartInUnits

The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by `unitTimescaleInMilliseconds`, so a `startInUnits` of 15 would be for 15 seconds. Use `startInUnits` and `endInUnits` to trim the fragments that will be in the playlist (manifest). For example, `startInUnits` set to 20 and `endInUnits` set to 60 using `unitTimescaleInMilliseconds` in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

func (AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangeOutput

func (o AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangeOutput() AccountFilterPresentationTimeRangeOutput

func (AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangeOutputWithContext

func (o AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangeOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangeOutput

func (AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangePtrOutput

func (o AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput

func (AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangePtrOutputWithContext

func (o AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangePtrOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangePtrOutput

func (AccountFilterPresentationTimeRangeOutput) UnitTimescaleInMilliseconds

func (o AccountFilterPresentationTimeRangeOutput) UnitTimescaleInMilliseconds() pulumi.IntOutput

Specified as the number of milliseconds in one unit timescale. For example, if you want to set a `startInUnits` at 30 seconds, you would use a value of 30 when using the `unitTimescaleInMilliseconds` in 1000. Or if you want to set `startInUnits` in 30 milliseconds, you would use a value of 30 when using the `unitTimescaleInMilliseconds` in 1. Applies timescale to `startInUnits`, `startTimescale` and `presentationWindowInTimescale` and `liveBackoffInTimescale`.

type AccountFilterPresentationTimeRangePtrInput

type AccountFilterPresentationTimeRangePtrInput interface {
	pulumi.Input

	ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput
	ToAccountFilterPresentationTimeRangePtrOutputWithContext(context.Context) AccountFilterPresentationTimeRangePtrOutput
}

AccountFilterPresentationTimeRangePtrInput is an input type that accepts AccountFilterPresentationTimeRangeArgs, AccountFilterPresentationTimeRangePtr and AccountFilterPresentationTimeRangePtrOutput values. You can construct a concrete instance of `AccountFilterPresentationTimeRangePtrInput` via:

        AccountFilterPresentationTimeRangeArgs{...}

or:

        nil

type AccountFilterPresentationTimeRangePtrOutput

type AccountFilterPresentationTimeRangePtrOutput struct{ *pulumi.OutputState }

func (AccountFilterPresentationTimeRangePtrOutput) Elem

func (AccountFilterPresentationTimeRangePtrOutput) ElementType

func (AccountFilterPresentationTimeRangePtrOutput) EndInUnits

The absolute end time boundary. Applies to Video on Demand (VoD). For the Live Streaming presentation, it is silently ignored and applied when the presentation ends and the stream becomes VoD. This is a long value that represents an absolute end point of the presentation, rounded to the closest next GOP start. The unit is defined by `unitTimescaleInMilliseconds`, so an `endInUnits` of 180 would be for 3 minutes. Use `startInUnits` and `endInUnits` to trim the fragments that will be in the playlist (manifest). For example, `startInUnits` set to 20 and `endInUnits` set to 60 using `unitTimescaleInMilliseconds` in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

func (AccountFilterPresentationTimeRangePtrOutput) ForceEnd

Indicates whether the `endInUnits` property must be present. If true, `endInUnits` must be specified or a bad request code is returned. Applies to Live Streaming only. Allowed values: `false`, `true`.

func (AccountFilterPresentationTimeRangePtrOutput) LiveBackoffInUnits

The relative to end right edge. Applies to Live Streaming only. This value defines the latest live position that a client can seek to. Using this property, you can delay live playback position and create a server-side buffer for players. The unit is defined by `unitTimescaleInMilliseconds`. The maximum live back off duration is 300 seconds. For example, a value of 20 means that the latest available content is 20 seconds delayed from the real live edge.

func (AccountFilterPresentationTimeRangePtrOutput) PresentationWindowInUnits

func (o AccountFilterPresentationTimeRangePtrOutput) PresentationWindowInUnits() pulumi.IntPtrOutput

The relative to end sliding window. Applies to Live Streaming only. Use `presentationWindowInUnits` to apply a sliding window of fragments to include in a playlist. The unit is defined by `unitTimescaleInMilliseconds`. For example, set `presentationWindowInUnits` to 120 to apply a two-minute sliding window. Media within 2 minutes of the live edge will be included in the playlist. If a fragment straddles the boundary, the entire fragment will be included in the playlist. The minimum presentation window duration is 60 seconds.

func (AccountFilterPresentationTimeRangePtrOutput) StartInUnits

The absolute start time boundary. Applies to Video on Demand (VoD) or Live Streaming. This is a long value that represents an absolute start point of the stream. The value gets rounded to the closest next GOP start. The unit is defined by `unitTimescaleInMilliseconds`, so a `startInUnits` of 15 would be for 15 seconds. Use `startInUnits` and `endInUnits` to trim the fragments that will be in the playlist (manifest). For example, `startInUnits` set to 20 and `endInUnits` set to 60 using `unitTimescaleInMilliseconds` in 1000 will generate a playlist that contains fragments from between 20 seconds and 60 seconds of the VoD presentation. If a fragment straddles the boundary, the entire fragment will be included in the manifest.

func (AccountFilterPresentationTimeRangePtrOutput) ToAccountFilterPresentationTimeRangePtrOutput

func (o AccountFilterPresentationTimeRangePtrOutput) ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput

func (AccountFilterPresentationTimeRangePtrOutput) ToAccountFilterPresentationTimeRangePtrOutputWithContext

func (o AccountFilterPresentationTimeRangePtrOutput) ToAccountFilterPresentationTimeRangePtrOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangePtrOutput

func (AccountFilterPresentationTimeRangePtrOutput) UnitTimescaleInMilliseconds

func (o AccountFilterPresentationTimeRangePtrOutput) UnitTimescaleInMilliseconds() pulumi.IntPtrOutput

Specified as the number of milliseconds in one unit timescale. For example, if you want to set a `startInUnits` at 30 seconds, you would use a value of 30 when using the `unitTimescaleInMilliseconds` in 1000. Or if you want to set `startInUnits` in 30 milliseconds, you would use a value of 30 when using the `unitTimescaleInMilliseconds` in 1. Applies timescale to `startInUnits`, `startTimescale` and `presentationWindowInTimescale` and `liveBackoffInTimescale`.

type AccountFilterState

type AccountFilterState struct {
	// The first quality bitrate. Sets the first video track to appear in the Live Streaming playlist to allow HLS native players to start downloading from this quality level at the beginning.
	FirstQualityBitrate pulumi.IntPtrInput
	// The Media Services account name. Changing this forces a new Account Filter to be created.
	MediaServicesAccountName pulumi.StringPtrInput
	// The name which should be used for this Account Filter. Changing this forces a new Account Filter to be created.
	Name pulumi.StringPtrInput
	// A `presentationTimeRange` block as defined below.
	PresentationTimeRange AccountFilterPresentationTimeRangePtrInput
	// The name of the Resource Group where the Account Filter should exist. Changing this forces a new Account Filter to be created.
	ResourceGroupName pulumi.StringPtrInput
	// One or more `trackSelection` blocks as defined below.
	TrackSelections AccountFilterTrackSelectionArrayInput
}

func (AccountFilterState) ElementType

func (AccountFilterState) ElementType() reflect.Type

type AccountFilterTrackSelection

type AccountFilterTrackSelection struct {
	// One or more `selection` blocks as defined above.
	Conditions []AccountFilterTrackSelectionCondition `pulumi:"conditions"`
}

type AccountFilterTrackSelectionArgs

type AccountFilterTrackSelectionArgs struct {
	// One or more `selection` blocks as defined above.
	Conditions AccountFilterTrackSelectionConditionArrayInput `pulumi:"conditions"`
}

func (AccountFilterTrackSelectionArgs) ElementType

func (AccountFilterTrackSelectionArgs) ToAccountFilterTrackSelectionOutput

func (i AccountFilterTrackSelectionArgs) ToAccountFilterTrackSelectionOutput() AccountFilterTrackSelectionOutput

func (AccountFilterTrackSelectionArgs) ToAccountFilterTrackSelectionOutputWithContext

func (i AccountFilterTrackSelectionArgs) ToAccountFilterTrackSelectionOutputWithContext(ctx context.Context) AccountFilterTrackSelectionOutput

type AccountFilterTrackSelectionArray

type AccountFilterTrackSelectionArray []AccountFilterTrackSelectionInput

func (AccountFilterTrackSelectionArray) ElementType

func (AccountFilterTrackSelectionArray) ToAccountFilterTrackSelectionArrayOutput

func (i AccountFilterTrackSelectionArray) ToAccountFilterTrackSelectionArrayOutput() AccountFilterTrackSelectionArrayOutput

func (AccountFilterTrackSelectionArray) ToAccountFilterTrackSelectionArrayOutputWithContext

func (i AccountFilterTrackSelectionArray) ToAccountFilterTrackSelectionArrayOutputWithContext(ctx context.Context) AccountFilterTrackSelectionArrayOutput

type AccountFilterTrackSelectionArrayInput

type AccountFilterTrackSelectionArrayInput interface {
	pulumi.Input

	ToAccountFilterTrackSelectionArrayOutput() AccountFilterTrackSelectionArrayOutput
	ToAccountFilterTrackSelectionArrayOutputWithContext(context.Context) AccountFilterTrackSelectionArrayOutput
}

AccountFilterTrackSelectionArrayInput is an input type that accepts AccountFilterTrackSelectionArray and AccountFilterTrackSelectionArrayOutput values. You can construct a concrete instance of `AccountFilterTrackSelectionArrayInput` via:

AccountFilterTrackSelectionArray{ AccountFilterTrackSelectionArgs{...} }

type AccountFilterTrackSelectionArrayOutput

type AccountFilterTrackSelectionArrayOutput struct{ *pulumi.OutputState }

func (AccountFilterTrackSelectionArrayOutput) ElementType

func (AccountFilterTrackSelectionArrayOutput) Index

func (AccountFilterTrackSelectionArrayOutput) ToAccountFilterTrackSelectionArrayOutput

func (o AccountFilterTrackSelectionArrayOutput) ToAccountFilterTrackSelectionArrayOutput() AccountFilterTrackSelectionArrayOutput

func (AccountFilterTrackSelectionArrayOutput) ToAccountFilterTrackSelectionArrayOutputWithContext

func (o AccountFilterTrackSelectionArrayOutput) ToAccountFilterTrackSelectionArrayOutputWithContext(ctx context.Context) AccountFilterTrackSelectionArrayOutput

type AccountFilterTrackSelectionCondition

type AccountFilterTrackSelectionCondition struct {
	// The condition operation to test a track property against. Supported values are `Equal` and `NotEqual`.
	Operation string `pulumi:"operation"`
	// The track property to compare. Supported values are `Bitrate`, `FourCC`, `Language`, `Name` and `Type`. Check [documentation](https://docs.microsoft.com/azure/media-services/latest/filters-concept) for more details.
	Property string `pulumi:"property"`
	// The track property value to match or not match.
	Value string `pulumi:"value"`
}

type AccountFilterTrackSelectionConditionArgs

type AccountFilterTrackSelectionConditionArgs struct {
	// The condition operation to test a track property against. Supported values are `Equal` and `NotEqual`.
	Operation pulumi.StringInput `pulumi:"operation"`
	// The track property to compare. Supported values are `Bitrate`, `FourCC`, `Language`, `Name` and `Type`. Check [documentation](https://docs.microsoft.com/azure/media-services/latest/filters-concept) for more details.
	Property pulumi.StringInput `pulumi:"property"`
	// The track property value to match or not match.
	Value pulumi.StringInput `pulumi:"value"`
}

func (AccountFilterTrackSelectionConditionArgs) ElementType

func (AccountFilterTrackSelectionConditionArgs) ToAccountFilterTrackSelectionConditionOutput

func (i AccountFilterTrackSelectionConditionArgs) ToAccountFilterTrackSelectionConditionOutput() AccountFilterTrackSelectionConditionOutput

func (AccountFilterTrackSelectionConditionArgs) ToAccountFilterTrackSelectionConditionOutputWithContext

func (i AccountFilterTrackSelectionConditionArgs) ToAccountFilterTrackSelectionConditionOutputWithContext(ctx context.Context) AccountFilterTrackSelectionConditionOutput

type AccountFilterTrackSelectionConditionArray

type AccountFilterTrackSelectionConditionArray []AccountFilterTrackSelectionConditionInput

func (AccountFilterTrackSelectionConditionArray) ElementType

func (AccountFilterTrackSelectionConditionArray) ToAccountFilterTrackSelectionConditionArrayOutput

func (i AccountFilterTrackSelectionConditionArray) ToAccountFilterTrackSelectionConditionArrayOutput() AccountFilterTrackSelectionConditionArrayOutput

func (AccountFilterTrackSelectionConditionArray) ToAccountFilterTrackSelectionConditionArrayOutputWithContext

func (i AccountFilterTrackSelectionConditionArray) ToAccountFilterTrackSelectionConditionArrayOutputWithContext(ctx context.Context) AccountFilterTrackSelectionConditionArrayOutput

type AccountFilterTrackSelectionConditionArrayInput

type AccountFilterTrackSelectionConditionArrayInput interface {
	pulumi.Input

	ToAccountFilterTrackSelectionConditionArrayOutput() AccountFilterTrackSelectionConditionArrayOutput
	ToAccountFilterTrackSelectionConditionArrayOutputWithContext(context.Context) AccountFilterTrackSelectionConditionArrayOutput
}

AccountFilterTrackSelectionConditionArrayInput is an input type that accepts AccountFilterTrackSelectionConditionArray and AccountFilterTrackSelectionConditionArrayOutput values. You can construct a concrete instance of `AccountFilterTrackSelectionConditionArrayInput` via:

AccountFilterTrackSelectionConditionArray{ AccountFilterTrackSelectionConditionArgs{...} }

type AccountFilterTrackSelectionConditionArrayOutput

type AccountFilterTrackSelectionConditionArrayOutput struct{ *pulumi.OutputState }

func (AccountFilterTrackSelectionConditionArrayOutput) ElementType

func (AccountFilterTrackSelectionConditionArrayOutput) Index

func (AccountFilterTrackSelectionConditionArrayOutput) ToAccountFilterTrackSelectionConditionArrayOutput

func (o AccountFilterTrackSelectionConditionArrayOutput) ToAccountFilterTrackSelectionConditionArrayOutput() AccountFilterTrackSelectionConditionArrayOutput

func (AccountFilterTrackSelectionConditionArrayOutput) ToAccountFilterTrackSelectionConditionArrayOutputWithContext

func (o AccountFilterTrackSelectionConditionArrayOutput) ToAccountFilterTrackSelectionConditionArrayOutputWithContext(ctx context.Context) AccountFilterTrackSelectionConditionArrayOutput

type AccountFilterTrackSelectionConditionInput

type AccountFilterTrackSelectionConditionInput interface {
	pulumi.Input

	ToAccountFilterTrackSelectionConditionOutput() AccountFilterTrackSelectionConditionOutput
	ToAccountFilterTrackSelectionConditionOutputWithContext(context.Context) AccountFilterTrackSelectionConditionOutput
}

AccountFilterTrackSelectionConditionInput is an input type that accepts AccountFilterTrackSelectionConditionArgs and AccountFilterTrackSelectionConditionOutput values. You can construct a concrete instance of `AccountFilterTrackSelectionConditionInput` via:

AccountFilterTrackSelectionConditionArgs{...}

type AccountFilterTrackSelectionConditionOutput

type AccountFilterTrackSelectionConditionOutput struct{ *pulumi.OutputState }

func (AccountFilterTrackSelectionConditionOutput) ElementType

func (AccountFilterTrackSelectionConditionOutput) Operation

The condition operation to test a track property against. Supported values are `Equal` and `NotEqual`.

func (AccountFilterTrackSelectionConditionOutput) Property

The track property to compare. Supported values are `Bitrate`, `FourCC`, `Language`, `Name` and `Type`. Check [documentation](https://docs.microsoft.com/azure/media-services/latest/filters-concept) for more details.

func (AccountFilterTrackSelectionConditionOutput) ToAccountFilterTrackSelectionConditionOutput

func (o AccountFilterTrackSelectionConditionOutput) ToAccountFilterTrackSelectionConditionOutput() AccountFilterTrackSelectionConditionOutput

func (AccountFilterTrackSelectionConditionOutput) ToAccountFilterTrackSelectionConditionOutputWithContext

func (o AccountFilterTrackSelectionConditionOutput) ToAccountFilterTrackSelectionConditionOutputWithContext(ctx context.Context) AccountFilterTrackSelectionConditionOutput

func (AccountFilterTrackSelectionConditionOutput) Value

The track property value to match or not match.

type AccountFilterTrackSelectionInput

type AccountFilterTrackSelectionInput interface {
	pulumi.Input

	ToAccountFilterTrackSelectionOutput() AccountFilterTrackSelectionOutput
	ToAccountFilterTrackSelectionOutputWithContext(context.Context) AccountFilterTrackSelectionOutput
}

AccountFilterTrackSelectionInput is an input type that accepts AccountFilterTrackSelectionArgs and AccountFilterTrackSelectionOutput values. You can construct a concrete instance of `AccountFilterTrackSelectionInput` via:

AccountFilterTrackSelectionArgs{...}

type AccountFilterTrackSelectionOutput

type AccountFilterTrackSelectionOutput struct{ *pulumi.OutputState }

func (AccountFilterTrackSelectionOutput) Conditions

One or more `selection` blocks as defined above.

func (AccountFilterTrackSelectionOutput) ElementType

func (AccountFilterTrackSelectionOutput) ToAccountFilterTrackSelectionOutput

func (o AccountFilterTrackSelectionOutput) ToAccountFilterTrackSelectionOutput() AccountFilterTrackSelectionOutput

func (AccountFilterTrackSelectionOutput) ToAccountFilterTrackSelectionOutputWithContext

func (o AccountFilterTrackSelectionOutput) ToAccountFilterTrackSelectionOutputWithContext(ctx context.Context) AccountFilterTrackSelectionOutput

Jump to

Keyboard shortcuts

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