Class: AWSCDK::Batch::CfnQuotaShare::QuotaSharePreemptionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
batch/cfn_quota_share.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(in_share_preemption:) ⇒ QuotaSharePreemptionConfigurationProperty

Returns a new instance of QuotaSharePreemptionConfigurationProperty.

Parameters:

  • in_share_preemption (String)

    Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share.



635
636
637
638
# File 'batch/cfn_quota_share.rb', line 635

def initialize(in_share_preemption:)
  @in_share_preemption = in_share_preemption
  Jsii::Type.check_type(@in_share_preemption, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inSharePreemption")
end

Instance Attribute Details

#in_share_preemptionString (readonly)

Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share.



644
645
646
# File 'batch/cfn_quota_share.rb', line 644

def in_share_preemption
  @in_share_preemption
end

Class Method Details

.jsii_propertiesObject



646
647
648
649
650
# File 'batch/cfn_quota_share.rb', line 646

def self.jsii_properties
  {
    :in_share_preemption => "inSharePreemption",
  }
end

Instance Method Details

#to_jsiiObject



652
653
654
655
656
657
658
# File 'batch/cfn_quota_share.rb', line 652

def to_jsii
  result = {}
  result.merge!({
    "inSharePreemption" => @in_share_preemption,
  })
  result.compact
end