MediaServiceArgs

data class MediaServiceArgs(val accountName: Output<String>? = null, val encryption: Output<AccountEncryptionArgs>? = null, val identity: Output<MediaServiceIdentityArgs>? = null, val keyDelivery: Output<KeyDeliveryArgs>? = null, val location: Output<String>? = null, val minimumTlsVersion: Output<Either<String, MinimumTlsVersion>>? = null, val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null, val resourceGroupName: Output<String>? = null, val storageAccounts: Output<List<StorageAccountArgs>>? = null, val storageAuthentication: Output<Either<String, StorageAuthentication>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MediaServiceArgs>

A Media Services account. Uses Azure REST API version 2023-01-01. In version 2.x of the Azure Native provider, it used API version 2023-01-01. Other available API versions: 2015-10-01, 2018-03-30-preview, 2018-06-01-preview, 2018-07-01, 2020-05-01, 2021-05-01, 2021-06-01, 2021-11-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native media [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create a Media Services account

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var mediaService = new AzureNative.Media.MediaService("mediaService", new()
{
AccountName = "contososports",
Location = "South Central US",
ResourceGroupName = "contosorg",
StorageAccounts = new[]
{
new AzureNative.Media.Inputs.StorageAccountArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount",
Type = AzureNative.Media.StorageAccountType.Primary,
},
},
Tags =
{
{ "key1", "value1" },
{ "key2", "value2" },
},
});
});
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := media.NewMediaService(ctx, "mediaService", &media.MediaServiceArgs{
AccountName: pulumi.String("contososports"),
Location: pulumi.String("South Central US"),
ResourceGroupName: pulumi.String("contosorg"),
StorageAccounts: media.StorageAccountArray{
&media.StorageAccountArgs{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount"),
Type: pulumi.String(media.StorageAccountTypePrimary),
},
},
Tags: pulumi.StringMap{
"key1": pulumi.String("value1"),
"key2": pulumi.String("value2"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.media.MediaService;
import com.pulumi.azurenative.media.MediaServiceArgs;
import com.pulumi.azurenative.media.inputs.StorageAccountArgs;
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 mediaService = new MediaService("mediaService", MediaServiceArgs.builder()
.accountName("contososports")
.location("South Central US")
.resourceGroupName("contosorg")
.storageAccounts(StorageAccountArgs.builder()
.id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount")
.type("Primary")
.build())
.tags(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "value2")
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:media:MediaService contososports /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, encryption: Output<AccountEncryptionArgs>? = null, identity: Output<MediaServiceIdentityArgs>? = null, keyDelivery: Output<KeyDeliveryArgs>? = null, location: Output<String>? = null, minimumTlsVersion: Output<Either<String, MinimumTlsVersion>>? = null, publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null, resourceGroupName: Output<String>? = null, storageAccounts: Output<List<StorageAccountArgs>>? = null, storageAuthentication: Output<Either<String, StorageAuthentication>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val accountName: Output<String>? = null

The Media Services account name.

Link copied to clipboard
val encryption: Output<AccountEncryptionArgs>? = null

The account encryption properties.

Link copied to clipboard
val identity: Output<MediaServiceIdentityArgs>? = null

The Managed Identity for the Media Services account.

Link copied to clipboard
val keyDelivery: Output<KeyDeliveryArgs>? = null

The Key Delivery properties for Media Services account.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val minimumTlsVersion: Output<Either<String, MinimumTlsVersion>>? = null

The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used.

Link copied to clipboard
val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null

Whether or not public network access is allowed for resources under the Media Services account.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group within the Azure subscription.

Link copied to clipboard

The storage accounts for this resource.

Link copied to clipboard
val storageAuthentication: Output<Either<String, StorageAuthentication>>? = null
Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): MediaServiceArgs