pspulumiyaml.azurenative.media.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionMediaGetStreamingEndpoint { param ( [parameter(mandatory=$False,HelpMessage='The name of the streaming endpoint, maximum length is 24.)')] [string] $streamingEndpointName, [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 $arguments["streamingEndpointName"] = $streamingEndpointName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getStreamingEndpoint -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetLiveOutput { param ( [parameter(mandatory=$False,HelpMessage='The name of the live output.)')] [string] $liveOutputName, [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, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaListMediaServiceEdgePolicies { param ( [parameter(mandatory=$False,HelpMessage='Unique identifier of the edge device.)')] [string] $deviceId, [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 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-AzureNativeFunctionMediaListAssetContainerSas { param ( [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 permissions to set on the SAS URL.)')] [string] [ValidateSet('Read', 'ReadWrite', 'ReadWriteDelete')] $permissions, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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 } } function Invoke-AzureNativeFunctionMediaGetAsset { param ( [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 Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaGetTrack { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Asset Track name.)')] [string] $trackName, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaGetAccountFilter { param ( [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, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaGetStreamingLocator { param ( [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, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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 Graph name.)')] [string] $mediaGraphName, [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["mediaGraphName"] = $mediaGraphName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getMediaGraph -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetAssetFilter { param ( [parameter(mandatory=$False,HelpMessage='The Asset Filter name)')] [string] $filterName, [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 Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaListAssetStreamingLocators { param ( [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 Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaListStreamingLocatorContentKeys { param ( [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, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage=')')] [string] $name, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaListStreamingLocatorPaths { param ( [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, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaGetLiveEvent { param ( [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, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaGetTransform { param ( [parameter(mandatory=$False,HelpMessage='The Transform name.)')] [string] $transformName, [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 $arguments["transformName"] = $transformName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getTransform -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetContentKeyPolicyPropertiesWithSecrets { param ( [parameter(mandatory=$False,HelpMessage='The Content Key Policy name.)')] [string] $contentKeyPolicyName, [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["contentKeyPolicyName"] = $contentKeyPolicyName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getContentKeyPolicyPropertiesWithSecrets -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetJob { param ( [parameter(mandatory=$False,HelpMessage='The Transform name.)')] [string] $transformName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Job name.)')] [string] $jobName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName ) 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-AzureNativeFunctionMediaListMediaServiceKeys { param ( [parameter(mandatory=$False,HelpMessage='Name of the Media Service.)')] [string] $mediaServiceName, [parameter(mandatory=$False,HelpMessage='Name of the resource group within the Azure subscription.)')] [string] $resourceGroupName ) 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-AzureNativeFunctionMediaGetContentKeyPolicy { param ( [parameter(mandatory=$False,HelpMessage='The Content Key Policy name.)')] [string] $contentKeyPolicyName, [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["contentKeyPolicyName"] = $contentKeyPolicyName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getContentKeyPolicy -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-AzureNativeFunctionMediaGetStreamingPolicy { param ( [parameter(mandatory=$False,HelpMessage='The Streaming Policy name.)')] [string] $streamingPolicyName, [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 $arguments["streamingPolicyName"] = $streamingPolicyName $functionObject = Invoke-PulumiFunction -Name azure-native:media:getStreamingPolicy -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionMediaGetAssetEncryptionKey { param ( [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 Media Services account name.)')] [string] $accountName ) 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 } } 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 name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The inputs for the Job.)')] [JobInputs] $input, [parameter(mandatory=$False,HelpMessage='The Transform name.)')] [string] $transformName, [parameter(mandatory=$False,HelpMessage='The outputs for the Job.)')] $outputs, [parameter(mandatory=$False,HelpMessage='The Job name.)')] [string] $jobName, [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] [ValidateSet('Low', 'Normal', 'High')] $priority, [parameter(mandatory=$False,HelpMessage='Optional customer supplied description of the Job.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Customer provided key, value pairs that will be returned in Job and JobOutput state events.)')] [hashtable] $correlationData, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:Job") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $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 'priority') { $resource.properties["priority"] = $priority } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'correlationData') { $resource.properties["correlationData"] = $correlationData } $global:pulumiresources += $resource return $resource } } 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] [ValidateSet('SystemKey', 'CustomerKey')] $type, [parameter(mandatory=$False,HelpMessage='The properties of the key used to encrypt the account.)')] [KeyVaultProperties] $keyVaultProperties ) process { return $([AccountEncryption]$PSBoundParameters) } } class MediaServiceIdentity { [ArgumentCompletions('SystemAssigned', 'None')] [string] $type } function New-AzureNativeTypeMediaMediaServiceIdentity { param ( [parameter(mandatory=$False,HelpMessage='The identity type.)')] [string] [ValidateSet('SystemAssigned', 'None')] $type ) process { return $([MediaServiceIdentity]$PSBoundParameters) } } function New-AzureNativeMediaMediaService { [Alias('azure_native_media_mediaservice')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage=')')] [string] [ValidateSet('System', 'ManagedIdentity')] $storageAuthentication, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The account encryption properties.)')] [AccountEncryption] $encryption, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The storage accounts for this resource.)')] $storageAccounts, [parameter(mandatory=$False,HelpMessage='The Managed Identity for the Media Services account.)')] [MediaServiceIdentity] $identity, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:MediaService") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'accountName') { $resource.properties["accountName"] = $accountName } if($PSBoundParameters.Keys -icontains 'storageAuthentication') { $resource.properties["storageAuthentication"] = $storageAuthentication } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'encryption') { $resource.properties["encryption"] = $encryption } if($PSBoundParameters.Keys -icontains 'storageAccounts') { $resource.properties["storageAccounts"] = $storageAccounts } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } class PrivateLinkServiceConnectionState { [string] $actionsRequired [string] $description [ArgumentCompletions('Pending', 'Approved', 'Rejected')] [string] $status } function New-AzureNativeTypeMediaPrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='A message indicating if changes on the service provider require any updates on the consumer.)')] [string] $actionsRequired, [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] [ValidateSet('Pending', 'Approved', 'Rejected')] $status ) process { return $([PrivateLinkServiceConnectionState]$PSBoundParameters) } } function New-AzureNativeMediaPrivateEndpointConnection { [Alias('azure_native_media_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between service consumer and provider.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage=')')] [string] $name, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:PrivateEndpointConnection") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $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 } } 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) } } class IPRange { [int] $subnetPrefixLength [string] $address [string] $name } function New-AzureNativeTypeMediaIPRange { param ( [parameter(mandatory=$False,HelpMessage='The subnet mask prefix length (see CIDR notation).)')] [int] $subnetPrefixLength, [parameter(mandatory=$False,HelpMessage='The IP address.)')] [string] $address, [parameter(mandatory=$False,HelpMessage='The friendly name for the IP address range.)')] [string] $name ) 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 LiveEventInputAccessControl { [IPAccessControl] $ip } function New-AzureNativeTypeMediaLiveEventInputAccessControl { param ( [parameter(mandatory=$False,HelpMessage='The IP access control properties.)')] [IPAccessControl] $ip ) process { return $([LiveEventInputAccessControl]$PSBoundParameters) } } class LiveEventEndpoint { [string] $protocol [string] $url } function New-AzureNativeTypeMediaLiveEventEndpoint { param ( [parameter(mandatory=$False,HelpMessage='The endpoint protocol.)')] [string] $protocol, [parameter(mandatory=$False,HelpMessage='The endpoint URL.)')] [string] $url ) process { return $([LiveEventEndpoint]$PSBoundParameters) } } class LiveEventInput { [string] $accessToken [ArgumentCompletions('FragmentedMP4', 'RTMP')] [string] $streamingProtocol [LiveEventInputAccessControl] $accessControl [LiveEventEndpoint[]] $endpoints [string] $keyFrameIntervalDuration } function New-AzureNativeTypeMediaLiveEventInput { param ( [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 protocol for the live event. This is specified at creation time and cannot be updated.)')] [string] [ValidateSet('FragmentedMP4', 'RTMP')] $streamingProtocol, [parameter(mandatory=$False,HelpMessage='Access control for live event input.)')] [LiveEventInputAccessControl] $accessControl, [parameter(mandatory=$False,HelpMessage='The input endpoints for the live event.)')] $endpoints, [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 ) process { return $([LiveEventInput]$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 [LiveEventPreviewAccessControl] $accessControl [LiveEventEndpoint[]] $endpoints [string] $streamingPolicyName [string] $previewLocator } 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 access control for live event preview.)')] [LiveEventPreviewAccessControl] $accessControl, [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 name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated.)')] [string] $streamingPolicyName, [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 ) process { return $([LiveEventPreview]$PSBoundParameters) } } 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] [ValidateSet('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] [ValidateSet('None', 'AutoSize', 'AutoFit')] $stretchMode ) process { return $([LiveEventEncoding]$PSBoundParameters) } } function New-AzureNativeMediaLiveEvent { [Alias('azure_native_media_liveevent')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [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='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='A description for the live event.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [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='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Live event cross site access policies.)')] [CrossSiteAccessPolicies] $crossSiteAccessPolicies, [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='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='The name of the live event, maximum length is 32.)')] [string] $liveEventName, [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='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='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(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:LiveEvent") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["accountName"] = $accountName $resource.properties["input"] = $input $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'streamOptions') { $resource.properties["streamOptions"] = $streamOptions } if($PSBoundParameters.Keys -icontains 'useStaticHostname') { $resource.properties["useStaticHostname"] = $useStaticHostname } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'transcriptions') { $resource.properties["transcriptions"] = $transcriptions } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'crossSiteAccessPolicies') { $resource.properties["crossSiteAccessPolicies"] = $crossSiteAccessPolicies } if($PSBoundParameters.Keys -icontains 'preview') { $resource.properties["preview"] = $preview } if($PSBoundParameters.Keys -icontains 'liveEventName') { $resource.properties["liveEventName"] = $liveEventName } if($PSBoundParameters.Keys -icontains 'hostnamePrefix') { $resource.properties["hostnamePrefix"] = $hostnamePrefix } if($PSBoundParameters.Keys -icontains 'encoding') { $resource.properties["encoding"] = $encoding } 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 Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the storage account.)')] [string] $storageAccountName, [parameter(mandatory=$False,HelpMessage='The name of the asset blob container.)')] [string] $container, [parameter(mandatory=$False,HelpMessage='The Asset description.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The alternate ID of the Asset.)')] [string] $alternateId, [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(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:Asset") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'assetName') { $resource.properties["assetName"] = $assetName } if($PSBoundParameters.Keys -icontains 'storageAccountName') { $resource.properties["storageAccountName"] = $storageAccountName } if($PSBoundParameters.Keys -icontains 'container') { $resource.properties["container"] = $container } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'alternateId') { $resource.properties["alternateId"] = $alternateId } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaMediaGraph { [Alias('azure_native_media_mediagraph')] param ( [parameter(mandatory=$False,HelpMessage='Media Graph sinks.)')] $sinks, [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='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Media Graph sources.)')] $sources, [parameter(mandatory=$False,HelpMessage='Media Graph description.)')] [string] $description, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:MediaGraph") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["sinks"] = $sinks $resource.properties["sources"] = $sources if($PSBoundParameters.Keys -icontains 'mediaGraphName') { $resource.properties["mediaGraphName"] = $mediaGraphName } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } $global:pulumiresources += $resource return $resource } } class FirstQuality { [int] $bitrate } function New-AzureNativeTypeMediaFirstQuality { param ( [parameter(mandatory=$False,HelpMessage='The first quality bitrate.)')] [int] $bitrate ) process { return $([FirstQuality]$PSBoundParameters) } } class PresentationTimeRange { [int] $timescale [int] $liveBackoffDuration [bool] $forceEndTimestamp [int] $presentationWindowDuration [int] $startTimestamp [int] $endTimestamp } function New-AzureNativeTypeMediaPresentationTimeRange { param ( [parameter(mandatory=$False,HelpMessage='The time scale of time stamps.)')] [int] $timescale, [parameter(mandatory=$False,HelpMessage='The relative to end right edge.)')] [int] $liveBackoffDuration, [parameter(mandatory=$False,HelpMessage='The indicator of forcing existing of end time stamp.)')] [bool] $forceEndTimestamp, [parameter(mandatory=$False,HelpMessage='The relative to end sliding window.)')] [int] $presentationWindowDuration, [parameter(mandatory=$False,HelpMessage='The absolute start time boundary.)')] [int] $startTimestamp, [parameter(mandatory=$False,HelpMessage='The absolute end time boundary.)')] [int] $endTimestamp ) process { return $([PresentationTimeRange]$PSBoundParameters) } } function New-AzureNativeMediaAccountFilter { [Alias('azure_native_media_accountfilter')] param ( [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [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=$False,HelpMessage='The tracks selection conditions.)')] $tracks, [parameter(mandatory=$False,HelpMessage='The presentation time range.)')] [PresentationTimeRange] $presentationTimeRange, [parameter(mandatory=$False,HelpMessage='The Account Filter name)')] [string] $filterName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:AccountFilter") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'firstQuality') { $resource.properties["firstQuality"] = $firstQuality } if($PSBoundParameters.Keys -icontains 'tracks') { $resource.properties["tracks"] = $tracks } if($PSBoundParameters.Keys -icontains 'presentationTimeRange') { $resource.properties["presentationTimeRange"] = $presentationTimeRange } if($PSBoundParameters.Keys -icontains 'filterName') { $resource.properties["filterName"] = $filterName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaAssetFilter { [Alias('azure_native_media_assetfilter')] param ( [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [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=$False,HelpMessage='The tracks selection conditions.)')] $tracks, [parameter(mandatory=$False,HelpMessage='The presentation time range.)')] [PresentationTimeRange] $presentationTimeRange, [parameter(mandatory=$False,HelpMessage='The Asset Filter name)')] [string] $filterName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:AssetFilter") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["accountName"] = $accountName $resource.properties["assetName"] = $assetName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'firstQuality') { $resource.properties["firstQuality"] = $firstQuality } if($PSBoundParameters.Keys -icontains 'tracks') { $resource.properties["tracks"] = $tracks } if($PSBoundParameters.Keys -icontains 'presentationTimeRange') { $resource.properties["presentationTimeRange"] = $presentationTimeRange } if($PSBoundParameters.Keys -icontains 'filterName') { $resource.properties["filterName"] = $filterName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaTransform { [Alias('azure_native_media_transform')] param ( [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 optional verbose description of the Transform.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='An array of one or more TransformOutputs that the Transform should generate.)')] $outputs, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:Transform") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $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 } } class AkamaiSignatureHeaderAuthenticationKey { [string] $identifier [string] $expiration [string] $base64Key } function New-AzureNativeTypeMediaAkamaiSignatureHeaderAuthenticationKey { param ( [parameter(mandatory=$False,HelpMessage='identifier of the key)')] [string] $identifier, [parameter(mandatory=$False,HelpMessage='The expiration time of the authentication key.)')] [string] $expiration, [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 { [AkamaiAccessControl] $akamai [IPAccessControl] $ip } function New-AzureNativeTypeMediaStreamingEndpointAccessControl { param ( [parameter(mandatory=$False,HelpMessage='The access control of Akamai)')] [AkamaiAccessControl] $akamai, [parameter(mandatory=$False,HelpMessage='The IP access control of the streaming endpoint.)')] [IPAccessControl] $ip ) process { return $([StreamingEndpointAccessControl]$PSBoundParameters) } } function New-AzureNativeMediaStreamingEndpoint { [Alias('azure_native_media_streamingendpoint')] param ( [parameter(mandatory=$False,HelpMessage='Max cache age)')] [int] $maxCacheAge, [parameter(mandatory=$False,HelpMessage='The name of the streaming endpoint, maximum length is 24.)')] [string] $streamingEndpointName, [parameter(mandatory=$False,HelpMessage='The CDN enabled flag.)')] [bool] $cdnEnabled, [parameter(mandatory=$False,HelpMessage='The custom host names of the streaming endpoint)')] [string[]] $customHostNames, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='This feature is deprecated, do not set a value for this property.)')] [string] $availabilitySetName, [parameter(mandatory=$False,HelpMessage='The CDN profile name.)')] [string] $cdnProfile, [parameter(mandatory=$False,HelpMessage='The CDN provider name.)')] [string] $cdnProvider, [parameter(mandatory=$False,HelpMessage='The streaming endpoint access policies.)')] [CrossSiteAccessPolicies] $crossSiteAccessPolicies, [parameter(mandatory=$False,HelpMessage='The streaming endpoint description.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The access control definition of the streaming endpoint.)')] [StreamingEndpointAccessControl] $accessControl, [parameter(mandatory=$False,HelpMessage='The number of scale units. Use the Scale operation to adjust this value.)')] [int] $scaleUnits, [parameter(mandatory=$False,HelpMessage='The flag indicates if the resource should be automatically started on creation.)')] [bool] $autoStart, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:StreamingEndpoint") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["scaleUnits"] = $scaleUnits if($PSBoundParameters.Keys -icontains 'maxCacheAge') { $resource.properties["maxCacheAge"] = $maxCacheAge } if($PSBoundParameters.Keys -icontains 'streamingEndpointName') { $resource.properties["streamingEndpointName"] = $streamingEndpointName } if($PSBoundParameters.Keys -icontains 'cdnEnabled') { $resource.properties["cdnEnabled"] = $cdnEnabled } if($PSBoundParameters.Keys -icontains 'customHostNames') { $resource.properties["customHostNames"] = $customHostNames } if($PSBoundParameters.Keys -icontains 'availabilitySetName') { $resource.properties["availabilitySetName"] = $availabilitySetName } if($PSBoundParameters.Keys -icontains 'cdnProfile') { $resource.properties["cdnProfile"] = $cdnProfile } if($PSBoundParameters.Keys -icontains 'cdnProvider') { $resource.properties["cdnProvider"] = $cdnProvider } if($PSBoundParameters.Keys -icontains 'crossSiteAccessPolicies') { $resource.properties["crossSiteAccessPolicies"] = $crossSiteAccessPolicies } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'accessControl') { $resource.properties["accessControl"] = $accessControl } if($PSBoundParameters.Keys -icontains 'autoStart') { $resource.properties["autoStart"] = $autoStart } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $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 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='Detailed information about a track in the asset.)')] [VideoTrack] $track, [parameter(mandatory=$False,HelpMessage='The Asset name.)')] [string] $assetName, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:Track") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["accountName"] = $accountName $resource.properties["assetName"] = $assetName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'trackName') { $resource.properties["trackName"] = $trackName } if($PSBoundParameters.Keys -icontains 'track') { $resource.properties["track"] = $track } $global:pulumiresources += $resource return $resource } } class TrackPropertyCondition { [string] $value [ArgumentCompletions('Unknown', 'Equal')] [string] $operation [ArgumentCompletions('Unknown', 'FourCC')] [string] $property } function New-AzureNativeTypeMediaTrackPropertyCondition { param ( [parameter(mandatory=$False,HelpMessage='Track property value)')] [string] $value, [parameter(mandatory=$False,HelpMessage='Track property condition operation)')] [string] [ValidateSet('Unknown', 'Equal')] $operation, [parameter(mandatory=$False,HelpMessage='Track property type)')] [string] [ValidateSet('Unknown', 'FourCC')] $property ) 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 DefaultKey { [string] $label [string] $policyName } function New-AzureNativeTypeMediaDefaultKey { param ( [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 Default Key)')] [string] $policyName ) process { return $([DefaultKey]$PSBoundParameters) } } class StreamingPolicyContentKey { [TrackSelection[]] $tracks [string] $policyName [string] $label } function New-AzureNativeTypeMediaStreamingPolicyContentKey { param ( [parameter(mandatory=$False,HelpMessage='Tracks which use this content key)')] $tracks, [parameter(mandatory=$False,HelpMessage='Policy used by Content Key)')] [string] $policyName, [parameter(mandatory=$False,HelpMessage='Label can be used to specify Content Key when creating a Streaming Locator)')] [string] $label ) process { return $([StreamingPolicyContentKey]$PSBoundParameters) } } class StreamingPolicyContentKeys { [DefaultKey] $defaultKey [StreamingPolicyContentKey[]] $keyToTrackMappings } function New-AzureNativeTypeMediaStreamingPolicyContentKeys { param ( [parameter(mandatory=$False,HelpMessage='Default content key for an encryption scheme)')] [DefaultKey] $defaultKey, [parameter(mandatory=$False,HelpMessage='Representing tracks needs separate content key)')] $keyToTrackMappings ) process { return $([StreamingPolicyContentKeys]$PSBoundParameters) } } 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] $hls [bool] $dash [bool] $download } function New-AzureNativeTypeMediaEnabledProtocols { param ( [parameter(mandatory=$False,HelpMessage='Enable SmoothStreaming protocol or not)')] [bool] $smoothStreaming, [parameter(mandatory=$False,HelpMessage='Enable HLS protocol or not)')] [bool] $hls, [parameter(mandatory=$False,HelpMessage='Enable DASH protocol or not)')] [bool] $dash, [parameter(mandatory=$False,HelpMessage='Enable Download protocol or not)')] [bool] $download ) process { return $([EnabledProtocols]$PSBoundParameters) } } class CommonEncryptionCenc { [TrackSelection[]] $clearTracks [StreamingPolicyContentKeys] $contentKeys [CencDrmConfiguration] $drm [EnabledProtocols] $enabledProtocols } function New-AzureNativeTypeMediaCommonEncryptionCenc { param ( [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, [parameter(mandatory=$False,HelpMessage='Configuration of DRMs for CommonEncryptionCenc encryption scheme)')] [CencDrmConfiguration] $drm, [parameter(mandatory=$False,HelpMessage='Representing supported protocols)')] [EnabledProtocols] $enabledProtocols ) process { return $([CommonEncryptionCenc]$PSBoundParameters) } } class NoEncryption { [EnabledProtocols] $enabledProtocols } function New-AzureNativeTypeMediaNoEncryption { param ( [parameter(mandatory=$False,HelpMessage='Representing supported protocols)')] [EnabledProtocols] $enabledProtocols ) process { return $([NoEncryption]$PSBoundParameters) } } class StreamingPolicyFairPlayConfiguration { [bool] $allowPersistentLicense [string] $customLicenseAcquisitionUrlTemplate } function New-AzureNativeTypeMediaStreamingPolicyFairPlayConfiguration { param ( [parameter(mandatory=$False,HelpMessage='All license to be persistent or not)')] [bool] $allowPersistentLicense, [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 $([StreamingPolicyFairPlayConfiguration]$PSBoundParameters) } } class CbcsDrmConfiguration { [StreamingPolicyWidevineConfiguration] $widevine [StreamingPolicyFairPlayConfiguration] $fairPlay [StreamingPolicyPlayReadyConfiguration] $playReady } function New-AzureNativeTypeMediaCbcsDrmConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Widevine configurations)')] [StreamingPolicyWidevineConfiguration] $widevine, [parameter(mandatory=$False,HelpMessage='FairPlay configurations)')] [StreamingPolicyFairPlayConfiguration] $fairPlay, [parameter(mandatory=$False,HelpMessage='PlayReady configurations)')] [StreamingPolicyPlayReadyConfiguration] $playReady ) process { return $([CbcsDrmConfiguration]$PSBoundParameters) } } class CommonEncryptionCbcs { [TrackSelection[]] $clearTracks [StreamingPolicyContentKeys] $contentKeys [CbcsDrmConfiguration] $drm [EnabledProtocols] $enabledProtocols } function New-AzureNativeTypeMediaCommonEncryptionCbcs { param ( [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, [parameter(mandatory=$False,HelpMessage='Configuration of DRMs for current encryption scheme)')] [CbcsDrmConfiguration] $drm, [parameter(mandatory=$False,HelpMessage='Representing supported protocols)')] [EnabledProtocols] $enabledProtocols ) process { return $([CommonEncryptionCbcs]$PSBoundParameters) } } class EnvelopeEncryption { [TrackSelection[]] $clearTracks [string] $customKeyAcquisitionUrlTemplate [StreamingPolicyContentKeys] $contentKeys [EnabledProtocols] $enabledProtocols } function New-AzureNativeTypeMediaEnvelopeEncryption { param ( [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, [parameter(mandatory=$False,HelpMessage='Representing supported protocols)')] [EnabledProtocols] $enabledProtocols ) process { return $([EnvelopeEncryption]$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='Configurations of NoEncryption)')] [NoEncryption] $noEncryption, [parameter(mandatory=$False,HelpMessage='The Media Services account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Default ContentKey used by current Streaming Policy)')] [string] $defaultContentKeyPolicyName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the Azure subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Configuration of CommonEncryptionCbcs)')] [CommonEncryptionCbcs] $commonEncryptionCbcs, [parameter(mandatory=$False,HelpMessage='Configuration of EnvelopeEncryption)')] [EnvelopeEncryption] $envelopeEncryption, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:StreamingPolicy") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $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 'noEncryption') { $resource.properties["noEncryption"] = $noEncryption } if($PSBoundParameters.Keys -icontains 'defaultContentKeyPolicyName') { $resource.properties["defaultContentKeyPolicyName"] = $defaultContentKeyPolicyName } if($PSBoundParameters.Keys -icontains 'commonEncryptionCbcs') { $resource.properties["commonEncryptionCbcs"] = $commonEncryptionCbcs } if($PSBoundParameters.Keys -icontains 'envelopeEncryption') { $resource.properties["envelopeEncryption"] = $envelopeEncryption } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaStreamingLocator { [Alias('azure_native_media_streaminglocator')] param ( [parameter(mandatory=$False,HelpMessage='The start time of the Streaming Locator.)')] [string] $startTime, [parameter(mandatory=$False,HelpMessage='Asset Name)')] [string] $assetName, [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 Locator name.)')] [string] $streamingLocatorName, [parameter(mandatory=$False,HelpMessage='The end time of the Streaming Locator.)')] [string] $endTime, [parameter(mandatory=$False,HelpMessage='A list of asset or account filters which apply to this streaming locator)')] [string[]] $filters, [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 ContentKeys used by this Streaming Locator.)')] $contentKeys, [parameter(mandatory=$False,HelpMessage='The StreamingLocatorId of the Streaming Locator.)')] [string] $streamingLocatorId, [parameter(mandatory=$False,HelpMessage='Alternative Media ID of this Streaming Locator)')] [string] $alternativeMediaId, [parameter(mandatory=$False,HelpMessage='Name of the default ContentKeyPolicy used by this Streaming Locator.)')] [string] $defaultContentKeyPolicyName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:StreamingLocator") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["accountName"] = $accountName $resource.properties["assetName"] = $assetName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["streamingPolicyName"] = $streamingPolicyName if($PSBoundParameters.Keys -icontains 'startTime') { $resource.properties["startTime"] = $startTime } if($PSBoundParameters.Keys -icontains 'streamingLocatorName') { $resource.properties["streamingLocatorName"] = $streamingLocatorName } if($PSBoundParameters.Keys -icontains 'endTime') { $resource.properties["endTime"] = $endTime } if($PSBoundParameters.Keys -icontains 'filters') { $resource.properties["filters"] = $filters } if($PSBoundParameters.Keys -icontains 'contentKeys') { $resource.properties["contentKeys"] = $contentKeys } if($PSBoundParameters.Keys -icontains 'streamingLocatorId') { $resource.properties["streamingLocatorId"] = $streamingLocatorId } if($PSBoundParameters.Keys -icontains 'alternativeMediaId') { $resource.properties["alternativeMediaId"] = $alternativeMediaId } if($PSBoundParameters.Keys -icontains 'defaultContentKeyPolicyName') { $resource.properties["defaultContentKeyPolicyName"] = $defaultContentKeyPolicyName } $global:pulumiresources += $resource return $resource } } 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 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='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='HTTP Live Streaming (HLS) packing setting for the live output.)')] [Hls] $hls, [parameter(mandatory=$False,HelpMessage='The manifest file name. If not provided, the service will generate one automatically.)')] [string] $manifestName, [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 description of the live output.)')] [string] $description, [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=$False,HelpMessage='The name of the live output.)')] [string] $liveOutputName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:LiveOutput") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $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 'manifestName') { $resource.properties["manifestName"] = $manifestName } if($PSBoundParameters.Keys -icontains 'outputSnapTime') { $resource.properties["outputSnapTime"] = $outputSnapTime } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'liveOutputName') { $resource.properties["liveOutputName"] = $liveOutputName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeMediaContentKeyPolicy { [Alias('azure_native_media_contentkeypolicy')] param ( [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=$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,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:media:ContentKeyPolicy") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $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 } } |