import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateEventActionRequest, CreateEventActionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateEventActionCommand}. */ export interface CreateEventActionCommandInput extends CreateEventActionRequest { } /** * @public * * The output of {@link CreateEventActionCommand}. */ export interface CreateEventActionCommandOutput extends CreateEventActionResponse, __MetadataBearer { } declare const CreateEventActionCommand_base: { new (input: CreateEventActionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateEventActionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

This operation creates an event action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DataExchangeClient, CreateEventActionCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import * // const { DataExchangeClient, CreateEventActionCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import * // import type { DataExchangeClientConfig } from "@aws-sdk/client-dataexchange"; * const config = {}; // type is DataExchangeClientConfig * const client = new DataExchangeClient(config); * const input = { // CreateEventActionRequest * Action: { // Action * ExportRevisionToS3: { // AutoExportRevisionToS3RequestDetails * Encryption: { // ExportServerSideEncryption * KmsKeyArn: "STRING_VALUE", * Type: "STRING_VALUE", // required * }, * RevisionDestination: { // AutoExportRevisionDestinationEntry * Bucket: "STRING_VALUE", // required * KeyPattern: "STRING_VALUE", * }, * }, * }, * Event: { // Event * RevisionPublished: { // RevisionPublished * DataSetId: "STRING_VALUE", // required * }, * }, * Tags: { // MapOf__string * "": "STRING_VALUE", * }, * }; * const command = new CreateEventActionCommand(input); * const response = await client.send(command); * // { // CreateEventActionResponse * // Action: { // Action * // ExportRevisionToS3: { // AutoExportRevisionToS3RequestDetails * // Encryption: { // ExportServerSideEncryption * // KmsKeyArn: "STRING_VALUE", * // Type: "STRING_VALUE", // required * // }, * // RevisionDestination: { // AutoExportRevisionDestinationEntry * // Bucket: "STRING_VALUE", // required * // KeyPattern: "STRING_VALUE", * // }, * // }, * // }, * // Arn: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // Event: { // Event * // RevisionPublished: { // RevisionPublished * // DataSetId: "STRING_VALUE", // required * // }, * // }, * // Id: "STRING_VALUE", * // Tags: { // MapOf__string * // "": "STRING_VALUE", * // }, * // UpdatedAt: new Date("TIMESTAMP"), * // }; * * ``` * * @param CreateEventActionCommandInput - {@link CreateEventActionCommandInput} * @returns {@link CreateEventActionCommandOutput} * @see {@link CreateEventActionCommandInput} for command's `input` shape. * @see {@link CreateEventActionCommandOutput} for command's `response` shape. * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Access to the resource is denied.

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

An exception occurred with the service.

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

The request has exceeded the quotas imposed by the service.

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

The limit on the number of requests per second was exceeded.

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

The request was invalid.

* * @throws {@link DataExchangeServiceException} *

Base exception class for all service exceptions from DataExchange service.

* * * @public */ export declare class CreateEventActionCommand extends CreateEventActionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateEventActionRequest; output: CreateEventActionResponse; }; sdk: { input: CreateEventActionCommandInput; output: CreateEventActionCommandOutput; }; }; }