Class: AWSCDK::KendraRanking::CfnExecutionPlan::CapacityUnitsConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KendraRanking::CfnExecutionPlan::CapacityUnitsConfigurationProperty
- Defined in:
- kendra_ranking/cfn_execution_plan.rb
Overview
Sets additional capacity units configured for your rescore execution plan.
A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the Rescore API. You can add and remove capacity units to fit your usage requirements.
Instance Attribute Summary collapse
-
#rescore_capacity_units ⇒ Numeric
readonly
The amount of extra capacity for your rescore execution plan.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rescore_capacity_units:) ⇒ CapacityUnitsConfigurationProperty
constructor
A new instance of CapacityUnitsConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(rescore_capacity_units:) ⇒ CapacityUnitsConfigurationProperty
Returns a new instance of CapacityUnitsConfigurationProperty.
571 572 573 574 |
# File 'kendra_ranking/cfn_execution_plan.rb', line 571 def initialize(rescore_capacity_units:) @rescore_capacity_units = rescore_capacity_units Jsii::Type.check_type(@rescore_capacity_units, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "rescoreCapacityUnits") end |
Instance Attribute Details
#rescore_capacity_units ⇒ Numeric (readonly)
The amount of extra capacity for your rescore execution plan.
A single extra capacity unit for a rescore execution plan provides 0.01 rescore requests per second. You can add up to 1000 extra capacity units.
582 583 584 |
# File 'kendra_ranking/cfn_execution_plan.rb', line 582 def rescore_capacity_units @rescore_capacity_units end |
Class Method Details
.jsii_properties ⇒ Object
584 585 586 587 588 |
# File 'kendra_ranking/cfn_execution_plan.rb', line 584 def self.jsii_properties { :rescore_capacity_units => "rescoreCapacityUnits", } end |
Instance Method Details
#to_jsii ⇒ Object
590 591 592 593 594 595 596 |
# File 'kendra_ranking/cfn_execution_plan.rb', line 590 def to_jsii result = {} result.merge!({ "rescoreCapacityUnits" => @rescore_capacity_units, }) result.compact end |