azure-native.datashare.Account
Explore with Pulumi AI
An account data transfer object. Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 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 = 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 pulumi
import pulumi_azure_native as azure_native
account = azure_native.datashare.Account("account",
account_name="Account1",
identity={
"type": azure_native.datashare.Type.SYSTEM_ASSIGNED,
},
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: azure_native.datashare.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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
args: AccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[IdentityArgs] = None,
resource_group_name: Optional[str] = None,
account_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleaccountResourceResourceFromDatashare = new AzureNative.DataShare.Account("exampleaccountResourceResourceFromDatashare", new()
{
Identity = new AzureNative.DataShare.Inputs.IdentityArgs
{
Type = "string",
},
ResourceGroupName = "string",
AccountName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := datashare.NewAccount(ctx, "exampleaccountResourceResourceFromDatashare", &datashare.AccountArgs{
Identity: &datashare.IdentityArgs{
Type: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
AccountName: pulumi.String("string"),
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleaccountResourceResourceFromDatashare = new Account("exampleaccountResourceResourceFromDatashare", AccountArgs.builder()
.identity(IdentityArgs.builder()
.type("string")
.build())
.resourceGroupName("string")
.accountName("string")
.location("string")
.tags(Map.of("string", "string"))
.build());
exampleaccount_resource_resource_from_datashare = azure_native.datashare.Account("exampleaccountResourceResourceFromDatashare",
identity={
"type": "string",
},
resource_group_name="string",
account_name="string",
location="string",
tags={
"string": "string",
})
const exampleaccountResourceResourceFromDatashare = new azure_native.datashare.Account("exampleaccountResourceResourceFromDatashare", {
identity: {
type: "string",
},
resourceGroupName: "string",
accountName: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:datashare:Account
properties:
accountName: string
identity:
type: string
location: string
resourceGroupName: string
tags:
string: string
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.
Azure Native. Data Share. Inputs. Identity - Identity Info on the Account
- Resource
Group stringName - The resource group name.
- Account
Name string - The name of the share account.
- Location string
- Location of the azure resource.
- Dictionary<string, string>
- Tags on the azure resource.
- Identity
Identity
Args - Identity Info on the Account
- Resource
Group stringName - The resource group name.
- Account
Name string - The name of the share account.
- Location string
- Location of the azure resource.
- map[string]string
- Tags on the azure resource.
- identity Identity
- Identity Info on the Account
- resource
Group StringName - The resource group name.
- account
Name String - The name of the share account.
- location String
- Location of the azure resource.
- Map<String,String>
- Tags on the azure resource.
- identity Identity
- Identity Info on the Account
- resource
Group stringName - The resource group name.
- account
Name string - The name of the share account.
- location string
- Location of the azure resource.
- {[key: string]: string}
- Tags on the azure resource.
- identity
Identity
Args - Identity Info on the Account
- resource_
group_ strname - The resource group name.
- account_
name str - The name of the share account.
- location str
- Location of the azure resource.
- Mapping[str, str]
- Tags on the azure resource.
- identity Property Map
- Identity Info on the Account
- resource
Group StringName - The resource group name.
- account
Name String - The name of the share account.
- location String
- Location of the azure resource.
- 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:
- Created
At 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
- Provisioning
State string - Provisioning state of the Account
- System
Data Pulumi.Azure Native. Data Share. Outputs. System Data Response - System Data of the Azure resource.
- Type string
- Type of the azure resource
- User
Email string - Email of the user who created the resource
- User
Name string - Name of the user who created the resource
- Created
At 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
- Provisioning
State string - Provisioning state of the Account
- System
Data SystemData Response - System Data of the Azure resource.
- Type string
- Type of the azure resource
- User
Email string - Email of the user who created the resource
- User
Name string - Name of the user who created the resource
- created
At 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
- provisioning
State String - Provisioning state of the Account
- system
Data SystemData Response - System Data of the Azure resource.
- type String
- Type of the azure resource
- user
Email String - Email of the user who created the resource
- user
Name String - Name of the user who created the resource
- created
At 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
- provisioning
State string - Provisioning state of the Account
- system
Data SystemData Response - System Data of the Azure resource.
- type string
- Type of the azure resource
- user
Email string - Email of the user who created the resource
- user
Name 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 SystemData Response - 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
- created
At 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
- provisioning
State String - Provisioning state of the Account
- system
Data Property Map - System Data of the Azure resource.
- type String
- Type of the azure resource
- user
Email String - Email of the user who created the resource
- user
Name String - Name of the user who created the resource
Supporting Types
Identity, IdentityArgs
- Type
string | Pulumi.
Azure Native. Data Share. Type - Identity Type
- type
String | "System
Assigned" - Identity Type
IdentityResponse, IdentityResponseArgs
- Principal
Id string - service principal Id
- Tenant
Id string - Tenant Id
- Type string
- Identity Type
- Principal
Id string - service principal Id
- Tenant
Id string - Tenant Id
- Type string
- Identity Type
- principal
Id String - service principal Id
- tenant
Id String - Tenant Id
- type String
- Identity Type
- principal
Id string - service principal Id
- tenant
Id string - Tenant Id
- type string
- Identity Type
- principal_
id str - service principal Id
- tenant_
id str - Tenant Id
- type str
- Identity Type
- principal
Id String - service principal Id
- tenant
Id String - Tenant Id
- type String
- Identity Type
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The type of identity that last modified the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Type, TypeArgs
- System
Assigned - SystemAssigned
- Type
System Assigned - SystemAssigned
- System
Assigned - SystemAssigned
- System
Assigned - SystemAssigned
- SYSTEM_ASSIGNED
- SystemAssigned
- "System
Assigned" - 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0