Class: AWSCDK::Pipes::CfnPipe::BatchArrayPropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.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.



775
776
777
778
# File 'pipes/cfn_pipe.rb', line 775

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)

Note:

Default: - 0

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



785
786
787
# File 'pipes/cfn_pipe.rb', line 785

def size
  @size
end

Class Method Details

.jsii_propertiesObject



787
788
789
790
791
# File 'pipes/cfn_pipe.rb', line 787

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

Instance Method Details

#to_jsiiObject



793
794
795
796
797
798
799
# File 'pipes/cfn_pipe.rb', line 793

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