Class: AWSCDK::KafkaConnect::CfnConnector::ProvisionedCapacityProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KafkaConnect::CfnConnector::ProvisionedCapacityProperty
- Defined in:
- kafka_connect/cfn_connector.rb
Overview
Details about a connector's provisioned capacity.
Instance Attribute Summary collapse
-
#mcu_count ⇒ Numeric
readonly
The number of microcontroller units (MCUs) allocated to each connector worker.
-
#worker_count ⇒ Numeric
readonly
The number of workers that are allocated to the connector.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mcu_count:, worker_count:) ⇒ ProvisionedCapacityProperty
constructor
A new instance of ProvisionedCapacityProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mcu_count:, worker_count:) ⇒ ProvisionedCapacityProperty
Returns a new instance of ProvisionedCapacityProperty.
1162 1163 1164 1165 1166 1167 |
# File 'kafka_connect/cfn_connector.rb', line 1162 def initialize(mcu_count:, worker_count:) @mcu_count = mcu_count Jsii::Type.check_type(@mcu_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "mcuCount") @worker_count = worker_count Jsii::Type.check_type(@worker_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "workerCount") end |
Instance Attribute Details
#mcu_count ⇒ Numeric (readonly)
The number of microcontroller units (MCUs) allocated to each connector worker.
The valid values are 1,2,4,8.
1175 1176 1177 |
# File 'kafka_connect/cfn_connector.rb', line 1175 def mcu_count @mcu_count end |
#worker_count ⇒ Numeric (readonly)
The number of workers that are allocated to the connector.
1180 1181 1182 |
# File 'kafka_connect/cfn_connector.rb', line 1180 def worker_count @worker_count end |
Class Method Details
.jsii_properties ⇒ Object
1182 1183 1184 1185 1186 1187 |
# File 'kafka_connect/cfn_connector.rb', line 1182 def self.jsii_properties { :mcu_count => "mcuCount", :worker_count => "workerCount", } end |
Instance Method Details
#to_jsii ⇒ Object
1189 1190 1191 1192 1193 1194 1195 1196 |
# File 'kafka_connect/cfn_connector.rb', line 1189 def to_jsii result = {} result.merge!({ "mcuCount" => @mcu_count, "workerCount" => @worker_count, }) result.compact end |