CfnExecutionPlanPropsMixin
- class aws_cdk.cfn_property_mixins.aws_kendraranking.CfnExecutionPlanPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a rescore execution plan.
A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI. You set the number of capacity units that you require for Amazon Kendra Intelligent Ranking to rescore or re-rank a search service’s results.For an example of using the
CreateRescoreExecutionPlanAPI, including using the Python and Java SDKs, see Semantically ranking a search service’s results .- See:
- CloudformationResource:
AWS::KendraRanking::ExecutionPlan
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_kendraranking as kendraranking import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_execution_plan_props_mixin = kendraranking.CfnExecutionPlanPropsMixin(kendraranking.CfnExecutionPlanMixinProps( capacity_units=kendraranking.CfnExecutionPlanPropsMixin.CapacityUnitsConfigurationProperty( rescore_capacity_units=123 ), description="description", name="name", tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::KendraRanking::ExecutionPlan.- Parameters:
props (
Union[CfnExecutionPlanMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['capacityUnits', 'description', 'name', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
CapacityUnitsConfigurationProperty
- class CfnExecutionPlanPropsMixin.CapacityUnitsConfigurationProperty(*, rescore_capacity_units=None)
Bases:
objectSets additional capacity units configured for your rescore execution plan.
A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI. You can add and remove capacity units to fit your usage requirements.- Parameters:
rescore_capacity_units (
Union[int,float,None]) – 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.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_kendraranking as kendraranking capacity_units_configuration_property = kendraranking.CfnExecutionPlanPropsMixin.CapacityUnitsConfigurationProperty( rescore_capacity_units=123 )
Attributes
- rescore_capacity_units
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.