1. Packages
  2. Aiven
  3. API Docs
  4. getFlinkApplicationVersion
Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi

aiven.getFlinkApplicationVersion

Explore with Pulumi AI

aiven logo
Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi

    The Flink Application Version data source provides information about the existing Aiven Flink Application Version.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const app1 = aiven.getFlinkApplicationVersion({
        project: pr1.project,
        serviceName: "<SERVICE_NAME>",
        applicationId: "<APPLICATION_ID>",
        applicationVersionId: "<APPLICATION_VERSION_ID>",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    app1 = aiven.get_flink_application_version(project=pr1["project"],
        service_name="<SERVICE_NAME>",
        application_id="<APPLICATION_ID>",
        application_version_id="<APPLICATION_VERSION_ID>")
    
    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 {
    		_, err := aiven.LookupFlinkApplicationVersion(ctx, &aiven.LookupFlinkApplicationVersionArgs{
    			Project:              pr1.Project,
    			ServiceName:          "<SERVICE_NAME>",
    			ApplicationId:        "<APPLICATION_ID>",
    			ApplicationVersionId: "<APPLICATION_VERSION_ID>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var app1 = Aiven.GetFlinkApplicationVersion.Invoke(new()
        {
            Project = pr1.Project,
            ServiceName = "<SERVICE_NAME>",
            ApplicationId = "<APPLICATION_ID>",
            ApplicationVersionId = "<APPLICATION_VERSION_ID>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.inputs.GetFlinkApplicationVersionArgs;
    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) {
            final var app1 = AivenFunctions.getFlinkApplicationVersion(GetFlinkApplicationVersionArgs.builder()
                .project(pr1.project())
                .serviceName("<SERVICE_NAME>")
                .applicationId("<APPLICATION_ID>")
                .applicationVersionId("<APPLICATION_VERSION_ID>")
                .build());
    
        }
    }
    
    variables:
      app1:
        fn::invoke:
          Function: aiven:getFlinkApplicationVersion
          Arguments:
            project: ${pr1.project}
            serviceName: <SERVICE_NAME>
            applicationId: <APPLICATION_ID>
            applicationVersionId: <APPLICATION_VERSION_ID>
    

    Using getFlinkApplicationVersion

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFlinkApplicationVersion(args: GetFlinkApplicationVersionArgs, opts?: InvokeOptions): Promise<GetFlinkApplicationVersionResult>
    function getFlinkApplicationVersionOutput(args: GetFlinkApplicationVersionOutputArgs, opts?: InvokeOptions): Output<GetFlinkApplicationVersionResult>
    def get_flink_application_version(application_id: Optional[str] = None,
                                      application_version_id: Optional[str] = None,
                                      project: Optional[str] = None,
                                      service_name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetFlinkApplicationVersionResult
    def get_flink_application_version_output(application_id: Optional[pulumi.Input[str]] = None,
                                      application_version_id: Optional[pulumi.Input[str]] = None,
                                      project: Optional[pulumi.Input[str]] = None,
                                      service_name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetFlinkApplicationVersionResult]
    func LookupFlinkApplicationVersion(ctx *Context, args *LookupFlinkApplicationVersionArgs, opts ...InvokeOption) (*LookupFlinkApplicationVersionResult, error)
    func LookupFlinkApplicationVersionOutput(ctx *Context, args *LookupFlinkApplicationVersionOutputArgs, opts ...InvokeOption) LookupFlinkApplicationVersionResultOutput

    > Note: This function is named LookupFlinkApplicationVersion in the Go SDK.

    public static class GetFlinkApplicationVersion 
    {
        public static Task<GetFlinkApplicationVersionResult> InvokeAsync(GetFlinkApplicationVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetFlinkApplicationVersionResult> Invoke(GetFlinkApplicationVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFlinkApplicationVersionResult> getFlinkApplicationVersion(GetFlinkApplicationVersionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aiven:index/getFlinkApplicationVersion:getFlinkApplicationVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ApplicationId string
    Application ID
    ApplicationVersionId string
    Application version ID
    Project 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 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.
    ApplicationId string
    Application ID
    ApplicationVersionId string
    Application version ID
    Project 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 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.
    applicationId String
    Application ID
    applicationVersionId String
    Application version ID
    project 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 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.
    applicationId string
    Application ID
    applicationVersionId string
    Application version ID
    project 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 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.
    application_id str
    Application ID
    application_version_id str
    Application version ID
    project 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 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.
    applicationId String
    Application ID
    applicationVersionId String
    Application version ID
    project 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 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.

    getFlinkApplicationVersion Result

    The following output properties are available:

    ApplicationId string
    Application ID
    ApplicationVersionId string
    Application version ID
    CreatedAt string
    Application version creation time
    CreatedBy string
    Application version creator
    Id string
    The provider-assigned unique ID for this managed resource.
    Project 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 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 List<GetFlinkApplicationVersionSink>
    Application sink
    Sinks List<GetFlinkApplicationVersionSink>
    Application sinks
    Source List<GetFlinkApplicationVersionSource>
    Application source
    Sources List<GetFlinkApplicationVersionSource>
    Application sources
    Statement string
    Job SQL statement
    Version int
    Application version number
    ApplicationId string
    Application ID
    ApplicationVersionId string
    Application version ID
    CreatedAt string
    Application version creation time
    CreatedBy string
    Application version creator
    Id string
    The provider-assigned unique ID for this managed resource.
    Project 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 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 []GetFlinkApplicationVersionSink
    Application sink
    Sinks []GetFlinkApplicationVersionSink
    Application sinks
    Source []GetFlinkApplicationVersionSource
    Application source
    Sources []GetFlinkApplicationVersionSource
    Application sources
    Statement string
    Job SQL statement
    Version int
    Application version number
    applicationId String
    Application ID
    applicationVersionId String
    Application version ID
    createdAt String
    Application version creation time
    createdBy String
    Application version creator
    id String
    The provider-assigned unique ID for this managed resource.
    project 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 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 List<GetFlinkApplicationVersionSink>
    Application sink
    sinks List<GetFlinkApplicationVersionSink>
    Application sinks
    source List<GetFlinkApplicationVersionSource>
    Application source
    sources List<GetFlinkApplicationVersionSource>
    Application sources
    statement String
    Job SQL statement
    version Integer
    Application version number
    applicationId string
    Application ID
    applicationVersionId string
    Application version ID
    createdAt string
    Application version creation time
    createdBy string
    Application version creator
    id string
    The provider-assigned unique ID for this managed resource.
    project 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 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 GetFlinkApplicationVersionSink[]
    Application sink
    sinks GetFlinkApplicationVersionSink[]
    Application sinks
    source GetFlinkApplicationVersionSource[]
    Application source
    sources GetFlinkApplicationVersionSource[]
    Application sources
    statement string
    Job SQL statement
    version number
    Application version number
    application_id str
    Application ID
    application_version_id str
    Application version ID
    created_at str
    Application version creation time
    created_by str
    Application version creator
    id str
    The provider-assigned unique ID for this managed resource.
    project 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 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 Sequence[GetFlinkApplicationVersionSink]
    Application sink
    sinks Sequence[GetFlinkApplicationVersionSink]
    Application sinks
    source Sequence[GetFlinkApplicationVersionSource]
    Application source
    sources Sequence[GetFlinkApplicationVersionSource]
    Application sources
    statement str
    Job SQL statement
    version int
    Application version number
    applicationId String
    Application ID
    applicationVersionId String
    Application version ID
    createdAt String
    Application version creation time
    createdBy String
    Application version creator
    id String
    The provider-assigned unique ID for this managed resource.
    project 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 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 List<Property Map>
    Application sink
    sinks List<Property Map>
    Application sinks
    source List<Property Map>
    Application source
    sources List<Property Map>
    Application sources
    statement String
    Job SQL statement
    version Number
    Application version number

    Supporting Types

    GetFlinkApplicationVersionSink

    CreateTable string
    The CREATE TABLE statement
    IntegrationId string
    The integration ID
    CreateTable string
    The CREATE TABLE statement
    IntegrationId string
    The integration ID
    createTable String
    The CREATE TABLE statement
    integrationId String
    The integration ID
    createTable string
    The CREATE TABLE statement
    integrationId string
    The integration ID
    create_table str
    The CREATE TABLE statement
    integration_id str
    The integration ID
    createTable String
    The CREATE TABLE statement
    integrationId String
    The integration ID

    GetFlinkApplicationVersionSource

    CreateTable string
    The CREATE TABLE statement
    IntegrationId string
    The integration ID
    CreateTable string
    The CREATE TABLE statement
    IntegrationId string
    The integration ID
    createTable String
    The CREATE TABLE statement
    integrationId String
    The integration ID
    createTable string
    The CREATE TABLE statement
    integrationId string
    The integration ID
    create_table str
    The CREATE TABLE statement
    integration_id str
    The integration ID
    createTable String
    The CREATE TABLE statement
    integrationId String
    The integration ID

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi