AccountArgs

data class AccountArgs(val accountName: Output<String>? = null, val identity: Output<IdentityArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AccountArgs>

An account data transfer object. API Version: 2020-09-01.

Example Usage

Accounts_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.DataShare.Account("account", new()
{
AccountName = "Account1",
Identity = new AzureNative.DataShare.Inputs.IdentityArgs
{
Type = "SystemAssigned",
},
Location = "West US 2",
ResourceGroupName = "SampleResourceGroup",
Tags =
{
{ "tag1", "Red" },
{ "tag2", "White" },
},
});
});
package main
import (
datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datashare.NewAccount(ctx, "account", &datashare.AccountArgs{
AccountName: pulumi.String("Account1"),
Identity: &datashare.IdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
Location: pulumi.String("West US 2"),
ResourceGroupName: pulumi.String("SampleResourceGroup"),
Tags: pulumi.StringMap{
"tag1": pulumi.String("Red"),
"tag2": pulumi.String("White"),
},
})
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.datashare.Account;
import com.pulumi.azurenative.datashare.AccountArgs;
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 account = new Account("account", AccountArgs.builder()
.accountName("Account1")
.identity(Map.of("type", "SystemAssigned"))
.location("West US 2")
.resourceGroupName("SampleResourceGroup")
.tags(Map.ofEntries(
Map.entry("tag1", "Red"),
Map.entry("tag2", "White")
))
.build());
}
}

Import

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

$ pulumi import azure-native:datashare:Account Account1 /subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, identity: Output<IdentityArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The name of the share account.

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

Identity Info on the Account

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

Location of the azure resource.

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

The resource group name.

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

Tags on the azure resource.

Functions

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