amazonka-batch-2.0: Amazon Batch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Batch.Types.ShareAttributes

Description

 
Synopsis

Documentation

data ShareAttributes Source #

Specifies the weights for the fair share identifiers for the fair share policy. Fair share identifiers that aren't included have a default weight of 1.0.

See: newShareAttributes smart constructor.

Constructors

ShareAttributes' 

Fields

  • weightFactor :: Maybe Double

    The weight factor for the fair share identifier. 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.

  • shareIdentifier :: Text

    A fair share identifier or fair share identifier prefix. 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 (*).

Instances

Instances details
FromJSON ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

ToJSON ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

Generic ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

Associated Types

type Rep ShareAttributes :: Type -> Type #

Read ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

Show ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

NFData ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

Methods

rnf :: ShareAttributes -> () #

Eq ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

Hashable ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

type Rep ShareAttributes Source # 
Instance details

Defined in Amazonka.Batch.Types.ShareAttributes

type Rep ShareAttributes = D1 ('MetaData "ShareAttributes" "Amazonka.Batch.Types.ShareAttributes" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "ShareAttributes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "weightFactor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "shareIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newShareAttributes Source #

Create a value of ShareAttributes with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:weightFactor:ShareAttributes', shareAttributes_weightFactor - The weight factor for the fair share identifier. 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.

$sel:shareIdentifier:ShareAttributes', shareAttributes_shareIdentifier - A fair share identifier or fair share identifier prefix. 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 (*).

shareAttributes_weightFactor :: Lens' ShareAttributes (Maybe Double) Source #

The weight factor for the fair share identifier. 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.

shareAttributes_shareIdentifier :: Lens' ShareAttributes Text Source #

A fair share identifier or fair share identifier prefix. 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 (*).