AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.4.0 published on Wednesday, May 4, 2022 by Pulumi

getSchedulingPolicy

The Batch Scheduling Policy data source allows access to details of a specific Scheduling Policy within AWS Batch.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Aws.Batch.GetSchedulingPolicy.InvokeAsync(new Aws.Batch.GetSchedulingPolicyArgs
        {
            Arn = "arn:aws:batch:us-east-1:012345678910:scheduling-policy/example",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/batch"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := batch.LookupSchedulingPolicy(ctx, &batch.LookupSchedulingPolicyArgs{
			Arn: "arn:aws:batch:us-east-1:012345678910:scheduling-policy/example",
		}, nil)
		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) {
        final var test = Output.of(BatchFunctions.getSchedulingPolicy(GetSchedulingPolicyArgs.builder()
            .arn("arn:aws:batch:us-east-1:012345678910:scheduling-policy/example")
            .build()));

        }
}
import pulumi
import pulumi_aws as aws

test = aws.batch.get_scheduling_policy(arn="arn:aws:batch:us-east-1:012345678910:scheduling-policy/example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = pulumi.output(aws.batch.getSchedulingPolicy({
    arn: "arn:aws:batch:us-east-1:012345678910:scheduling-policy/example",
}));
variables:
  test:
    Fn::Invoke:
      Function: aws:batch:getSchedulingPolicy
      Arguments:
        arn: arn:aws:batch:us-east-1:012345678910:scheduling-policy/example

Using getSchedulingPolicy

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSchedulingPolicy(args: GetSchedulingPolicyArgs, opts?: InvokeOptions): Promise<GetSchedulingPolicyResult>
function getSchedulingPolicyOutput(args: GetSchedulingPolicyOutputArgs, opts?: InvokeOptions): Output<GetSchedulingPolicyResult>
def get_scheduling_policy(arn: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSchedulingPolicyResult
def get_scheduling_policy_output(arn: Optional[pulumi.Input[str]] = None,
                          tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSchedulingPolicyResult]
func LookupSchedulingPolicy(ctx *Context, args *LookupSchedulingPolicyArgs, opts ...InvokeOption) (*LookupSchedulingPolicyResult, error)
func LookupSchedulingPolicyOutput(ctx *Context, args *LookupSchedulingPolicyOutputArgs, opts ...InvokeOption) LookupSchedulingPolicyResultOutput

> Note: This function is named LookupSchedulingPolicy in the Go SDK.

public static class GetSchedulingPolicy 
{
    public static Task<GetSchedulingPolicyResult> InvokeAsync(GetSchedulingPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetSchedulingPolicyResult> Invoke(GetSchedulingPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchedulingPolicyResult> getSchedulingPolicy(GetSchedulingPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:batch/getSchedulingPolicy:getSchedulingPolicy
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Arn string

The Amazon Resource Name (ARN) of the scheduling policy.

Tags Dictionary<string, string>

Key-value map of resource tags

Arn string

The Amazon Resource Name (ARN) of the scheduling policy.

Tags map[string]string

Key-value map of resource tags

arn String

The Amazon Resource Name (ARN) of the scheduling policy.

tags Map

Key-value map of resource tags

arn string

The Amazon Resource Name (ARN) of the scheduling policy.

tags {[key: string]: string}

Key-value map of resource tags

arn str

The Amazon Resource Name (ARN) of the scheduling policy.

tags Mapping[str, str]

Key-value map of resource tags

arn String

The Amazon Resource Name (ARN) of the scheduling policy.

tags Map

Key-value map of resource tags

getSchedulingPolicy Result

The following output properties are available:

Arn string
FairSharePolicies List<GetSchedulingPolicyFairSharePolicy>
Id string

The provider-assigned unique ID for this managed resource.

Name string

Specifies the name of the scheduling policy.

Tags Dictionary<string, string>

Key-value map of resource tags

Arn string
FairSharePolicies []GetSchedulingPolicyFairSharePolicy
Id string

The provider-assigned unique ID for this managed resource.

Name string

Specifies the name of the scheduling policy.

Tags map[string]string

Key-value map of resource tags

arn String
fairSharePolicies ListSchedulingPolicyFairSharePolicy>
id String

The provider-assigned unique ID for this managed resource.

name String

Specifies the name of the scheduling policy.

tags Map

Key-value map of resource tags

arn string
fairSharePolicies GetSchedulingPolicyFairSharePolicy[]
id string

The provider-assigned unique ID for this managed resource.

name string

Specifies the name of the scheduling policy.

tags {[key: string]: string}

Key-value map of resource tags

arn str
fair_share_policies Sequence[GetSchedulingPolicyFairSharePolicy]
id str

The provider-assigned unique ID for this managed resource.

name str

Specifies the name of the scheduling policy.

tags Mapping[str, str]

Key-value map of resource tags

arn String
fairSharePolicies List
id String

The provider-assigned unique ID for this managed resource.

name String

Specifies the name of the scheduling policy.

tags Map

Key-value map of resource tags

Supporting Types

GetSchedulingPolicyFairSharePolicy

ComputeReservation int

A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy.

ShareDecaySeconds int
ShareDistributions List<GetSchedulingPolicyFairSharePolicyShareDistribution>

One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below.

ComputeReservation int

A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy.

ShareDecaySeconds int
ShareDistributions []GetSchedulingPolicyFairSharePolicyShareDistribution

One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below.

computeReservation Integer

A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy.

shareDecaySeconds Integer
shareDistributions ListSchedulingPolicyFairSharePolicyShareDistribution>

One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below.

computeReservation number

A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy.

shareDecaySeconds number
shareDistributions GetSchedulingPolicyFairSharePolicyShareDistribution[]

One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below.

compute_reservation int

A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy.

share_decay_seconds int
share_distributions Sequence[GetSchedulingPolicyFairSharePolicyShareDistribution]

One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below.

computeReservation Number

A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see FairsharePolicy.

shareDecaySeconds Number
shareDistributions List

One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see FairsharePolicy. The share_distribution block is documented below.

GetSchedulingPolicyFairSharePolicyShareDistribution

ShareIdentifier string

A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes.

WeightFactor double

The weight factor for the fair share identifier. For more information, see ShareAttributes.

ShareIdentifier string

A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes.

WeightFactor float64

The weight factor for the fair share identifier. For more information, see ShareAttributes.

shareIdentifier String

A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes.

weightFactor Double

The weight factor for the fair share identifier. For more information, see ShareAttributes.

shareIdentifier string

A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes.

weightFactor number

The weight factor for the fair share identifier. For more information, see ShareAttributes.

share_identifier str

A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes.

weight_factor float

The weight factor for the fair share identifier. For more information, see ShareAttributes.

shareIdentifier String

A fair share identifier or fair share identifier prefix. For more information, see ShareAttributes.

weightFactor Number

The weight factor for the fair share identifier. For more information, see ShareAttributes.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.