Streaming Endpoint Args
data class StreamingEndpointArgs(val accessControl: Output<StreamingEndpointAccessControlArgs>? = null, val accountName: Output<String>? = null, val autoStart: Output<Boolean>? = null, val availabilitySetName: Output<String>? = null, val cdnEnabled: Output<Boolean>? = null, val cdnProfile: Output<String>? = null, val cdnProvider: Output<String>? = null, val crossSiteAccessPolicies: Output<CrossSiteAccessPoliciesArgs>? = null, val customHostNames: Output<List<String>>? = null, val description: Output<String>? = null, val location: Output<String>? = null, val maxCacheAge: Output<Double>? = null, val resourceGroupName: Output<String>? = null, val scaleUnits: Output<Int>? = null, val streamingEndpointName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<StreamingEndpointArgs>
The streaming endpoint. API Version: 2020-05-01.
Example Usage
Create a streaming endpoint
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var streamingEndpoint = new AzureNative.Media.StreamingEndpoint("streamingEndpoint", new()
{
AccessControl = new AzureNative.Media.Inputs.StreamingEndpointAccessControlArgs
{
Akamai = new AzureNative.Media.Inputs.AkamaiAccessControlArgs
{
AkamaiSignatureHeaderAuthenticationKeyList = new[]
{
new AzureNative.Media.Inputs.AkamaiSignatureHeaderAuthenticationKeyArgs
{
Base64Key = "dGVzdGlkMQ==",
Expiration = "2029-12-31T16:00:00-08:00",
Identifier = "id1",
},
new AzureNative.Media.Inputs.AkamaiSignatureHeaderAuthenticationKeyArgs
{
Base64Key = "dGVzdGlkMQ==",
Expiration = "2030-12-31T16:00:00-08:00",
Identifier = "id2",
},
},
},
Ip = new AzureNative.Media.Inputs.IPAccessControlArgs
{
Allow = new[]
{
new AzureNative.Media.Inputs.IPRangeArgs
{
Address = "192.168.1.1",
Name = "AllowedIp",
},
},
},
},
AccountName = "slitestmedia10",
AvailabilitySetName = "availableset",
CdnEnabled = false,
Description = "test event 1",
Location = "West US",
ResourceGroupName = "mediaresources",
ScaleUnits = 1,
StreamingEndpointName = "myStreamingEndpoint1",
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.media.StreamingEndpoint;
import com.pulumi.azurenative.media.StreamingEndpointArgs;
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 streamingEndpoint = new StreamingEndpoint("streamingEndpoint", StreamingEndpointArgs.builder()
.accessControl(Map.ofEntries(
Map.entry("akamai", Map.of("akamaiSignatureHeaderAuthenticationKeyList",
Map.ofEntries(
Map.entry("base64Key", "dGVzdGlkMQ=="),
Map.entry("expiration", "2029-12-31T16:00:00-08:00"),
Map.entry("identifier", "id1")
),
Map.ofEntries(
Map.entry("base64Key", "dGVzdGlkMQ=="),
Map.entry("expiration", "2030-12-31T16:00:00-08:00"),
Map.entry("identifier", "id2")
))),
Map.entry("ip", Map.of("allow", Map.ofEntries(
Map.entry("address", "192.168.1.1"),
Map.entry("name", "AllowedIp")
)))
))
.accountName("slitestmedia10")
.availabilitySetName("availableset")
.cdnEnabled(false)
.description("test event 1")
.location("West US")
.resourceGroupName("mediaresources")
.scaleUnits(1)
.streamingEndpointName("myStreamingEndpoint1")
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:media:StreamingEndpoint myStreamingEndpoint1 /subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(accessControl: Output<StreamingEndpointAccessControlArgs>? = null, accountName: Output<String>? = null, autoStart: Output<Boolean>? = null, availabilitySetName: Output<String>? = null, cdnEnabled: Output<Boolean>? = null, cdnProfile: Output<String>? = null, cdnProvider: Output<String>? = null, crossSiteAccessPolicies: Output<CrossSiteAccessPoliciesArgs>? = null, customHostNames: Output<List<String>>? = null, description: Output<String>? = null, location: Output<String>? = null, maxCacheAge: Output<Double>? = null, resourceGroupName: Output<String>? = null, scaleUnits: Output<Int>? = null, streamingEndpointName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
The access control definition of the streaming endpoint.
Link copied to clipboard
The Media Services account name.
Link copied to clipboard
This feature is deprecated, do not set a value for this property.
Link copied to clipboard
The CDN enabled flag.
Link copied to clipboard
The CDN profile name.
Link copied to clipboard
The CDN provider name.
Link copied to clipboard
The streaming endpoint access policies.
Link copied to clipboard
The custom host names of the streaming endpoint
Link copied to clipboard
The streaming endpoint description.
Link copied to clipboard
Max cache age
Link copied to clipboard
The name of the resource group within the Azure subscription.
Link copied to clipboard
The number of scale units. Use the Scale operation to adjust this value.
Link copied to clipboard
The name of the streaming endpoint, maximum length is 24.