We recommend using Azure Native.
azure.media.StreamingPolicy
Explore with Pulumi AI
Manages a Streaming Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "media-resources",
    location: "West Europe",
});
const exampleAccount = new azure.storage.Account("example", {
    name: "examplestoracc",
    resourceGroupName: example.name,
    location: example.location,
    accountTier: "Standard",
    accountReplicationType: "GRS",
});
const exampleServiceAccount = new azure.media.ServiceAccount("example", {
    name: "examplemediaacc",
    location: example.location,
    resourceGroupName: example.name,
    storageAccounts: [{
        id: exampleAccount.id,
        isPrimary: true,
    }],
});
const exampleContentKeyPolicy = new azure.media.ContentKeyPolicy("example", {
    name: "example",
    resourceGroupName: example.name,
    mediaServicesAccountName: exampleServiceAccount.name,
    policyOptions: [{
        name: "fairPlay",
        fairplayConfiguration: {
            ask: "bb566284cc124a21c435a92cd3c108c4",
            pfx: "MIIG7gIBAzCCBqoGCSqGSIb3DQEHAaCCBpsEggaXMIIGkzCCA7wGCSqGSIb3DQEHAaCCA60EggOpMIIDpTCCA6EGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAiV65vFfxLDVgICB9AEggKQx2dxWefICYodVhRLSQVMJRYy5QkM1VySPAXGP744JHrb+s0Y8i/6a+a5itZGlXw3kvxyflHtSsuuBCaYJ1WOCp9jspixJEliFHXTcel96AgZlT5tB7vC6pdZnz8rb+lyxFs99x2CW52EsadoDlRsYrmkmKdnB0cx2JHJbLeXuKV/fjuRJSqCFcDa6Nre8AlBX0zKGIYGLJ1Cfpora4kNTXxu0AwEowzGmoCxqrpKbO1QDi1hZ1qHrtZ1ienAKfiTXaGH4AMQzyut0AaymxalrRbXibJYuefLRvXqx0oLZKVLAX8fR1gnac6Mrr7GkdHaKCsk4eOi98acR7bjiyRRVYYS4B6Y0tCeRJNe6zeYVmLdtatuOlOEVDT6AKrJJMFMyITVS+2D771ge6m37FbJ36K3/eT/HRq1YDsxfD/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N7iH/+mv5d3iaKxn7/ShxLKHfjMd+r/gv27ylshVHiN4mVStAg+MiLrVvr5VH46p6oosImvS3ZO4D5wTmh/6wtus803qN4QB/Y9n4rqEJ4Dn619h+6O7FChzWkx7kvYIzIxvfnj1PCFTEjUwc7jbuF013W/z9zQi2YEq9AzxMcGro0zjdt2sf30zXSfaRNt0UHHRDkLo7yFUJG5Ka1uWU8paLuXUUiiMUf24Bsfdg2A2n+3Qa7g25OvAM1QTpMwmMWL9sY2hxVUGIKVrnj8c4EKuGJjVDXrze5g9O/LfZr5VSjGu5KsN0eYI3mcePF7XM0azMtTNQYVRmeWxYW+XvK5MaoLEkrFG8C5+JccIlN588jowVIPqP321S/EyFiAmrRdAWkqrc9KH+/eINCFqjut2YPkCaTM9mnJAAqWgggUWkrOKT/ByS6IAQwyEBNFbY0TWyxKt6vZL1EW/6HgZCsxeYycNhnPr2qJNZZMNzmdMRp2GRLcfBH8KFw1rAyua0VJoTLHb23ZAsEY74BrEEiK9e/oOjXkHzQjlmrfQ9rSN2eQpRrn0W8I229WmBO2suG+AQ3aY8kDtBMkjmJno7txUh1K5D6tJTO7MQp343A2AhyJkhYA7NPnDA7MB8wBwYFKw4DAhoEFPO82HDlCzlshWlnMoQPStm62TMEBBQsPmvwbZ5OlwC9+NDF1AC+t67WTgICB9A=",
            pfxPassword: "password",
            rentalDurationSeconds: 2249,
            rentalAndLeaseKeyType: "PersistentUnlimited",
        },
        openRestrictionEnabled: true,
    }],
});
const exampleStreamingPolicy = new azure.media.StreamingPolicy("example", {
    name: "Policy-1",
    resourceGroupName: example.name,
    mediaServicesAccountName: exampleServiceAccount.name,
    commonEncryptionCenc: {
        clearTracks: [{
            conditions: [{
                property: "FourCC",
                operation: "Equal",
                value: "hev2",
            }],
        }],
        enabledProtocols: {
            download: false,
            dash: true,
            hls: false,
            smoothStreaming: false,
        },
        defaultContentKey: {
            label: "aesDefaultKey",
            policyName: exampleContentKeyPolicy.name,
        },
        drmPlayready: {
            customLicenseAcquisitionUrlTemplate: "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
            customAttributes: "PlayReady CustomAttributes",
        },
        drmWidevineCustomLicenseAcquisitionUrlTemplate: "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}",
    },
    commonEncryptionCbcs: {
        enabledProtocols: {
            download: false,
            dash: true,
            hls: false,
            smoothStreaming: false,
        },
        drmFairplay: {
            customLicenseAcquisitionUrlTemplate: "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
            allowPersistentLicense: true,
        },
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="media-resources",
    location="West Europe")
example_account = azure.storage.Account("example",
    name="examplestoracc",
    resource_group_name=example.name,
    location=example.location,
    account_tier="Standard",
    account_replication_type="GRS")
example_service_account = azure.media.ServiceAccount("example",
    name="examplemediaacc",
    location=example.location,
    resource_group_name=example.name,
    storage_accounts=[azure.media.ServiceAccountStorageAccountArgs(
        id=example_account.id,
        is_primary=True,
    )])
example_content_key_policy = azure.media.ContentKeyPolicy("example",
    name="example",
    resource_group_name=example.name,
    media_services_account_name=example_service_account.name,
    policy_options=[azure.media.ContentKeyPolicyPolicyOptionArgs(
        name="fairPlay",
        fairplay_configuration=azure.media.ContentKeyPolicyPolicyOptionFairplayConfigurationArgs(
            ask="bb566284cc124a21c435a92cd3c108c4",
            pfx="MIIG7gIBAzCCBqoGCSqGSIb3DQEHAaCCBpsEggaXMIIGkzCCA7wGCSqGSIb3DQEHAaCCA60EggOpMIIDpTCCA6EGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAiV65vFfxLDVgICB9AEggKQx2dxWefICYodVhRLSQVMJRYy5QkM1VySPAXGP744JHrb+s0Y8i/6a+a5itZGlXw3kvxyflHtSsuuBCaYJ1WOCp9jspixJEliFHXTcel96AgZlT5tB7vC6pdZnz8rb+lyxFs99x2CW52EsadoDlRsYrmkmKdnB0cx2JHJbLeXuKV/fjuRJ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mG/riQJkCAgfQgIICiPSGg5axP4JM+GmiVEqOHTVAPw2AM8OPnn1q0mIw54oC2WOJw3FFThYHmxTQzQ1feVmnkVCv++eFp+BYTcWTa+ehl/3/Nvr5uLTzDxmCShacKwoWXOKtSLh6mmgydvMqSf6xv1bPsloodtrRxhprI2lBNBW2uw8az9eLdvURYmhjGPf9klEy/6OCA5jDT5XZMunwiQT5mYNMF7wAQ5PCz2dJQqm1n72A6nUHPkHEusN7iH/+mv5d3iaKxn7/ShxLKHfjMd+r/gv27ylshVHiN4mVStAg+MiLrVvr5VH46p6oosImvS3ZO4D5wTmh/6wtus803qN4QB/Y9n4rqEJ4Dn619h+6O7FChzWkx7kvYIzIxvfnj1PCFTEjUwc7jbuF013W/z9zQi2YEq9AzxMcGro0zjdt2sf30zXSfaRNt0UHHRDkLo7yFUJG5Ka1uWU8paLuXUUiiMUf24Bsfdg2A2n+3Qa7g25OvAM1QTpMwmMWL9sY2hxVUGIKVrnj8c4EKuGJjVDXrze5g9O/LfZr5VSjGu5KsN0eYI3mcePF7XM0azMtTNQYVRmeWxYW+XvK5MaoLEkrFG8C5+JccIlN588jowVIPqP321S/EyFiAmrRdAWkqrc9KH+/eINCFqjut2YPkCaTM9mnJAAqWgggUWkrOKT/ByS6IAQwyEBNFbY0TWyxKt6vZL1EW/6HgZCsxeYycNhnPr2qJNZZMNzmdMRp2GRLcfBH8KFw1rAyua0VJoTLHb23ZAsEY74BrEEiK9e/oOjXkHzQjlmrfQ9rSN2eQpRrn0W8I229WmBO2suG+AQ3aY8kDtBMkjmJno7txUh1K5D6tJTO7MQp343A2AhyJkhYA7NPnDA7MB8wBwYFKw4DAhoEFPO82HDlCzlshWlnMoQPStm62TMEBBQsPmvwbZ5OlwC9+NDF1AC+t67WTgICB9A=",
            pfx_password="password",
            rental_duration_seconds=2249,
            rental_and_lease_key_type="PersistentUnlimited",
        ),
        open_restriction_enabled=True,
    )])
example_streaming_policy = azure.media.StreamingPolicy("example",
    name="Policy-1",
    resource_group_name=example.name,
    media_services_account_name=example_service_account.name,
    common_encryption_cenc=azure.media.StreamingPolicyCommonEncryptionCencArgs(
        clear_tracks=[azure.media.StreamingPolicyCommonEncryptionCencClearTrackArgs(
            conditions=[azure.media.StreamingPolicyCommonEncryptionCencClearTrackConditionArgs(
                property="FourCC",
                operation="Equal",
                value="hev2",
            )],
        )],
        enabled_protocols=azure.media.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs(
            download=False,
            dash=True,
            hls=False,
            smooth_streaming=False,
        ),
        default_content_key=azure.media.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs(
            label="aesDefaultKey",
            policy_name=example_content_key_policy.name,
        ),
        drm_playready=azure.media.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs(
            custom_license_acquisition_url_template="https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
            custom_attributes="PlayReady CustomAttributes",
        ),
        drm_widevine_custom_license_acquisition_url_template="https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}",
    ),
    common_encryption_cbcs=azure.media.StreamingPolicyCommonEncryptionCbcsArgs(
        enabled_protocols=azure.media.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs(
            download=False,
            dash=True,
            hls=False,
            smooth_streaming=False,
        ),
        drm_fairplay=azure.media.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs(
            custom_license_acquisition_url_template="https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
            allow_persistent_license=True,
        ),
    ))
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/media"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("media-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("examplestoracc"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("GRS"),
		})
		if err != nil {
			return err
		}
		exampleServiceAccount, err := media.NewServiceAccount(ctx, "example", &media.ServiceAccountArgs{
			Name:              pulumi.String("examplemediaacc"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			StorageAccounts: media.ServiceAccountStorageAccountArray{
				&media.ServiceAccountStorageAccountArgs{
					Id:        exampleAccount.ID(),
					IsPrimary: pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		exampleContentKeyPolicy, err := media.NewContentKeyPolicy(ctx, "example", &media.ContentKeyPolicyArgs{
			Name:                     pulumi.String("example"),
			ResourceGroupName:        example.Name,
			MediaServicesAccountName: exampleServiceAccount.Name,
			PolicyOptions: media.ContentKeyPolicyPolicyOptionArray{
				&media.ContentKeyPolicyPolicyOptionArgs{
					Name: pulumi.String("fairPlay"),
					FairplayConfiguration: &media.ContentKeyPolicyPolicyOptionFairplayConfigurationArgs{
						Ask:                   pulumi.String("bb566284cc124a21c435a92cd3c108c4"),
						Pfx:                   pulumi.String("MIIG7gIBAzCCBqoGCSqGSIb3DQEHAaCCBpsEggaXMIIGkzCCA7wGCSqGSIb3DQEHAaCCA60EggOpMIIDpTCCA6EGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAiV65vFfxLDVgICB9AEggKQx2dxWefICYodVhRLSQVMJRYy5QkM1VySPAXGP744JHrb+s0Y8i/6a+a5itZGlXw3kvxyflHtSsuuBCaYJ1WOCp9jspixJEliFHXTcel96AgZlT5tB7vC6pdZnz8rb+lyxFs99x2CW52EsadoDlRsYrmkmKdnB0cx2JHJbLeXuKV/fjuRJSqCFcDa6Nre8AlBX0zKGIYGLJ1Cfpora4kNTXxu0AwEowzGmoCxqrp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w54oC2WOJw3FFThYHmxTQzQ1feVmnkVCv++eFp+BYTcWTa+ehl/3/Nvr5uLTzDxmCShacKwoWXOKtSLh6mmgydvMqSf6xv1bPsloodtrRxhprI2lBNBW2uw8az9eLdvURYmhjGPf9klEy/6OCA5jDT5XZMunwiQT5mYNMF7wAQ5PCz2dJQqm1n72A6nUHPkHEusN7iH/+mv5d3iaKxn7/ShxLKHfjMd+r/gv27ylshVHiN4mVStAg+MiLrVvr5VH46p6oosImvS3ZO4D5wTmh/6wtus803qN4QB/Y9n4rqEJ4Dn619h+6O7FChzWkx7kvYIzIxvfnj1PCFTEjUwc7jbuF013W/z9zQi2YEq9AzxMcGro0zjdt2sf30zXSfaRNt0UHHRDkLo7yFUJG5Ka1uWU8paLuXUUiiMUf24Bsfdg2A2n+3Qa7g25OvAM1QTpMwmMWL9sY2hxVUGIKVrnj8c4EKuGJjVDXrze5g9O/LfZr5VSjGu5KsN0eYI3mcePF7XM0azMtTNQYVRmeWxYW+XvK5MaoLEkrFG8C5+JccIlN588jowVIPqP321S/EyFiAmrRdAWkqrc9KH+/eINCFqjut2YPkCaTM9mnJAAqWgggUWkrOKT/ByS6IAQwyEBNFbY0TWyxKt6vZL1EW/6HgZCsxeYycNhnPr2qJNZZMNzmdMRp2GRLcfBH8KFw1rAyua0VJoTLHb23ZAsEY74BrEEiK9e/oOjXkHzQjlmrfQ9rSN2eQpRrn0W8I229WmBO2suG+AQ3aY8kDtBMkjmJno7txUh1K5D6tJTO7MQp343A2AhyJkhYA7NPnDA7MB8wBwYFKw4DAhoEFPO82HDlCzlshWlnMoQPStm62TMEBBQsPmvwbZ5OlwC9+NDF1AC+t67WTgICB9A="),
						PfxPassword:           pulumi.String("password"),
						RentalDurationSeconds: pulumi.Int(2249),
						RentalAndLeaseKeyType: pulumi.String("PersistentUnlimited"),
					},
					OpenRestrictionEnabled: pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = media.NewStreamingPolicy(ctx, "example", &media.StreamingPolicyArgs{
			Name:                     pulumi.String("Policy-1"),
			ResourceGroupName:        example.Name,
			MediaServicesAccountName: exampleServiceAccount.Name,
			CommonEncryptionCenc: &media.StreamingPolicyCommonEncryptionCencArgs{
				ClearTracks: media.StreamingPolicyCommonEncryptionCencClearTrackArray{
					&media.StreamingPolicyCommonEncryptionCencClearTrackArgs{
						Conditions: media.StreamingPolicyCommonEncryptionCencClearTrackConditionArray{
							&media.StreamingPolicyCommonEncryptionCencClearTrackConditionArgs{
								Property:  pulumi.String("FourCC"),
								Operation: pulumi.String("Equal"),
								Value:     pulumi.String("hev2"),
							},
						},
					},
				},
				EnabledProtocols: &media.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs{
					Download:        pulumi.Bool(false),
					Dash:            pulumi.Bool(true),
					Hls:             pulumi.Bool(false),
					SmoothStreaming: pulumi.Bool(false),
				},
				DefaultContentKey: &media.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs{
					Label:      pulumi.String("aesDefaultKey"),
					PolicyName: exampleContentKeyPolicy.Name,
				},
				DrmPlayready: &media.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs{
					CustomLicenseAcquisitionUrlTemplate: pulumi.String("https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}"),
					CustomAttributes:                    pulumi.String("PlayReady CustomAttributes"),
				},
				DrmWidevineCustomLicenseAcquisitionUrlTemplate: pulumi.String("https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}"),
			},
			CommonEncryptionCbcs: &media.StreamingPolicyCommonEncryptionCbcsArgs{
				EnabledProtocols: &media.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs{
					Download:        pulumi.Bool(false),
					Dash:            pulumi.Bool(true),
					Hls:             pulumi.Bool(false),
					SmoothStreaming: pulumi.Bool(false),
				},
				DrmFairplay: &media.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs{
					CustomLicenseAcquisitionUrlTemplate: pulumi.String("https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}"),
					AllowPersistentLicense:              pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "media-resources",
        Location = "West Europe",
    });
    var exampleAccount = new Azure.Storage.Account("example", new()
    {
        Name = "examplestoracc",
        ResourceGroupName = example.Name,
        Location = example.Location,
        AccountTier = "Standard",
        AccountReplicationType = "GRS",
    });
    var exampleServiceAccount = new Azure.Media.ServiceAccount("example", new()
    {
        Name = "examplemediaacc",
        Location = example.Location,
        ResourceGroupName = example.Name,
        StorageAccounts = new[]
        {
            new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
            {
                Id = exampleAccount.Id,
                IsPrimary = true,
            },
        },
    });
    var exampleContentKeyPolicy = new Azure.Media.ContentKeyPolicy("example", new()
    {
        Name = "example",
        ResourceGroupName = example.Name,
        MediaServicesAccountName = exampleServiceAccount.Name,
        PolicyOptions = new[]
        {
            new Azure.Media.Inputs.ContentKeyPolicyPolicyOptionArgs
            {
                Name = "fairPlay",
                FairplayConfiguration = new Azure.Media.Inputs.ContentKeyPolicyPolicyOptionFairplayConfigurationArgs
                {
                    Ask = "bb566284cc124a21c435a92cd3c108c4",
                    Pfx = "MIIG7gIBAzCCBqoGCSqGSIb3DQEHAaCCBpsEggaXMIIGkzCCA7wGCSqGSIb3DQEHAaCCA60EggOpMIIDpTCCA6EGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAiV65vFfxLDVgICB9AEggKQx2dxWefICYodVhRLSQVMJRYy5QkM1VySPAXGP744JHrb+s0Y8i/6a+a5itZGlXw3kvxyflHtSsuuBCaYJ1WOCp9jspixJEliFHXTcel96AgZlT5tB7vC6pdZnz8rb+lyxFs99x2CW52EsadoDlRsYrmkmKdnB0cx2JHJbLeXuKV/fjuRJSqCFcDa6Nre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QgIICiPSGg5axP4JM+GmiVEqOHTVAPw2AM8OPnn1q0mIw54oC2WOJw3FFThYHmxTQzQ1feVmnkVCv++eFp+BYTcWTa+ehl/3/Nvr5uLTzDxmCShacKwoWXOKtSLh6mmgydvMqSf6xv1bPsloodtrRxhprI2lBNBW2uw8az9eLdvURYmhjGPf9klEy/6OCA5jDT5XZMunwiQT5mYNMF7wAQ5PCz2dJQqm1n72A6nUHPkHEusN7iH/+mv5d3iaKxn7/ShxLKHfjMd+r/gv27ylshVHiN4mVStAg+MiLrVvr5VH46p6oosImvS3ZO4D5wTmh/6wtus803qN4QB/Y9n4rqEJ4Dn619h+6O7FChzWkx7kvYIzIxvfnj1PCFTEjUwc7jbuF013W/z9zQi2YEq9AzxMcGro0zjdt2sf30zXSfaRNt0UHHRDkLo7yFUJG5Ka1uWU8paLuXUUiiMUf24Bsfdg2A2n+3Qa7g25OvAM1QTpMwmMWL9sY2hxVUGIKVrnj8c4EKuGJjVDXrze5g9O/LfZr5VSjGu5KsN0eYI3mcePF7XM0azMtTNQYVRmeWxYW+XvK5MaoLEkrFG8C5+JccIlN588jowVIPqP321S/EyFiAmrRdAWkqrc9KH+/eINCFqjut2YPkCaTM9mnJAAqWgggUWkrOKT/ByS6IAQwyEBNFbY0TWyxKt6vZL1EW/6HgZCsxeYycNhnPr2qJNZZMNzmdMRp2GRLcfBH8KFw1rAyua0VJoTLHb23ZAsEY74BrEEiK9e/oOjXkHzQjlmrfQ9rSN2eQpRrn0W8I229WmBO2suG+AQ3aY8kDtBMkjmJno7txUh1K5D6tJTO7MQp343A2AhyJkhYA7NPnDA7MB8wBwYFKw4DAhoEFPO82HDlCzlshWlnMoQPStm62TMEBBQsPmvwbZ5OlwC9+NDF1AC+t67WTgICB9A=",
                    PfxPassword = "password",
                    RentalDurationSeconds = 2249,
                    RentalAndLeaseKeyType = "PersistentUnlimited",
                },
                OpenRestrictionEnabled = true,
            },
        },
    });
    var exampleStreamingPolicy = new Azure.Media.StreamingPolicy("example", new()
    {
        Name = "Policy-1",
        ResourceGroupName = example.Name,
        MediaServicesAccountName = exampleServiceAccount.Name,
        CommonEncryptionCenc = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencArgs
        {
            ClearTracks = new[]
            {
                new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencClearTrackArgs
                {
                    Conditions = new[]
                    {
                        new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencClearTrackConditionArgs
                        {
                            Property = "FourCC",
                            Operation = "Equal",
                            Value = "hev2",
                        },
                    },
                },
            },
            EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs
            {
                Download = false,
                Dash = true,
                Hls = false,
                SmoothStreaming = false,
            },
            DefaultContentKey = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs
            {
                Label = "aesDefaultKey",
                PolicyName = exampleContentKeyPolicy.Name,
            },
            DrmPlayready = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs
            {
                CustomLicenseAcquisitionUrlTemplate = "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
                CustomAttributes = "PlayReady CustomAttributes",
            },
            DrmWidevineCustomLicenseAcquisitionUrlTemplate = "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}",
        },
        CommonEncryptionCbcs = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsArgs
        {
            EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs
            {
                Download = false,
                Dash = true,
                Hls = false,
                SmoothStreaming = false,
            },
            DrmFairplay = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs
            {
                CustomLicenseAcquisitionUrlTemplate = "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
                AllowPersistentLicense = true,
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.media.ServiceAccount;
import com.pulumi.azure.media.ServiceAccountArgs;
import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs;
import com.pulumi.azure.media.ContentKeyPolicy;
import com.pulumi.azure.media.ContentKeyPolicyArgs;
import com.pulumi.azure.media.inputs.ContentKeyPolicyPolicyOptionArgs;
import com.pulumi.azure.media.inputs.ContentKeyPolicyPolicyOptionFairplayConfigurationArgs;
import com.pulumi.azure.media.StreamingPolicy;
import com.pulumi.azure.media.StreamingPolicyArgs;
import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencArgs;
import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs;
import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs;
import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs;
import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCbcsArgs;
import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs;
import com.pulumi.azure.media.inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("media-resources")
            .location("West Europe")
            .build());
        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
            .name("examplestoracc")
            .resourceGroupName(example.name())
            .location(example.location())
            .accountTier("Standard")
            .accountReplicationType("GRS")
            .build());
        var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()
            .name("examplemediaacc")
            .location(example.location())
            .resourceGroupName(example.name())
            .storageAccounts(ServiceAccountStorageAccountArgs.builder()
                .id(exampleAccount.id())
                .isPrimary(true)
                .build())
            .build());
        var exampleContentKeyPolicy = new ContentKeyPolicy("exampleContentKeyPolicy", ContentKeyPolicyArgs.builder()
            .name("example")
            .resourceGroupName(example.name())
            .mediaServicesAccountName(exampleServiceAccount.name())
            .policyOptions(ContentKeyPolicyPolicyOptionArgs.builder()
                .name("fairPlay")
                .fairplayConfiguration(ContentKeyPolicyPolicyOptionFairplayConfigurationArgs.builder()
                    .ask("bb566284cc124a21c435a92cd3c108c4")
                    .pfx("MIIG7gIBAzCCBqoGCSqGSIb3DQEHAaCCBpsEggaXMIIGkzCCA7wGCSqGSIb3DQEHAaCCA60EggOpMIIDpTCCA6EGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAiV65vFfxLDVgICB9AEggKQx2dxWefICYodVhRLSQVMJRYy5QkM1VySPAXGP744JHrb+s0Y8i/6a+a5itZGlXw3kvxyflHtSsuuBCaYJ1WOCp9jspixJEliFHXTcel96AgZlT5tB7vC6pdZnz8rb+lyxFs99x2CW52EsadoDlRsYrmkmKdnB0cx2JHJbLeXuKV/fjuRJSqCFcDa6Nre8AlBX0zKGIYGLJ1Cfpora4kNTXxu0AwEowzGmoCxqrpKbO1QDi1hZ1qHrtZ1ienAKfiTXaGH4AMQzyut0AaymxalrRbXibJYuefLRvXqx0oLZKVLAX8fR1gnac6Mrr7GkdHaKCsk4eOi98acR7bjiyRRVYYS4B6Y0tCeRJNe6zeYVmLdtatuOlOEVDT6AKrJJMFMyITVS+2D771ge6m37FbJ36K3/eT/HRq1YDsxfD/BY+X7eMIwQrVnD5nK7avXfbIni57n5oWLkE9Vco8uBlMdrx4xHt9vpe42Pz2Yh2O4WtvxcgxrAknvPpV1ZsAJCfvm9TTcg8qZpjyePn3B9TvFVSXMJHn/rzu6OJAgFgVFAe1tPGLh1XBxAvwpB8EqcycIIUUFUBy4HgYCicj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zjdt2sf30zXSfaRNt0UHHRDkLo7yFUJG5Ka1uWU8paLuXUUiiMUf24Bsfdg2A2n+3Qa7g25OvAM1QTpMwmMWL9sY2hxVUGIKVrnj8c4EKuGJjVDXrze5g9O/LfZr5VSjGu5KsN0eYI3mcePF7XM0azMtTNQYVRmeWxYW+XvK5MaoLEkrFG8C5+JccIlN588jowVIPqP321S/EyFiAmrRdAWkqrc9KH+/eINCFqjut2YPkCaTM9mnJAAqWgggUWkrOKT/ByS6IAQwyEBNFbY0TWyxKt6vZL1EW/6HgZCsxeYycNhnPr2qJNZZMNzmdMRp2GRLcfBH8KFw1rAyua0VJoTLHb23ZAsEY74BrEEiK9e/oOjXkHzQjlmrfQ9rSN2eQpRrn0W8I229WmBO2suG+AQ3aY8kDtBMkjmJno7txUh1K5D6tJTO7MQp343A2AhyJkhYA7NPnDA7MB8wBwYFKw4DAhoEFPO82HDlCzlshWlnMoQPStm62TMEBBQsPmvwbZ5OlwC9+NDF1AC+t67WTgICB9A=")
                    .pfxPassword("password")
                    .rentalDurationSeconds(2249)
                    .rentalAndLeaseKeyType("PersistentUnlimited")
                    .build())
                .openRestrictionEnabled(true)
                .build())
            .build());
        var exampleStreamingPolicy = new StreamingPolicy("exampleStreamingPolicy", StreamingPolicyArgs.builder()
            .name("Policy-1")
            .resourceGroupName(example.name())
            .mediaServicesAccountName(exampleServiceAccount.name())
            .commonEncryptionCenc(StreamingPolicyCommonEncryptionCencArgs.builder()
                .clearTracks(StreamingPolicyCommonEncryptionCencClearTrackArgs.builder()
                    .conditions(StreamingPolicyCommonEncryptionCencClearTrackConditionArgs.builder()
                        .property("FourCC")
                        .operation("Equal")
                        .value("hev2")
                        .build())
                    .build())
                .enabledProtocols(StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs.builder()
                    .download(false)
                    .dash(true)
                    .hls(false)
                    .smoothStreaming(false)
                    .build())
                .defaultContentKey(StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs.builder()
                    .label("aesDefaultKey")
                    .policyName(exampleContentKeyPolicy.name())
                    .build())
                .drmPlayready(StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs.builder()
                    .customLicenseAcquisitionUrlTemplate("https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}")
                    .customAttributes("PlayReady CustomAttributes")
                    .build())
                .drmWidevineCustomLicenseAcquisitionUrlTemplate("https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}")
                .build())
            .commonEncryptionCbcs(StreamingPolicyCommonEncryptionCbcsArgs.builder()
                .enabledProtocols(StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs.builder()
                    .download(false)
                    .dash(true)
                    .hls(false)
                    .smoothStreaming(false)
                    .build())
                .drmFairplay(StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs.builder()
                    .customLicenseAcquisitionUrlTemplate("https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}")
                    .allowPersistentLicense(true)
                    .build())
                .build())
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: media-resources
      location: West Europe
  exampleAccount:
    type: azure:storage:Account
    name: example
    properties:
      name: examplestoracc
      resourceGroupName: ${example.name}
      location: ${example.location}
      accountTier: Standard
      accountReplicationType: GRS
  exampleServiceAccount:
    type: azure:media:ServiceAccount
    name: example
    properties:
      name: examplemediaacc
      location: ${example.location}
      resourceGroupName: ${example.name}
      storageAccounts:
        - id: ${exampleAccount.id}
          isPrimary: true
  exampleContentKeyPolicy:
    type: azure:media:ContentKeyPolicy
    name: example
    properties:
      name: example
      resourceGroupName: ${example.name}
      mediaServicesAccountName: ${exampleServiceAccount.name}
      policyOptions:
        - name: fairPlay
          fairplayConfiguration:
            ask: bb566284cc124a21c435a92cd3c108c4
            pfx: MIIG7gIBAzCCBqoGCSqGSIb3DQEHAaCCBpsEggaXMIIGkzCCA7wGCSqGSIb3DQEHAaCCA60EggOpMIIDpTCCA6EGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwB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7MB8wBwYFKw4DAhoEFPO82HDlCzlshWlnMoQPStm62TMEBBQsPmvwbZ5OlwC9+NDF1AC+t67WTgICB9A=
            pfxPassword: password
            rentalDurationSeconds: 2249
            rentalAndLeaseKeyType: PersistentUnlimited
          openRestrictionEnabled: true
  exampleStreamingPolicy:
    type: azure:media:StreamingPolicy
    name: example
    properties:
      name: Policy-1
      resourceGroupName: ${example.name}
      mediaServicesAccountName: ${exampleServiceAccount.name}
      commonEncryptionCenc:
        clearTracks:
          - conditions:
              - property: FourCC
                operation: Equal
                value: hev2
        enabledProtocols:
          download: false
          dash: true
          hls: false
          smoothStreaming: false
        defaultContentKey:
          label: aesDefaultKey
          policyName: ${exampleContentKeyPolicy.name}
        drmPlayready:
          customLicenseAcquisitionUrlTemplate: https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}
          customAttributes: PlayReady CustomAttributes
        drmWidevineCustomLicenseAcquisitionUrlTemplate: https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}
      commonEncryptionCbcs:
        enabledProtocols:
          download: false
          dash: true
          hls: false
          smoothStreaming: false
        drmFairplay:
          customLicenseAcquisitionUrlTemplate: https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}
          allowPersistentLicense: true
Create StreamingPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StreamingPolicy(name: string, args: StreamingPolicyArgs, opts?: CustomResourceOptions);@overload
def StreamingPolicy(resource_name: str,
                    args: StreamingPolicyArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def StreamingPolicy(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    media_services_account_name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    common_encryption_cbcs: Optional[StreamingPolicyCommonEncryptionCbcsArgs] = None,
                    common_encryption_cenc: Optional[StreamingPolicyCommonEncryptionCencArgs] = None,
                    default_content_key_policy_name: Optional[str] = None,
                    envelope_encryption: Optional[StreamingPolicyEnvelopeEncryptionArgs] = None,
                    name: Optional[str] = None,
                    no_encryption_enabled_protocols: Optional[StreamingPolicyNoEncryptionEnabledProtocolsArgs] = None)func NewStreamingPolicy(ctx *Context, name string, args StreamingPolicyArgs, opts ...ResourceOption) (*StreamingPolicy, error)public StreamingPolicy(string name, StreamingPolicyArgs args, CustomResourceOptions? opts = null)
public StreamingPolicy(String name, StreamingPolicyArgs args)
public StreamingPolicy(String name, StreamingPolicyArgs args, CustomResourceOptions options)
type: azure:media:StreamingPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
 - The unique name of the resource.
 - args StreamingPolicyArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- resource_name str
 - The unique name of the resource.
 - args StreamingPolicyArgs
 - The arguments to resource properties.
 - opts ResourceOptions
 - Bag of options to control resource's behavior.
 
- ctx Context
 - Context object for the current deployment.
 - name string
 - The unique name of the resource.
 - args StreamingPolicyArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args StreamingPolicyArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args StreamingPolicyArgs
 - The arguments to resource properties.
 - options CustomResourceOptions
 - Bag of options to control resource's behavior.
 
Constructor example
The following reference example uses placeholder values for all input properties.
var streamingPolicyResource = new Azure.Media.StreamingPolicy("streamingPolicyResource", new()
{
    MediaServicesAccountName = "string",
    ResourceGroupName = "string",
    CommonEncryptionCbcs = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsArgs
    {
        ClearKeyEncryption = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsClearKeyEncryptionArgs
        {
            CustomKeysAcquisitionUrlTemplate = "string",
        },
        DefaultContentKey = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs
        {
            Label = "string",
            PolicyName = "string",
        },
        DrmFairplay = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs
        {
            AllowPersistentLicense = false,
            CustomLicenseAcquisitionUrlTemplate = "string",
        },
        EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs
        {
            Dash = false,
            Download = false,
            Hls = false,
            SmoothStreaming = false,
        },
    },
    CommonEncryptionCenc = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencArgs
    {
        ClearKeyEncryption = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencClearKeyEncryptionArgs
        {
            CustomKeysAcquisitionUrlTemplate = "string",
        },
        ClearTracks = new[]
        {
            new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencClearTrackArgs
            {
                Conditions = new[]
                {
                    new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencClearTrackConditionArgs
                    {
                        Operation = "string",
                        Property = "string",
                        Value = "string",
                    },
                },
            },
        },
        ContentKeyToTrackMappings = new[]
        {
            new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs
            {
                Tracks = new[]
                {
                    new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgs
                    {
                        Conditions = new[]
                        {
                            new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionArgs
                            {
                                Operation = "string",
                                Property = "string",
                                Value = "string",
                            },
                        },
                    },
                },
                Label = "string",
                PolicyName = "string",
            },
        },
        DefaultContentKey = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs
        {
            Label = "string",
            PolicyName = "string",
        },
        DrmPlayready = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs
        {
            CustomAttributes = "string",
            CustomLicenseAcquisitionUrlTemplate = "string",
        },
        DrmWidevineCustomLicenseAcquisitionUrlTemplate = "string",
        EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs
        {
            Dash = false,
            Download = false,
            Hls = false,
            SmoothStreaming = false,
        },
    },
    DefaultContentKeyPolicyName = "string",
    EnvelopeEncryption = new Azure.Media.Inputs.StreamingPolicyEnvelopeEncryptionArgs
    {
        CustomKeysAcquisitionUrlTemplate = "string",
        DefaultContentKey = new Azure.Media.Inputs.StreamingPolicyEnvelopeEncryptionDefaultContentKeyArgs
        {
            Label = "string",
            PolicyName = "string",
        },
        EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyEnvelopeEncryptionEnabledProtocolsArgs
        {
            Dash = false,
            Download = false,
            Hls = false,
            SmoothStreaming = false,
        },
    },
    Name = "string",
    NoEncryptionEnabledProtocols = new Azure.Media.Inputs.StreamingPolicyNoEncryptionEnabledProtocolsArgs
    {
        Dash = false,
        Download = false,
        Hls = false,
        SmoothStreaming = false,
    },
});
example, err := media.NewStreamingPolicy(ctx, "streamingPolicyResource", &media.StreamingPolicyArgs{
	MediaServicesAccountName: pulumi.String("string"),
	ResourceGroupName:        pulumi.String("string"),
	CommonEncryptionCbcs: &media.StreamingPolicyCommonEncryptionCbcsArgs{
		ClearKeyEncryption: &media.StreamingPolicyCommonEncryptionCbcsClearKeyEncryptionArgs{
			CustomKeysAcquisitionUrlTemplate: pulumi.String("string"),
		},
		DefaultContentKey: &media.StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs{
			Label:      pulumi.String("string"),
			PolicyName: pulumi.String("string"),
		},
		DrmFairplay: &media.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs{
			AllowPersistentLicense:              pulumi.Bool(false),
			CustomLicenseAcquisitionUrlTemplate: pulumi.String("string"),
		},
		EnabledProtocols: &media.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs{
			Dash:            pulumi.Bool(false),
			Download:        pulumi.Bool(false),
			Hls:             pulumi.Bool(false),
			SmoothStreaming: pulumi.Bool(false),
		},
	},
	CommonEncryptionCenc: &media.StreamingPolicyCommonEncryptionCencArgs{
		ClearKeyEncryption: &media.StreamingPolicyCommonEncryptionCencClearKeyEncryptionArgs{
			CustomKeysAcquisitionUrlTemplate: pulumi.String("string"),
		},
		ClearTracks: media.StreamingPolicyCommonEncryptionCencClearTrackArray{
			&media.StreamingPolicyCommonEncryptionCencClearTrackArgs{
				Conditions: media.StreamingPolicyCommonEncryptionCencClearTrackConditionArray{
					&media.StreamingPolicyCommonEncryptionCencClearTrackConditionArgs{
						Operation: pulumi.String("string"),
						Property:  pulumi.String("string"),
						Value:     pulumi.String("string"),
					},
				},
			},
		},
		ContentKeyToTrackMappings: media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArray{
			&media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs{
				Tracks: media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArray{
					&media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgs{
						Conditions: media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionArray{
							&media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionArgs{
								Operation: pulumi.String("string"),
								Property:  pulumi.String("string"),
								Value:     pulumi.String("string"),
							},
						},
					},
				},
				Label:      pulumi.String("string"),
				PolicyName: pulumi.String("string"),
			},
		},
		DefaultContentKey: &media.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs{
			Label:      pulumi.String("string"),
			PolicyName: pulumi.String("string"),
		},
		DrmPlayready: &media.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs{
			CustomAttributes:                    pulumi.String("string"),
			CustomLicenseAcquisitionUrlTemplate: pulumi.String("string"),
		},
		DrmWidevineCustomLicenseAcquisitionUrlTemplate: pulumi.String("string"),
		EnabledProtocols: &media.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs{
			Dash:            pulumi.Bool(false),
			Download:        pulumi.Bool(false),
			Hls:             pulumi.Bool(false),
			SmoothStreaming: pulumi.Bool(false),
		},
	},
	DefaultContentKeyPolicyName: pulumi.String("string"),
	EnvelopeEncryption: &media.StreamingPolicyEnvelopeEncryptionArgs{
		CustomKeysAcquisitionUrlTemplate: pulumi.String("string"),
		DefaultContentKey: &media.StreamingPolicyEnvelopeEncryptionDefaultContentKeyArgs{
			Label:      pulumi.String("string"),
			PolicyName: pulumi.String("string"),
		},
		EnabledProtocols: &media.StreamingPolicyEnvelopeEncryptionEnabledProtocolsArgs{
			Dash:            pulumi.Bool(false),
			Download:        pulumi.Bool(false),
			Hls:             pulumi.Bool(false),
			SmoothStreaming: pulumi.Bool(false),
		},
	},
	Name: pulumi.String("string"),
	NoEncryptionEnabledProtocols: &media.StreamingPolicyNoEncryptionEnabledProtocolsArgs{
		Dash:            pulumi.Bool(false),
		Download:        pulumi.Bool(false),
		Hls:             pulumi.Bool(false),
		SmoothStreaming: pulumi.Bool(false),
	},
})
var streamingPolicyResource = new StreamingPolicy("streamingPolicyResource", StreamingPolicyArgs.builder()
    .mediaServicesAccountName("string")
    .resourceGroupName("string")
    .commonEncryptionCbcs(StreamingPolicyCommonEncryptionCbcsArgs.builder()
        .clearKeyEncryption(StreamingPolicyCommonEncryptionCbcsClearKeyEncryptionArgs.builder()
            .customKeysAcquisitionUrlTemplate("string")
            .build())
        .defaultContentKey(StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs.builder()
            .label("string")
            .policyName("string")
            .build())
        .drmFairplay(StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs.builder()
            .allowPersistentLicense(false)
            .customLicenseAcquisitionUrlTemplate("string")
            .build())
        .enabledProtocols(StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs.builder()
            .dash(false)
            .download(false)
            .hls(false)
            .smoothStreaming(false)
            .build())
        .build())
    .commonEncryptionCenc(StreamingPolicyCommonEncryptionCencArgs.builder()
        .clearKeyEncryption(StreamingPolicyCommonEncryptionCencClearKeyEncryptionArgs.builder()
            .customKeysAcquisitionUrlTemplate("string")
            .build())
        .clearTracks(StreamingPolicyCommonEncryptionCencClearTrackArgs.builder()
            .conditions(StreamingPolicyCommonEncryptionCencClearTrackConditionArgs.builder()
                .operation("string")
                .property("string")
                .value("string")
                .build())
            .build())
        .contentKeyToTrackMappings(StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs.builder()
            .tracks(StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgs.builder()
                .conditions(StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionArgs.builder()
                    .operation("string")
                    .property("string")
                    .value("string")
                    .build())
                .build())
            .label("string")
            .policyName("string")
            .build())
        .defaultContentKey(StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs.builder()
            .label("string")
            .policyName("string")
            .build())
        .drmPlayready(StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs.builder()
            .customAttributes("string")
            .customLicenseAcquisitionUrlTemplate("string")
            .build())
        .drmWidevineCustomLicenseAcquisitionUrlTemplate("string")
        .enabledProtocols(StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs.builder()
            .dash(false)
            .download(false)
            .hls(false)
            .smoothStreaming(false)
            .build())
        .build())
    .defaultContentKeyPolicyName("string")
    .envelopeEncryption(StreamingPolicyEnvelopeEncryptionArgs.builder()
        .customKeysAcquisitionUrlTemplate("string")
        .defaultContentKey(StreamingPolicyEnvelopeEncryptionDefaultContentKeyArgs.builder()
            .label("string")
            .policyName("string")
            .build())
        .enabledProtocols(StreamingPolicyEnvelopeEncryptionEnabledProtocolsArgs.builder()
            .dash(false)
            .download(false)
            .hls(false)
            .smoothStreaming(false)
            .build())
        .build())
    .name("string")
    .noEncryptionEnabledProtocols(StreamingPolicyNoEncryptionEnabledProtocolsArgs.builder()
        .dash(false)
        .download(false)
        .hls(false)
        .smoothStreaming(false)
        .build())
    .build());
streaming_policy_resource = azure.media.StreamingPolicy("streamingPolicyResource",
    media_services_account_name="string",
    resource_group_name="string",
    common_encryption_cbcs=azure.media.StreamingPolicyCommonEncryptionCbcsArgs(
        clear_key_encryption=azure.media.StreamingPolicyCommonEncryptionCbcsClearKeyEncryptionArgs(
            custom_keys_acquisition_url_template="string",
        ),
        default_content_key=azure.media.StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs(
            label="string",
            policy_name="string",
        ),
        drm_fairplay=azure.media.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs(
            allow_persistent_license=False,
            custom_license_acquisition_url_template="string",
        ),
        enabled_protocols=azure.media.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs(
            dash=False,
            download=False,
            hls=False,
            smooth_streaming=False,
        ),
    ),
    common_encryption_cenc=azure.media.StreamingPolicyCommonEncryptionCencArgs(
        clear_key_encryption=azure.media.StreamingPolicyCommonEncryptionCencClearKeyEncryptionArgs(
            custom_keys_acquisition_url_template="string",
        ),
        clear_tracks=[azure.media.StreamingPolicyCommonEncryptionCencClearTrackArgs(
            conditions=[azure.media.StreamingPolicyCommonEncryptionCencClearTrackConditionArgs(
                operation="string",
                property="string",
                value="string",
            )],
        )],
        content_key_to_track_mappings=[azure.media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs(
            tracks=[azure.media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgs(
                conditions=[azure.media.StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionArgs(
                    operation="string",
                    property="string",
                    value="string",
                )],
            )],
            label="string",
            policy_name="string",
        )],
        default_content_key=azure.media.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs(
            label="string",
            policy_name="string",
        ),
        drm_playready=azure.media.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs(
            custom_attributes="string",
            custom_license_acquisition_url_template="string",
        ),
        drm_widevine_custom_license_acquisition_url_template="string",
        enabled_protocols=azure.media.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs(
            dash=False,
            download=False,
            hls=False,
            smooth_streaming=False,
        ),
    ),
    default_content_key_policy_name="string",
    envelope_encryption=azure.media.StreamingPolicyEnvelopeEncryptionArgs(
        custom_keys_acquisition_url_template="string",
        default_content_key=azure.media.StreamingPolicyEnvelopeEncryptionDefaultContentKeyArgs(
            label="string",
            policy_name="string",
        ),
        enabled_protocols=azure.media.StreamingPolicyEnvelopeEncryptionEnabledProtocolsArgs(
            dash=False,
            download=False,
            hls=False,
            smooth_streaming=False,
        ),
    ),
    name="string",
    no_encryption_enabled_protocols=azure.media.StreamingPolicyNoEncryptionEnabledProtocolsArgs(
        dash=False,
        download=False,
        hls=False,
        smooth_streaming=False,
    ))
const streamingPolicyResource = new azure.media.StreamingPolicy("streamingPolicyResource", {
    mediaServicesAccountName: "string",
    resourceGroupName: "string",
    commonEncryptionCbcs: {
        clearKeyEncryption: {
            customKeysAcquisitionUrlTemplate: "string",
        },
        defaultContentKey: {
            label: "string",
            policyName: "string",
        },
        drmFairplay: {
            allowPersistentLicense: false,
            customLicenseAcquisitionUrlTemplate: "string",
        },
        enabledProtocols: {
            dash: false,
            download: false,
            hls: false,
            smoothStreaming: false,
        },
    },
    commonEncryptionCenc: {
        clearKeyEncryption: {
            customKeysAcquisitionUrlTemplate: "string",
        },
        clearTracks: [{
            conditions: [{
                operation: "string",
                property: "string",
                value: "string",
            }],
        }],
        contentKeyToTrackMappings: [{
            tracks: [{
                conditions: [{
                    operation: "string",
                    property: "string",
                    value: "string",
                }],
            }],
            label: "string",
            policyName: "string",
        }],
        defaultContentKey: {
            label: "string",
            policyName: "string",
        },
        drmPlayready: {
            customAttributes: "string",
            customLicenseAcquisitionUrlTemplate: "string",
        },
        drmWidevineCustomLicenseAcquisitionUrlTemplate: "string",
        enabledProtocols: {
            dash: false,
            download: false,
            hls: false,
            smoothStreaming: false,
        },
    },
    defaultContentKeyPolicyName: "string",
    envelopeEncryption: {
        customKeysAcquisitionUrlTemplate: "string",
        defaultContentKey: {
            label: "string",
            policyName: "string",
        },
        enabledProtocols: {
            dash: false,
            download: false,
            hls: false,
            smoothStreaming: false,
        },
    },
    name: "string",
    noEncryptionEnabledProtocols: {
        dash: false,
        download: false,
        hls: false,
        smoothStreaming: false,
    },
});
type: azure:media:StreamingPolicy
properties:
    commonEncryptionCbcs:
        clearKeyEncryption:
            customKeysAcquisitionUrlTemplate: string
        defaultContentKey:
            label: string
            policyName: string
        drmFairplay:
            allowPersistentLicense: false
            customLicenseAcquisitionUrlTemplate: string
        enabledProtocols:
            dash: false
            download: false
            hls: false
            smoothStreaming: false
    commonEncryptionCenc:
        clearKeyEncryption:
            customKeysAcquisitionUrlTemplate: string
        clearTracks:
            - conditions:
                - operation: string
                  property: string
                  value: string
        contentKeyToTrackMappings:
            - label: string
              policyName: string
              tracks:
                - conditions:
                    - operation: string
                      property: string
                      value: string
        defaultContentKey:
            label: string
            policyName: string
        drmPlayready:
            customAttributes: string
            customLicenseAcquisitionUrlTemplate: string
        drmWidevineCustomLicenseAcquisitionUrlTemplate: string
        enabledProtocols:
            dash: false
            download: false
            hls: false
            smoothStreaming: false
    defaultContentKeyPolicyName: string
    envelopeEncryption:
        customKeysAcquisitionUrlTemplate: string
        defaultContentKey:
            label: string
            policyName: string
        enabledProtocols:
            dash: false
            download: false
            hls: false
            smoothStreaming: false
    mediaServicesAccountName: string
    name: string
    noEncryptionEnabledProtocols:
        dash: false
        download: false
        hls: false
        smoothStreaming: false
    resourceGroupName: string
StreamingPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The StreamingPolicy resource accepts the following input properties:
- Media
Services stringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - Resource
Group stringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 - Common
Encryption StreamingCbcs Policy Common Encryption Cbcs  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - Common
Encryption StreamingCenc Policy Common Encryption Cenc  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content stringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - Envelope
Encryption StreamingPolicy Envelope Encryption  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - Name string
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - No
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- Media
Services stringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - Resource
Group stringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 - Common
Encryption StreamingCbcs Policy Common Encryption Cbcs Args  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - Common
Encryption StreamingCenc Policy Common Encryption Cenc Args  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content stringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - Envelope
Encryption StreamingPolicy Envelope Encryption Args  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - Name string
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - No
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols Args  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- media
Services StringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - resource
Group StringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 - common
Encryption StreamingCbcs Policy Common Encryption Cbcs  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption StreamingCenc Policy Common Encryption Cenc  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - envelope
Encryption StreamingPolicy Envelope Encryption  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - name String
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - no
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- media
Services stringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - resource
Group stringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 - common
Encryption StreamingCbcs Policy Common Encryption Cbcs  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption StreamingCenc Policy Common Encryption Cenc  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content stringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - envelope
Encryption StreamingPolicy Envelope Encryption  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - name string
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - no
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- media_
services_ straccount_ name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - resource_
group_ strname  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 - common_
encryption_ Streamingcbcs Policy Common Encryption Cbcs Args  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common_
encryption_ Streamingcenc Policy Common Encryption Cenc Args  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default_
content_ strkey_ policy_ name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - envelope_
encryption StreamingPolicy Envelope Encryption Args  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - name str
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - no_
encryption_ Streamingenabled_ protocols Policy No Encryption Enabled Protocols Args  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- media
Services StringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - resource
Group StringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 - common
Encryption Property MapCbcs  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption Property MapCenc  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - envelope
Encryption Property Map - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - name String
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - no
Encryption Property MapEnabled Protocols  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
Outputs
All input properties are implicitly available as output properties. Additionally, the StreamingPolicy resource produces the following output properties:
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
Look up Existing StreamingPolicy Resource
Get an existing StreamingPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: StreamingPolicyState, opts?: CustomResourceOptions): StreamingPolicy@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        common_encryption_cbcs: Optional[StreamingPolicyCommonEncryptionCbcsArgs] = None,
        common_encryption_cenc: Optional[StreamingPolicyCommonEncryptionCencArgs] = None,
        default_content_key_policy_name: Optional[str] = None,
        envelope_encryption: Optional[StreamingPolicyEnvelopeEncryptionArgs] = None,
        media_services_account_name: Optional[str] = None,
        name: Optional[str] = None,
        no_encryption_enabled_protocols: Optional[StreamingPolicyNoEncryptionEnabledProtocolsArgs] = None,
        resource_group_name: Optional[str] = None) -> StreamingPolicyfunc GetStreamingPolicy(ctx *Context, name string, id IDInput, state *StreamingPolicyState, opts ...ResourceOption) (*StreamingPolicy, error)public static StreamingPolicy Get(string name, Input<string> id, StreamingPolicyState? state, CustomResourceOptions? opts = null)public static StreamingPolicy get(String name, Output<String> id, StreamingPolicyState state, CustomResourceOptions options)Resource lookup is not supported in YAML- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- resource_name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- Common
Encryption StreamingCbcs Policy Common Encryption Cbcs  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - Common
Encryption StreamingCenc Policy Common Encryption Cenc  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content stringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - Envelope
Encryption StreamingPolicy Envelope Encryption  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - Media
Services stringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - Name string
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - No
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - Resource
Group stringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 
- Common
Encryption StreamingCbcs Policy Common Encryption Cbcs Args  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - Common
Encryption StreamingCenc Policy Common Encryption Cenc Args  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content stringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - Envelope
Encryption StreamingPolicy Envelope Encryption Args  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - Media
Services stringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - Name string
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - No
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols Args  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - Resource
Group stringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 
- common
Encryption StreamingCbcs Policy Common Encryption Cbcs  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption StreamingCenc Policy Common Encryption Cenc  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - envelope
Encryption StreamingPolicy Envelope Encryption  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - media
Services StringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - name String
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - no
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - resource
Group StringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 
- common
Encryption StreamingCbcs Policy Common Encryption Cbcs  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption StreamingCenc Policy Common Encryption Cenc  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content stringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - envelope
Encryption StreamingPolicy Envelope Encryption  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - media
Services stringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - name string
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - no
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - resource
Group stringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 
- common_
encryption_ Streamingcbcs Policy Common Encryption Cbcs Args  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common_
encryption_ Streamingcenc Policy Common Encryption Cenc Args  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default_
content_ strkey_ policy_ name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - envelope_
encryption StreamingPolicy Envelope Encryption Args  - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - media_
services_ straccount_ name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - name str
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - no_
encryption_ Streamingenabled_ protocols Policy No Encryption Enabled Protocols Args  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - resource_
group_ strname  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 
- common
Encryption Property MapCbcs  - A 
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption Property MapCenc  - A 
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StringKey Policy Name  - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - envelope
Encryption Property Map - A 
envelope_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - media
Services StringAccount Name  - The Media Services account name. Changing this forces a new Streaming Policy to be created.
 - name String
 - The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
 - no
Encryption Property MapEnabled Protocols  - A 
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - resource
Group StringName  - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
 
Supporting Types
StreamingPolicyCommonEncryptionCbcs, StreamingPolicyCommonEncryptionCbcsArgs          
- Clear
Key StreamingEncryption Policy Common Encryption Cbcs Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content StreamingKey Policy Common Encryption Cbcs Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay  - A 
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - Enabled
Protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- Clear
Key StreamingEncryption Policy Common Encryption Cbcs Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content StreamingKey Policy Common Encryption Cbcs Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay  - A 
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - Enabled
Protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- clear
Key StreamingEncryption Policy Common Encryption Cbcs Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StreamingKey Policy Common Encryption Cbcs Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay  - A 
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - enabled
Protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- clear
Key StreamingEncryption Policy Common Encryption Cbcs Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StreamingKey Policy Common Encryption Cbcs Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay  - A 
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - enabled
Protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- clear_
key_ Streamingencryption Policy Common Encryption Cbcs Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - default_
content_ Streamingkey Policy Common Encryption Cbcs Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm_
fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay  - A 
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - enabled_
protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- clear
Key Property MapEncryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content Property MapKey  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Fairplay Property Map - A 
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - enabled
Protocols Property Map - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
StreamingPolicyCommonEncryptionCbcsClearKeyEncryption, StreamingPolicyCommonEncryptionCbcsClearKeyEncryptionArgs                
- Custom
Keys stringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- Custom
Keys stringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- custom
Keys StringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- custom
Keys stringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- custom_
keys_ stracquisition_ url_ template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- custom
Keys StringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
StreamingPolicyCommonEncryptionCbcsDefaultContentKey, StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs                
- Label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - Policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- Label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - Policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label String
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name String - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label str
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy_
name str - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label String
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name String - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyCommonEncryptionCbcsDrmFairplay, StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs              
- Allow
Persistent boolLicense  - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
 - Custom
License stringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- Allow
Persistent boolLicense  - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
 - Custom
License stringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- allow
Persistent BooleanLicense  - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
 - custom
License StringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- allow
Persistent booleanLicense  - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
 - custom
License stringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- allow_
persistent_ boollicense  - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
 - custom_
license_ stracquisition_ url_ template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- allow
Persistent BooleanLicense  - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
 - custom
License StringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyCommonEncryptionCbcsEnabledProtocols, StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs              
- Dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - Download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - Hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - Smooth
Streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- Dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - Download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - Hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - Smooth
Streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash Boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download Boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls Boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth_
streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash Boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download Boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls Boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyCommonEncryptionCenc, StreamingPolicyCommonEncryptionCencArgs          
- Clear
Key StreamingEncryption Policy Common Encryption Cenc Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - Clear
Tracks List<StreamingPolicy Common Encryption Cenc Clear Track>  - One or more 
clear_trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - Content
Key List<StreamingTo Track Mappings Policy Common Encryption Cenc Content Key To Track Mapping>  - One or more 
content_key_to_track_mappingblocks as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content StreamingKey Policy Common Encryption Cenc Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Playready StreamingPolicy Common Encryption Cenc Drm Playready  - A 
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Widevine stringCustom License Acquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 - Enabled
Protocols StreamingPolicy Common Encryption Cenc Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- Clear
Key StreamingEncryption Policy Common Encryption Cenc Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - Clear
Tracks []StreamingPolicy Common Encryption Cenc Clear Track  - One or more 
clear_trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - Content
Key []StreamingTo Track Mappings Policy Common Encryption Cenc Content Key To Track Mapping  - One or more 
content_key_to_track_mappingblocks as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content StreamingKey Policy Common Encryption Cenc Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Playready StreamingPolicy Common Encryption Cenc Drm Playready  - A 
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Widevine stringCustom License Acquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 - Enabled
Protocols StreamingPolicy Common Encryption Cenc Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- clear
Key StreamingEncryption Policy Common Encryption Cenc Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - clear
Tracks List<StreamingPolicy Common Encryption Cenc Clear Track>  - One or more 
clear_trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - content
Key List<StreamingTo Track Mappings Policy Common Encryption Cenc Content Key To Track Mapping>  - One or more 
content_key_to_track_mappingblocks as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StreamingKey Policy Common Encryption Cenc Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Playready StreamingPolicy Common Encryption Cenc Drm Playready  - A 
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Widevine StringCustom License Acquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 - enabled
Protocols StreamingPolicy Common Encryption Cenc Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- clear
Key StreamingEncryption Policy Common Encryption Cenc Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - clear
Tracks StreamingPolicy Common Encryption Cenc Clear Track[]  - One or more 
clear_trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - content
Key StreamingTo Track Mappings Policy Common Encryption Cenc Content Key To Track Mapping[]  - One or more 
content_key_to_track_mappingblocks as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StreamingKey Policy Common Encryption Cenc Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Playready StreamingPolicy Common Encryption Cenc Drm Playready  - A 
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Widevine stringCustom License Acquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 - enabled
Protocols StreamingPolicy Common Encryption Cenc Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- clear_
key_ Streamingencryption Policy Common Encryption Cenc Clear Key Encryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - clear_
tracks Sequence[StreamingPolicy Common Encryption Cenc Clear Track]  - One or more 
clear_trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - content_
key_ Sequence[Streamingto_ track_ mappings Policy Common Encryption Cenc Content Key To Track Mapping]  - One or more 
content_key_to_track_mappingblocks as defined below. Changing this forces a new Streaming Policy to be created. - default_
content_ Streamingkey Policy Common Encryption Cenc Default Content Key  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm_
playready StreamingPolicy Common Encryption Cenc Drm Playready  - A 
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm_
widevine_ strcustom_ license_ acquisition_ url_ template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 - enabled_
protocols StreamingPolicy Common Encryption Cenc Enabled Protocols  - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
- clear
Key Property MapEncryption  - A 
clear_key_encryptionblock as defined below. Changing this forces a new Streaming Policy to be created. - clear
Tracks List<Property Map> - One or more 
clear_trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - content
Key List<Property Map>To Track Mappings  - One or more 
content_key_to_track_mappingblocks as defined below. Changing this forces a new Streaming Policy to be created. - default
Content Property MapKey  - A 
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Playready Property Map - A 
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Widevine StringCustom License Acquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 - enabled
Protocols Property Map - A 
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. 
StreamingPolicyCommonEncryptionCencClearKeyEncryption, StreamingPolicyCommonEncryptionCencClearKeyEncryptionArgs                
- Custom
Keys stringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- Custom
Keys stringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- custom
Keys StringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- custom
Keys stringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- custom_
keys_ stracquisition_ url_ template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
- custom
Keys StringAcquisition Url Template  The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
Note Either
clear_key_encryptionordrmmust be specified.
StreamingPolicyCommonEncryptionCencClearTrack, StreamingPolicyCommonEncryptionCencClearTrackArgs              
- Conditions
List<Streaming
Policy Common Encryption Cenc Clear Track Condition>  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- Conditions
[]Streaming
Policy Common Encryption Cenc Clear Track Condition  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- conditions
List<Streaming
Policy Common Encryption Cenc Clear Track Condition>  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- conditions
Streaming
Policy Common Encryption Cenc Clear Track Condition[]  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- conditions
Sequence[Streaming
Policy Common Encryption Cenc Clear Track Condition]  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- conditions List<Property Map>
 - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
StreamingPolicyCommonEncryptionCencClearTrackCondition, StreamingPolicyCommonEncryptionCencClearTrackConditionArgs                
- Operation string
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - Property string
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - Value string
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- Operation string
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - Property string
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - Value string
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- operation String
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - property String
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - value String
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- operation string
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - property string
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - value string
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- operation str
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - property str
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - value str
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- operation String
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - property String
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - value String
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyCommonEncryptionCencContentKeyToTrackMapping, StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingArgs                    
- Tracks
List<Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track>  - One or more 
trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - Label string
 - Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - Policy
Name string - The policy used by the default key. Changing this forces a new Streaming Policy to be created.
 
- Tracks
[]Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track  - One or more 
trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - Label string
 - Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - Policy
Name string - The policy used by the default key. Changing this forces a new Streaming Policy to be created.
 
- tracks
List<Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track>  - One or more 
trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - label String
 - Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name String - The policy used by the default key. Changing this forces a new Streaming Policy to be created.
 
- tracks
Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track[]  - One or more 
trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - label string
 - Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name string - The policy used by the default key. Changing this forces a new Streaming Policy to be created.
 
- tracks
Sequence[Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track]  - One or more 
trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - label str
 - Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy_
name str - The policy used by the default key. Changing this forces a new Streaming Policy to be created.
 
- tracks List<Property Map>
 - One or more 
trackblocks as defined below. Changing this forces a new Streaming Policy to be created. - label String
 - Specifies the content key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name String - The policy used by the default key. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrack, StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackArgs                      
- Conditions
List<Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track Condition>  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- Conditions
[]Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track Condition  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- conditions
List<Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track Condition>  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- conditions
Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track Condition[]  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- conditions
Sequence[Streaming
Policy Common Encryption Cenc Content Key To Track Mapping Track Condition]  - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
- conditions List<Property Map>
 - One or more 
conditionblocks as defined below. Changing this forces a new Streaming Policy to be created. 
StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackCondition, StreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionArgs                        
- Operation string
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - Property string
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - Value string
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- Operation string
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - Property string
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - Value string
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- operation String
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - property String
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - value String
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- operation string
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - property string
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - value string
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- operation str
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - property str
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - value str
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
- operation String
 - The track property condition operation. Possible value is 
Equal. Changing this forces a new Streaming Policy to be created. - property String
 - The track property type. Possible value is 
FourCC. Changing this forces a new Streaming Policy to be created. - value String
 - The track property value. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyCommonEncryptionCencDefaultContentKey, StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs                
- Label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - Policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- Label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - Policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label String
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name String - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label str
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy_
name str - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label String
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name String - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyCommonEncryptionCencDrmPlayready, StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs              
- Custom
Attributes string - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
 - Custom
License stringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- Custom
Attributes string - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
 - Custom
License stringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- custom
Attributes String - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
 - custom
License StringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- custom
Attributes string - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
 - custom
License stringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- custom_
attributes str - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
 - custom_
license_ stracquisition_ url_ template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
- custom
Attributes String - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
 - custom
License StringAcquisition Url Template  - The URL template for the custom service that delivers licenses to the end user. This is not required when using Azure Media Services for issuing licenses. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyCommonEncryptionCencEnabledProtocols, StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs              
- Dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - Download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - Hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - Smooth
Streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- Dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - Download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - Hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - Smooth
Streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash Boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download Boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls Boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth_
streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash Boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download Boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls Boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyEnvelopeEncryption, StreamingPolicyEnvelopeEncryptionArgs        
- Custom
Keys stringAcquisition Url Template  - The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
 - Default
Content StreamingKey Policy Envelope Encryption Default Content Key  - A 
default_content_keyblock as defined above. Changing this forces a new Streaming Policy to be created. - Enabled
Protocols StreamingPolicy Envelope Encryption Enabled Protocols  - A 
enabled_protocolsblock as defined above. Changing this forces a new Streaming Policy to be created. 
- Custom
Keys stringAcquisition Url Template  - The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
 - Default
Content StreamingKey Policy Envelope Encryption Default Content Key  - A 
default_content_keyblock as defined above. Changing this forces a new Streaming Policy to be created. - Enabled
Protocols StreamingPolicy Envelope Encryption Enabled Protocols  - A 
enabled_protocolsblock as defined above. Changing this forces a new Streaming Policy to be created. 
- custom
Keys StringAcquisition Url Template  - The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
 - default
Content StreamingKey Policy Envelope Encryption Default Content Key  - A 
default_content_keyblock as defined above. Changing this forces a new Streaming Policy to be created. - enabled
Protocols StreamingPolicy Envelope Encryption Enabled Protocols  - A 
enabled_protocolsblock as defined above. Changing this forces a new Streaming Policy to be created. 
- custom
Keys stringAcquisition Url Template  - The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
 - default
Content StreamingKey Policy Envelope Encryption Default Content Key  - A 
default_content_keyblock as defined above. Changing this forces a new Streaming Policy to be created. - enabled
Protocols StreamingPolicy Envelope Encryption Enabled Protocols  - A 
enabled_protocolsblock as defined above. Changing this forces a new Streaming Policy to be created. 
- custom_
keys_ stracquisition_ url_ template  - The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
 - default_
content_ Streamingkey Policy Envelope Encryption Default Content Key  - A 
default_content_keyblock as defined above. Changing this forces a new Streaming Policy to be created. - enabled_
protocols StreamingPolicy Envelope Encryption Enabled Protocols  - A 
enabled_protocolsblock as defined above. Changing this forces a new Streaming Policy to be created. 
- custom
Keys StringAcquisition Url Template  - The URL template for the custom service that delivers content keys to the end user. This is not required when using Azure Media Services for issuing keys. Changing this forces a new Streaming Policy to be created.
 - default
Content Property MapKey  - A 
default_content_keyblock as defined above. Changing this forces a new Streaming Policy to be created. - enabled
Protocols Property Map - A 
enabled_protocolsblock as defined above. Changing this forces a new Streaming Policy to be created. 
StreamingPolicyEnvelopeEncryptionDefaultContentKey, StreamingPolicyEnvelopeEncryptionDefaultContentKeyArgs              
- Label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - Policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- Label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - Policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label String
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name String - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label string
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name string - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label str
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy_
name str - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
- label String
 - Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
 - policy
Name String - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyEnvelopeEncryptionEnabledProtocols, StreamingPolicyEnvelopeEncryptionEnabledProtocolsArgs            
- Dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - Download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - Hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - Smooth
Streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- Dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - Download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - Hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - Smooth
Streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash Boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download Boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls Boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth_
streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash Boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download Boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls Boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
StreamingPolicyNoEncryptionEnabledProtocols, StreamingPolicyNoEncryptionEnabledProtocolsArgs            
- Dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - Download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - Hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - Smooth
Streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- Dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - Download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - Hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - Smooth
Streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash Boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download Boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls Boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash bool
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download bool
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls bool
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth_
streaming bool - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
- dash Boolean
 - Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
 - download Boolean
 - Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
 - hls Boolean
 - Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
 - smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
 
Import
Streaming Policies can be imported using the resource id, e.g.
$ pulumi import azure:media/streamingPolicy:StreamingPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaServices/account1/streamingPolicies/policy1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
 - Azure Classic pulumi/pulumi-azure
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
azurermTerraform Provider.