AccountArgs

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. Uses Azure REST API version 2019-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2019-11-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 = AzureNative.DataLakeAnalytics.AADObjectType.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" },
},
});
});
package main
import (
datalakeanalytics "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.CreateComputePolicyWithAccountParametersArray{
&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(datalakeanalytics.AADObjectTypeUser),
},
},
DataLakeStoreAccounts: datalakeanalytics.AddDataLakeStoreWithAccountParametersArray{
&datalakeanalytics.AddDataLakeStoreWithAccountParametersArgs{
Name: pulumi.String("test_adls"),
Suffix: pulumi.String("test_suffix"),
},
},
DefaultDataLakeStoreAccount: pulumi.String("test_adls"),
FirewallAllowAzureIps: datalakeanalytics.FirewallAllowAzureIpsStateEnabled,
FirewallRules: datalakeanalytics.CreateFirewallRuleWithAccountParametersArray{
&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.AddStorageAccountWithAccountParametersArray{
&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
})
}
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 com.pulumi.azurenative.datalakeanalytics.inputs.CreateComputePolicyWithAccountParametersArgs;
import com.pulumi.azurenative.datalakeanalytics.inputs.AddDataLakeStoreWithAccountParametersArgs;
import com.pulumi.azurenative.datalakeanalytics.inputs.CreateFirewallRuleWithAccountParametersArgs;
import com.pulumi.azurenative.datalakeanalytics.inputs.AddStorageAccountWithAccountParametersArgs;
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(CreateComputePolicyWithAccountParametersArgs.builder()
.maxDegreeOfParallelismPerJob(1)
.minPriorityPerJob(1)
.name("test_policy")
.objectId("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345")
.objectType("User")
.build())
.dataLakeStoreAccounts(AddDataLakeStoreWithAccountParametersArgs.builder()
.name("test_adls")
.suffix("test_suffix")
.build())
.defaultDataLakeStoreAccount("test_adls")
.firewallAllowAzureIps("Enabled")
.firewallRules(CreateFirewallRuleWithAccountParametersArgs.builder()
.endIpAddress("2.2.2.2")
.name("test_rule")
.startIpAddress("1.1.1.1")
.build())
.firewallState("Enabled")
.location("eastus2")
.maxDegreeOfParallelism(30)
.maxDegreeOfParallelismPerJob(1)
.maxJobCount(3)
.minPriorityPerJob(1)
.newTier("Consumption")
.queryStoreRetention(30)
.resourceGroupName("contosorg")
.storageAccounts(AddStorageAccountWithAccountParametersArgs.builder()
.accessKey("34adfa4f-cedf-4dc0-ba29-b6d1a69ab346")
.name("test_storage")
.suffix("test_suffix")
.build())
.tags(Map.of("test_key", "test_value"))
.build());
}
}

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}

Constructors

Link copied to clipboard
constructor(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)

Properties

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

The name of the Data Lake Analytics account.

Link copied to clipboard

The list of compute policies associated with this account.

Link copied to clipboard

The list of Data Lake Store accounts associated with this account.

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

The default Data Lake Store account associated with this account.

Link copied to clipboard

The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.

Link copied to clipboard

The list of firewall rules associated with this account.

Link copied to clipboard
val firewallState: Output<FirewallState>? = null

The current state of the IP address firewall for this account.

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

The resource location.

Link copied to clipboard
val maxDegreeOfParallelism: Output<Int>? = null

The maximum supported degree of parallelism for this account.

Link copied to clipboard
val maxDegreeOfParallelismPerJob: Output<Int>? = null

The maximum supported degree of parallelism per job for this account.

Link copied to clipboard
val maxJobCount: Output<Int>? = null

The maximum supported jobs running under the account at the same time.

Link copied to clipboard
val minPriorityPerJob: Output<Int>? = null

The minimum supported priority per job for this account.

Link copied to clipboard
val newTier: Output<TierType>? = null

The commitment tier for the next month.

Link copied to clipboard
val queryStoreRetention: Output<Int>? = null

The number of days that job metadata is retained.

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

The name of the Azure resource group.

Link copied to clipboard

The list of Azure Blob Storage accounts associated with this account.

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

The resource tags.

Functions

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