import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateEventTriggerRequest, CreateEventTriggerResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateEventTriggerCommand}. */ export interface CreateEventTriggerCommandInput extends CreateEventTriggerRequest { } /** * @public * * The output of {@link CreateEventTriggerCommand}. */ export interface CreateEventTriggerCommandOutput extends CreateEventTriggerResponse, __MetadataBearer { } declare const CreateEventTriggerCommand_base: { new (input: CreateEventTriggerCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateEventTriggerCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an event trigger, which specifies the rules when to perform action based on * customer's ingested data.

*

Each event stream can be associated with only one integration in the same region and AWS * account as the event stream.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CustomerProfilesClient, CreateEventTriggerCommand } from "@aws-sdk/client-customer-profiles"; // ES Modules import * // const { CustomerProfilesClient, CreateEventTriggerCommand } = 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 = { // CreateEventTriggerRequest * DomainName: "STRING_VALUE", // required * EventTriggerName: "STRING_VALUE", // required * ObjectTypeName: "STRING_VALUE", // required * Description: "STRING_VALUE", * EventTriggerConditions: [ // EventTriggerConditions // required * { // EventTriggerCondition * EventTriggerDimensions: [ // EventTriggerDimensions // required * { // EventTriggerDimension * ObjectAttributes: [ // ObjectAttributes // required * { // ObjectAttribute * Source: "STRING_VALUE", * FieldName: "STRING_VALUE", * ComparisonOperator: "INCLUSIVE" || "EXCLUSIVE" || "CONTAINS" || "BEGINS_WITH" || "ENDS_WITH" || "GREATER_THAN" || "LESS_THAN" || "GREATER_THAN_OR_EQUAL" || "LESS_THAN_OR_EQUAL" || "EQUAL" || "BEFORE" || "AFTER" || "ON" || "BETWEEN" || "NOT_BETWEEN", // required * Values: [ // EventTriggerValues // required * "STRING_VALUE", * ], * }, * ], * }, * ], * LogicalOperator: "ANY" || "ALL" || "NONE", // required * }, * ], * SegmentFilter: "STRING_VALUE", * EventTriggerLimits: { // EventTriggerLimits * EventExpiration: Number("long"), * Periods: [ // Periods * { // Period * Unit: "MINUTES" || "HOURS" || "DAYS" || "WEEKS" || "MONTHS", // required * Value: Number("int"), // required * MaxInvocationsPerProfile: Number("int"), * Unlimited: true || false, * }, * ], * }, * Tags: { // TagMap * "": "STRING_VALUE", * }, * }; * const command = new CreateEventTriggerCommand(input); * const response = await client.send(command); * // { // CreateEventTriggerResponse * // EventTriggerName: "STRING_VALUE", * // ObjectTypeName: "STRING_VALUE", * // Description: "STRING_VALUE", * // EventTriggerConditions: [ // EventTriggerConditions * // { // EventTriggerCondition * // EventTriggerDimensions: [ // EventTriggerDimensions // required * // { // EventTriggerDimension * // ObjectAttributes: [ // ObjectAttributes // required * // { // ObjectAttribute * // Source: "STRING_VALUE", * // FieldName: "STRING_VALUE", * // ComparisonOperator: "INCLUSIVE" || "EXCLUSIVE" || "CONTAINS" || "BEGINS_WITH" || "ENDS_WITH" || "GREATER_THAN" || "LESS_THAN" || "GREATER_THAN_OR_EQUAL" || "LESS_THAN_OR_EQUAL" || "EQUAL" || "BEFORE" || "AFTER" || "ON" || "BETWEEN" || "NOT_BETWEEN", // required * // Values: [ // EventTriggerValues // required * // "STRING_VALUE", * // ], * // }, * // ], * // }, * // ], * // LogicalOperator: "ANY" || "ALL" || "NONE", // required * // }, * // ], * // SegmentFilter: "STRING_VALUE", * // EventTriggerLimits: { // EventTriggerLimits * // EventExpiration: Number("long"), * // Periods: [ // Periods * // { // Period * // Unit: "MINUTES" || "HOURS" || "DAYS" || "WEEKS" || "MONTHS", // required * // Value: Number("int"), // required * // MaxInvocationsPerProfile: Number("int"), * // Unlimited: true || false, * // }, * // ], * // }, * // CreatedAt: new Date("TIMESTAMP"), * // LastUpdatedAt: new Date("TIMESTAMP"), * // Tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateEventTriggerCommandInput - {@link CreateEventTriggerCommandInput} * @returns {@link CreateEventTriggerCommandOutput} * @see {@link CreateEventTriggerCommandInput} for command's `input` shape. * @see {@link CreateEventTriggerCommandOutput} 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 CreateEventTriggerCommand extends CreateEventTriggerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateEventTriggerRequest; output: CreateEventTriggerResponse; }; sdk: { input: CreateEventTriggerCommandInput; output: CreateEventTriggerCommandOutput; }; }; }