import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateMetricAttributionRequest, CreateMetricAttributionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateMetricAttributionCommand}. */ export interface CreateMetricAttributionCommandInput extends CreateMetricAttributionRequest { } /** * @public * * The output of {@link CreateMetricAttributionCommand}. */ export interface CreateMetricAttributionCommandOutput extends CreateMetricAttributionResponse, __MetadataBearer { } declare const CreateMetricAttributionCommand_base: { new (input: CreateMetricAttributionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateMetricAttributionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a metric attribution. * A metric attribution creates reports on the data that you import into Amazon Personalize. Depending on how you imported the data, you can view reports in Amazon CloudWatch or Amazon S3. * For more information, see Measuring impact of recommendations.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PersonalizeClient, CreateMetricAttributionCommand } from "@aws-sdk/client-personalize"; // ES Modules import * // const { PersonalizeClient, CreateMetricAttributionCommand } = require("@aws-sdk/client-personalize"); // CommonJS import * // import type { PersonalizeClientConfig } from "@aws-sdk/client-personalize"; * const config = {}; // type is PersonalizeClientConfig * const client = new PersonalizeClient(config); * const input = { // CreateMetricAttributionRequest * name: "STRING_VALUE", // required * datasetGroupArn: "STRING_VALUE", // required * metrics: [ // MetricAttributes // required * { // MetricAttribute * eventType: "STRING_VALUE", // required * metricName: "STRING_VALUE", // required * expression: "STRING_VALUE", // required * }, * ], * metricsOutputConfig: { // MetricAttributionOutput * s3DataDestination: { // S3DataConfig * path: "STRING_VALUE", // required * kmsKeyArn: "STRING_VALUE", * }, * roleArn: "STRING_VALUE", // required * }, * }; * const command = new CreateMetricAttributionCommand(input); * const response = await client.send(command); * // { // CreateMetricAttributionResponse * // metricAttributionArn: "STRING_VALUE", * // }; * * ``` * * @param CreateMetricAttributionCommandInput - {@link CreateMetricAttributionCommandInput} * @returns {@link CreateMetricAttributionCommandOutput} * @see {@link CreateMetricAttributionCommandInput} for command's `input` shape. * @see {@link CreateMetricAttributionCommandOutput} for command's `response` shape. * @see {@link PersonalizeClientResolvedConfig | config} for PersonalizeClient's `config` shape. * * @throws {@link InvalidInputException} (client fault) *

Provide a valid value for the field or parameter.

* * @throws {@link LimitExceededException} (client fault) *

The limit on the number of requests per second has been exceeded.

* * @throws {@link ResourceAlreadyExistsException} (client fault) *

The specified resource already exists.

* * @throws {@link ResourceInUseException} (client fault) *

The specified resource is in use.

* * @throws {@link ResourceNotFoundException} (client fault) *

Could not find the specified resource.

* * @throws {@link PersonalizeServiceException} *

Base exception class for all service exceptions from Personalize service.

* * * @public */ export declare class CreateMetricAttributionCommand extends CreateMetricAttributionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateMetricAttributionRequest; output: CreateMetricAttributionResponse; }; sdk: { input: CreateMetricAttributionCommandInput; output: CreateMetricAttributionCommandOutput; }; }; }