Account Args
data class AccountArgs(val accountName: Output<String>? = null, val computePolicies: Output<List<CreateComputePolicyWithAccountParametersArgs>>? = null, val dataLakeStoreAccounts: Output<List<AddDataLakeStoreWithAccountParametersArgs>>? = null, val defaultDataLakeStoreAccount: Output<String>? = null, val firewallAllowAzureIps: Output<FirewallAllowAzureIpsState>? = null, val firewallRules: Output<List<CreateFirewallRuleWithAccountParametersArgs>>? = null, val firewallState: Output<FirewallState>? = null, val location: Output<String>? = null, val maxDegreeOfParallelism: Output<Int>? = null, val maxDegreeOfParallelismPerJob: Output<Int>? = null, val maxJobCount: Output<Int>? = null, val minPriorityPerJob: Output<Int>? = null, val newTier: Output<TierType>? = null, val queryStoreRetention: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val storageAccounts: Output<List<AddStorageAccountWithAccountParametersArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AccountArgs>
A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics account. Azure REST API version: 2019-11-01-preview. Prior API version in Azure Native 1.x: 2016-11-01. Other available API versions: 2015-10-01-preview.
Example Usage
Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.DataLakeAnalytics.Account("account", new()
{
AccountName = "contosoadla",
ComputePolicies = new[]
{
new AzureNative.DataLakeAnalytics.Inputs.CreateComputePolicyWithAccountParametersArgs
{
MaxDegreeOfParallelismPerJob = 1,
MinPriorityPerJob = 1,
Name = "test_policy",
ObjectId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
ObjectType = "User",
},
},
DataLakeStoreAccounts = new[]
{
new AzureNative.DataLakeAnalytics.Inputs.AddDataLakeStoreWithAccountParametersArgs
{
Name = "test_adls",
Suffix = "test_suffix",
},
},
DefaultDataLakeStoreAccount = "test_adls",
FirewallAllowAzureIps = AzureNative.DataLakeAnalytics.FirewallAllowAzureIpsState.Enabled,
FirewallRules = new[]
{
new AzureNative.DataLakeAnalytics.Inputs.CreateFirewallRuleWithAccountParametersArgs
{
EndIpAddress = "2.2.2.2",
Name = "test_rule",
StartIpAddress = "1.1.1.1",
},
},
FirewallState = AzureNative.DataLakeAnalytics.FirewallState.Enabled,
Location = "eastus2",
MaxDegreeOfParallelism = 30,
MaxDegreeOfParallelismPerJob = 1,
MaxJobCount = 3,
MinPriorityPerJob = 1,
NewTier = AzureNative.DataLakeAnalytics.TierType.Consumption,
QueryStoreRetention = 30,
ResourceGroupName = "contosorg",
StorageAccounts = new[]
{
new AzureNative.DataLakeAnalytics.Inputs.AddStorageAccountWithAccountParametersArgs
{
AccessKey = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346",
Name = "test_storage",
Suffix = "test_suffix",
},
},
Tags =
{
{ "test_key", "test_value" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/datalakeanalytics/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datalakeanalytics.NewAccount(ctx, "account", &datalakeanalytics.AccountArgs{
AccountName: pulumi.String("contosoadla"),
ComputePolicies: []datalakeanalytics.CreateComputePolicyWithAccountParametersArgs{
{
MaxDegreeOfParallelismPerJob: pulumi.Int(1),
MinPriorityPerJob: pulumi.Int(1),
Name: pulumi.String("test_policy"),
ObjectId: pulumi.String("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"),
ObjectType: pulumi.String("User"),
},
},
DataLakeStoreAccounts: []datalakeanalytics.AddDataLakeStoreWithAccountParametersArgs{
{
Name: pulumi.String("test_adls"),
Suffix: pulumi.String("test_suffix"),
},
},
DefaultDataLakeStoreAccount: pulumi.String("test_adls"),
FirewallAllowAzureIps: datalakeanalytics.FirewallAllowAzureIpsStateEnabled,
FirewallRules: []datalakeanalytics.CreateFirewallRuleWithAccountParametersArgs{
{
EndIpAddress: pulumi.String("2.2.2.2"),
Name: pulumi.String("test_rule"),
StartIpAddress: pulumi.String("1.1.1.1"),
},
},
FirewallState: datalakeanalytics.FirewallStateEnabled,
Location: pulumi.String("eastus2"),
MaxDegreeOfParallelism: pulumi.Int(30),
MaxDegreeOfParallelismPerJob: pulumi.Int(1),
MaxJobCount: pulumi.Int(3),
MinPriorityPerJob: pulumi.Int(1),
NewTier: datalakeanalytics.TierTypeConsumption,
QueryStoreRetention: pulumi.Int(30),
ResourceGroupName: pulumi.String("contosorg"),
StorageAccounts: []datalakeanalytics.AddStorageAccountWithAccountParametersArgs{
{
AccessKey: pulumi.String("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346"),
Name: pulumi.String("test_storage"),
Suffix: pulumi.String("test_suffix"),
},
},
Tags: pulumi.StringMap{
"test_key": pulumi.String("test_value"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datalakeanalytics.Account;
import com.pulumi.azurenative.datalakeanalytics.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("contosoadla")
.computePolicies(Map.ofEntries(
Map.entry("maxDegreeOfParallelismPerJob", 1),
Map.entry("minPriorityPerJob", 1),
Map.entry("name", "test_policy"),
Map.entry("objectId", "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"),
Map.entry("objectType", "User")
))
.dataLakeStoreAccounts(Map.ofEntries(
Map.entry("name", "test_adls"),
Map.entry("suffix", "test_suffix")
))
.defaultDataLakeStoreAccount("test_adls")
.firewallAllowAzureIps("Enabled")
.firewallRules(Map.ofEntries(
Map.entry("endIpAddress", "2.2.2.2"),
Map.entry("name", "test_rule"),
Map.entry("startIpAddress", "1.1.1.1")
))
.firewallState("Enabled")
.location("eastus2")
.maxDegreeOfParallelism(30)
.maxDegreeOfParallelismPerJob(1)
.maxJobCount(3)
.minPriorityPerJob(1)
.newTier("Consumption")
.queryStoreRetention(30)
.resourceGroupName("contosorg")
.storageAccounts(Map.ofEntries(
Map.entry("accessKey", "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346"),
Map.entry("name", "test_storage"),
Map.entry("suffix", "test_suffix")
))
.tags(Map.of("test_key", "test_value"))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datalakeanalytics:Account test_account /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun AccountArgs(accountName: Output<String>? = null, computePolicies: Output<List<CreateComputePolicyWithAccountParametersArgs>>? = null, dataLakeStoreAccounts: Output<List<AddDataLakeStoreWithAccountParametersArgs>>? = null, defaultDataLakeStoreAccount: Output<String>? = null, firewallAllowAzureIps: Output<FirewallAllowAzureIpsState>? = null, firewallRules: Output<List<CreateFirewallRuleWithAccountParametersArgs>>? = null, firewallState: Output<FirewallState>? = null, location: Output<String>? = null, maxDegreeOfParallelism: Output<Int>? = null, maxDegreeOfParallelismPerJob: Output<Int>? = null, maxJobCount: Output<Int>? = null, minPriorityPerJob: Output<Int>? = null, newTier: Output<TierType>? = null, queryStoreRetention: Output<Int>? = null, resourceGroupName: Output<String>? = null, storageAccounts: Output<List<AddStorageAccountWithAccountParametersArgs>>? = null, tags: Output<Map<String, String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard