azure-native.datashare.Account

Explore with Pulumi AI

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 pulumi
import pulumi_azure_native as azure_native

account = azure_native.datashare.Account("account",
    account_name="Account1",
    identity=azure_native.datashare.IdentityArgs(
        type="SystemAssigned",
    ),
    location="West US 2",
    resource_group_name="SampleResourceGroup",
    tags={
        "tag1": "Red",
        "tag2": "White",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const account = new azure_native.datashare.Account("account", {
    accountName: "Account1",
    identity: {
        type: "SystemAssigned",
    },
    location: "West US 2",
    resourceGroupName: "SampleResourceGroup",
    tags: {
        tag1: "Red",
        tag2: "White",
    },
});
resources:
  account:
    type: azure-native:datashare:Account
    properties:
      accountName: Account1
      identity:
        type: SystemAssigned
      location: West US 2
      resourceGroupName: SampleResourceGroup
      tags:
        tag1: Red
        tag2: White

Create Account Resource

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            identity: Optional[IdentityArgs] = None,
            location: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)
@overload
def Account(resource_name: str,
            args: AccountArgs,
            opts: Optional[ResourceOptions] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: azure-native:datashare:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Account Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Account resource accepts the following input properties:

Identity Pulumi.AzureNative.DataShare.Inputs.IdentityArgs

Identity Info on the Account

ResourceGroupName string

The resource group name.

AccountName string

The name of the share account.

Location string

Location of the azure resource.

Tags Dictionary<string, string>

Tags on the azure resource.

Identity IdentityArgs

Identity Info on the Account

ResourceGroupName string

The resource group name.

AccountName string

The name of the share account.

Location string

Location of the azure resource.

Tags map[string]string

Tags on the azure resource.

identity IdentityArgs

Identity Info on the Account

resourceGroupName String

The resource group name.

accountName String

The name of the share account.

location String

Location of the azure resource.

tags Map<String,String>

Tags on the azure resource.

identity IdentityArgs

Identity Info on the Account

resourceGroupName string

The resource group name.

accountName string

The name of the share account.

location string

Location of the azure resource.

tags {[key: string]: string}

Tags on the azure resource.

identity IdentityArgs

Identity Info on the Account

resource_group_name str

The resource group name.

account_name str

The name of the share account.

location str

Location of the azure resource.

tags Mapping[str, str]

Tags on the azure resource.

identity Property Map

Identity Info on the Account

resourceGroupName String

The resource group name.

accountName String

The name of the share account.

location String

Location of the azure resource.

tags Map<String>

Tags on the azure resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

CreatedAt string

Time at which the account was created.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of the azure resource

ProvisioningState string

Provisioning state of the Account

SystemData Pulumi.AzureNative.DataShare.Outputs.SystemDataResponse

System Data of the Azure resource.

Type string

Type of the azure resource

UserEmail string

Email of the user who created the resource

UserName string

Name of the user who created the resource

CreatedAt string

Time at which the account was created.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of the azure resource

ProvisioningState string

Provisioning state of the Account

SystemData SystemDataResponse

System Data of the Azure resource.

Type string

Type of the azure resource

UserEmail string

Email of the user who created the resource

UserName string

Name of the user who created the resource

createdAt String

Time at which the account was created.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of the azure resource

provisioningState String

Provisioning state of the Account

systemData SystemDataResponse

System Data of the Azure resource.

type String

Type of the azure resource

userEmail String

Email of the user who created the resource

userName String

Name of the user who created the resource

createdAt string

Time at which the account was created.

id string

The provider-assigned unique ID for this managed resource.

name string

Name of the azure resource

provisioningState string

Provisioning state of the Account

systemData SystemDataResponse

System Data of the Azure resource.

type string

Type of the azure resource

userEmail string

Email of the user who created the resource

userName string

Name of the user who created the resource

created_at str

Time at which the account was created.

id str

The provider-assigned unique ID for this managed resource.

name str

Name of the azure resource

provisioning_state str

Provisioning state of the Account

system_data SystemDataResponse

System Data of the Azure resource.

type str

Type of the azure resource

user_email str

Email of the user who created the resource

user_name str

Name of the user who created the resource

createdAt String

Time at which the account was created.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of the azure resource

provisioningState String

Provisioning state of the Account

systemData Property Map

System Data of the Azure resource.

type String

Type of the azure resource

userEmail String

Email of the user who created the resource

userName String

Name of the user who created the resource

Supporting Types

Identity

Type string | Type

Identity Type

type String | Type

Identity Type

type string | Type

Identity Type

type str | Type

Identity Type

type String | "SystemAssigned"

Identity Type

IdentityResponse

PrincipalId string

service principal Id

TenantId string

Tenant Id

Type string

Identity Type

PrincipalId string

service principal Id

TenantId string

Tenant Id

Type string

Identity Type

principalId String

service principal Id

tenantId String

Tenant Id

type String

Identity Type

principalId string

service principal Id

tenantId string

Tenant Id

type string

Identity Type

principal_id str

service principal Id

tenant_id str

Tenant Id

type str

Identity Type

principalId String

service principal Id

tenantId String

Tenant Id

type String

Identity Type

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The type of identity that last modified the resource.

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The type of identity that last modified the resource.

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The type of identity that last modified the resource.

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The type of identity that last modified the resource.

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The type of identity that last modified the resource.

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The type of identity that last modified the resource.

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

Type

SystemAssigned
SystemAssigned
TypeSystemAssigned
SystemAssigned
SystemAssigned
SystemAssigned
SystemAssigned
SystemAssigned
SYSTEM_ASSIGNED
SystemAssigned
"SystemAssigned"
SystemAssigned

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 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0