ComputePolicyArgs

data class ComputePolicyArgs(val accountName: Output<String>? = null, val computePolicyName: Output<String>? = null, val maxDegreeOfParallelismPerJob: Output<Int>? = null, val minPriorityPerJob: Output<Int>? = null, val objectId: Output<String>? = null, val objectType: Output<Either<String, AADObjectType>>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ComputePolicyArgs>

Data Lake Analytics compute policy information. 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 or updates the specified compute policy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var computePolicy = new AzureNative.DataLakeAnalytics.ComputePolicy("computePolicy", new()
{
AccountName = "contosoadla",
ComputePolicyName = "test_policy",
MaxDegreeOfParallelismPerJob = 10,
MinPriorityPerJob = 30,
ObjectId = "776b9091-8916-4638-87f7-9c989a38da98",
ObjectType = AzureNative.DataLakeAnalytics.AADObjectType.User,
ResourceGroupName = "contosorg",
});
});
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.NewComputePolicy(ctx, "computePolicy", &datalakeanalytics.ComputePolicyArgs{
AccountName: pulumi.String("contosoadla"),
ComputePolicyName: pulumi.String("test_policy"),
MaxDegreeOfParallelismPerJob: pulumi.Int(10),
MinPriorityPerJob: pulumi.Int(30),
ObjectId: pulumi.String("776b9091-8916-4638-87f7-9c989a38da98"),
ObjectType: pulumi.String(datalakeanalytics.AADObjectTypeUser),
ResourceGroupName: pulumi.String("contosorg"),
})
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.ComputePolicy;
import com.pulumi.azurenative.datalakeanalytics.ComputePolicyArgs;
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 computePolicy = new ComputePolicy("computePolicy", ComputePolicyArgs.builder()
.accountName("contosoadla")
.computePolicyName("test_policy")
.maxDegreeOfParallelismPerJob(10)
.minPriorityPerJob(30)
.objectId("776b9091-8916-4638-87f7-9c989a38da98")
.objectType("User")
.resourceGroupName("contosorg")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:datalakeanalytics:ComputePolicy test_policy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, computePolicyName: Output<String>? = null, maxDegreeOfParallelismPerJob: Output<Int>? = null, minPriorityPerJob: Output<Int>? = null, objectId: Output<String>? = null, objectType: Output<Either<String, AADObjectType>>? = null, resourceGroupName: Output<String>? = null)

Properties

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

The name of the Data Lake Analytics account.

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

The name of the compute policy to create or update.

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

The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.

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

The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.

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

The AAD object identifier for the entity to create a policy for.

Link copied to clipboard
val objectType: Output<Either<String, AADObjectType>>? = null

The type of AAD object the object identifier refers to.

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

The name of the Azure resource group.

Functions

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