Skip to content
v2.277.0

WeightedBalancedSchedulingConfigurationProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_deadline as deadline } from 'aws-cdk-lib';

declare const alwaysScheduleFirst: any;
declare const alwaysScheduleLast: any;
const weightedBalancedSchedulingConfigurationProperty: deadline.CfnQueue.WeightedBalancedSchedulingConfigurationProperty = {
  errorWeight: 123,
  maxPriorityOverride: {
    alwaysScheduleFirst: alwaysScheduleFirst,
  },
  minPriorityOverride: {
    alwaysScheduleLast: alwaysScheduleLast,
  },
  priorityWeight: 123,
  renderingTaskBuffer: 123,
  renderingTaskWeight: 123,
  submissionTimeWeight: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_deadline as deadline

# always_schedule_first: Any
# always_schedule_last: Any

weighted_balanced_scheduling_configuration_property = deadline.CfnQueue.WeightedBalancedSchedulingConfigurationProperty(
    error_weight=123,
    max_priority_override=deadline.CfnQueue.SchedulingMaxPriorityOverrideProperty(
        always_schedule_first=always_schedule_first
    ),
    min_priority_override=deadline.CfnQueue.SchedulingMinPriorityOverrideProperty(
        always_schedule_last=always_schedule_last
    ),
    priority_weight=123,
    rendering_task_buffer=123,
    rendering_task_weight=123,
    submission_time_weight=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.deadline.*;

Object alwaysScheduleFirst;
Object alwaysScheduleLast;

WeightedBalancedSchedulingConfigurationProperty weightedBalancedSchedulingConfigurationProperty = WeightedBalancedSchedulingConfigurationProperty.builder()
        .errorWeight(123)
        .maxPriorityOverride(SchedulingMaxPriorityOverrideProperty.builder()
                .alwaysScheduleFirst(alwaysScheduleFirst)
                .build())
        .minPriorityOverride(SchedulingMinPriorityOverrideProperty.builder()
                .alwaysScheduleLast(alwaysScheduleLast)
                .build())
        .priorityWeight(123)
        .renderingTaskBuffer(123)
        .renderingTaskWeight(123)
        .submissionTimeWeight(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Deadline;

var alwaysScheduleFirst;
var alwaysScheduleLast;

var weightedBalancedSchedulingConfigurationProperty = new WeightedBalancedSchedulingConfigurationProperty {
    ErrorWeight = 123,
    MaxPriorityOverride = new SchedulingMaxPriorityOverrideProperty {
        AlwaysScheduleFirst = alwaysScheduleFirst
    },
    MinPriorityOverride = new SchedulingMinPriorityOverrideProperty {
        AlwaysScheduleLast = alwaysScheduleLast
    },
    PriorityWeight = 123,
    RenderingTaskBuffer = 123,
    RenderingTaskWeight = 123,
    SubmissionTimeWeight = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var alwaysScheduleFirst interface{}
var alwaysScheduleLast interface{}

weightedBalancedSchedulingConfigurationProperty := &WeightedBalancedSchedulingConfigurationProperty{
	ErrorWeight: jsii.Number(123),
	MaxPriorityOverride: &SchedulingMaxPriorityOverrideProperty{
		AlwaysScheduleFirst: alwaysScheduleFirst,
	},
	MinPriorityOverride: &SchedulingMinPriorityOverrideProperty{
		AlwaysScheduleLast: alwaysScheduleLast,
	},
	PriorityWeight: jsii.Number(123),
	RenderingTaskBuffer: jsii.Number(123),
	RenderingTaskWeight: jsii.Number(123),
	SubmissionTimeWeight: jsii.Number(123),
}

Properties ​

errorWeightoptionalnumbererror_weightoptionalint | floaterrorWeightoptionalNumberErrorWeightoptionaldoubleErrorWeightoptional*float64= -10#
maxPriorityOverrideoptionalIResolvable | CfnQueue.SchedulingMaxPriorityOverridePropertymax_priority_overrideoptionaltyping.Union[IResolvable, SchedulingMaxPriorityOverrideProperty]maxPriorityOverrideoptionalIResolvableMaxPriorityOverrideoptionalIResolvableMaxPriorityOverrideoptionalinterface{}#
minPriorityOverrideoptionalIResolvable | CfnQueue.SchedulingMinPriorityOverridePropertymin_priority_overrideoptionaltyping.Union[IResolvable, SchedulingMinPriorityOverrideProperty]minPriorityOverrideoptionalIResolvableMinPriorityOverrideoptionalIResolvableMinPriorityOverrideoptionalinterface{}#
priorityWeightoptionalnumberpriority_weightoptionalint | floatpriorityWeightoptionalNumberPriorityWeightoptionaldoublePriorityWeightoptional*float64= 100#
renderingTaskBufferoptionalnumberrendering_task_bufferoptionalint | floatrenderingTaskBufferoptionalNumberRenderingTaskBufferoptionaldoubleRenderingTaskBufferoptional*float64= 1#
renderingTaskWeightoptionalnumberrendering_task_weightoptionalint | floatrenderingTaskWeightoptionalNumberRenderingTaskWeightoptionaldoubleRenderingTaskWeightoptional*float64= -100#
submissionTimeWeightoptionalnumbersubmission_time_weightoptionalint | floatsubmissionTimeWeightoptionalNumberSubmissionTimeWeightoptionaldoubleSubmissionTimeWeightoptional*float64= 3#