We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- Dataset
Group stringArn - The ARN of the destination dataset group.
- Metrics
List<Pulumi.
Aws Native. Personalize. Inputs. Metric Attribution Metric Attribute> - A list of metric attributes for the metric attribution.
- Metrics
Output Pulumi.Config Aws Native. Personalize. Inputs. Metric Attribution Metrics Output Config - Name string
- The name of the metric attribution.
- Dataset
Group stringArn - The ARN of the destination dataset group.
- Metrics
[]Metric
Attribution Metric Attribute Args - A list of metric attributes for the metric attribution.
- Metrics
Output MetricConfig Attribution Metrics Output Config Args - Name string
- The name of the metric attribution.
- dataset_
group_ stringarn - The ARN of the destination dataset group.
- metrics list(object)
- A list of metric attributes for the metric attribution.
- metrics_
output_ objectconfig - name string
- The name of the metric attribution.
- dataset
Group StringArn - The ARN of the destination dataset group.
- metrics
List<Metric
Attribution Metric Attribute> - A list of metric attributes for the metric attribution.
- metrics
Output MetricConfig Attribution Metrics Output Config - name String
- The name of the metric attribution.
- dataset
Group stringArn - The ARN of the destination dataset group.
- metrics
Metric
Attribution Metric Attribute[] - A list of metric attributes for the metric attribution.
- metrics
Output MetricConfig Attribution Metrics Output Config - name string
- The name of the metric attribution.
- dataset_
group_ strarn - The ARN of the destination dataset group.
- metrics
Sequence[Metric
Attribution Metric Attribute Args] - A list of metric attributes for the metric attribution.
- metrics_
output_ Metricconfig Attribution Metrics Output Config Args - name str
- The name of the metric attribution.
- dataset
Group StringArn - The ARN of the destination dataset group.
- metrics List<Property Map>
- A list of metric attributes for the metric attribution.
- metrics
Output Property MapConfig - 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.
- Metric
Attribution stringArn - 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 stringArn - 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_ stringarn - 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 StringArn - 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 stringArn - 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_ strarn - 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.
- metric
Attribution StringArn - 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.- Event
Type string - The metric's event type.
- Expression string
- The attribute's expression.
- Metric
Name 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.
- event_
type string - The metric's event type.
- expression string
- The attribute's expression.
- metric_
name 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.
- event
Type string - The metric's event type.
- expression string
- The attribute's expression.
- metric
Name 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.
- event
Type String - The metric's event type.
- expression String
- The attribute's expression.
- metric
Name String - The metric's name.
MetricAttributionMetricsOutputConfig, MetricAttributionMetricsOutputConfigArgs
The output configuration details for the metric attribution.- Role
Arn string - The ARN of the IAM role for the metric attribution.
- S3Data
Destination Pulumi.Aws Native. Personalize. Inputs. Metric Attribution S3Data Destination
- Role
Arn string - The ARN of the IAM role for the metric attribution.
- S3Data
Destination MetricAttribution S3Data Destination
- role_
arn string - The ARN of the IAM role for the metric attribution.
- s3_
data_ objectdestination
- role
Arn String - The ARN of the IAM role for the metric attribution.
- s3Data
Destination MetricAttribution S3Data Destination
- role
Arn string - The ARN of the IAM role for the metric attribution.
- s3Data
Destination MetricAttribution S3Data Destination
- role_
arn str - The ARN of the IAM role for the metric attribution.
- s3_
data_ Metricdestination Attribution S3Data Destination
- role
Arn String - The ARN of the IAM role for the metric attribution.
- s3Data
Destination Property Map
MetricAttributionS3DataDestination, MetricAttributionS3DataDestinationArgs
The configuration details of an Amazon S3 output bucket.- path string
- The file path of the Amazon S3 bucket.
- kms_
key_ stringarn - The ARN of the KMS key.
- path str
- The file path of the Amazon S3 bucket.
- kms_
key_ strarn - The ARN of the KMS key.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi