import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AddApplicationOutputRequest, AddApplicationOutputResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AddApplicationOutputCommand}. */ export interface AddApplicationOutputCommandInput extends AddApplicationOutputRequest { } /** * @public * * The output of {@link AddApplicationOutputCommand}. */ export interface AddApplicationOutputCommandOutput extends AddApplicationOutputResponse, __MetadataBearer { } declare const AddApplicationOutputCommand_base: { new (input: AddApplicationOutputCommandInput): import("@smithy/core/client").CommandImpl; new (input: AddApplicationOutputCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds an external destination to your SQL-based Kinesis Data Analytics application.

*

If you want Kinesis Data Analytics to deliver data from an in-application stream within * your application to an external destination (such as an Kinesis data stream, a Kinesis Data * Firehose delivery stream, or an Amazon Lambda function), you add the relevant configuration to * your application using this operation. You can configure one or more outputs for your * application. Each output configuration maps an in-application stream and an external * destination.

*

You can use one of the output configurations to deliver data from your * in-application error stream to an external destination so that you can analyze the * errors.

*

Any configuration update, including adding a streaming source using this * operation, results in a new version of the application. You can use the DescribeApplication operation to find the current application * version.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { KinesisAnalyticsV2Client, AddApplicationOutputCommand } from "@aws-sdk/client-kinesis-analytics-v2"; // ES Modules import * // const { KinesisAnalyticsV2Client, AddApplicationOutputCommand } = require("@aws-sdk/client-kinesis-analytics-v2"); // CommonJS import * // import type { KinesisAnalyticsV2ClientConfig } from "@aws-sdk/client-kinesis-analytics-v2"; * const config = {}; // type is KinesisAnalyticsV2ClientConfig * const client = new KinesisAnalyticsV2Client(config); * const input = { // AddApplicationOutputRequest * ApplicationName: "STRING_VALUE", // required * CurrentApplicationVersionId: Number("long"), // required * Output: { // Output * Name: "STRING_VALUE", // required * KinesisStreamsOutput: { // KinesisStreamsOutput * ResourceARN: "STRING_VALUE", // required * }, * KinesisFirehoseOutput: { // KinesisFirehoseOutput * ResourceARN: "STRING_VALUE", // required * }, * LambdaOutput: { // LambdaOutput * ResourceARN: "STRING_VALUE", // required * }, * DestinationSchema: { // DestinationSchema * RecordFormatType: "JSON" || "CSV", // required * }, * }, * }; * const command = new AddApplicationOutputCommand(input); * const response = await client.send(command); * // { // AddApplicationOutputResponse * // ApplicationARN: "STRING_VALUE", * // ApplicationVersionId: Number("long"), * // OutputDescriptions: [ // OutputDescriptions * // { // OutputDescription * // OutputId: "STRING_VALUE", * // Name: "STRING_VALUE", * // KinesisStreamsOutputDescription: { // KinesisStreamsOutputDescription * // ResourceARN: "STRING_VALUE", // required * // RoleARN: "STRING_VALUE", * // }, * // KinesisFirehoseOutputDescription: { // KinesisFirehoseOutputDescription * // ResourceARN: "STRING_VALUE", // required * // RoleARN: "STRING_VALUE", * // }, * // LambdaOutputDescription: { // LambdaOutputDescription * // ResourceARN: "STRING_VALUE", // required * // RoleARN: "STRING_VALUE", * // }, * // DestinationSchema: { // DestinationSchema * // RecordFormatType: "JSON" || "CSV", // required * // }, * // }, * // ], * // }; * * ``` * * @param AddApplicationOutputCommandInput - {@link AddApplicationOutputCommandInput} * @returns {@link AddApplicationOutputCommandOutput} * @see {@link AddApplicationOutputCommandInput} for command's `input` shape. * @see {@link AddApplicationOutputCommandOutput} for command's `response` shape. * @see {@link KinesisAnalyticsV2ClientResolvedConfig | config} for KinesisAnalyticsV2Client's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

Exception thrown as a result of concurrent modifications to an application. This error can * be the result of attempting to modify an application without using the current application * ID.

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

The specified input parameter value is not valid.

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

The request JSON is not valid for the operation.

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

The application is not available for this operation.

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

Specified application can't be found.

* * @throws {@link KinesisAnalyticsV2ServiceException} *

Base exception class for all service exceptions from KinesisAnalyticsV2 service.

* * * @public */ export declare class AddApplicationOutputCommand extends AddApplicationOutputCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AddApplicationOutputRequest; output: AddApplicationOutputResponse; }; sdk: { input: AddApplicationOutputCommandInput; output: AddApplicationOutputCommandOutput; }; }; }