1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. personalize
  6. MetricAttribution

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi

    Creates a metric attribution for reporting on recommendation impact in Amazon Personalize.

    Create MetricAttribution Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MetricAttribution(name: string, args: MetricAttributionArgs, opts?: CustomResourceOptions);
    @overload
    def MetricAttribution(resource_name: str,
                          args: MetricAttributionArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MetricAttribution(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          dataset_group_arn: Optional[str] = None,
                          metrics: Optional[Sequence[MetricAttributionMetricAttributeArgs]] = None,
                          metrics_output_config: Optional[MetricAttributionMetricsOutputConfigArgs] = None,
                          name: Optional[str] = None)
    func NewMetricAttribution(ctx *Context, name string, args MetricAttributionArgs, opts ...ResourceOption) (*MetricAttribution, error)
    public MetricAttribution(string name, MetricAttributionArgs args, CustomResourceOptions? opts = null)
    public MetricAttribution(String name, MetricAttributionArgs args)
    public MetricAttribution(String name, MetricAttributionArgs args, CustomResourceOptions options)
    
    type: aws-native:personalize:MetricAttribution
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_personalize_metric_attribution" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args MetricAttributionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MetricAttributionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MetricAttributionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MetricAttributionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MetricAttributionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MetricAttribution Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MetricAttribution resource accepts the following input properties:

    DatasetGroupArn string
    The ARN of the destination dataset group.
    Metrics List<Pulumi.AwsNative.Personalize.Inputs.MetricAttributionMetricAttribute>
    A list of metric attributes for the metric attribution.
    MetricsOutputConfig Pulumi.AwsNative.Personalize.Inputs.MetricAttributionMetricsOutputConfig
    Name string
    The name of the metric attribution.
    DatasetGroupArn string
    The ARN of the destination dataset group.
    Metrics []MetricAttributionMetricAttributeArgs
    A list of metric attributes for the metric attribution.
    MetricsOutputConfig MetricAttributionMetricsOutputConfigArgs
    Name string
    The name of the metric attribution.
    dataset_group_arn string
    The ARN of the destination dataset group.
    metrics list(object)
    A list of metric attributes for the metric attribution.
    metrics_output_config object
    name string
    The name of the metric attribution.
    datasetGroupArn String
    The ARN of the destination dataset group.
    metrics List<MetricAttributionMetricAttribute>
    A list of metric attributes for the metric attribution.
    metricsOutputConfig MetricAttributionMetricsOutputConfig
    name String
    The name of the metric attribution.
    datasetGroupArn string
    The ARN of the destination dataset group.
    metrics MetricAttributionMetricAttribute[]
    A list of metric attributes for the metric attribution.
    metricsOutputConfig MetricAttributionMetricsOutputConfig
    name string
    The name of the metric attribution.
    dataset_group_arn str
    The ARN of the destination dataset group.
    metrics Sequence[MetricAttributionMetricAttributeArgs]
    A list of metric attributes for the metric attribution.
    metrics_output_config MetricAttributionMetricsOutputConfigArgs
    name str
    The name of the metric attribution.
    datasetGroupArn String
    The ARN of the destination dataset group.
    metrics List<Property Map>
    A list of metric attributes for the metric attribution.
    metricsOutputConfig Property Map
    name String
    The name of the metric attribution.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MetricAttribution resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    MetricAttributionArn string
    The ARN of the metric attribution.
    Status string
    The status of the metric attribution.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetricAttributionArn string
    The ARN of the metric attribution.
    Status string
    The status of the metric attribution.
    id string
    The provider-assigned unique ID for this managed resource.
    metric_attribution_arn string
    The ARN of the metric attribution.
    status string
    The status of the metric attribution.
    id String
    The provider-assigned unique ID for this managed resource.
    metricAttributionArn String
    The ARN of the metric attribution.
    status String
    The status of the metric attribution.
    id string
    The provider-assigned unique ID for this managed resource.
    metricAttributionArn string
    The ARN of the metric attribution.
    status string
    The status of the metric attribution.
    id str
    The provider-assigned unique ID for this managed resource.
    metric_attribution_arn str
    The ARN of the metric attribution.
    status str
    The status of the metric attribution.
    id String
    The provider-assigned unique ID for this managed resource.
    metricAttributionArn String
    The ARN of the metric attribution.
    status String
    The status of the metric attribution.

    Supporting Types

    MetricAttributionMetricAttribute, MetricAttributionMetricAttributeArgs

    A metric attribute for the metric attribution.
    EventType string
    The metric's event type.
    Expression string
    The attribute's expression.
    MetricName string
    The metric's name.
    EventType string
    The metric's event type.
    Expression string
    The attribute's expression.
    MetricName string
    The metric's name.
    event_type string
    The metric's event type.
    expression string
    The attribute's expression.
    metric_name string
    The metric's name.
    eventType String
    The metric's event type.
    expression String
    The attribute's expression.
    metricName String
    The metric's name.
    eventType string
    The metric's event type.
    expression string
    The attribute's expression.
    metricName string
    The metric's name.
    event_type str
    The metric's event type.
    expression str
    The attribute's expression.
    metric_name str
    The metric's name.
    eventType String
    The metric's event type.
    expression String
    The attribute's expression.
    metricName String
    The metric's name.

    MetricAttributionMetricsOutputConfig, MetricAttributionMetricsOutputConfigArgs

    The output configuration details for the metric attribution.
    RoleArn string
    The ARN of the IAM role for the metric attribution.
    S3DataDestination MetricAttributionS3DataDestination
    role_arn string
    The ARN of the IAM role for the metric attribution.
    s3_data_destination object
    roleArn String
    The ARN of the IAM role for the metric attribution.
    s3DataDestination MetricAttributionS3DataDestination
    roleArn string
    The ARN of the IAM role for the metric attribution.
    s3DataDestination MetricAttributionS3DataDestination
    role_arn str
    The ARN of the IAM role for the metric attribution.
    s3_data_destination MetricAttributionS3DataDestination
    roleArn String
    The ARN of the IAM role for the metric attribution.
    s3DataDestination Property Map

    MetricAttributionS3DataDestination, MetricAttributionS3DataDestinationArgs

    The configuration details of an Amazon S3 output bucket.
    Path string
    The file path of the Amazon S3 bucket.
    KmsKeyArn string
    The ARN of the KMS key.
    Path string
    The file path of the Amazon S3 bucket.
    KmsKeyArn string
    The ARN of the KMS key.
    path string
    The file path of the Amazon S3 bucket.
    kms_key_arn string
    The ARN of the KMS key.
    path String
    The file path of the Amazon S3 bucket.
    kmsKeyArn String
    The ARN of the KMS key.
    path string
    The file path of the Amazon S3 bucket.
    kmsKeyArn string
    The ARN of the KMS key.
    path str
    The file path of the Amazon S3 bucket.
    kms_key_arn str
    The ARN of the KMS key.
    path String
    The file path of the Amazon S3 bucket.
    kmsKeyArn String
    The ARN of the KMS key.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial