pspulumiyaml.azurenative.media.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionMediaGetAccountFilter { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Account Filter name)')] [string] $filterName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["filterName"] = $filterName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getAccountFilter -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetContentKeyPolicy { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Content Key Policy name.)')] [string] $contentKeyPolicyName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["contentKeyPolicyName"] = $contentKeyPolicyName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getContentKeyPolicy -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetLiveEvent { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the live event, maximum length is 32.)')] [string] $liveEventName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["liveEventName"] = $liveEventName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getLiveEvent -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetStreamingLocator { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The Streaming Locator name.)')] [string] $streamingLocatorName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["streamingLocatorName"] = $streamingLocatorName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getStreamingLocator -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetMediaGraph { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Media Graph name.)')] [string] $mediaGraphName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["mediaGraphName"] = $mediaGraphName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getMediaGraph -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetTrack { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The Asset Track name.)')] [string] $trackName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["assetName"] = $assetName $arguments["resourceGroupName"] = $resourceGroupName $arguments["trackName"] = $trackName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getTrack -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetAssetFilter { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Asset Filter name)')] [string] $filterName, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["assetName"] = $assetName $arguments["filterName"] = $filterName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getAssetFilter -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaListMediaServiceEdgePolicies { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Unique identifier of the edge device.)')] [string] $deviceId ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'deviceId') { $arguments["deviceId"] = $deviceId } $functionObject = Invoke-PulumiFunction -Name azure-native:media:listMediaServiceEdgePolicies -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaListMediaServiceKeys { param ( [parameter(mandatory=$False,HelpMessage='Name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of the Media Service.)')] [string] $mediaServiceName ) process { $arguments = @{} $arguments["mediaServiceName"] = $mediaServiceName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:listMediaServiceKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaListAssetStreamingLocators { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["assetName"] = $assetName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:listAssetStreamingLocators -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetLiveOutput { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the live output.)')] [string] $liveOutputName, [parameter(mandatory=$False,HelpMessage='The name of the live event, maximum length is 32.)')] [string] $liveEventName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["liveEventName"] = $liveEventName $arguments["liveOutputName"] = $liveOutputName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getLiveOutput -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetJob { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Transform name.)')] [string] $transformName, [parameter(mandatory=$False,HelpMessage='The Job name.)')] [string] $jobName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["jobName"] = $jobName $arguments["resourceGroupName"] = $resourceGroupName $arguments["transformName"] = $transformName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getJob -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetMediaService { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getMediaService -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaListStreamingLocatorPaths { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The Streaming Locator name.)')] [string] $streamingLocatorName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["streamingLocatorName"] = $streamingLocatorName $functionObject = Invoke-PulumiFunction -Name azure-native:media:listStreamingLocatorPaths -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetAsset { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["assetName"] = $assetName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getAsset -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaListStreamingLocatorContentKeys { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The Streaming Locator name.)')] [string] $streamingLocatorName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["streamingLocatorName"] = $streamingLocatorName $functionObject = Invoke-PulumiFunction -Name azure-native:media:listStreamingLocatorContentKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetTransform { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Transform name.)')] [string] $transformName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["transformName"] = $transformName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getTransform -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetAssetEncryptionKey { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["assetName"] = $assetName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getAssetEncryptionKey -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetContentKeyPolicyPropertiesWithSecrets { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Content Key Policy name.)')] [string] $contentKeyPolicyName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["contentKeyPolicyName"] = $contentKeyPolicyName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getContentKeyPolicyPropertiesWithSecrets -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetStreamingPolicy { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Streaming Policy name.)')] [string] $streamingPolicyName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["streamingPolicyName"] = $streamingPolicyName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getStreamingPolicy -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetStreamingEndpoint { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the streaming endpoint, maximum length is 24.)')] [string] $streamingEndpointName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["streamingEndpointName"] = $streamingEndpointName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getStreamingEndpoint -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage=')')] [string] $name, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["name"] = $name $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaListAssetContainerSas { param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The SAS URL expiration time. This must be less than 24 hours from the current time.)')] [string] $expiryTime, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The permissions to set on the SAS URL.)')] [string] [ArgumentCompletions('Read', 'ReadWrite', 'ReadWriteDelete')] $permissions ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["assetName"] = $assetName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expiryTime') { $arguments["expiryTime"] = $expiryTime } if($PSBoundParameters.Keys -icontains 'permissions') { $arguments["permissions"] = $permissions } $functionObject = Invoke-PulumiFunction -Name azure-native:media:listAssetContainerSas -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class Hls { [int] $fragmentsPerTsSegment } function New-AzureNativeTypeMediaHls { param ( [parameter(mandatory=$False,HelpMessage='The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output.)')] [int] $fragmentsPerTsSegment ) process { return $([Hls]$PSBoundParameters) } } function New-AzureNativeMediaLiveOutput { [Alias('azure_native_media_liveoutput')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='HTTP Live Streaming (HLS) packing setting for the live output.)')] [Hls] $hls, [parameter(mandatory=$False,HelpMessage='The description of the live output.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the live output.)')] [string] $liveOutputName, [parameter(mandatory=$False,HelpMessage='The initial timestamp that the live output will start at, any content before this value will not be archived.)')] [int] $outputSnapTime, [parameter(mandatory=$False,HelpMessage='The manifest file name. If not provided, the service will generate one automatically.)')] [string] $manifestName, [parameter(mandatory=$False,HelpMessage='The name of the live event, maximum length is 32.)')] [string] $liveEventName, [parameter(mandatory=$False,HelpMessage='The asset that the live output will write to.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.)')] [string] $archiveWindowLength, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:LiveOutput") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["archiveWindowLength"] = $archiveWindowLength $resource.properties["assetName"] = $assetName $resource.properties["liveEventName"] = $liveEventName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'hls') { $resource.properties["hls"] = $hls } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'liveOutputName') { $resource.properties["liveOutputName"] = $liveOutputName } if($PSBoundParameters.Keys -icontains 'outputSnapTime') { $resource.properties["outputSnapTime"] = $outputSnapTime } if($PSBoundParameters.Keys -icontains 'manifestName') { $resource.properties["manifestName"] = $manifestName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaTransform { [Alias('azure_native_media_transform')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Transform name.)')] [string] $transformName, [parameter(mandatory=$False,HelpMessage='An array of one or more TransformOutputs that the Transform should generate.)')] $outputs, [parameter(mandatory=$False,HelpMessage='An optional verbose description of the Transform.)')] [string] $description, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:Transform") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["outputs"] = $outputs $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'transformName') { $resource.properties["transformName"] = $transformName } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaContentKeyPolicy { [Alias('azure_native_media_contentkeypolicy')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Content Key Policy name.)')] [string] $contentKeyPolicyName, [parameter(mandatory=$False,HelpMessage='A description for the Policy.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The Key Policy options.)')] $options, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:ContentKeyPolicy") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["options"] = $options $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'contentKeyPolicyName') { $resource.properties["contentKeyPolicyName"] = $contentKeyPolicyName } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } $global:pulumiresources += $resource return $resource } } class IPRange { [string] $name [string] $address [int] $subnetPrefixLength } function New-AzureNativeTypeMediaIPRange { param ( [parameter(mandatory=$False,HelpMessage='The friendly name for the IP address range.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The IP address.)')] [string] $address, [parameter(mandatory=$False,HelpMessage='The subnet mask prefix length (see CIDR notation).)')] [int] $subnetPrefixLength ) process { return $([IPRange]$PSBoundParameters) } } class IPAccessControl { [IPRange[]] $allow } function New-AzureNativeTypeMediaIPAccessControl { param ( [parameter(mandatory=$False,HelpMessage='The IP allow list.)')] $allow ) process { return $([IPAccessControl]$PSBoundParameters) } } class AkamaiSignatureHeaderAuthenticationKey { [string] $expiration [string] $identifier [string] $base64Key } function New-AzureNativeTypeMediaAkamaiSignatureHeaderAuthenticationKey { param ( [parameter(mandatory=$False,HelpMessage='The expiration time of the authentication key.)')] [string] $expiration, [parameter(mandatory=$False,HelpMessage='identifier of the key)')] [string] $identifier, [parameter(mandatory=$False,HelpMessage='authentication key)')] [string] $base64Key ) process { return $([AkamaiSignatureHeaderAuthenticationKey]$PSBoundParameters) } } class AkamaiAccessControl { [AkamaiSignatureHeaderAuthenticationKey[]] $akamaiSignatureHeaderAuthenticationKeyList } function New-AzureNativeTypeMediaAkamaiAccessControl { param ( [parameter(mandatory=$False,HelpMessage='authentication key list)')] $akamaiSignatureHeaderAuthenticationKeyList ) process { return $([AkamaiAccessControl]$PSBoundParameters) } } class StreamingEndpointAccessControl { [IPAccessControl] $ip [AkamaiAccessControl] $akamai } function New-AzureNativeTypeMediaStreamingEndpointAccessControl { param ( [parameter(mandatory=$False,HelpMessage='The IP access control of the streaming endpoint.)')] [IPAccessControl] $ip, [parameter(mandatory=$False,HelpMessage='The access control of Akamai)')] [AkamaiAccessControl] $akamai ) process { return $([StreamingEndpointAccessControl]$PSBoundParameters) } } class CrossSiteAccessPolicies { [string] $crossDomainPolicy [string] $clientAccessPolicy } function New-AzureNativeTypeMediaCrossSiteAccessPolicies { param ( [parameter(mandatory=$False,HelpMessage='The content of crossdomain.xml used by Silverlight.)')] [string] $crossDomainPolicy, [parameter(mandatory=$False,HelpMessage='The content of clientaccesspolicy.xml used by Silverlight.)')] [string] $clientAccessPolicy ) process { return $([CrossSiteAccessPolicies]$PSBoundParameters) } } function New-AzureNativeMediaStreamingEndpoint { [Alias('azure_native_media_streamingendpoint')] param ( [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The number of scale units. Use the Scale operation to adjust this value.)')] [int] $scaleUnits, [parameter(mandatory=$False,HelpMessage='The CDN profile name.)')] [string] $cdnProfile, [parameter(mandatory=$False,HelpMessage='The name of the streaming endpoint, maximum length is 24.)')] [string] $streamingEndpointName, [parameter(mandatory=$False,HelpMessage='The access control definition of the streaming endpoint.)')] [StreamingEndpointAccessControl] $accessControl, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The custom host names of the streaming endpoint)')] [string[]] $customHostNames, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The streaming endpoint description.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='This feature is deprecated, do not set a value for this property.)')] [string] $availabilitySetName, [parameter(mandatory=$False,HelpMessage='The CDN enabled flag.)')] [bool] $cdnEnabled, [parameter(mandatory=$False,HelpMessage='The streaming endpoint access policies.)')] [CrossSiteAccessPolicies] $crossSiteAccessPolicies, [parameter(mandatory=$False,HelpMessage='Max cache age)')] [int] $maxCacheAge, [parameter(mandatory=$False,HelpMessage='The CDN provider name.)')] [string] $cdnProvider, [parameter(mandatory=$False,HelpMessage='The flag indicates if the resource should be automatically started on creation.)')] [bool] $autoStart, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:StreamingEndpoint") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["scaleUnits"] = $scaleUnits if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'cdnProfile') { $resource.properties["cdnProfile"] = $cdnProfile } if($PSBoundParameters.Keys -icontains 'streamingEndpointName') { $resource.properties["streamingEndpointName"] = $streamingEndpointName } if($PSBoundParameters.Keys -icontains 'accessControl') { $resource.properties["accessControl"] = $accessControl } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'customHostNames') { $resource.properties["customHostNames"] = $customHostNames } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'availabilitySetName') { $resource.properties["availabilitySetName"] = $availabilitySetName } if($PSBoundParameters.Keys -icontains 'cdnEnabled') { $resource.properties["cdnEnabled"] = $cdnEnabled } if($PSBoundParameters.Keys -icontains 'crossSiteAccessPolicies') { $resource.properties["crossSiteAccessPolicies"] = $crossSiteAccessPolicies } if($PSBoundParameters.Keys -icontains 'maxCacheAge') { $resource.properties["maxCacheAge"] = $maxCacheAge } if($PSBoundParameters.Keys -icontains 'cdnProvider') { $resource.properties["cdnProvider"] = $cdnProvider } if($PSBoundParameters.Keys -icontains 'autoStart') { $resource.properties["autoStart"] = $autoStart } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaAsset { [Alias('azure_native_media_asset')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Asset description.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The name of the storage account.)')] [string] $storageAccountName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The alternate ID of the Asset.)')] [string] $alternateId, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The name of the asset blob container.)')] [string] $container, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:Asset") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'storageAccountName') { $resource.properties["storageAccountName"] = $storageAccountName } if($PSBoundParameters.Keys -icontains 'alternateId') { $resource.properties["alternateId"] = $alternateId } if($PSBoundParameters.Keys -icontains 'assetName') { $resource.properties["assetName"] = $assetName } if($PSBoundParameters.Keys -icontains 'container') { $resource.properties["container"] = $container } $global:pulumiresources += $resource return $resource } } class MediaServiceIdentity { [ArgumentCompletions('SystemAssigned', 'None')] [string] $type } function New-AzureNativeTypeMediaMediaServiceIdentity { param ( [parameter(mandatory=$False,HelpMessage='The identity type.)')] [string] [ArgumentCompletions('SystemAssigned', 'None')] $type ) process { return $([MediaServiceIdentity]$PSBoundParameters) } } class KeyVaultProperties { [string] $keyIdentifier } function New-AzureNativeTypeMediaKeyVaultProperties { param ( [parameter(mandatory=$False,HelpMessage='The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).)')] [string] $keyIdentifier ) process { return $([KeyVaultProperties]$PSBoundParameters) } } class AccountEncryption { [ArgumentCompletions('SystemKey', 'CustomerKey')] [string] $type [KeyVaultProperties] $keyVaultProperties } function New-AzureNativeTypeMediaAccountEncryption { param ( [parameter(mandatory=$False,HelpMessage='The type of key used to encrypt the Account Key.)')] [string] [ArgumentCompletions('SystemKey', 'CustomerKey')] $type, [parameter(mandatory=$False,HelpMessage='The properties of the key used to encrypt the account.)')] [KeyVaultProperties] $keyVaultProperties ) process { return $([AccountEncryption]$PSBoundParameters) } } function New-AzureNativeMediaMediaService { [Alias('azure_native_media_mediaservice')] param ( [parameter(mandatory=$False,HelpMessage=')')] [string] [ArgumentCompletions('System', 'ManagedIdentity')] $storageAuthentication, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Managed Identity for the Media Services account.)')] [MediaServiceIdentity] $identity, [parameter(mandatory=$False,HelpMessage='The account encryption properties.)')] [AccountEncryption] $encryption, [parameter(mandatory=$False,HelpMessage='The storage accounts for this resource.)')] $storageAccounts, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:MediaService") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'storageAuthentication') { $resource.properties["storageAuthentication"] = $storageAuthentication } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'accountName') { $resource.properties["accountName"] = $accountName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'encryption') { $resource.properties["encryption"] = $encryption } if($PSBoundParameters.Keys -icontains 'storageAccounts') { $resource.properties["storageAccounts"] = $storageAccounts } $global:pulumiresources += $resource return $resource } } class StreamingPolicyWidevineConfiguration { [string] $customLicenseAcquisitionUrlTemplate } function New-AzureNativeTypeMediaStreamingPolicyWidevineConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.)')] [string] $customLicenseAcquisitionUrlTemplate ) process { return $([StreamingPolicyWidevineConfiguration]$PSBoundParameters) } } class StreamingPolicyPlayReadyConfiguration { [string] $customLicenseAcquisitionUrlTemplate [string] $playReadyCustomAttributes } function New-AzureNativeTypeMediaStreamingPolicyPlayReadyConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.)')] [string] $customLicenseAcquisitionUrlTemplate, [parameter(mandatory=$False,HelpMessage='Custom attributes for PlayReady)')] [string] $playReadyCustomAttributes ) process { return $([StreamingPolicyPlayReadyConfiguration]$PSBoundParameters) } } class CencDrmConfiguration { [StreamingPolicyWidevineConfiguration] $widevine [StreamingPolicyPlayReadyConfiguration] $playReady } function New-AzureNativeTypeMediaCencDrmConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Widevine configurations)')] [StreamingPolicyWidevineConfiguration] $widevine, [parameter(mandatory=$False,HelpMessage='PlayReady configurations)')] [StreamingPolicyPlayReadyConfiguration] $playReady ) process { return $([CencDrmConfiguration]$PSBoundParameters) } } class EnabledProtocols { [bool] $smoothStreaming [bool] $download [bool] $hls [bool] $dash } function New-AzureNativeTypeMediaEnabledProtocols { param ( [parameter(mandatory=$False,HelpMessage='Enable SmoothStreaming protocol or not)')] [bool] $smoothStreaming, [parameter(mandatory=$False,HelpMessage='Enable Download protocol or not)')] [bool] $download, [parameter(mandatory=$False,HelpMessage='Enable HLS protocol or not)')] [bool] $hls, [parameter(mandatory=$False,HelpMessage='Enable DASH protocol or not)')] [bool] $dash ) process { return $([EnabledProtocols]$PSBoundParameters) } } class TrackPropertyCondition { [ArgumentCompletions('Unknown', 'Equal')] [string] $operation [ArgumentCompletions('Unknown', 'FourCC')] [string] $property [string] $value } function New-AzureNativeTypeMediaTrackPropertyCondition { param ( [parameter(mandatory=$False,HelpMessage='Track property condition operation)')] [string] [ArgumentCompletions('Unknown', 'Equal')] $operation, [parameter(mandatory=$False,HelpMessage='Track property type)')] [string] [ArgumentCompletions('Unknown', 'FourCC')] $property, [parameter(mandatory=$False,HelpMessage='Track property value)')] [string] $value ) process { return $([TrackPropertyCondition]$PSBoundParameters) } } class TrackSelection { [TrackPropertyCondition[]] $trackSelections } function New-AzureNativeTypeMediaTrackSelection { param ( [parameter(mandatory=$False,HelpMessage='TrackSelections is a track property condition list which can specify track(s))')] $trackSelections ) process { return $([TrackSelection]$PSBoundParameters) } } class StreamingPolicyContentKey { [TrackSelection[]] $tracks [string] $label [string] $policyName } function New-AzureNativeTypeMediaStreamingPolicyContentKey { param ( [parameter(mandatory=$False,HelpMessage='Tracks which use this content key)')] $tracks, [parameter(mandatory=$False,HelpMessage='Label can be used to specify Content Key when creating a Streaming Locator)')] [string] $label, [parameter(mandatory=$False,HelpMessage='Policy used by Content Key)')] [string] $policyName ) process { return $([StreamingPolicyContentKey]$PSBoundParameters) } } class DefaultKey { [string] $policyName [string] $label } function New-AzureNativeTypeMediaDefaultKey { param ( [parameter(mandatory=$False,HelpMessage='Policy used by Default Key)')] [string] $policyName, [parameter(mandatory=$False,HelpMessage='Label can be used to specify Content Key when creating a Streaming Locator)')] [string] $label ) process { return $([DefaultKey]$PSBoundParameters) } } class StreamingPolicyContentKeys { [StreamingPolicyContentKey[]] $keyToTrackMappings [DefaultKey] $defaultKey } function New-AzureNativeTypeMediaStreamingPolicyContentKeys { param ( [parameter(mandatory=$False,HelpMessage='Representing tracks needs separate content key)')] $keyToTrackMappings, [parameter(mandatory=$False,HelpMessage='Default content key for an encryption scheme)')] [DefaultKey] $defaultKey ) process { return $([StreamingPolicyContentKeys]$PSBoundParameters) } } class CommonEncryptionCenc { [CencDrmConfiguration] $drm [EnabledProtocols] $enabledProtocols [TrackSelection[]] $clearTracks [StreamingPolicyContentKeys] $contentKeys } function New-AzureNativeTypeMediaCommonEncryptionCenc { param ( [parameter(mandatory=$False,HelpMessage='Configuration of DRMs for CommonEncryptionCenc encryption scheme)')] [CencDrmConfiguration] $drm, [parameter(mandatory=$False,HelpMessage='Representing supported protocols)')] [EnabledProtocols] $enabledProtocols, [parameter(mandatory=$False,HelpMessage='Representing which tracks should not be encrypted)')] $clearTracks, [parameter(mandatory=$False,HelpMessage='Representing default content key for each encryption scheme and separate content keys for specific tracks)')] [StreamingPolicyContentKeys] $contentKeys ) process { return $([CommonEncryptionCenc]$PSBoundParameters) } } class EnvelopeEncryption { [EnabledProtocols] $enabledProtocols [TrackSelection[]] $clearTracks [string] $customKeyAcquisitionUrlTemplate [StreamingPolicyContentKeys] $contentKeys } function New-AzureNativeTypeMediaEnvelopeEncryption { param ( [parameter(mandatory=$False,HelpMessage='Representing supported protocols)')] [EnabledProtocols] $enabledProtocols, [parameter(mandatory=$False,HelpMessage='Representing which tracks should not be encrypted)')] $clearTracks, [parameter(mandatory=$False,HelpMessage='Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.)')] [string] $customKeyAcquisitionUrlTemplate, [parameter(mandatory=$False,HelpMessage='Representing default content key for each encryption scheme and separate content keys for specific tracks)')] [StreamingPolicyContentKeys] $contentKeys ) process { return $([EnvelopeEncryption]$PSBoundParameters) } } class StreamingPolicyFairPlayConfiguration { [string] $customLicenseAcquisitionUrlTemplate [bool] $allowPersistentLicense } function New-AzureNativeTypeMediaStreamingPolicyFairPlayConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.)')] [string] $customLicenseAcquisitionUrlTemplate, [parameter(mandatory=$False,HelpMessage='All license to be persistent or not)')] [bool] $allowPersistentLicense ) process { return $([StreamingPolicyFairPlayConfiguration]$PSBoundParameters) } } class CbcsDrmConfiguration { [StreamingPolicyPlayReadyConfiguration] $playReady [StreamingPolicyFairPlayConfiguration] $fairPlay [StreamingPolicyWidevineConfiguration] $widevine } function New-AzureNativeTypeMediaCbcsDrmConfiguration { param ( [parameter(mandatory=$False,HelpMessage='PlayReady configurations)')] [StreamingPolicyPlayReadyConfiguration] $playReady, [parameter(mandatory=$False,HelpMessage='FairPlay configurations)')] [StreamingPolicyFairPlayConfiguration] $fairPlay, [parameter(mandatory=$False,HelpMessage='Widevine configurations)')] [StreamingPolicyWidevineConfiguration] $widevine ) process { return $([CbcsDrmConfiguration]$PSBoundParameters) } } class CommonEncryptionCbcs { [CbcsDrmConfiguration] $drm [EnabledProtocols] $enabledProtocols [TrackSelection[]] $clearTracks [StreamingPolicyContentKeys] $contentKeys } function New-AzureNativeTypeMediaCommonEncryptionCbcs { param ( [parameter(mandatory=$False,HelpMessage='Configuration of DRMs for current encryption scheme)')] [CbcsDrmConfiguration] $drm, [parameter(mandatory=$False,HelpMessage='Representing supported protocols)')] [EnabledProtocols] $enabledProtocols, [parameter(mandatory=$False,HelpMessage='Representing which tracks should not be encrypted)')] $clearTracks, [parameter(mandatory=$False,HelpMessage='Representing default content key for each encryption scheme and separate content keys for specific tracks)')] [StreamingPolicyContentKeys] $contentKeys ) process { return $([CommonEncryptionCbcs]$PSBoundParameters) } } class NoEncryption { [EnabledProtocols] $enabledProtocols } function New-AzureNativeTypeMediaNoEncryption { param ( [parameter(mandatory=$False,HelpMessage='Representing supported protocols)')] [EnabledProtocols] $enabledProtocols ) process { return $([NoEncryption]$PSBoundParameters) } } function New-AzureNativeMediaStreamingPolicy { [Alias('azure_native_media_streamingpolicy')] param ( [parameter(mandatory=$False,HelpMessage='The Streaming Policy name.)')] [string] $streamingPolicyName, [parameter(mandatory=$False,HelpMessage='Configuration of CommonEncryptionCenc)')] [CommonEncryptionCenc] $commonEncryptionCenc, [parameter(mandatory=$False,HelpMessage='Default ContentKey used by current Streaming Policy)')] [string] $defaultContentKeyPolicyName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Configuration of EnvelopeEncryption)')] [EnvelopeEncryption] $envelopeEncryption, [parameter(mandatory=$False,HelpMessage='Configuration of CommonEncryptionCbcs)')] [CommonEncryptionCbcs] $commonEncryptionCbcs, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Configurations of NoEncryption)')] [NoEncryption] $noEncryption, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:StreamingPolicy") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'streamingPolicyName') { $resource.properties["streamingPolicyName"] = $streamingPolicyName } if($PSBoundParameters.Keys -icontains 'commonEncryptionCenc') { $resource.properties["commonEncryptionCenc"] = $commonEncryptionCenc } if($PSBoundParameters.Keys -icontains 'defaultContentKeyPolicyName') { $resource.properties["defaultContentKeyPolicyName"] = $defaultContentKeyPolicyName } if($PSBoundParameters.Keys -icontains 'envelopeEncryption') { $resource.properties["envelopeEncryption"] = $envelopeEncryption } if($PSBoundParameters.Keys -icontains 'commonEncryptionCbcs') { $resource.properties["commonEncryptionCbcs"] = $commonEncryptionCbcs } if($PSBoundParameters.Keys -icontains 'noEncryption') { $resource.properties["noEncryption"] = $noEncryption } $global:pulumiresources += $resource return $resource } } class VideoTrack { [string] $odataType } function New-AzureNativeTypeMediaVideoTrack { param ( [parameter(mandatory=$False,HelpMessage='The discriminator for derived types. Expected value is ''#Microsoft.Media.VideoTrack''.)')] [string] $odataType ) process { return $([VideoTrack]$PSBoundParameters) } } function New-AzureNativeMediaTrack { [Alias('azure_native_media_track')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Detailed information about a track in the asset.)')] [VideoTrack] $track, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The Asset Track name.)')] [string] $trackName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:Track") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["assetName"] = $assetName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'track') { $resource.properties["track"] = $track } if($PSBoundParameters.Keys -icontains 'trackName') { $resource.properties["trackName"] = $trackName } $global:pulumiresources += $resource return $resource } } class JobInputs { [string] $odataType [object] $inputs #todo add class here } function New-AzureNativeTypeMediaJobInputs { param ( [parameter(mandatory=$False,HelpMessage='The discriminator for derived types. Expected value is ''#Microsoft.Media.JobInputs''.)')] [string] $odataType, [parameter(mandatory=$False,HelpMessage='List of inputs to a Job.)')] $inputs ) process { return $([JobInputs]$PSBoundParameters) } } function New-AzureNativeMediaJob { [Alias('azure_native_media_job')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The inputs for the Job.)')] [JobInputs] $input, [parameter(mandatory=$False,HelpMessage='The outputs for the Job.)')] $outputs, [parameter(mandatory=$False,HelpMessage='The Job name.)')] [string] $jobName, [parameter(mandatory=$False,HelpMessage='Optional customer supplied description of the Job.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Transform name.)')] [string] $transformName, [parameter(mandatory=$False,HelpMessage='Customer provided key, value pairs that will be returned in Job and JobOutput state events.)')] [hashtable] $correlationData, [parameter(mandatory=$False,HelpMessage='Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.)')] [string] [ArgumentCompletions('Low', 'Normal', 'High')] $priority, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:Job") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["input"] = $input $resource.properties["outputs"] = $outputs $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["transformName"] = $transformName if($PSBoundParameters.Keys -icontains 'jobName') { $resource.properties["jobName"] = $jobName } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'correlationData') { $resource.properties["correlationData"] = $correlationData } if($PSBoundParameters.Keys -icontains 'priority') { $resource.properties["priority"] = $priority } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaStreamingLocator { [Alias('azure_native_media_streaminglocator')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The end time of the Streaming Locator.)')] [string] $endTime, [parameter(mandatory=$False,HelpMessage='Alternative Media ID of this Streaming Locator)')] [string] $alternativeMediaId, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A list of asset or account filters which apply to this streaming locator)')] [string[]] $filters, [parameter(mandatory=$False,HelpMessage='The StreamingLocatorId of the Streaming Locator.)')] [string] $streamingLocatorId, [parameter(mandatory=$False,HelpMessage='The Streaming Locator name.)')] [string] $streamingLocatorName, [parameter(mandatory=$False,HelpMessage='Name of the default ContentKeyPolicy used by this Streaming Locator.)')] [string] $defaultContentKeyPolicyName, [parameter(mandatory=$False,HelpMessage='The ContentKeys used by this Streaming Locator.)')] $contentKeys, [parameter(mandatory=$False,HelpMessage='Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: ''Predefined_DownloadOnly'', ''Predefined_ClearStreamingOnly'', ''Predefined_DownloadAndClearStreaming'', ''Predefined_ClearKey'', ''Predefined_MultiDrmCencStreaming'' and ''Predefined_MultiDrmStreaming'')')] [string] $streamingPolicyName, [parameter(mandatory=$False,HelpMessage='The start time of the Streaming Locator.)')] [string] $startTime, [parameter(mandatory=$False,HelpMessage='Asset Name)')] [string] $assetName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:StreamingLocator") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["assetName"] = $assetName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["streamingPolicyName"] = $streamingPolicyName if($PSBoundParameters.Keys -icontains 'endTime') { $resource.properties["endTime"] = $endTime } if($PSBoundParameters.Keys -icontains 'alternativeMediaId') { $resource.properties["alternativeMediaId"] = $alternativeMediaId } if($PSBoundParameters.Keys -icontains 'filters') { $resource.properties["filters"] = $filters } if($PSBoundParameters.Keys -icontains 'streamingLocatorId') { $resource.properties["streamingLocatorId"] = $streamingLocatorId } if($PSBoundParameters.Keys -icontains 'streamingLocatorName') { $resource.properties["streamingLocatorName"] = $streamingLocatorName } if($PSBoundParameters.Keys -icontains 'defaultContentKeyPolicyName') { $resource.properties["defaultContentKeyPolicyName"] = $defaultContentKeyPolicyName } if($PSBoundParameters.Keys -icontains 'contentKeys') { $resource.properties["contentKeys"] = $contentKeys } if($PSBoundParameters.Keys -icontains 'startTime') { $resource.properties["startTime"] = $startTime } $global:pulumiresources += $resource return $resource } } class PresentationTimeRange { [int] $timescale [int] $startTimestamp [int] $presentationWindowDuration [int] $endTimestamp [bool] $forceEndTimestamp [int] $liveBackoffDuration } function New-AzureNativeTypeMediaPresentationTimeRange { param ( [parameter(mandatory=$False,HelpMessage='The time scale of time stamps.)')] [int] $timescale, [parameter(mandatory=$False,HelpMessage='The absolute start time boundary.)')] [int] $startTimestamp, [parameter(mandatory=$False,HelpMessage='The relative to end sliding window.)')] [int] $presentationWindowDuration, [parameter(mandatory=$False,HelpMessage='The absolute end time boundary.)')] [int] $endTimestamp, [parameter(mandatory=$False,HelpMessage='The indicator of forcing existing of end time stamp.)')] [bool] $forceEndTimestamp, [parameter(mandatory=$False,HelpMessage='The relative to end right edge.)')] [int] $liveBackoffDuration ) process { return $([PresentationTimeRange]$PSBoundParameters) } } class FirstQuality { [int] $bitrate } function New-AzureNativeTypeMediaFirstQuality { param ( [parameter(mandatory=$False,HelpMessage='The first quality bitrate.)')] [int] $bitrate ) process { return $([FirstQuality]$PSBoundParameters) } } function New-AzureNativeMediaAssetFilter { [Alias('azure_native_media_assetfilter')] param ( [parameter(mandatory=$False,HelpMessage='The Asset Filter name)')] [string] $filterName, [parameter(mandatory=$False,HelpMessage='The presentation time range.)')] [PresentationTimeRange] $presentationTimeRange, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The tracks selection conditions.)')] $tracks, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The first quality.)')] [FirstQuality] $firstQuality, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:AssetFilter") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["assetName"] = $assetName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'filterName') { $resource.properties["filterName"] = $filterName } if($PSBoundParameters.Keys -icontains 'presentationTimeRange') { $resource.properties["presentationTimeRange"] = $presentationTimeRange } if($PSBoundParameters.Keys -icontains 'tracks') { $resource.properties["tracks"] = $tracks } if($PSBoundParameters.Keys -icontains 'firstQuality') { $resource.properties["firstQuality"] = $firstQuality } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaMediaGraph { [Alias('azure_native_media_mediagraph')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Media Graph description.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The Media Graph name.)')] [string] $mediaGraphName, [parameter(mandatory=$False,HelpMessage='Media Graph sinks.)')] $sinks, [parameter(mandatory=$False,HelpMessage='Media Graph sources.)')] $sources, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:MediaGraph") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["sinks"] = $sinks $resource.properties["sources"] = $sources if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'mediaGraphName') { $resource.properties["mediaGraphName"] = $mediaGraphName } $global:pulumiresources += $resource return $resource } } class LiveEventEncoding { [string] $keyFrameInterval [ArgumentCompletions('None', 'Standard', 'Premium1080p')] [string] $encodingType [string] $presetName [ArgumentCompletions('None', 'AutoSize', 'AutoFit')] [string] $stretchMode } function New-AzureNativeTypeMediaLiveEventEncoding { param ( [parameter(mandatory=$False,HelpMessage='Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events.)')] [string] $keyFrameInterval, [parameter(mandatory=$False,HelpMessage='Live event type. When encodingType is set to None, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created.)')] [string] [ArgumentCompletions('None', 'Standard', 'Premium1080p')] $encodingType, [parameter(mandatory=$False,HelpMessage='The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ''Default720p''. Else if the encodingType is set to Premium1080p, the default preset is ''Default1080p''.)')] [string] $presetName, [parameter(mandatory=$False,HelpMessage='Specifies how the input video will be resized to fit the desired output resolution(s). Default is None)')] [string] [ArgumentCompletions('None', 'AutoSize', 'AutoFit')] $stretchMode ) process { return $([LiveEventEncoding]$PSBoundParameters) } } class LiveEventEndpoint { [string] $url [string] $protocol } function New-AzureNativeTypeMediaLiveEventEndpoint { param ( [parameter(mandatory=$False,HelpMessage='The endpoint URL.)')] [string] $url, [parameter(mandatory=$False,HelpMessage='The endpoint protocol.)')] [string] $protocol ) process { return $([LiveEventEndpoint]$PSBoundParameters) } } class LiveEventPreviewAccessControl { [IPAccessControl] $ip } function New-AzureNativeTypeMediaLiveEventPreviewAccessControl { param ( [parameter(mandatory=$False,HelpMessage='The IP access control properties.)')] [IPAccessControl] $ip ) process { return $([LiveEventPreviewAccessControl]$PSBoundParameters) } } class LiveEventPreview { [string] $alternativeMediaId [string] $previewLocator [LiveEventEndpoint[]] $endpoints [LiveEventPreviewAccessControl] $accessControl [string] $streamingPolicyName } function New-AzureNativeTypeMediaLiveEventPreview { param ( [parameter(mandatory=$False,HelpMessage='An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field.)')] [string] $alternativeMediaId, [parameter(mandatory=$False,HelpMessage='The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created.)')] [string] $previewLocator, [parameter(mandatory=$False,HelpMessage='The endpoints for preview. Do not share the preview URL with the live event audience.)')] $endpoints, [parameter(mandatory=$False,HelpMessage='The access control for live event preview.)')] [LiveEventPreviewAccessControl] $accessControl, [parameter(mandatory=$False,HelpMessage='The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated.)')] [string] $streamingPolicyName ) process { return $([LiveEventPreview]$PSBoundParameters) } } class LiveEventInputAccessControl { [IPAccessControl] $ip } function New-AzureNativeTypeMediaLiveEventInputAccessControl { param ( [parameter(mandatory=$False,HelpMessage='The IP access control properties.)')] [IPAccessControl] $ip ) process { return $([LiveEventInputAccessControl]$PSBoundParameters) } } class LiveEventInput { [string] $keyFrameIntervalDuration [string] $accessToken [LiveEventEndpoint[]] $endpoints [ArgumentCompletions('FragmentedMP4', 'RTMP')] [string] $streamingProtocol [LiveEventInputAccessControl] $accessControl } function New-AzureNativeTypeMediaLiveEventInput { param ( [parameter(mandatory=$False,HelpMessage='ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events.)')] [string] $keyFrameIntervalDuration, [parameter(mandatory=$False,HelpMessage='A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value.)')] [string] $accessToken, [parameter(mandatory=$False,HelpMessage='The input endpoints for the live event.)')] $endpoints, [parameter(mandatory=$False,HelpMessage='The input protocol for the live event. This is specified at creation time and cannot be updated.)')] [string] [ArgumentCompletions('FragmentedMP4', 'RTMP')] $streamingProtocol, [parameter(mandatory=$False,HelpMessage='Access control for live event input.)')] [LiveEventInputAccessControl] $accessControl ) process { return $([LiveEventInput]$PSBoundParameters) } } function New-AzureNativeMediaLiveEvent { [Alias('azure_native_media_liveevent')] param ( [parameter(mandatory=$False,HelpMessage='Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature.)')] $transcriptions, [parameter(mandatory=$False,HelpMessage='Live event cross site access policies.)')] [CrossSiteAccessPolicies] $crossSiteAccessPolicies, [parameter(mandatory=$False,HelpMessage='The name of the live event, maximum length is 32.)')] [string] $liveEventName, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are ''Default'' and ''LowLatency''.)')] $streamOptions, [parameter(mandatory=$False,HelpMessage='Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used.)')] [LiveEventEncoding] $encoding, [parameter(mandatory=$False,HelpMessage='Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output.)')] [LiveEventPreview] $preview, [parameter(mandatory=$False,HelpMessage='When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center.)')] [string] $hostnamePrefix, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A description for the live event.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Live event input settings. It defines how the live event receives input from a contribution encoder.)')] [LiveEventInput] $input, [parameter(mandatory=$False,HelpMessage='Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state)')] [bool] $useStaticHostname, [parameter(mandatory=$False,HelpMessage='The flag indicates if the resource should be automatically started on creation.)')] [bool] $autoStart, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:LiveEvent") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["input"] = $input $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'transcriptions') { $resource.properties["transcriptions"] = $transcriptions } if($PSBoundParameters.Keys -icontains 'crossSiteAccessPolicies') { $resource.properties["crossSiteAccessPolicies"] = $crossSiteAccessPolicies } if($PSBoundParameters.Keys -icontains 'liveEventName') { $resource.properties["liveEventName"] = $liveEventName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'streamOptions') { $resource.properties["streamOptions"] = $streamOptions } if($PSBoundParameters.Keys -icontains 'encoding') { $resource.properties["encoding"] = $encoding } if($PSBoundParameters.Keys -icontains 'preview') { $resource.properties["preview"] = $preview } if($PSBoundParameters.Keys -icontains 'hostnamePrefix') { $resource.properties["hostnamePrefix"] = $hostnamePrefix } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'useStaticHostname') { $resource.properties["useStaticHostname"] = $useStaticHostname } if($PSBoundParameters.Keys -icontains 'autoStart') { $resource.properties["autoStart"] = $autoStart } $global:pulumiresources += $resource return $resource } } class PrivateLinkServiceConnectionState { [string] $description [ArgumentCompletions('Pending', 'Approved', 'Rejected')] [string] $status [string] $actionsRequired } function New-AzureNativeTypeMediaPrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='The reason for approval/rejection of the connection.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.)')] [string] [ArgumentCompletions('Pending', 'Approved', 'Rejected')] $status, [parameter(mandatory=$False,HelpMessage='A message indicating if changes on the service provider require any updates on the consumer.)')] [string] $actionsRequired ) process { return $([PrivateLinkServiceConnectionState]$PSBoundParameters) } } function New-AzureNativeMediaPrivateEndpointConnection { [Alias('azure_native_media_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage=')')] [string] $name, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between service consumer and provider.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:PrivateEndpointConnection") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaAccountFilter { [Alias('azure_native_media_accountfilter')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The presentation time range.)')] [PresentationTimeRange] $presentationTimeRange, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The Account Filter name)')] [string] $filterName, [parameter(mandatory=$False,HelpMessage='The first quality.)')] [FirstQuality] $firstQuality, [parameter(mandatory=$False,HelpMessage='The tracks selection conditions.)')] $tracks, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:AccountFilter") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'presentationTimeRange') { $resource.properties["presentationTimeRange"] = $presentationTimeRange } if($PSBoundParameters.Keys -icontains 'filterName') { $resource.properties["filterName"] = $filterName } if($PSBoundParameters.Keys -icontains 'firstQuality') { $resource.properties["firstQuality"] = $firstQuality } if($PSBoundParameters.Keys -icontains 'tracks') { $resource.properties["tracks"] = $tracks } $global:pulumiresources += $resource return $resource } } |