import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateCalculatedAttributeDefinitionRequest, UpdateCalculatedAttributeDefinitionResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateCalculatedAttributeDefinitionCommand}. */ export interface UpdateCalculatedAttributeDefinitionCommandInput extends UpdateCalculatedAttributeDefinitionRequest { } /** * @public * * The output of {@link UpdateCalculatedAttributeDefinitionCommand}. */ export interface UpdateCalculatedAttributeDefinitionCommandOutput extends UpdateCalculatedAttributeDefinitionResponse, __MetadataBearer { } declare const UpdateCalculatedAttributeDefinitionCommand_base: { new (input: UpdateCalculatedAttributeDefinitionCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateCalculatedAttributeDefinitionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates an existing calculated attribute definition. When updating the Conditions, note * that increasing the date range of a calculated attribute will not trigger inclusion of * historical data greater than the current date range.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CustomerProfilesClient, UpdateCalculatedAttributeDefinitionCommand } from "@aws-sdk/client-customer-profiles"; // ES Modules import * // const { CustomerProfilesClient, UpdateCalculatedAttributeDefinitionCommand } = require("@aws-sdk/client-customer-profiles"); // CommonJS import * // import type { CustomerProfilesClientConfig } from "@aws-sdk/client-customer-profiles"; * const config = {}; // type is CustomerProfilesClientConfig * const client = new CustomerProfilesClient(config); * const input = { // UpdateCalculatedAttributeDefinitionRequest * DomainName: "STRING_VALUE", // required * CalculatedAttributeName: "STRING_VALUE", // required * DisplayName: "STRING_VALUE", * Description: "STRING_VALUE", * Conditions: { // Conditions * Range: { // Range * Value: Number("int"), * Unit: "DAYS", * ValueRange: { // ValueRange * Start: Number("int"), // required * End: Number("int"), // required * }, * TimestampSource: "STRING_VALUE", * TimestampFormat: "STRING_VALUE", * }, * ObjectCount: Number("int"), * Threshold: { // Threshold * Value: "STRING_VALUE", // required * Operator: "EQUAL_TO" || "GREATER_THAN" || "LESS_THAN" || "NOT_EQUAL_TO", // required * }, * }, * }; * const command = new UpdateCalculatedAttributeDefinitionCommand(input); * const response = await client.send(command); * // { // UpdateCalculatedAttributeDefinitionResponse * // CalculatedAttributeName: "STRING_VALUE", * // DisplayName: "STRING_VALUE", * // Description: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // LastUpdatedAt: new Date("TIMESTAMP"), * // Statistic: "FIRST_OCCURRENCE" || "LAST_OCCURRENCE" || "COUNT" || "SUM" || "MINIMUM" || "MAXIMUM" || "AVERAGE" || "MAX_OCCURRENCE", * // Conditions: { // Conditions * // Range: { // Range * // Value: Number("int"), * // Unit: "DAYS", * // ValueRange: { // ValueRange * // Start: Number("int"), // required * // End: Number("int"), // required * // }, * // TimestampSource: "STRING_VALUE", * // TimestampFormat: "STRING_VALUE", * // }, * // ObjectCount: Number("int"), * // Threshold: { // Threshold * // Value: "STRING_VALUE", // required * // Operator: "EQUAL_TO" || "GREATER_THAN" || "LESS_THAN" || "NOT_EQUAL_TO", // required * // }, * // }, * // AttributeDetails: { // AttributeDetails * // Attributes: [ // AttributeList // required * // { // AttributeItem * // Name: "STRING_VALUE", // required * // }, * // ], * // Expression: "STRING_VALUE", // required * // }, * // UseHistoricalData: true || false, * // Status: "PREPARING" || "IN_PROGRESS" || "COMPLETED" || "FAILED", * // Readiness: { // Readiness * // ProgressPercentage: Number("int"), * // Message: "STRING_VALUE", * // }, * // Tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param UpdateCalculatedAttributeDefinitionCommandInput - {@link UpdateCalculatedAttributeDefinitionCommandInput} * @returns {@link UpdateCalculatedAttributeDefinitionCommandOutput} * @see {@link UpdateCalculatedAttributeDefinitionCommandInput} for command's `input` shape. * @see {@link UpdateCalculatedAttributeDefinitionCommandOutput} for command's `response` shape. * @see {@link CustomerProfilesClientResolvedConfig | config} for CustomerProfilesClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

The input you provided is invalid.

* * @throws {@link InternalServerException} (server fault) *

An internal service error occurred.

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

The requested resource does not exist, or access was denied.

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

You exceeded the maximum number of requests.

* * @throws {@link CustomerProfilesServiceException} *

Base exception class for all service exceptions from CustomerProfiles service.

* * * @public */ export declare class UpdateCalculatedAttributeDefinitionCommand extends UpdateCalculatedAttributeDefinitionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateCalculatedAttributeDefinitionRequest; output: UpdateCalculatedAttributeDefinitionResponse; }; sdk: { input: UpdateCalculatedAttributeDefinitionCommandInput; output: UpdateCalculatedAttributeDefinitionCommandOutput; }; }; }