CfnRecommenderPropsMixin
- class aws_cdk.cfn_property_mixins.aws_customerprofiles.CfnRecommenderPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::CustomerProfiles::Recommender.
- See:
- CloudformationResource:
AWS::CustomerProfiles::Recommender
- 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_customerprofiles as customerprofiles import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_recommender_props_mixin = customerprofiles.CfnRecommenderPropsMixin(customerprofiles.CfnRecommenderMixinProps( description="description", domain_name="domainName", recommender_config=customerprofiles.CfnRecommenderPropsMixin.RecommenderConfigProperty( events_config=customerprofiles.CfnRecommenderPropsMixin.EventsConfigProperty( event_parameters_list=[customerprofiles.CfnRecommenderPropsMixin.EventParametersProperty( event_type="eventType", event_value_threshold=123 )] ) ), recommender_name="recommenderName", recommender_recipe_name="recommenderRecipeName", tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::CustomerProfiles::Recommender.- Parameters:
props (
Union[CfnRecommenderMixinProps,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 = ['description', 'domainName', 'recommenderConfig', 'recommenderName', 'recommenderRecipeName', '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.
EventParametersProperty
- class CfnRecommenderPropsMixin.EventParametersProperty(*, event_type=None, event_value_threshold=None)
Bases:
objectEvent parameters with type and value threshold.
- Parameters:
event_type (
Optional[str]) – The type of event.event_value_threshold (
Union[int,float,None]) – The threshold of the event type. Only events with a value greater or equal to this threshold will be considered for solution creation.
- 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_customerprofiles as customerprofiles event_parameters_property = customerprofiles.CfnRecommenderPropsMixin.EventParametersProperty( event_type="eventType", event_value_threshold=123 )
Attributes
- event_type
The type of event.
- event_value_threshold
The threshold of the event type.
Only events with a value greater or equal to this threshold will be considered for solution creation.
EventsConfigProperty
- class CfnRecommenderPropsMixin.EventsConfigProperty(*, event_parameters_list=None)
Bases:
objectConfiguration for events used in the recommender.
- Parameters:
event_parameters_list (
Union[IResolvable,Sequence[Union[IResolvable,EventParametersProperty,Dict[str,Any]]],None]) – List of event parameters with their value thresholds.- 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_customerprofiles as customerprofiles events_config_property = customerprofiles.CfnRecommenderPropsMixin.EventsConfigProperty( event_parameters_list=[customerprofiles.CfnRecommenderPropsMixin.EventParametersProperty( event_type="eventType", event_value_threshold=123 )] )
Attributes
- event_parameters_list
List of event parameters with their value thresholds.
MetricsProperty
- class CfnRecommenderPropsMixin.MetricsProperty(*, coverage=None, freshness=None, hit=None, popularity=None, recall=None, similarity=None)
Bases:
objectTraining metrics by type.
- Parameters:
coverage (
Union[int,float,None])freshness (
Union[int,float,None])hit (
Union[int,float,None])popularity (
Union[int,float,None])recall (
Union[int,float,None])similarity (
Union[int,float,None])
- 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_customerprofiles as customerprofiles metrics_property = customerprofiles.CfnRecommenderPropsMixin.MetricsProperty( coverage=123, freshness=123, hit=123, popularity=123, recall=123, similarity=123 )
Attributes
- coverage
-
- Type:
see
- freshness
-
- Type:
see
- hit
-
- Type:
see
- popularity
-
- Type:
see
- recall
-
- Type:
see
RecommenderConfigProperty
- class CfnRecommenderPropsMixin.RecommenderConfigProperty(*, events_config=None)
Bases:
objectConfiguration for the recommender.
- Parameters:
events_config (
Union[IResolvable,EventsConfigProperty,Dict[str,Any],None]) – Configuration for events used in the recommender.- 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_customerprofiles as customerprofiles recommender_config_property = customerprofiles.CfnRecommenderPropsMixin.RecommenderConfigProperty( events_config=customerprofiles.CfnRecommenderPropsMixin.EventsConfigProperty( event_parameters_list=[customerprofiles.CfnRecommenderPropsMixin.EventParametersProperty( event_type="eventType", event_value_threshold=123 )] ) )
Attributes
- events_config
Configuration for events used in the recommender.
RecommenderUpdateProperty
- class CfnRecommenderPropsMixin.RecommenderUpdateProperty(*, creation_date_time=None, failure_reason=None, last_updated_date_time=None, recommender_config=None, status=None)
Bases:
objectInformation about the latest recommender update.
- Parameters:
creation_date_time (
Optional[str]) – The timestamp of when the update was created.failure_reason (
Optional[str]) – The reason for update failure.last_updated_date_time (
Optional[str]) – The timestamp of when the update was last modified.recommender_config (
Union[IResolvable,RecommenderConfigProperty,Dict[str,Any],None]) – Configuration for the recommender.status (
Optional[str]) – The status of the recommender.
- 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_customerprofiles as customerprofiles recommender_update_property = customerprofiles.CfnRecommenderPropsMixin.RecommenderUpdateProperty( creation_date_time="creationDateTime", failure_reason="failureReason", last_updated_date_time="lastUpdatedDateTime", recommender_config=customerprofiles.CfnRecommenderPropsMixin.RecommenderConfigProperty( events_config=customerprofiles.CfnRecommenderPropsMixin.EventsConfigProperty( event_parameters_list=[customerprofiles.CfnRecommenderPropsMixin.EventParametersProperty( event_type="eventType", event_value_threshold=123 )] ) ), status="status" )
Attributes
- creation_date_time
The timestamp of when the update was created.
- failure_reason
The reason for update failure.
- last_updated_date_time
The timestamp of when the update was last modified.
- recommender_config
Configuration for the recommender.
TrainingMetricsProperty
- class CfnRecommenderPropsMixin.TrainingMetricsProperty(*, metrics=None, time=None)
Bases:
object- Parameters:
metrics (
Union[IResolvable,MetricsProperty,Dict[str,Any],None]) – Training metrics by type.time (
Optional[str]) – Timestamp of the training metrics.
- 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_customerprofiles as customerprofiles training_metrics_property = customerprofiles.CfnRecommenderPropsMixin.TrainingMetricsProperty( metrics=customerprofiles.CfnRecommenderPropsMixin.MetricsProperty( coverage=123, freshness=123, hit=123, popularity=123, recall=123, similarity=123 ), time="time" )
Attributes
- metrics
Training metrics by type.