ServiceAccountArgs

data class ServiceAccountArgs(val encryption: Output<ServiceAccountEncryptionArgs>? = null, val identity: Output<ServiceAccountIdentityArgs>? = null, val keyDeliveryAccessControl: Output<ServiceAccountKeyDeliveryAccessControlArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val publicNetworkAccessEnabled: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val storageAccounts: Output<List<ServiceAccountStorageAccountArgs>>? = null, val storageAuthenticationType: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceAccountArgs>

Manages a Media Services Account.

Example Usage

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 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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.storageAccounts(ServiceAccountStorageAccountArgs.builder()
.id(exampleAccount.id())
.isPrimary(true)
.build())
.build());
}
}

Import

Media Services Accounts can be imported using the resource id, e.g.

$ pulumi import azure:media/serviceAccount:ServiceAccount account /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Media/mediaServices/account1

Constructors

Link copied to clipboard
fun ServiceAccountArgs(encryption: Output<ServiceAccountEncryptionArgs>? = null, identity: Output<ServiceAccountIdentityArgs>? = null, keyDeliveryAccessControl: Output<ServiceAccountKeyDeliveryAccessControlArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, publicNetworkAccessEnabled: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, storageAccounts: Output<List<ServiceAccountStorageAccountArgs>>? = null, storageAuthenticationType: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

Link copied to clipboard

An encryption block as defined below.

Link copied to clipboard

An identity block as defined below.

Link copied to clipboard

A key_delivery_access_control block as defined below.

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

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

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

Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

Link copied to clipboard
val publicNetworkAccessEnabled: Output<Boolean>? = null

Whether public network access is allowed for this server. Defaults to true.

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

The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.

Link copied to clipboard

One or more storage_account blocks as defined below.

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

Specifies the storage authentication type. Possible value is ManagedIdentity or System.

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

A mapping of tags assigned to the resource.