CfnMetricAttributionPropsMixin
- class aws_cdk.cfn_property_mixins.aws_personalize.CfnMetricAttributionPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a metric attribution for reporting on recommendation impact in Amazon Personalize.
- See:
- CloudformationResource:
AWS::Personalize::MetricAttribution
- 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_personalize as personalize import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_metric_attribution_props_mixin = personalize.CfnMetricAttributionPropsMixin(personalize.CfnMetricAttributionMixinProps( dataset_group_arn="datasetGroupArn", metrics=[personalize.CfnMetricAttributionPropsMixin.MetricAttributeProperty( event_type="eventType", expression="expression", metric_name="metricName" )], metrics_output_config=personalize.CfnMetricAttributionPropsMixin.MetricsOutputConfigProperty( role_arn="roleArn", s3_data_destination=personalize.CfnMetricAttributionPropsMixin.S3DataDestinationProperty( kms_key_arn="kmsKeyArn", path="path" ) ), name="name" ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Personalize::MetricAttribution.- Parameters:
props (
Union[CfnMetricAttributionMixinProps,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 = ['datasetGroupArn', 'metrics', 'metricsOutputConfig', 'name']
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.
MetricAttributeProperty
- class CfnMetricAttributionPropsMixin.MetricAttributeProperty(*, event_type=None, expression=None, metric_name=None)
Bases:
objectA metric attribute for the metric attribution.
- Parameters:
event_type (
Optional[str]) – The metric’s event type.expression (
Optional[str]) – The attribute’s expression.metric_name (
Optional[str]) – The metric’s name.
- 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_personalize as personalize metric_attribute_property = personalize.CfnMetricAttributionPropsMixin.MetricAttributeProperty( event_type="eventType", expression="expression", metric_name="metricName" )
Attributes
- event_type
The metric’s event type.
- expression
The attribute’s expression.
MetricsOutputConfigProperty
- class CfnMetricAttributionPropsMixin.MetricsOutputConfigProperty(*, role_arn=None, s3_data_destination=None)
Bases:
objectThe output configuration details for the metric attribution.
- Parameters:
role_arn (
Optional[str]) – The ARN of the IAM role for the metric attribution.s3_data_destination (
Union[IResolvable,S3DataDestinationProperty,Dict[str,Any],None]) – The configuration details of an Amazon S3 output bucket.
- 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_personalize as personalize metrics_output_config_property = personalize.CfnMetricAttributionPropsMixin.MetricsOutputConfigProperty( role_arn="roleArn", s3_data_destination=personalize.CfnMetricAttributionPropsMixin.S3DataDestinationProperty( kms_key_arn="kmsKeyArn", path="path" ) )
Attributes
- role_arn
The ARN of the IAM role for the metric attribution.
- s3_data_destination
The configuration details of an Amazon S3 output bucket.
S3DataDestinationProperty
- class CfnMetricAttributionPropsMixin.S3DataDestinationProperty(*, kms_key_arn=None, path=None)
Bases:
objectThe configuration details of an Amazon S3 output bucket.
- Parameters:
kms_key_arn (
Optional[str]) – The ARN of the KMS key.path (
Optional[str]) – The file path of the Amazon S3 bucket.
- 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_personalize as personalize s3_data_destination_property = personalize.CfnMetricAttributionPropsMixin.S3DataDestinationProperty( kms_key_arn="kmsKeyArn", path="path" )
Attributes
- kms_key_arn
The ARN of the KMS key.
- path
The file path of the Amazon S3 bucket.