Account

class Account : KotlinCustomResource

An account data transfer object. Uses Azure REST API version 2021-08-01. In version 2.x of the Azure Native provider, it used API version 2021-08-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 = AzureNative.DataShare.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/v2"
"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(datashare.TypeSystemAssigned),
},
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 com.pulumi.azurenative.datashare.inputs.IdentityArgs;
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(IdentityArgs.builder()
.type("SystemAssigned")
.build())
.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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val createdAt: Output<String>

Time at which the account was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Identity Info on the Account

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

Location of the azure resource.

Link copied to clipboard
val name: Output<String>

Name of the azure resource

Link copied to clipboard

Provisioning state of the Account

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

System Data of the Azure resource.

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

Tags on the azure resource.

Link copied to clipboard
val type: Output<String>

Type of the azure resource

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userEmail: Output<String>

Email of the user who created the resource

Link copied to clipboard
val userName: Output<String>

Name of the user who created the resource