ComputePolicy

class ComputePolicy : KotlinCustomResource

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The maximum degree of parallelism per job this user can use to submit jobs.

Link copied to clipboard
val minPriorityPerJob: Output<Int>

The minimum priority per job this user can use to submit jobs.

Link copied to clipboard
val name: Output<String>

The resource name.

Link copied to clipboard
val objectId: Output<String>

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

Link copied to clipboard
val objectType: Output<String>

The type of AAD object the object identifier refers to.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The resource type.

Link copied to clipboard
val urn: Output<String>