CfnMetricAttributionProps

class aws_cdk.aws_personalize.CfnMetricAttributionProps(*, dataset_group_arn, metrics, metrics_output_config, name)

Bases: object

Properties for defining a CfnMetricAttribution.

Parameters:
  • dataset_group_arn (str) – The ARN of the destination dataset group.

  • metrics (Union[IResolvable, Sequence[Union[IResolvable, MetricAttributeProperty, Dict[str, Any]]]]) – A list of metric attributes for the metric attribution.

  • metrics_output_config (Union[IResolvable, MetricsOutputConfigProperty, Dict[str, Any]]) – The output configuration details for the metric attribution.

  • name (str) – The name of the metric attribution.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-metricattribution.html

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 import aws_personalize as personalize

cfn_metric_attribution_props = personalize.CfnMetricAttributionProps(
    dataset_group_arn="datasetGroupArn",
    metrics=[personalize.CfnMetricAttribution.MetricAttributeProperty(
        event_type="eventType",
        expression="expression",
        metric_name="metricName"
    )],
    metrics_output_config=personalize.CfnMetricAttribution.MetricsOutputConfigProperty(
        role_arn="roleArn",

        # the properties below are optional
        s3_data_destination=personalize.CfnMetricAttribution.S3DataDestinationProperty(
            path="path",

            # the properties below are optional
            kms_key_arn="kmsKeyArn"
        )
    ),
    name="name"
)

Attributes

dataset_group_arn

The ARN of the destination dataset group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-metricattribution.html#cfn-personalize-metricattribution-datasetgrouparn

metrics

A list of metric attributes for the metric attribution.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-metricattribution.html#cfn-personalize-metricattribution-metrics

metrics_output_config

The output configuration details for the metric attribution.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-metricattribution.html#cfn-personalize-metricattribution-metricsoutputconfig

name

The name of the metric attribution.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-metricattribution.html#cfn-personalize-metricattribution-name