Azure Native

Pulumi Official
Package maintained by Pulumi
v1.64.1 published on Wednesday, May 18, 2022 by Pulumi

ComputePolicy

Data Lake Analytics compute policy information. API Version: 2016-11-01.

Example Usage

Creates or updates the specified compute policy

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var computePolicy = new AzureNative.DataLakeAnalytics.ComputePolicy("computePolicy", new AzureNative.DataLakeAnalytics.ComputePolicyArgs
        {
            AccountName = "contosoadla",
            ComputePolicyName = "test_policy",
            MaxDegreeOfParallelismPerJob = 10,
            MinPriorityPerJob = 30,
            ObjectId = "776b9091-8916-4638-87f7-9c989a38da98",
            ObjectType = "User",
            ResourceGroupName = "contosorg",
        });
    }

}
package main

import (
	datalakeanalytics "github.com/pulumi/pulumi-azure-native/sdk/go/azure/datalakeanalytics"
	"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("User"),
			ResourceGroupName:            pulumi.String("contosorg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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 pulumi
import pulumi_azure_native as azure_native

compute_policy = azure_native.datalakeanalytics.ComputePolicy("computePolicy",
    account_name="contosoadla",
    compute_policy_name="test_policy",
    max_degree_of_parallelism_per_job=10,
    min_priority_per_job=30,
    object_id="776b9091-8916-4638-87f7-9c989a38da98",
    object_type="User",
    resource_group_name="contosorg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const computePolicy = new azure_native.datalakeanalytics.ComputePolicy("computePolicy", {
    accountName: "contosoadla",
    computePolicyName: "test_policy",
    maxDegreeOfParallelismPerJob: 10,
    minPriorityPerJob: 30,
    objectId: "776b9091-8916-4638-87f7-9c989a38da98",
    objectType: "User",
    resourceGroupName: "contosorg",
});
resources:
  computePolicy:
    type: azure-native:datalakeanalytics:ComputePolicy
    properties:
      accountName: contosoadla
      computePolicyName: test_policy
      maxDegreeOfParallelismPerJob: 10
      minPriorityPerJob: 30
      objectId: 776b9091-8916-4638-87f7-9c989a38da98
      objectType: User
      resourceGroupName: contosorg

Create a ComputePolicy Resource

new ComputePolicy(name: string, args: ComputePolicyArgs, opts?: CustomResourceOptions);
@overload
def ComputePolicy(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  account_name: Optional[str] = None,
                  compute_policy_name: Optional[str] = None,
                  max_degree_of_parallelism_per_job: Optional[int] = None,
                  min_priority_per_job: Optional[int] = None,
                  object_id: Optional[str] = None,
                  object_type: Optional[Union[str, AADObjectType]] = None,
                  resource_group_name: Optional[str] = None)
@overload
def ComputePolicy(resource_name: str,
                  args: ComputePolicyArgs,
                  opts: Optional[ResourceOptions] = None)
func NewComputePolicy(ctx *Context, name string, args ComputePolicyArgs, opts ...ResourceOption) (*ComputePolicy, error)
public ComputePolicy(string name, ComputePolicyArgs args, CustomResourceOptions? opts = null)
public ComputePolicy(String name, ComputePolicyArgs args)
public ComputePolicy(String name, ComputePolicyArgs args, CustomResourceOptions options)
type: azure-native:datalakeanalytics:ComputePolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ComputePolicyArgs
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 ComputePolicyArgs
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 ComputePolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ComputePolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ComputePolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ComputePolicy 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 ComputePolicy resource accepts the following input properties:

AccountName string

The name of the Data Lake Analytics account.

ObjectId string

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

ObjectType string | Pulumi.AzureNative.DataLakeAnalytics.AADObjectType

The type of AAD object the object identifier refers to.

ResourceGroupName string

The name of the Azure resource group.

ComputePolicyName string

The name of the compute policy to create or update.

MaxDegreeOfParallelismPerJob int

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.

MinPriorityPerJob int

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.

AccountName string

The name of the Data Lake Analytics account.

ObjectId string

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

ObjectType string | AADObjectType

The type of AAD object the object identifier refers to.

ResourceGroupName string

The name of the Azure resource group.

ComputePolicyName string

The name of the compute policy to create or update.

MaxDegreeOfParallelismPerJob int

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.

MinPriorityPerJob int

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.

accountName String

The name of the Data Lake Analytics account.

objectId String

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

objectType String | AADObjectType

The type of AAD object the object identifier refers to.

resourceGroupName String

The name of the Azure resource group.

computePolicyName String

The name of the compute policy to create or update.

maxDegreeOfParallelismPerJob Integer

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.

minPriorityPerJob Integer

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.

accountName string

The name of the Data Lake Analytics account.

objectId string

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

objectType string | AADObjectType

The type of AAD object the object identifier refers to.

resourceGroupName string

The name of the Azure resource group.

computePolicyName string

The name of the compute policy to create or update.

maxDegreeOfParallelismPerJob number

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.

minPriorityPerJob number

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.

account_name str

The name of the Data Lake Analytics account.

object_id str

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

object_type str | AADObjectType

The type of AAD object the object identifier refers to.

resource_group_name str

The name of the Azure resource group.

compute_policy_name str

The name of the compute policy to create or update.

max_degree_of_parallelism_per_job int

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.

min_priority_per_job int

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.

accountName String

The name of the Data Lake Analytics account.

objectId String

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

objectType String | "User" | "Group" | "ServicePrincipal"

The type of AAD object the object identifier refers to.

resourceGroupName String

The name of the Azure resource group.

computePolicyName String

The name of the compute policy to create or update.

maxDegreeOfParallelismPerJob Number

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.

minPriorityPerJob Number

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.

Outputs

All input properties are implicitly available as output properties. Additionally, the ComputePolicy resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The resource name.

Type string

The resource type.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The resource name.

Type string

The resource type.

id String

The provider-assigned unique ID for this managed resource.

name String

The resource name.

type String

The resource type.

id string

The provider-assigned unique ID for this managed resource.

name string

The resource name.

type string

The resource type.

id str

The provider-assigned unique ID for this managed resource.

name str

The resource name.

type str

The resource type.

id String

The provider-assigned unique ID for this managed resource.

name String

The resource name.

type String

The resource type.

Supporting Types

AADObjectType

User
User
Group
Group
ServicePrincipal
ServicePrincipal
AADObjectTypeUser
User
AADObjectTypeGroup
Group
AADObjectTypeServicePrincipal
ServicePrincipal
User
User
Group
Group
ServicePrincipal
ServicePrincipal
User
User
Group
Group
ServicePrincipal
ServicePrincipal
USER
User
GROUP
Group
SERVICE_PRINCIPAL
ServicePrincipal
"User"
User
"Group"
Group
"ServicePrincipal"
ServicePrincipal

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} 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0