import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages an Aiven for Apache FlinkĀ® application version. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const exampleApp = new aiven.FlinkApplication("example_app", { * project: exampleProject.project, * serviceName: "example-flink-service", * name: "example-app", * }); * const main = new aiven.FlinkApplicationVersion("main", { * sinks: [{ * createTable: ` CREATE TABLE kafka_known_pizza ( * shop STRING, * name STRING * ) WITH ( * 'connector' = 'kafka', * 'properties.bootstrap.servers' = '', * 'scan.startup.mode' = 'earliest-offset', * 'topic' = 'sink_topic', * 'value.format' = 'json' * ) * `, * integrationId: flinkToKafka.integrationId, * }], * sources: [{ * createTable: ` CREATE TABLE kafka_pizza ( * shop STRING, * name STRING * ) WITH ( * 'connector' = 'kafka', * 'properties.bootstrap.servers' = '', * 'scan.startup.mode' = 'earliest-offset', * 'topic' = 'source_topic', * 'value.format' = 'json' * ) * `, * integrationId: flinkToKafka.integrationId, * }], * project: exampleProject.project, * serviceName: exampleFlink.serviceName, * applicationId: exampleApp.applicationId, * statement: " INSERT INTO kafka_known_pizza SELECT * FROM kafka_pizza WHERE shop LIKE '%Luigis Pizza%'\n", * }); * ``` * * ## Import * * ```sh * $ pulumi import aiven:index/flinkApplicationVersion:FlinkApplicationVersion main PROJECT/SERVICE_NAME/APPLICATION_ID/APPLICATION_VERSION_ID * ``` */ export declare class FlinkApplicationVersion extends pulumi.CustomResource { /** * Get an existing FlinkApplicationVersion resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FlinkApplicationVersionState, opts?: pulumi.CustomResourceOptions): FlinkApplicationVersion; /** * Returns true if the given object is an instance of FlinkApplicationVersion. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FlinkApplicationVersion; /** * Application ID. */ readonly applicationId: pulumi.Output; /** * Application version ID. */ readonly applicationVersionId: pulumi.Output; /** * Application version creation time. */ readonly createdAt: pulumi.Output; /** * The user who created the application. */ readonly createdBy: pulumi.Output; /** * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ readonly project: pulumi.Output; /** * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ readonly serviceName: pulumi.Output; /** * The sink table for the application. */ readonly sink: pulumi.Output; /** * Application sinks * * @deprecated This field is deprecated and will be removed in the next major release. Use `sink` instead. */ readonly sinks: pulumi.Output; /** * The source table for the application. */ readonly source: pulumi.Output; /** * Application sources * * @deprecated This field is deprecated and will be removed in the next major release. Use `source` instead. */ readonly sources: pulumi.Output; /** * Job SQL statement. */ readonly statement: pulumi.Output; /** * Application version number. */ readonly version: pulumi.Output; /** * Create a FlinkApplicationVersion resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: FlinkApplicationVersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FlinkApplicationVersion resources. */ export interface FlinkApplicationVersionState { /** * Application ID. */ applicationId?: pulumi.Input; /** * Application version ID. */ applicationVersionId?: pulumi.Input; /** * Application version creation time. */ createdAt?: pulumi.Input; /** * The user who created the application. */ createdBy?: pulumi.Input; /** * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ project?: pulumi.Input; /** * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ serviceName?: pulumi.Input; /** * The sink table for the application. */ sink?: pulumi.Input[] | undefined>; /** * Application sinks * * @deprecated This field is deprecated and will be removed in the next major release. Use `sink` instead. */ sinks?: pulumi.Input[] | undefined>; /** * The source table for the application. */ source?: pulumi.Input[] | undefined>; /** * Application sources * * @deprecated This field is deprecated and will be removed in the next major release. Use `source` instead. */ sources?: pulumi.Input[] | undefined>; /** * Job SQL statement. */ statement?: pulumi.Input; /** * Application version number. */ version?: pulumi.Input; } /** * The set of arguments for constructing a FlinkApplicationVersion resource. */ export interface FlinkApplicationVersionArgs { /** * Application ID. */ applicationId: pulumi.Input; /** * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ project: pulumi.Input; /** * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ serviceName: pulumi.Input; /** * The sink table for the application. */ sink?: pulumi.Input[] | undefined>; /** * Application sinks * * @deprecated This field is deprecated and will be removed in the next major release. Use `sink` instead. */ sinks?: pulumi.Input[] | undefined>; /** * The source table for the application. */ source?: pulumi.Input[] | undefined>; /** * Application sources * * @deprecated This field is deprecated and will be removed in the next major release. Use `source` instead. */ sources?: pulumi.Input[] | undefined>; /** * Job SQL statement. */ statement: pulumi.Input; } //# sourceMappingURL=flinkApplicationVersion.d.ts.map