Class: AWSCDK::EMRServerless::CfnApplication::InitialCapacityConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr_serverless/cfn_application.rb

Overview

The initial capacity configuration per worker.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(worker_configuration:, worker_count:) ⇒ InitialCapacityConfigProperty

Returns a new instance of InitialCapacityConfigProperty.

Parameters:



1093
1094
1095
1096
1097
1098
# File 'emr_serverless/cfn_application.rb', line 1093

def initialize(worker_configuration:, worker_count:)
  @worker_configuration = worker_configuration.is_a?(Hash) ? ::AWSCDK::EMRServerless::CfnApplication::WorkerConfigurationProperty.new(**worker_configuration.transform_keys(&:to_sym)) : worker_configuration
  Jsii::Type.check_type(@worker_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXJzZXJ2ZXJsZXNzLkNmbkFwcGxpY2F0aW9uLldvcmtlckNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "workerConfiguration")
  @worker_count = worker_count
  Jsii::Type.check_type(@worker_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "workerCount")
end

Instance Attribute Details

#worker_configurationAWSCDK::IResolvable, AWSCDK::EMRServerless::CfnApplication::WorkerConfigurationProperty (readonly)

The resource configuration of the initial capacity configuration.



1104
1105
1106
# File 'emr_serverless/cfn_application.rb', line 1104

def worker_configuration
  @worker_configuration
end

#worker_countNumeric (readonly)

The number of workers in the initial capacity configuration.



1109
1110
1111
# File 'emr_serverless/cfn_application.rb', line 1109

def worker_count
  @worker_count
end

Class Method Details

.jsii_propertiesObject



1111
1112
1113
1114
1115
1116
# File 'emr_serverless/cfn_application.rb', line 1111

def self.jsii_properties
  {
    :worker_configuration => "workerConfiguration",
    :worker_count => "workerCount",
  }
end

Instance Method Details

#to_jsiiObject



1118
1119
1120
1121
1122
1123
1124
1125
# File 'emr_serverless/cfn_application.rb', line 1118

def to_jsii
  result = {}
  result.merge!({
    "workerConfiguration" => @worker_configuration,
    "workerCount" => @worker_count,
  })
  result.compact
end