azure-native-v2.media.AssetFilter
Explore with Pulumi AI
An Asset Filter. Azure REST API version: 2023-01-01. Prior API version in Azure Native 1.x: 2020-05-01.
Create AssetFilter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AssetFilter(name: string, args: AssetFilterArgs, opts?: CustomResourceOptions);
@overload
def AssetFilter(resource_name: str,
args: AssetFilterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AssetFilter(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
asset_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
filter_name: Optional[str] = None,
first_quality: Optional[FirstQualityArgs] = None,
presentation_time_range: Optional[PresentationTimeRangeArgs] = None,
tracks: Optional[Sequence[FilterTrackSelectionArgs]] = None)
func NewAssetFilter(ctx *Context, name string, args AssetFilterArgs, opts ...ResourceOption) (*AssetFilter, error)
public AssetFilter(string name, AssetFilterArgs args, CustomResourceOptions? opts = null)
public AssetFilter(String name, AssetFilterArgs args)
public AssetFilter(String name, AssetFilterArgs args, CustomResourceOptions options)
type: azure-native:media:AssetFilter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AssetFilterArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. AssetFilterArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AssetFilterArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AssetFilterArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. AssetFilterArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var assetFilterResource = new AzureNative.Media.AssetFilter("assetFilterResource", new()
{
AccountName = "string",
AssetName = "string",
ResourceGroupName = "string",
FilterName = "string",
FirstQuality =
{
{ "bitrate", 0 },
},
PresentationTimeRange =
{
{ "endTimestamp", 0 },
{ "forceEndTimestamp", false },
{ "liveBackoffDuration", 0 },
{ "presentationWindowDuration", 0 },
{ "startTimestamp", 0 },
{ "timescale", 0 },
},
Tracks = new[]
{
{
{ "trackSelections", new[]
{
{
{ "operation", "string" },
{ "property", "string" },
{ "value", "string" },
},
} },
},
},
});
example, err := media.NewAssetFilter(ctx, "assetFilterResource", &media.AssetFilterArgs{
AccountName: "string",
AssetName: "string",
ResourceGroupName: "string",
FilterName: "string",
FirstQuality: map[string]interface{}{
"bitrate": 0,
},
PresentationTimeRange: map[string]interface{}{
"endTimestamp": 0,
"forceEndTimestamp": false,
"liveBackoffDuration": 0,
"presentationWindowDuration": 0,
"startTimestamp": 0,
"timescale": 0,
},
Tracks: []map[string]interface{}{
map[string]interface{}{
"trackSelections": []map[string]interface{}{
map[string]interface{}{
"operation": "string",
"property": "string",
"value": "string",
},
},
},
},
})
var assetFilterResource = new AssetFilter("assetFilterResource", AssetFilterArgs.builder()
.accountName("string")
.assetName("string")
.resourceGroupName("string")
.filterName("string")
.firstQuality(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.presentationTimeRange(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tracks(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
asset_filter_resource = azure_native.media.AssetFilter("assetFilterResource",
account_name=string,
asset_name=string,
resource_group_name=string,
filter_name=string,
first_quality={
bitrate: 0,
},
presentation_time_range={
endTimestamp: 0,
forceEndTimestamp: False,
liveBackoffDuration: 0,
presentationWindowDuration: 0,
startTimestamp: 0,
timescale: 0,
},
tracks=[{
trackSelections: [{
operation: string,
property: string,
value: string,
}],
}])
const assetFilterResource = new azure_native.media.AssetFilter("assetFilterResource", {
accountName: "string",
assetName: "string",
resourceGroupName: "string",
filterName: "string",
firstQuality: {
bitrate: 0,
},
presentationTimeRange: {
endTimestamp: 0,
forceEndTimestamp: false,
liveBackoffDuration: 0,
presentationWindowDuration: 0,
startTimestamp: 0,
timescale: 0,
},
tracks: [{
trackSelections: [{
operation: "string",
property: "string",
value: "string",
}],
}],
});
type: azure-native:media:AssetFilter
properties:
accountName: string
assetName: string
filterName: string
firstQuality:
bitrate: 0
presentationTimeRange:
endTimestamp: 0
forceEndTimestamp: false
liveBackoffDuration: 0
presentationWindowDuration: 0
startTimestamp: 0
timescale: 0
resourceGroupName: string
tracks:
- trackSelections:
- operation: string
property: string
value: string
AssetFilter Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AssetFilter resource accepts the following input properties:
- Account
Name This property is required. Changes to this property will trigger replacement.
- The Media Services account name.
- Asset
Name This property is required. Changes to this property will trigger replacement.
- The Asset name.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group within the Azure subscription.
- Filter
Name Changes to this property will trigger replacement.
- The Asset Filter name
- First
Quality Pulumi.Azure Native. Media. Inputs. First Quality - The first quality.
- Presentation
Time Pulumi.Range Azure Native. Media. Inputs. Presentation Time Range - The presentation time range.
- Tracks
List<Pulumi.
Azure Native. Media. Inputs. Filter Track Selection> - The tracks selection conditions.
- Account
Name This property is required. Changes to this property will trigger replacement.
- The Media Services account name.
- Asset
Name This property is required. Changes to this property will trigger replacement.
- The Asset name.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group within the Azure subscription.
- Filter
Name Changes to this property will trigger replacement.
- The Asset Filter name
- First
Quality FirstQuality Args - The first quality.
- Presentation
Time PresentationRange Time Range Args - The presentation time range.
- Tracks
[]Filter
Track Selection Args - The tracks selection conditions.
- account
Name This property is required. Changes to this property will trigger replacement.
- The Media Services account name.
- asset
Name This property is required. Changes to this property will trigger replacement.
- The Asset name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group within the Azure subscription.
- filter
Name Changes to this property will trigger replacement.
- The Asset Filter name
- first
Quality FirstQuality - The first quality.
- presentation
Time PresentationRange Time Range - The presentation time range.
- tracks
List<Filter
Track Selection> - The tracks selection conditions.
- account
Name This property is required. Changes to this property will trigger replacement.
- The Media Services account name.
- asset
Name This property is required. Changes to this property will trigger replacement.
- The Asset name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group within the Azure subscription.
- filter
Name Changes to this property will trigger replacement.
- The Asset Filter name
- first
Quality FirstQuality - The first quality.
- presentation
Time PresentationRange Time Range - The presentation time range.
- tracks
Filter
Track Selection[] - The tracks selection conditions.
- account_
name This property is required. Changes to this property will trigger replacement.
- The Media Services account name.
- asset_
name This property is required. Changes to this property will trigger replacement.
- The Asset name.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group within the Azure subscription.
- filter_
name Changes to this property will trigger replacement.
- The Asset Filter name
- first_
quality FirstQuality Args - The first quality.
- presentation_
time_ Presentationrange Time Range Args - The presentation time range.
- tracks
Sequence[Filter
Track Selection Args] - The tracks selection conditions.
- account
Name This property is required. Changes to this property will trigger replacement.
- The Media Services account name.
- asset
Name This property is required. Changes to this property will trigger replacement.
- The Asset name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group within the Azure subscription.
- filter
Name Changes to this property will trigger replacement.
- The Asset Filter name
- first
Quality Property Map - The first quality.
- presentation
Time Property MapRange - The presentation time range.
- tracks List<Property Map>
- The tracks selection conditions.
Outputs
All input properties are implicitly available as output properties. Additionally, the AssetFilter resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Media. Outputs. System Data Response - The system metadata relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - The system metadata relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - The system metadata relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - The system metadata relating to this resource.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - The system metadata relating to this resource.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - The system metadata relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
FilterTrackPropertyCompareOperation, FilterTrackPropertyCompareOperationArgs
- Equal
- EqualThe equal operation.
- Not
Equal - NotEqualThe not equal operation.
- Filter
Track Property Compare Operation Equal - EqualThe equal operation.
- Filter
Track Property Compare Operation Not Equal - NotEqualThe not equal operation.
- Equal
- EqualThe equal operation.
- Not
Equal - NotEqualThe not equal operation.
- Equal
- EqualThe equal operation.
- Not
Equal - NotEqualThe not equal operation.
- EQUAL
- EqualThe equal operation.
- NOT_EQUAL
- NotEqualThe not equal operation.
- "Equal"
- EqualThe equal operation.
- "Not
Equal" - NotEqualThe not equal operation.
FilterTrackPropertyCondition, FilterTrackPropertyConditionArgs
- Operation
This property is required. string | Pulumi.Azure Native. Media. Filter Track Property Compare Operation - The track property condition operation.
- Property
This property is required. string | Pulumi.Azure Native. Media. Filter Track Property Type - The track property type.
- Value
This property is required. string - The track property value.
- Operation
This property is required. string | FilterTrack Property Compare Operation - The track property condition operation.
- Property
This property is required. string | FilterTrack Property Type - The track property type.
- Value
This property is required. string - The track property value.
- operation
This property is required. String | FilterTrack Property Compare Operation - The track property condition operation.
- property
This property is required. String | FilterTrack Property Type - The track property type.
- value
This property is required. String - The track property value.
- operation
This property is required. string | FilterTrack Property Compare Operation - The track property condition operation.
- property
This property is required. string | FilterTrack Property Type - The track property type.
- value
This property is required. string - The track property value.
- operation
This property is required. str | FilterTrack Property Compare Operation - The track property condition operation.
- property
This property is required. str | FilterTrack Property Type - The track property type.
- value
This property is required. str - The track property value.
- operation
This property is required. String | "Equal" | "NotEqual" - The track property condition operation.
- property
This property is required. String | "Unknown" | "Type" | "Name" | "Language" | "FourCC" | "Bitrate" - The track property type.
- value
This property is required. String - The track property value.
FilterTrackPropertyConditionResponse, FilterTrackPropertyConditionResponseArgs
FilterTrackPropertyType, FilterTrackPropertyTypeArgs
- Unknown
- UnknownThe unknown track property type.
- Type
- TypeThe type.
- Name
- NameThe name.
- Language
- LanguageThe language.
- Four
CC - FourCCThe fourCC.
- Bitrate
- BitrateThe bitrate.
- Filter
Track Property Type Unknown - UnknownThe unknown track property type.
- Filter
Track Property Type Type - TypeThe type.
- Filter
Track Property Type Name - NameThe name.
- Filter
Track Property Type Language - LanguageThe language.
- Filter
Track Property Type Four CC - FourCCThe fourCC.
- Filter
Track Property Type Bitrate - BitrateThe bitrate.
- Unknown
- UnknownThe unknown track property type.
- Type
- TypeThe type.
- Name
- NameThe name.
- Language
- LanguageThe language.
- Four
CC - FourCCThe fourCC.
- Bitrate
- BitrateThe bitrate.
- Unknown
- UnknownThe unknown track property type.
- Type
- TypeThe type.
- Name
- NameThe name.
- Language
- LanguageThe language.
- Four
CC - FourCCThe fourCC.
- Bitrate
- BitrateThe bitrate.
- UNKNOWN
- UnknownThe unknown track property type.
- TYPE
- TypeThe type.
- NAME
- NameThe name.
- LANGUAGE
- LanguageThe language.
- FOUR_CC
- FourCCThe fourCC.
- BITRATE
- BitrateThe bitrate.
- "Unknown"
- UnknownThe unknown track property type.
- "Type"
- TypeThe type.
- "Name"
- NameThe name.
- "Language"
- LanguageThe language.
- "Four
CC" - FourCCThe fourCC.
- "Bitrate"
- BitrateThe bitrate.
FilterTrackSelection, FilterTrackSelectionArgs
- Track
Selections This property is required. List<Pulumi.Azure Native. Media. Inputs. Filter Track Property Condition> - The track selections.
- Track
Selections This property is required. []FilterTrack Property Condition - The track selections.
- track
Selections This property is required. List<FilterTrack Property Condition> - The track selections.
- track
Selections This property is required. FilterTrack Property Condition[] - The track selections.
- track_
selections This property is required. Sequence[FilterTrack Property Condition] - The track selections.
- track
Selections This property is required. List<Property Map> - The track selections.
FilterTrackSelectionResponse, FilterTrackSelectionResponseArgs
- Track
Selections This property is required. List<Pulumi.Azure Native. Media. Inputs. Filter Track Property Condition Response> - The track selections.
- Track
Selections This property is required. []FilterTrack Property Condition Response - The track selections.
- track
Selections This property is required. List<FilterTrack Property Condition Response> - The track selections.
- track
Selections This property is required. FilterTrack Property Condition Response[] - The track selections.
- track_
selections This property is required. Sequence[FilterTrack Property Condition Response] - The track selections.
- track
Selections This property is required. List<Property Map> - The track selections.
FirstQuality, FirstQualityArgs
- Bitrate
This property is required. int - The first quality bitrate.
- Bitrate
This property is required. int - The first quality bitrate.
- bitrate
This property is required. Integer - The first quality bitrate.
- bitrate
This property is required. number - The first quality bitrate.
- bitrate
This property is required. int - The first quality bitrate.
- bitrate
This property is required. Number - The first quality bitrate.
FirstQualityResponse, FirstQualityResponseArgs
- Bitrate
This property is required. int - The first quality bitrate.
- Bitrate
This property is required. int - The first quality bitrate.
- bitrate
This property is required. Integer - The first quality bitrate.
- bitrate
This property is required. number - The first quality bitrate.
- bitrate
This property is required. int - The first quality bitrate.
- bitrate
This property is required. Number - The first quality bitrate.
PresentationTimeRange, PresentationTimeRangeArgs
- End
Timestamp double - The absolute end time boundary.
- Force
End boolTimestamp - The indicator of forcing existing of end time stamp.
- Live
Backoff doubleDuration - The relative to end right edge.
- Presentation
Window doubleDuration - The relative to end sliding window.
- Start
Timestamp double - The absolute start time boundary.
- Timescale double
- The time scale of time stamps.
- End
Timestamp float64 - The absolute end time boundary.
- Force
End boolTimestamp - The indicator of forcing existing of end time stamp.
- Live
Backoff float64Duration - The relative to end right edge.
- Presentation
Window float64Duration - The relative to end sliding window.
- Start
Timestamp float64 - The absolute start time boundary.
- Timescale float64
- The time scale of time stamps.
- end
Timestamp Double - The absolute end time boundary.
- force
End BooleanTimestamp - The indicator of forcing existing of end time stamp.
- live
Backoff DoubleDuration - The relative to end right edge.
- presentation
Window DoubleDuration - The relative to end sliding window.
- start
Timestamp Double - The absolute start time boundary.
- timescale Double
- The time scale of time stamps.
- end
Timestamp number - The absolute end time boundary.
- force
End booleanTimestamp - The indicator of forcing existing of end time stamp.
- live
Backoff numberDuration - The relative to end right edge.
- presentation
Window numberDuration - The relative to end sliding window.
- start
Timestamp number - The absolute start time boundary.
- timescale number
- The time scale of time stamps.
- end_
timestamp float - The absolute end time boundary.
- force_
end_ booltimestamp - The indicator of forcing existing of end time stamp.
- live_
backoff_ floatduration - The relative to end right edge.
- presentation_
window_ floatduration - The relative to end sliding window.
- start_
timestamp float - The absolute start time boundary.
- timescale float
- The time scale of time stamps.
- end
Timestamp Number - The absolute end time boundary.
- force
End BooleanTimestamp - The indicator of forcing existing of end time stamp.
- live
Backoff NumberDuration - The relative to end right edge.
- presentation
Window NumberDuration - The relative to end sliding window.
- start
Timestamp Number - The absolute start time boundary.
- timescale Number
- The time scale of time stamps.
PresentationTimeRangeResponse, PresentationTimeRangeResponseArgs
- End
Timestamp double - The absolute end time boundary.
- Force
End boolTimestamp - The indicator of forcing existing of end time stamp.
- Live
Backoff doubleDuration - The relative to end right edge.
- Presentation
Window doubleDuration - The relative to end sliding window.
- Start
Timestamp double - The absolute start time boundary.
- Timescale double
- The time scale of time stamps.
- End
Timestamp float64 - The absolute end time boundary.
- Force
End boolTimestamp - The indicator of forcing existing of end time stamp.
- Live
Backoff float64Duration - The relative to end right edge.
- Presentation
Window float64Duration - The relative to end sliding window.
- Start
Timestamp float64 - The absolute start time boundary.
- Timescale float64
- The time scale of time stamps.
- end
Timestamp Double - The absolute end time boundary.
- force
End BooleanTimestamp - The indicator of forcing existing of end time stamp.
- live
Backoff DoubleDuration - The relative to end right edge.
- presentation
Window DoubleDuration - The relative to end sliding window.
- start
Timestamp Double - The absolute start time boundary.
- timescale Double
- The time scale of time stamps.
- end
Timestamp number - The absolute end time boundary.
- force
End booleanTimestamp - The indicator of forcing existing of end time stamp.
- live
Backoff numberDuration - The relative to end right edge.
- presentation
Window numberDuration - The relative to end sliding window.
- start
Timestamp number - The absolute start time boundary.
- timescale number
- The time scale of time stamps.
- end_
timestamp float - The absolute end time boundary.
- force_
end_ booltimestamp - The indicator of forcing existing of end time stamp.
- live_
backoff_ floatduration - The relative to end right edge.
- presentation_
window_ floatduration - The relative to end sliding window.
- start_
timestamp float - The absolute start time boundary.
- timescale float
- The time scale of time stamps.
- end
Timestamp Number - The absolute end time boundary.
- force
End BooleanTimestamp - The indicator of forcing existing of end time stamp.
- live
Backoff NumberDuration - The relative to end right edge.
- presentation
Window NumberDuration - The relative to end sliding window.
- start
Timestamp Number - The absolute start time boundary.
- timescale Number
- The time scale of time stamps.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:media:AssetFilter newAssetFilter /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0