@Stability(value=Stable)
public static interface CfnSchedulingPolicy.ShareAttributesProperty
extends software.amazon.jsii.JsiiSerializable
Fair share identifiers that aren't included have a default weight of 1.0 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;
ShareAttributesProperty shareAttributesProperty = ShareAttributesProperty.builder()
.shareIdentifier("shareIdentifier")
.weightFactor(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSchedulingPolicy.ShareAttributesProperty.Builder
A builder for
CfnSchedulingPolicy.ShareAttributesProperty |
static class |
CfnSchedulingPolicy.ShareAttributesProperty.Jsii$Proxy
An implementation for
CfnSchedulingPolicy.ShareAttributesProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnSchedulingPolicy.ShareAttributesProperty.Builder |
builder() |
default String |
getShareIdentifier()
A fair share identifier or fair share identifier prefix.
|
default Number |
getWeightFactor()
The weight factor for the fair share identifier.
|
@Stability(value=Stable) @Nullable default String getShareIdentifier()
If the string ends with an asterisk (*), this entry specifies the weight factor to use for fair share identifiers that start with that prefix. The list of fair share identifiers in a fair share policy cannot overlap. For example, you can't have one that specifies a shareIdentifier of UserA* and another that specifies a shareIdentifier of UserA-1 .
There can be no more than 500 fair share identifiers active in a job queue.
The string is limited to 255 alphanumeric characters, optionally followed by an asterisk (*).
@Stability(value=Stable) @Nullable default Number getWeightFactor()
The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
@Stability(value=Stable) static CfnSchedulingPolicy.ShareAttributesProperty.Builder builder()
Copyright © 2022. All rights reserved.