Class: AWSCDK::Glue::CfnJob::ExecutionPropertyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_job.rb

Overview

An execution property of a job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_concurrent_runs: nil) ⇒ ExecutionPropertyProperty

Returns a new instance of ExecutionPropertyProperty.

Parameters:

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

    The maximum number of concurrent runs allowed for the job.



850
851
852
853
# File 'glue/cfn_job.rb', line 850

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

Instance Attribute Details

#max_concurrent_runsNumeric? (readonly)

The maximum number of concurrent runs allowed for the job.

The default is 1. An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.



861
862
863
# File 'glue/cfn_job.rb', line 861

def max_concurrent_runs
  @max_concurrent_runs
end

Class Method Details

.jsii_propertiesObject



863
864
865
866
867
# File 'glue/cfn_job.rb', line 863

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

Instance Method Details

#to_jsiiObject



869
870
871
872
873
874
875
# File 'glue/cfn_job.rb', line 869

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