import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateApplicationRequest, CreateApplicationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateApplicationCommand}. */ export interface CreateApplicationCommandInput extends CreateApplicationRequest { } /** * @public * * The output of {@link CreateApplicationCommand}. */ export interface CreateApplicationCommandOutput extends CreateApplicationResponse, __MetadataBearer { } declare const CreateApplicationCommand_base: { new (input: CreateApplicationCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateApplicationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a Managed Service for Apache Flink application. For information about creating a * Managed Service for Apache Flink application, see Creating an * Application.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { KinesisAnalyticsV2Client, CreateApplicationCommand } from "@aws-sdk/client-kinesis-analytics-v2"; // ES Modules import * // const { KinesisAnalyticsV2Client, CreateApplicationCommand } = 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 = { // CreateApplicationRequest * ApplicationName: "STRING_VALUE", // required * ApplicationDescription: "STRING_VALUE", * RuntimeEnvironment: "SQL-1_0" || "FLINK-1_6" || "FLINK-1_8" || "ZEPPELIN-FLINK-1_0" || "FLINK-1_11" || "FLINK-1_13" || "ZEPPELIN-FLINK-2_0" || "FLINK-1_15" || "ZEPPELIN-FLINK-3_0" || "FLINK-1_18" || "FLINK-1_19" || "FLINK-1_20" || "FLINK-2_2" || "FLINK-2_3", // required * ServiceExecutionRole: "STRING_VALUE", // required * ApplicationConfiguration: { // ApplicationConfiguration * SqlApplicationConfiguration: { // SqlApplicationConfiguration * Inputs: [ // Inputs * { // Input * NamePrefix: "STRING_VALUE", // required * InputProcessingConfiguration: { // InputProcessingConfiguration * InputLambdaProcessor: { // InputLambdaProcessor * ResourceARN: "STRING_VALUE", // required * }, * }, * KinesisStreamsInput: { // KinesisStreamsInput * ResourceARN: "STRING_VALUE", // required * }, * KinesisFirehoseInput: { // KinesisFirehoseInput * ResourceARN: "STRING_VALUE", // required * }, * InputParallelism: { // InputParallelism * Count: Number("int"), * }, * InputSchema: { // SourceSchema * RecordFormat: { // RecordFormat * RecordFormatType: "JSON" || "CSV", // required * MappingParameters: { // MappingParameters * JSONMappingParameters: { // JSONMappingParameters * RecordRowPath: "STRING_VALUE", // required * }, * CSVMappingParameters: { // CSVMappingParameters * RecordRowDelimiter: "STRING_VALUE", // required * RecordColumnDelimiter: "STRING_VALUE", // required * }, * }, * }, * RecordEncoding: "STRING_VALUE", * RecordColumns: [ // RecordColumns // required * { // RecordColumn * Name: "STRING_VALUE", // required * Mapping: "STRING_VALUE", * SqlType: "STRING_VALUE", // required * }, * ], * }, * }, * ], * Outputs: [ // Outputs * { // 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 * }, * }, * ], * ReferenceDataSources: [ // ReferenceDataSources * { // ReferenceDataSource * TableName: "STRING_VALUE", // required * S3ReferenceDataSource: { // S3ReferenceDataSource * BucketARN: "STRING_VALUE", * FileKey: "STRING_VALUE", * }, * ReferenceSchema: { * RecordFormat: { * RecordFormatType: "JSON" || "CSV", // required * MappingParameters: { * JSONMappingParameters: { * RecordRowPath: "STRING_VALUE", // required * }, * CSVMappingParameters: { * RecordRowDelimiter: "STRING_VALUE", // required * RecordColumnDelimiter: "STRING_VALUE", // required * }, * }, * }, * RecordEncoding: "STRING_VALUE", * RecordColumns: [ // required * { * Name: "STRING_VALUE", // required * Mapping: "STRING_VALUE", * SqlType: "STRING_VALUE", // required * }, * ], * }, * }, * ], * }, * FlinkApplicationConfiguration: { // FlinkApplicationConfiguration * CheckpointConfiguration: { // CheckpointConfiguration * ConfigurationType: "DEFAULT" || "CUSTOM", // required * CheckpointingEnabled: true || false, * CheckpointInterval: Number("long"), * MinPauseBetweenCheckpoints: Number("long"), * }, * MonitoringConfiguration: { // MonitoringConfiguration * ConfigurationType: "DEFAULT" || "CUSTOM", // required * MetricsLevel: "APPLICATION" || "TASK" || "OPERATOR" || "PARALLELISM", * LogLevel: "INFO" || "WARN" || "ERROR" || "DEBUG", * }, * ParallelismConfiguration: { // ParallelismConfiguration * ConfigurationType: "DEFAULT" || "CUSTOM", // required * Parallelism: Number("int"), * ParallelismPerKPU: Number("int"), * AutoScalingEnabled: true || false, * }, * }, * EnvironmentProperties: { // EnvironmentProperties * PropertyGroups: [ // PropertyGroups // required * { // PropertyGroup * PropertyGroupId: "STRING_VALUE", // required * PropertyMap: { // PropertyMap // required * "": "STRING_VALUE", * }, * }, * ], * }, * ApplicationCodeConfiguration: { // ApplicationCodeConfiguration * CodeContent: { // CodeContent * TextContent: "STRING_VALUE", * ZipFileContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * S3ContentLocation: { // S3ContentLocation * BucketARN: "STRING_VALUE", // required * FileKey: "STRING_VALUE", // required * ObjectVersion: "STRING_VALUE", * }, * }, * CodeContentType: "PLAINTEXT" || "ZIPFILE", // required * }, * ApplicationSnapshotConfiguration: { // ApplicationSnapshotConfiguration * SnapshotsEnabled: true || false, // required * }, * ApplicationSystemRollbackConfiguration: { // ApplicationSystemRollbackConfiguration * RollbackEnabled: true || false, // required * }, * VpcConfigurations: [ // VpcConfigurations * { // VpcConfiguration * SubnetIds: [ // SubnetIds // required * "STRING_VALUE", * ], * SecurityGroupIds: [ // SecurityGroupIds // required * "STRING_VALUE", * ], * }, * ], * ZeppelinApplicationConfiguration: { // ZeppelinApplicationConfiguration * MonitoringConfiguration: { // ZeppelinMonitoringConfiguration * LogLevel: "INFO" || "WARN" || "ERROR" || "DEBUG", // required * }, * CatalogConfiguration: { // CatalogConfiguration * GlueDataCatalogConfiguration: { // GlueDataCatalogConfiguration * DatabaseARN: "STRING_VALUE", // required * }, * }, * DeployAsApplicationConfiguration: { // DeployAsApplicationConfiguration * S3ContentLocation: { // S3ContentBaseLocation * BucketARN: "STRING_VALUE", // required * BasePath: "STRING_VALUE", * }, * }, * CustomArtifactsConfiguration: [ // CustomArtifactsConfigurationList * { // CustomArtifactConfiguration * ArtifactType: "UDF" || "DEPENDENCY_JAR", // required * S3ContentLocation: { * BucketARN: "STRING_VALUE", // required * FileKey: "STRING_VALUE", // required * ObjectVersion: "STRING_VALUE", * }, * MavenReference: { // MavenReference * GroupId: "STRING_VALUE", // required * ArtifactId: "STRING_VALUE", // required * Version: "STRING_VALUE", // required * }, * }, * ], * }, * ApplicationEncryptionConfiguration: { // ApplicationEncryptionConfiguration * KeyId: "STRING_VALUE", * KeyType: "AWS_OWNED_KEY" || "CUSTOMER_MANAGED_KEY", // required * }, * }, * CloudWatchLoggingOptions: [ // CloudWatchLoggingOptions * { // CloudWatchLoggingOption * LogStreamARN: "STRING_VALUE", // required * }, * ], * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * ApplicationMode: "STREAMING" || "INTERACTIVE", * }; * const command = new CreateApplicationCommand(input); * const response = await client.send(command); * // { // CreateApplicationResponse * // ApplicationDetail: { // ApplicationDetail * // ApplicationARN: "STRING_VALUE", // required * // ApplicationDescription: "STRING_VALUE", * // ApplicationName: "STRING_VALUE", // required * // RuntimeEnvironment: "SQL-1_0" || "FLINK-1_6" || "FLINK-1_8" || "ZEPPELIN-FLINK-1_0" || "FLINK-1_11" || "FLINK-1_13" || "ZEPPELIN-FLINK-2_0" || "FLINK-1_15" || "ZEPPELIN-FLINK-3_0" || "FLINK-1_18" || "FLINK-1_19" || "FLINK-1_20" || "FLINK-2_2" || "FLINK-2_3", // required * // ServiceExecutionRole: "STRING_VALUE", * // ApplicationStatus: "DELETING" || "STARTING" || "STOPPING" || "READY" || "RUNNING" || "UPDATING" || "AUTOSCALING" || "FORCE_STOPPING" || "ROLLING_BACK" || "MAINTENANCE" || "ROLLED_BACK", // required * // ApplicationVersionId: Number("long"), // required * // CreateTimestamp: new Date("TIMESTAMP"), * // LastUpdateTimestamp: new Date("TIMESTAMP"), * // ApplicationConfigurationDescription: { // ApplicationConfigurationDescription * // SqlApplicationConfigurationDescription: { // SqlApplicationConfigurationDescription * // InputDescriptions: [ // InputDescriptions * // { // InputDescription * // InputId: "STRING_VALUE", * // NamePrefix: "STRING_VALUE", * // InAppStreamNames: [ // InAppStreamNames * // "STRING_VALUE", * // ], * // InputProcessingConfigurationDescription: { // InputProcessingConfigurationDescription * // InputLambdaProcessorDescription: { // InputLambdaProcessorDescription * // ResourceARN: "STRING_VALUE", // required * // RoleARN: "STRING_VALUE", * // }, * // }, * // KinesisStreamsInputDescription: { // KinesisStreamsInputDescription * // ResourceARN: "STRING_VALUE", // required * // RoleARN: "STRING_VALUE", * // }, * // KinesisFirehoseInputDescription: { // KinesisFirehoseInputDescription * // ResourceARN: "STRING_VALUE", // required * // RoleARN: "STRING_VALUE", * // }, * // InputSchema: { // SourceSchema * // RecordFormat: { // RecordFormat * // RecordFormatType: "JSON" || "CSV", // required * // MappingParameters: { // MappingParameters * // JSONMappingParameters: { // JSONMappingParameters * // RecordRowPath: "STRING_VALUE", // required * // }, * // CSVMappingParameters: { // CSVMappingParameters * // RecordRowDelimiter: "STRING_VALUE", // required * // RecordColumnDelimiter: "STRING_VALUE", // required * // }, * // }, * // }, * // RecordEncoding: "STRING_VALUE", * // RecordColumns: [ // RecordColumns // required * // { // RecordColumn * // Name: "STRING_VALUE", // required * // Mapping: "STRING_VALUE", * // SqlType: "STRING_VALUE", // required * // }, * // ], * // }, * // InputParallelism: { // InputParallelism * // Count: Number("int"), * // }, * // InputStartingPositionConfiguration: { // InputStartingPositionConfiguration * // InputStartingPosition: "NOW" || "TRIM_HORIZON" || "LAST_STOPPED_POINT", * // }, * // }, * // ], * // 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 * // }, * // }, * // ], * // ReferenceDataSourceDescriptions: [ // ReferenceDataSourceDescriptions * // { // ReferenceDataSourceDescription * // ReferenceId: "STRING_VALUE", // required * // TableName: "STRING_VALUE", // required * // S3ReferenceDataSourceDescription: { // S3ReferenceDataSourceDescription * // BucketARN: "STRING_VALUE", // required * // FileKey: "STRING_VALUE", // required * // ReferenceRoleARN: "STRING_VALUE", * // }, * // ReferenceSchema: { * // RecordFormat: { * // RecordFormatType: "JSON" || "CSV", // required * // MappingParameters: { * // JSONMappingParameters: { * // RecordRowPath: "STRING_VALUE", // required * // }, * // CSVMappingParameters: { * // RecordRowDelimiter: "STRING_VALUE", // required * // RecordColumnDelimiter: "STRING_VALUE", // required * // }, * // }, * // }, * // RecordEncoding: "STRING_VALUE", * // RecordColumns: [ // required * // { * // Name: "STRING_VALUE", // required * // Mapping: "STRING_VALUE", * // SqlType: "STRING_VALUE", // required * // }, * // ], * // }, * // }, * // ], * // }, * // ApplicationCodeConfigurationDescription: { // ApplicationCodeConfigurationDescription * // CodeContentType: "PLAINTEXT" || "ZIPFILE", // required * // CodeContentDescription: { // CodeContentDescription * // TextContent: "STRING_VALUE", * // CodeMD5: "STRING_VALUE", * // CodeSize: Number("long"), * // S3ApplicationCodeLocationDescription: { // S3ApplicationCodeLocationDescription * // BucketARN: "STRING_VALUE", // required * // FileKey: "STRING_VALUE", // required * // ObjectVersion: "STRING_VALUE", * // }, * // }, * // }, * // RunConfigurationDescription: { // RunConfigurationDescription * // ApplicationRestoreConfigurationDescription: { // ApplicationRestoreConfiguration * // ApplicationRestoreType: "SKIP_RESTORE_FROM_SNAPSHOT" || "RESTORE_FROM_LATEST_SNAPSHOT" || "RESTORE_FROM_CUSTOM_SNAPSHOT", // required * // SnapshotName: "STRING_VALUE", * // }, * // FlinkRunConfigurationDescription: { // FlinkRunConfiguration * // AllowNonRestoredState: true || false, * // }, * // }, * // FlinkApplicationConfigurationDescription: { // FlinkApplicationConfigurationDescription * // CheckpointConfigurationDescription: { // CheckpointConfigurationDescription * // ConfigurationType: "DEFAULT" || "CUSTOM", * // CheckpointingEnabled: true || false, * // CheckpointInterval: Number("long"), * // MinPauseBetweenCheckpoints: Number("long"), * // }, * // MonitoringConfigurationDescription: { // MonitoringConfigurationDescription * // ConfigurationType: "DEFAULT" || "CUSTOM", * // MetricsLevel: "APPLICATION" || "TASK" || "OPERATOR" || "PARALLELISM", * // LogLevel: "INFO" || "WARN" || "ERROR" || "DEBUG", * // }, * // ParallelismConfigurationDescription: { // ParallelismConfigurationDescription * // ConfigurationType: "DEFAULT" || "CUSTOM", * // Parallelism: Number("int"), * // ParallelismPerKPU: Number("int"), * // CurrentParallelism: Number("int"), * // AutoScalingEnabled: true || false, * // }, * // JobPlanDescription: "STRING_VALUE", * // }, * // EnvironmentPropertyDescriptions: { // EnvironmentPropertyDescriptions * // PropertyGroupDescriptions: [ // PropertyGroups * // { // PropertyGroup * // PropertyGroupId: "STRING_VALUE", // required * // PropertyMap: { // PropertyMap // required * // "": "STRING_VALUE", * // }, * // }, * // ], * // }, * // ApplicationSnapshotConfigurationDescription: { // ApplicationSnapshotConfigurationDescription * // SnapshotsEnabled: true || false, // required * // }, * // ApplicationSystemRollbackConfigurationDescription: { // ApplicationSystemRollbackConfigurationDescription * // RollbackEnabled: true || false, // required * // }, * // VpcConfigurationDescriptions: [ // VpcConfigurationDescriptions * // { // VpcConfigurationDescription * // VpcConfigurationId: "STRING_VALUE", // required * // VpcId: "STRING_VALUE", // required * // SubnetIds: [ // SubnetIds // required * // "STRING_VALUE", * // ], * // SecurityGroupIds: [ // SecurityGroupIds // required * // "STRING_VALUE", * // ], * // }, * // ], * // ZeppelinApplicationConfigurationDescription: { // ZeppelinApplicationConfigurationDescription * // MonitoringConfigurationDescription: { // ZeppelinMonitoringConfigurationDescription * // LogLevel: "INFO" || "WARN" || "ERROR" || "DEBUG", * // }, * // CatalogConfigurationDescription: { // CatalogConfigurationDescription * // GlueDataCatalogConfigurationDescription: { // GlueDataCatalogConfigurationDescription * // DatabaseARN: "STRING_VALUE", // required * // }, * // }, * // DeployAsApplicationConfigurationDescription: { // DeployAsApplicationConfigurationDescription * // S3ContentLocationDescription: { // S3ContentBaseLocationDescription * // BucketARN: "STRING_VALUE", // required * // BasePath: "STRING_VALUE", * // }, * // }, * // CustomArtifactsConfigurationDescription: [ // CustomArtifactsConfigurationDescriptionList * // { // CustomArtifactConfigurationDescription * // ArtifactType: "UDF" || "DEPENDENCY_JAR", * // S3ContentLocationDescription: { // S3ContentLocation * // BucketARN: "STRING_VALUE", // required * // FileKey: "STRING_VALUE", // required * // ObjectVersion: "STRING_VALUE", * // }, * // MavenReferenceDescription: { // MavenReference * // GroupId: "STRING_VALUE", // required * // ArtifactId: "STRING_VALUE", // required * // Version: "STRING_VALUE", // required * // }, * // }, * // ], * // }, * // ApplicationEncryptionConfigurationDescription: { // ApplicationEncryptionConfigurationDescription * // KeyId: "STRING_VALUE", * // KeyType: "AWS_OWNED_KEY" || "CUSTOMER_MANAGED_KEY", // required * // }, * // }, * // CloudWatchLoggingOptionDescriptions: [ // CloudWatchLoggingOptionDescriptions * // { // CloudWatchLoggingOptionDescription * // CloudWatchLoggingOptionId: "STRING_VALUE", * // LogStreamARN: "STRING_VALUE", // required * // RoleARN: "STRING_VALUE", * // }, * // ], * // ApplicationMaintenanceConfigurationDescription: { // ApplicationMaintenanceConfigurationDescription * // ApplicationMaintenanceWindowStartTime: "STRING_VALUE", // required * // ApplicationMaintenanceWindowEndTime: "STRING_VALUE", // required * // }, * // ApplicationVersionUpdatedFrom: Number("long"), * // ApplicationVersionRolledBackFrom: Number("long"), * // ApplicationVersionCreateTimestamp: new Date("TIMESTAMP"), * // ConditionalToken: "STRING_VALUE", * // ApplicationVersionRolledBackTo: Number("long"), * // ApplicationMode: "STREAMING" || "INTERACTIVE", * // }, * // }; * * ``` * * @param CreateApplicationCommandInput - {@link CreateApplicationCommandInput} * @returns {@link CreateApplicationCommandOutput} * @see {@link CreateApplicationCommandInput} for command's `input` shape. * @see {@link CreateApplicationCommandOutput} for command's `response` shape. * @see {@link KinesisAnalyticsV2ClientResolvedConfig | config} for KinesisAnalyticsV2Client's `config` shape. * * @throws {@link CodeValidationException} (client fault) *

The user-provided application code (query) is not valid. This can be a simple syntax * error.

* * @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 LimitExceededException} (client fault) *

The number of allowed resources has been exceeded.

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

The application is not available for this operation.

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

Application created with too many tags, or too many tags added to an application. Note that the maximum * number of application tags includes system tags. The maximum number of user-defined application tags is 50.

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

The request was rejected because a specified parameter is not supported or a specified resource is not valid for this * operation.

* * @throws {@link KinesisAnalyticsV2ServiceException} *

Base exception class for all service exceptions from KinesisAnalyticsV2 service.

* * * @public */ export declare class CreateApplicationCommand extends CreateApplicationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateApplicationRequest; output: CreateApplicationResponse; }; sdk: { input: CreateApplicationCommandInput; output: CreateApplicationCommandOutput; }; }; }