Class: AWSCDK::Batch::CfnJobDefinition::EKSPropertiesProperty

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

Overview

An object that contains the properties for the Kubernetes resources of a job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pod_properties: nil) ⇒ EKSPropertiesProperty

Returns a new instance of EKSPropertiesProperty.

Parameters:



1758
1759
1760
1761
# File 'batch/cfn_job_definition.rb', line 1758

def initialize(pod_properties: nil)
  @pod_properties = pod_properties.is_a?(Hash) ? ::AWSCDK::Batch::CfnJobDefinition::PodPropertiesProperty.new(**pod_properties.transform_keys(&:to_sym)) : pod_properties
  Jsii::Type.check_type(@pod_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iYXRjaC5DZm5Kb2JEZWZpbml0aW9uLlBvZFByb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "podProperties") unless @pod_properties.nil?
end

Instance Attribute Details

#pod_propertiesAWSCDK::IResolvable, ... (readonly)

The properties for the Kubernetes pod resources of a job.



1767
1768
1769
# File 'batch/cfn_job_definition.rb', line 1767

def pod_properties
  @pod_properties
end

Class Method Details

.jsii_propertiesObject



1769
1770
1771
1772
1773
# File 'batch/cfn_job_definition.rb', line 1769

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

Instance Method Details

#to_jsiiObject



1775
1776
1777
1778
1779
1780
1781
# File 'batch/cfn_job_definition.rb', line 1775

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