1. Packages
  2. Aiven Provider
  3. API Docs
  4. getFlinkApplication
Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi

aiven.getFlinkApplication

Explore with Pulumi AI

aiven logo
Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi

    Gets information about an Aiven for Apache Flink® application.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const exampleApp = aiven.getFlinkApplication({
        project: exampleProject.project,
        serviceName: "example-flink-service",
        name: "example-app",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example_app = aiven.get_flink_application(project=example_project["project"],
        service_name="example-flink-service",
        name="example-app")
    
    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.LookupFlinkApplication(ctx, &aiven.LookupFlinkApplicationArgs{
    			Project:     exampleProject.Project,
    			ServiceName: "example-flink-service",
    			Name:        "example-app",
    		}, 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 exampleApp = Aiven.GetFlinkApplication.Invoke(new()
        {
            Project = exampleProject.Project,
            ServiceName = "example-flink-service",
            Name = "example-app",
        });
    
    });
    
    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.GetFlinkApplicationArgs;
    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 exampleApp = AivenFunctions.getFlinkApplication(GetFlinkApplicationArgs.builder()
                .project(exampleProject.project())
                .serviceName("example-flink-service")
                .name("example-app")
                .build());
    
        }
    }
    
    variables:
      exampleApp:
        fn::invoke:
          Function: aiven:getFlinkApplication
          Arguments:
            project: ${exampleProject.project}
            serviceName: example-flink-service
            name: example-app
    

    Using getFlinkApplication

    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 getFlinkApplication(args: GetFlinkApplicationArgs, opts?: InvokeOptions): Promise<GetFlinkApplicationResult>
    function getFlinkApplicationOutput(args: GetFlinkApplicationOutputArgs, opts?: InvokeOptions): Output<GetFlinkApplicationResult>
    def get_flink_application(name: Optional[str] = None,
                              project: Optional[str] = None,
                              service_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetFlinkApplicationResult
    def get_flink_application_output(name: Optional[pulumi.Input[str]] = None,
                              project: Optional[pulumi.Input[str]] = None,
                              service_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetFlinkApplicationResult]
    func LookupFlinkApplication(ctx *Context, args *LookupFlinkApplicationArgs, opts ...InvokeOption) (*LookupFlinkApplicationResult, error)
    func LookupFlinkApplicationOutput(ctx *Context, args *LookupFlinkApplicationOutputArgs, opts ...InvokeOption) LookupFlinkApplicationResultOutput

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

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

    The following arguments are supported:

    Name string
    The name of the application.
    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.
    Name string
    The name of the application.
    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.
    name String
    The name of the application.
    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.
    name string
    The name of the application.
    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.
    name str
    The name of the application.
    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.
    name String
    The name of the application.
    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.

    getFlinkApplication Result

    The following output properties are available:

    ApplicationId string
    Application ID.
    CreatedAt string
    Application creation time.
    CreatedBy string
    The user who created the application.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the application.
    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.
    UpdatedAt string
    When the application was updated.
    UpdatedBy string
    The user who updated the application.
    ApplicationId string
    Application ID.
    CreatedAt string
    Application creation time.
    CreatedBy string
    The user who created the application.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the application.
    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.
    UpdatedAt string
    When the application was updated.
    UpdatedBy string
    The user who updated the application.
    applicationId String
    Application ID.
    createdAt String
    Application creation time.
    createdBy String
    The user who created the application.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the application.
    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.
    updatedAt String
    When the application was updated.
    updatedBy String
    The user who updated the application.
    applicationId string
    Application ID.
    createdAt string
    Application creation time.
    createdBy string
    The user who created the application.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the application.
    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.
    updatedAt string
    When the application was updated.
    updatedBy string
    The user who updated the application.
    application_id str
    Application ID.
    created_at str
    Application creation time.
    created_by str
    The user who created the application.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the application.
    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.
    updated_at str
    When the application was updated.
    updated_by str
    The user who updated the application.
    applicationId String
    Application ID.
    createdAt String
    Application creation time.
    createdBy String
    The user who created the application.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the application.
    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.
    updatedAt String
    When the application was updated.
    updatedBy String
    The user who updated the application.

    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.28.0 published on Friday, Nov 15, 2024 by Pulumi