Class CfnSchedulingPolicy.ShareAttributesProperty
Specifies the weights for the fair share identifiers for the fair share policy.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ShareAttributesProperty : Object, CfnSchedulingPolicy.IShareAttributesProperty
Syntax (vb)
Public Class ShareAttributesProperty
Inherits Object
Implements CfnSchedulingPolicy.IShareAttributesProperty
Remarks
Fair share identifiers that aren't included have a default weight of 1.0
.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var shareAttributesProperty = new ShareAttributesProperty {
ShareIdentifier = "shareIdentifier",
WeightFactor = 123
};
Synopsis
Constructors
ShareAttributesProperty() |
Properties
ShareIdentifier | A fair share identifier or fair share identifier prefix. |
WeightFactor | The weight factor for the fair share identifier. |
Constructors
ShareAttributesProperty()
public ShareAttributesProperty()
Properties
ShareIdentifier
A fair share identifier or fair share identifier prefix.
public string ShareIdentifier { get; set; }
Property Value
System.String
Remarks
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 can't 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, and can be followed by an asterisk (*).
WeightFactor
The weight factor for the fair share identifier.
public Nullable<double> WeightFactor { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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.