1. Packages
  2. Aiven Provider
  3. API Docs
  4. FlinkApplicationVersion
Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi

aiven.FlinkApplicationVersion

Explore with Pulumi AI

Creates and manages an Aiven for Apache Flink® application version.

Example Usage

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", {
    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",
    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,
    }],
});
Copy
import pulumi
import pulumi_aiven as aiven

example_app = aiven.FlinkApplication("example_app",
    project=example_project["project"],
    service_name="example-flink-service",
    name="example-app")
main = aiven.FlinkApplicationVersion("main",
    project=example_project["project"],
    service_name=example_flink["serviceName"],
    application_id=example_app.application_id,
    statement="    INSERT INTO kafka_known_pizza SELECT * FROM kafka_pizza WHERE shop LIKE '%Luigis Pizza%'\n",
    sinks=[{
        "create_table": """      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'
      )
""",
        "integration_id": flink_to_kafka["integrationId"],
    }],
    sources=[{
        "create_table": """      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'
      )
""",
        "integration_id": flink_to_kafka["integrationId"],
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleApp, err := aiven.NewFlinkApplication(ctx, "example_app", &aiven.FlinkApplicationArgs{
			Project:     pulumi.Any(exampleProject.Project),
			ServiceName: pulumi.String("example-flink-service"),
			Name:        pulumi.String("example-app"),
		})
		if err != nil {
			return err
		}
		_, err = aiven.NewFlinkApplicationVersion(ctx, "main", &aiven.FlinkApplicationVersionArgs{
			Project:       pulumi.Any(exampleProject.Project),
			ServiceName:   pulumi.Any(exampleFlink.ServiceName),
			ApplicationId: exampleApp.ApplicationId,
			Statement:     pulumi.String("    INSERT INTO kafka_known_pizza SELECT * FROM kafka_pizza WHERE shop LIKE '%Luigis Pizza%'\n"),
			Sinks: aiven.FlinkApplicationVersionSinkArray{
				&aiven.FlinkApplicationVersionSinkArgs{
					CreateTable: pulumi.String(`      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: pulumi.Any(flinkToKafka.IntegrationId),
				},
			},
			Sources: aiven.FlinkApplicationVersionSourceArray{
				&aiven.FlinkApplicationVersionSourceArgs{
					CreateTable: pulumi.String(`      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: pulumi.Any(flinkToKafka.IntegrationId),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var exampleApp = new Aiven.FlinkApplication("example_app", new()
    {
        Project = exampleProject.Project,
        ServiceName = "example-flink-service",
        Name = "example-app",
    });

    var main = new Aiven.FlinkApplicationVersion("main", new()
    {
        Project = exampleProject.Project,
        ServiceName = exampleFlink.ServiceName,
        ApplicationId = exampleApp.ApplicationId,
        Statement = @"    INSERT INTO kafka_known_pizza SELECT * FROM kafka_pizza WHERE shop LIKE '%Luigis Pizza%'
",
        Sinks = new[]
        {
            new Aiven.Inputs.FlinkApplicationVersionSinkArgs
            {
                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 = new[]
        {
            new Aiven.Inputs.FlinkApplicationVersionSourceArgs
            {
                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,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.FlinkApplication;
import com.pulumi.aiven.FlinkApplicationArgs;
import com.pulumi.aiven.FlinkApplicationVersion;
import com.pulumi.aiven.FlinkApplicationVersionArgs;
import com.pulumi.aiven.inputs.FlinkApplicationVersionSinkArgs;
import com.pulumi.aiven.inputs.FlinkApplicationVersionSourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleApp = new FlinkApplication("exampleApp", FlinkApplicationArgs.builder()
            .project(exampleProject.project())
            .serviceName("example-flink-service")
            .name("example-app")
            .build());

        var main = new FlinkApplicationVersion("main", FlinkApplicationVersionArgs.builder()
            .project(exampleProject.project())
            .serviceName(exampleFlink.serviceName())
            .applicationId(exampleApp.applicationId())
            .statement("""
    INSERT INTO kafka_known_pizza SELECT * FROM kafka_pizza WHERE shop LIKE '%Luigis Pizza%'
            """)
            .sinks(FlinkApplicationVersionSinkArgs.builder()
                .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())
                .build())
            .sources(FlinkApplicationVersionSourceArgs.builder()
                .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())
                .build())
            .build());

    }
}
Copy
resources:
  exampleApp:
    type: aiven:FlinkApplication
    name: example_app
    properties:
      project: ${exampleProject.project}
      serviceName: example-flink-service
      name: example-app
  main:
    type: aiven:FlinkApplicationVersion
    properties:
      project: ${exampleProject.project}
      serviceName: ${exampleFlink.serviceName}
      applicationId: ${exampleApp.applicationId}
      statement: |2
            INSERT INTO kafka_known_pizza SELECT * FROM kafka_pizza WHERE shop LIKE '%Luigis Pizza%'
      sinks:
        - createTable: |2
                  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: |2
                  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}
Copy

Create FlinkApplicationVersion Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new FlinkApplicationVersion(name: string, args: FlinkApplicationVersionArgs, opts?: CustomResourceOptions);
@overload
def FlinkApplicationVersion(resource_name: str,
                            args: FlinkApplicationVersionArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def FlinkApplicationVersion(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            application_id: Optional[str] = None,
                            project: Optional[str] = None,
                            service_name: Optional[str] = None,
                            statement: Optional[str] = None,
                            sink: Optional[Sequence[FlinkApplicationVersionSinkArgs]] = None,
                            sinks: Optional[Sequence[FlinkApplicationVersionSinkArgs]] = None,
                            source: Optional[Sequence[FlinkApplicationVersionSourceArgs]] = None,
                            sources: Optional[Sequence[FlinkApplicationVersionSourceArgs]] = None)
func NewFlinkApplicationVersion(ctx *Context, name string, args FlinkApplicationVersionArgs, opts ...ResourceOption) (*FlinkApplicationVersion, error)
public FlinkApplicationVersion(string name, FlinkApplicationVersionArgs args, CustomResourceOptions? opts = null)
public FlinkApplicationVersion(String name, FlinkApplicationVersionArgs args)
public FlinkApplicationVersion(String name, FlinkApplicationVersionArgs args, CustomResourceOptions options)
type: aiven:FlinkApplicationVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FlinkApplicationVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FlinkApplicationVersionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FlinkApplicationVersionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FlinkApplicationVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FlinkApplicationVersionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var flinkApplicationVersionResource = new Aiven.FlinkApplicationVersion("flinkApplicationVersionResource", new()
{
    ApplicationId = "string",
    Project = "string",
    ServiceName = "string",
    Statement = "string",
    Sink = new[]
    {
        new Aiven.Inputs.FlinkApplicationVersionSinkArgs
        {
            CreateTable = "string",
            IntegrationId = "string",
        },
    },
    Source = new[]
    {
        new Aiven.Inputs.FlinkApplicationVersionSourceArgs
        {
            CreateTable = "string",
            IntegrationId = "string",
        },
    },
});
Copy
example, err := aiven.NewFlinkApplicationVersion(ctx, "flinkApplicationVersionResource", &aiven.FlinkApplicationVersionArgs{
	ApplicationId: pulumi.String("string"),
	Project:       pulumi.String("string"),
	ServiceName:   pulumi.String("string"),
	Statement:     pulumi.String("string"),
	Sink: aiven.FlinkApplicationVersionSinkArray{
		&aiven.FlinkApplicationVersionSinkArgs{
			CreateTable:   pulumi.String("string"),
			IntegrationId: pulumi.String("string"),
		},
	},
	Source: aiven.FlinkApplicationVersionSourceArray{
		&aiven.FlinkApplicationVersionSourceArgs{
			CreateTable:   pulumi.String("string"),
			IntegrationId: pulumi.String("string"),
		},
	},
})
Copy
var flinkApplicationVersionResource = new FlinkApplicationVersion("flinkApplicationVersionResource", FlinkApplicationVersionArgs.builder()
    .applicationId("string")
    .project("string")
    .serviceName("string")
    .statement("string")
    .sink(FlinkApplicationVersionSinkArgs.builder()
        .createTable("string")
        .integrationId("string")
        .build())
    .source(FlinkApplicationVersionSourceArgs.builder()
        .createTable("string")
        .integrationId("string")
        .build())
    .build());
Copy
flink_application_version_resource = aiven.FlinkApplicationVersion("flinkApplicationVersionResource",
    application_id="string",
    project="string",
    service_name="string",
    statement="string",
    sink=[{
        "create_table": "string",
        "integration_id": "string",
    }],
    source=[{
        "create_table": "string",
        "integration_id": "string",
    }])
Copy
const flinkApplicationVersionResource = new aiven.FlinkApplicationVersion("flinkApplicationVersionResource", {
    applicationId: "string",
    project: "string",
    serviceName: "string",
    statement: "string",
    sink: [{
        createTable: "string",
        integrationId: "string",
    }],
    source: [{
        createTable: "string",
        integrationId: "string",
    }],
});
Copy
type: aiven:FlinkApplicationVersion
properties:
    applicationId: string
    project: string
    serviceName: string
    sink:
        - createTable: string
          integrationId: string
    source:
        - createTable: string
          integrationId: string
    statement: string
Copy

FlinkApplicationVersion Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The FlinkApplicationVersion resource accepts the following input properties:

ApplicationId
This property is required.
Changes to this property will trigger replacement.
string
Application ID.
Project
This property is required.
Changes to this property will trigger replacement.
string
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.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
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.
Statement
This property is required.
Changes to this property will trigger replacement.
string
Job SQL statement.
Sink Changes to this property will trigger replacement. List<FlinkApplicationVersionSink>
The sink table for the application.
Sinks Changes to this property will trigger replacement. List<FlinkApplicationVersionSink>
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

Source Changes to this property will trigger replacement. List<FlinkApplicationVersionSource>
The source table for the application.
Sources Changes to this property will trigger replacement. List<FlinkApplicationVersionSource>
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

ApplicationId
This property is required.
Changes to this property will trigger replacement.
string
Application ID.
Project
This property is required.
Changes to this property will trigger replacement.
string
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.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
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.
Statement
This property is required.
Changes to this property will trigger replacement.
string
Job SQL statement.
Sink Changes to this property will trigger replacement. []FlinkApplicationVersionSinkArgs
The sink table for the application.
Sinks Changes to this property will trigger replacement. []FlinkApplicationVersionSinkArgs
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

Source Changes to this property will trigger replacement. []FlinkApplicationVersionSourceArgs
The source table for the application.
Sources Changes to this property will trigger replacement. []FlinkApplicationVersionSourceArgs
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

applicationId
This property is required.
Changes to this property will trigger replacement.
String
Application ID.
project
This property is required.
Changes to this property will trigger replacement.
String
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.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
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.
statement
This property is required.
Changes to this property will trigger replacement.
String
Job SQL statement.
sink Changes to this property will trigger replacement. List<FlinkApplicationVersionSink>
The sink table for the application.
sinks Changes to this property will trigger replacement. List<FlinkApplicationVersionSink>
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

source Changes to this property will trigger replacement. List<FlinkApplicationVersionSource>
The source table for the application.
sources Changes to this property will trigger replacement. List<FlinkApplicationVersionSource>
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

applicationId
This property is required.
Changes to this property will trigger replacement.
string
Application ID.
project
This property is required.
Changes to this property will trigger replacement.
string
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.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
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.
statement
This property is required.
Changes to this property will trigger replacement.
string
Job SQL statement.
sink Changes to this property will trigger replacement. FlinkApplicationVersionSink[]
The sink table for the application.
sinks Changes to this property will trigger replacement. FlinkApplicationVersionSink[]
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

source Changes to this property will trigger replacement. FlinkApplicationVersionSource[]
The source table for the application.
sources Changes to this property will trigger replacement. FlinkApplicationVersionSource[]
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

application_id
This property is required.
Changes to this property will trigger replacement.
str
Application ID.
project
This property is required.
Changes to this property will trigger replacement.
str
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.
service_name
This property is required.
Changes to this property will trigger replacement.
str
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.
statement
This property is required.
Changes to this property will trigger replacement.
str
Job SQL statement.
sink Changes to this property will trigger replacement. Sequence[FlinkApplicationVersionSinkArgs]
The sink table for the application.
sinks Changes to this property will trigger replacement. Sequence[FlinkApplicationVersionSinkArgs]
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

source Changes to this property will trigger replacement. Sequence[FlinkApplicationVersionSourceArgs]
The source table for the application.
sources Changes to this property will trigger replacement. Sequence[FlinkApplicationVersionSourceArgs]
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

applicationId
This property is required.
Changes to this property will trigger replacement.
String
Application ID.
project
This property is required.
Changes to this property will trigger replacement.
String
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.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
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.
statement
This property is required.
Changes to this property will trigger replacement.
String
Job SQL statement.
sink Changes to this property will trigger replacement. List<Property Map>
The sink table for the application.
sinks Changes to this property will trigger replacement. List<Property Map>
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

source Changes to this property will trigger replacement. List<Property Map>
The source table for the application.
sources Changes to this property will trigger replacement. List<Property Map>
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

Outputs

All input properties are implicitly available as output properties. Additionally, the FlinkApplicationVersion resource produces the following output properties:

ApplicationVersionId string
Application version ID.
CreatedAt string
Application version creation time.
CreatedBy string
The user who created the application.
Id string
The provider-assigned unique ID for this managed resource.
Version int
Application version number.
ApplicationVersionId string
Application version ID.
CreatedAt string
Application version creation time.
CreatedBy string
The user who created the application.
Id string
The provider-assigned unique ID for this managed resource.
Version int
Application version number.
applicationVersionId String
Application version ID.
createdAt String
Application version creation time.
createdBy String
The user who created the application.
id String
The provider-assigned unique ID for this managed resource.
version Integer
Application version number.
applicationVersionId string
Application version ID.
createdAt string
Application version creation time.
createdBy string
The user who created the application.
id string
The provider-assigned unique ID for this managed resource.
version number
Application version number.
application_version_id str
Application version ID.
created_at str
Application version creation time.
created_by str
The user who created the application.
id str
The provider-assigned unique ID for this managed resource.
version int
Application version number.
applicationVersionId String
Application version ID.
createdAt String
Application version creation time.
createdBy String
The user who created the application.
id String
The provider-assigned unique ID for this managed resource.
version Number
Application version number.

Look up Existing FlinkApplicationVersion Resource

Get an existing FlinkApplicationVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: FlinkApplicationVersionState, opts?: CustomResourceOptions): FlinkApplicationVersion
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        application_id: Optional[str] = None,
        application_version_id: Optional[str] = None,
        created_at: Optional[str] = None,
        created_by: Optional[str] = None,
        project: Optional[str] = None,
        service_name: Optional[str] = None,
        sink: Optional[Sequence[FlinkApplicationVersionSinkArgs]] = None,
        sinks: Optional[Sequence[FlinkApplicationVersionSinkArgs]] = None,
        source: Optional[Sequence[FlinkApplicationVersionSourceArgs]] = None,
        sources: Optional[Sequence[FlinkApplicationVersionSourceArgs]] = None,
        statement: Optional[str] = None,
        version: Optional[int] = None) -> FlinkApplicationVersion
func GetFlinkApplicationVersion(ctx *Context, name string, id IDInput, state *FlinkApplicationVersionState, opts ...ResourceOption) (*FlinkApplicationVersion, error)
public static FlinkApplicationVersion Get(string name, Input<string> id, FlinkApplicationVersionState? state, CustomResourceOptions? opts = null)
public static FlinkApplicationVersion get(String name, Output<String> id, FlinkApplicationVersionState state, CustomResourceOptions options)
resources:  _:    type: aiven:FlinkApplicationVersion    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApplicationId Changes to this property will trigger replacement. string
Application ID.
ApplicationVersionId string
Application version ID.
CreatedAt string
Application version creation time.
CreatedBy string
The user who created the application.
Project Changes to this property will trigger replacement. string
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.
ServiceName Changes to this property will trigger replacement. string
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.
Sink Changes to this property will trigger replacement. List<FlinkApplicationVersionSink>
The sink table for the application.
Sinks Changes to this property will trigger replacement. List<FlinkApplicationVersionSink>
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

Source Changes to this property will trigger replacement. List<FlinkApplicationVersionSource>
The source table for the application.
Sources Changes to this property will trigger replacement. List<FlinkApplicationVersionSource>
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

Statement Changes to this property will trigger replacement. string
Job SQL statement.
Version int
Application version number.
ApplicationId Changes to this property will trigger replacement. string
Application ID.
ApplicationVersionId string
Application version ID.
CreatedAt string
Application version creation time.
CreatedBy string
The user who created the application.
Project Changes to this property will trigger replacement. string
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.
ServiceName Changes to this property will trigger replacement. string
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.
Sink Changes to this property will trigger replacement. []FlinkApplicationVersionSinkArgs
The sink table for the application.
Sinks Changes to this property will trigger replacement. []FlinkApplicationVersionSinkArgs
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

Source Changes to this property will trigger replacement. []FlinkApplicationVersionSourceArgs
The source table for the application.
Sources Changes to this property will trigger replacement. []FlinkApplicationVersionSourceArgs
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

Statement Changes to this property will trigger replacement. string
Job SQL statement.
Version int
Application version number.
applicationId Changes to this property will trigger replacement. String
Application ID.
applicationVersionId String
Application version ID.
createdAt String
Application version creation time.
createdBy String
The user who created the application.
project Changes to this property will trigger replacement. String
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.
serviceName Changes to this property will trigger replacement. String
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.
sink Changes to this property will trigger replacement. List<FlinkApplicationVersionSink>
The sink table for the application.
sinks Changes to this property will trigger replacement. List<FlinkApplicationVersionSink>
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

source Changes to this property will trigger replacement. List<FlinkApplicationVersionSource>
The source table for the application.
sources Changes to this property will trigger replacement. List<FlinkApplicationVersionSource>
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

statement Changes to this property will trigger replacement. String
Job SQL statement.
version Integer
Application version number.
applicationId Changes to this property will trigger replacement. string
Application ID.
applicationVersionId string
Application version ID.
createdAt string
Application version creation time.
createdBy string
The user who created the application.
project Changes to this property will trigger replacement. string
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.
serviceName Changes to this property will trigger replacement. string
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.
sink Changes to this property will trigger replacement. FlinkApplicationVersionSink[]
The sink table for the application.
sinks Changes to this property will trigger replacement. FlinkApplicationVersionSink[]
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

source Changes to this property will trigger replacement. FlinkApplicationVersionSource[]
The source table for the application.
sources Changes to this property will trigger replacement. FlinkApplicationVersionSource[]
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

statement Changes to this property will trigger replacement. string
Job SQL statement.
version number
Application version number.
application_id Changes to this property will trigger replacement. str
Application ID.
application_version_id str
Application version ID.
created_at str
Application version creation time.
created_by str
The user who created the application.
project Changes to this property will trigger replacement. str
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.
service_name Changes to this property will trigger replacement. str
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.
sink Changes to this property will trigger replacement. Sequence[FlinkApplicationVersionSinkArgs]
The sink table for the application.
sinks Changes to this property will trigger replacement. Sequence[FlinkApplicationVersionSinkArgs]
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

source Changes to this property will trigger replacement. Sequence[FlinkApplicationVersionSourceArgs]
The source table for the application.
sources Changes to this property will trigger replacement. Sequence[FlinkApplicationVersionSourceArgs]
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

statement Changes to this property will trigger replacement. str
Job SQL statement.
version int
Application version number.
applicationId Changes to this property will trigger replacement. String
Application ID.
applicationVersionId String
Application version ID.
createdAt String
Application version creation time.
createdBy String
The user who created the application.
project Changes to this property will trigger replacement. String
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.
serviceName Changes to this property will trigger replacement. String
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.
sink Changes to this property will trigger replacement. List<Property Map>
The sink table for the application.
sinks Changes to this property will trigger replacement. List<Property Map>
Application sinks

Deprecated: This field is deprecated and will be removed in the next major release. Use sink instead.

source Changes to this property will trigger replacement. List<Property Map>
The source table for the application.
sources Changes to this property will trigger replacement. List<Property Map>
Application sources

Deprecated: This field is deprecated and will be removed in the next major release. Use source instead.

statement Changes to this property will trigger replacement. String
Job SQL statement.
version Number
Application version number.

Supporting Types

FlinkApplicationVersionSink
, FlinkApplicationVersionSinkArgs

CreateTable
This property is required.
Changes to this property will trigger replacement.
string
The CREATE TABLE statement
IntegrationId Changes to this property will trigger replacement. string
The integration ID
CreateTable
This property is required.
Changes to this property will trigger replacement.
string
The CREATE TABLE statement
IntegrationId Changes to this property will trigger replacement. string
The integration ID
createTable
This property is required.
Changes to this property will trigger replacement.
String
The CREATE TABLE statement
integrationId Changes to this property will trigger replacement. String
The integration ID
createTable
This property is required.
Changes to this property will trigger replacement.
string
The CREATE TABLE statement
integrationId Changes to this property will trigger replacement. string
The integration ID
create_table
This property is required.
Changes to this property will trigger replacement.
str
The CREATE TABLE statement
integration_id Changes to this property will trigger replacement. str
The integration ID
createTable
This property is required.
Changes to this property will trigger replacement.
String
The CREATE TABLE statement
integrationId Changes to this property will trigger replacement. String
The integration ID

FlinkApplicationVersionSource
, FlinkApplicationVersionSourceArgs

CreateTable
This property is required.
Changes to this property will trigger replacement.
string
The CREATE TABLE statement
IntegrationId Changes to this property will trigger replacement. string
The integration ID
CreateTable
This property is required.
Changes to this property will trigger replacement.
string
The CREATE TABLE statement
IntegrationId Changes to this property will trigger replacement. string
The integration ID
createTable
This property is required.
Changes to this property will trigger replacement.
String
The CREATE TABLE statement
integrationId Changes to this property will trigger replacement. String
The integration ID
createTable
This property is required.
Changes to this property will trigger replacement.
string
The CREATE TABLE statement
integrationId Changes to this property will trigger replacement. string
The integration ID
create_table
This property is required.
Changes to this property will trigger replacement.
str
The CREATE TABLE statement
integration_id Changes to this property will trigger replacement. str
The integration ID
createTable
This property is required.
Changes to this property will trigger replacement.
String
The CREATE TABLE statement
integrationId Changes to this property will trigger replacement. String
The integration ID

Import

$ pulumi import aiven:index/flinkApplicationVersion:FlinkApplicationVersion main PROJECT/SERVICE_NAME/APPLICATION_ID/APPLICATION_VERSION_ID
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.