VideoAnalyzerArgs

data class VideoAnalyzerArgs(val accountName: Output<String>? = null, val encryption: Output<AccountEncryptionArgs>? = null, val identity: Output<VideoAnalyzerIdentityArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageAccounts: Output<List<StorageAccountArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<VideoAnalyzerArgs>

A Video Analyzer account. API Version: 2021-05-01-preview.

Example Usage

Create a Video Analyzer account

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var videoAnalyzer = new AzureNative.VideoAnalyzer.VideoAnalyzer("videoAnalyzer", new()
{
AccountName = "contosotv",
Encryption = new AzureNative.VideoAnalyzer.Inputs.AccountEncryptionArgs
{
Type = "SystemKey",
},
Identity = new AzureNative.VideoAnalyzer.Inputs.VideoAnalyzerIdentityArgs
{
Type = "UserAssigned",
UserAssignedIdentities =
{
{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", null },
{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2", null },
{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id3", null },
},
},
Location = "South Central US",
ResourceGroupName = "contoso",
StorageAccounts = new[]
{
new AzureNative.VideoAnalyzer.Inputs.StorageAccountArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/storage1",
Identity = new AzureNative.VideoAnalyzer.Inputs.ResourceIdentityArgs
{
UserAssignedIdentity = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2",
},
},
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
videoanalyzer "github.com/pulumi/pulumi-azure-native-sdk/videoanalyzer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := videoanalyzer.NewVideoAnalyzer(ctx, "videoAnalyzer", &videoanalyzer.VideoAnalyzerArgs{
AccountName: pulumi.String("contosotv"),
Encryption: &videoanalyzer.AccountEncryptionArgs{
Type: pulumi.String("SystemKey"),
},
Identity: &videoanalyzer.VideoAnalyzerIdentityArgs{
Type: pulumi.String("UserAssigned"),
UserAssignedIdentities: pulumi.AnyMap{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": nil,
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": nil,
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id3": nil,
},
},
Location: pulumi.String("South Central US"),
ResourceGroupName: pulumi.String("contoso"),
StorageAccounts: []videoanalyzer.StorageAccountArgs{
{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/storage1"),
Identity: {
UserAssignedIdentity: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2"),
},
},
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": 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.videoanalyzer.VideoAnalyzer;
import com.pulumi.azurenative.videoanalyzer.VideoAnalyzerArgs;
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 videoAnalyzer = new VideoAnalyzer("videoAnalyzer", VideoAnalyzerArgs.builder()
.accountName("contosotv")
.encryption(Map.of("type", "SystemKey"))
.identity(Map.ofEntries(
Map.entry("type", "UserAssigned"),
Map.entry("userAssignedIdentities", Map.ofEntries(
Map.entry("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", ),
Map.entry("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2", ),
Map.entry("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id3", )
))
))
.location("South Central US")
.resourceGroupName("contoso")
.storageAccounts(Map.ofEntries(
Map.entry("id", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/storage1"),
Map.entry("identity", Map.of("userAssignedIdentity", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2"))
))
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}

Import

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

$ pulumi import azure-native:videoanalyzer:VideoAnalyzer contosomovies /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/videoAnalyzers/contosomovies

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, encryption: Output<AccountEncryptionArgs>? = null, identity: Output<VideoAnalyzerIdentityArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, storageAccounts: Output<List<StorageAccountArgs>>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The Video Analyzer account name.

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

The account encryption properties.

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

The set of managed identities associated with the Video Analyzer resource.

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

The geo-location where the resource lives

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

The name of the resource group. The name is case insensitive.

Link copied to clipboard

The storage accounts for this resource.

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

Resource tags.

Functions

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