Class: AWSCDK::Events::CfnRule::BatchArrayPropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/cfn_rule.rb

Overview

The array properties for the submitted job, such as the size of the array.

The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size: nil) ⇒ BatchArrayPropertiesProperty

Returns a new instance of BatchArrayPropertiesProperty.

Parameters:

  • size (Numeric, nil) (defaults to: nil)

    The size of the array, if this is an array batch job.



752
753
754
755
# File 'events/cfn_rule.rb', line 752

def initialize(size: nil)
  @size = size
  Jsii::Type.check_type(@size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "size") unless @size.nil?
end

Instance Attribute Details

#sizeNumeric? (readonly)

The size of the array, if this is an array batch job.

Valid values are integers between 2 and 10,000.



763
764
765
# File 'events/cfn_rule.rb', line 763

def size
  @size
end

Class Method Details

.jsii_propertiesObject



765
766
767
768
769
# File 'events/cfn_rule.rb', line 765

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

Instance Method Details

#to_jsiiObject



771
772
773
774
775
776
777
# File 'events/cfn_rule.rb', line 771

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