1. Packages
  2. AWS Classic
  3. API Docs
  4. elasticbeanstalk
  5. getApplication

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

aws.elasticbeanstalk.getApplication

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

    Retrieve information about an Elastic Beanstalk Application.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.elasticbeanstalk.getApplication({
        name: "example",
    });
    export const arn = example.then(example => example.arn);
    export const description = example.then(example => example.description);
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.elasticbeanstalk.get_application(name="example")
    pulumi.export("arn", example.arn)
    pulumi.export("description", example.description)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticbeanstalk"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := elasticbeanstalk.LookupApplication(ctx, &elasticbeanstalk.LookupApplicationArgs{
    			Name: "example",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("arn", example.Arn)
    		ctx.Export("description", example.Description)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.ElasticBeanstalk.GetApplication.Invoke(new()
        {
            Name = "example",
        });
    
        return new Dictionary<string, object?>
        {
            ["arn"] = example.Apply(getApplicationResult => getApplicationResult.Arn),
            ["description"] = example.Apply(getApplicationResult => getApplicationResult.Description),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.elasticbeanstalk.ElasticbeanstalkFunctions;
    import com.pulumi.aws.elasticbeanstalk.inputs.GetApplicationArgs;
    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 example = ElasticbeanstalkFunctions.getApplication(GetApplicationArgs.builder()
                .name("example")
                .build());
    
            ctx.export("arn", example.applyValue(getApplicationResult -> getApplicationResult.arn()));
            ctx.export("description", example.applyValue(getApplicationResult -> getApplicationResult.description()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:elasticbeanstalk:getApplication
          Arguments:
            name: example
    outputs:
      arn: ${example.arn}
      description: ${example.description}
    

    Using getApplication

    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 getApplication(args: GetApplicationArgs, opts?: InvokeOptions): Promise<GetApplicationResult>
    function getApplicationOutput(args: GetApplicationOutputArgs, opts?: InvokeOptions): Output<GetApplicationResult>
    def get_application(name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetApplicationResult
    def get_application_output(name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetApplicationResult]
    func LookupApplication(ctx *Context, args *LookupApplicationArgs, opts ...InvokeOption) (*LookupApplicationResult, error)
    func LookupApplicationOutput(ctx *Context, args *LookupApplicationOutputArgs, opts ...InvokeOption) LookupApplicationResultOutput

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

    public static class GetApplication 
    {
        public static Task<GetApplicationResult> InvokeAsync(GetApplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetApplicationResult> Invoke(GetApplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:elasticbeanstalk/getApplication:getApplication
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the application
    Name string
    Name of the application
    name String
    Name of the application
    name string
    Name of the application
    name str
    Name of the application
    name String
    Name of the application

    getApplication Result

    The following output properties are available:

    AppversionLifecycle GetApplicationAppversionLifecycle
    Arn string
    ARN of the application.
    Description string
    Short description of the application
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    AppversionLifecycle GetApplicationAppversionLifecycle
    Arn string
    ARN of the application.
    Description string
    Short description of the application
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    appversionLifecycle GetApplicationAppversionLifecycle
    arn String
    ARN of the application.
    description String
    Short description of the application
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    appversionLifecycle GetApplicationAppversionLifecycle
    arn string
    ARN of the application.
    description string
    Short description of the application
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    appversion_lifecycle GetApplicationAppversionLifecycle
    arn str
    ARN of the application.
    description str
    Short description of the application
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    appversionLifecycle Property Map
    arn String
    ARN of the application.
    description String
    Short description of the application
    id String
    The provider-assigned unique ID for this managed resource.
    name String

    Supporting Types

    GetApplicationAppversionLifecycle

    DeleteSourceFromS3 bool
    Specifies whether delete a version's source bundle from S3 when the application version is deleted.
    MaxAgeInDays int
    Number of days to retain an application version.
    MaxCount int
    Maximum number of application versions to retain.
    ServiceRole string
    ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
    DeleteSourceFromS3 bool
    Specifies whether delete a version's source bundle from S3 when the application version is deleted.
    MaxAgeInDays int
    Number of days to retain an application version.
    MaxCount int
    Maximum number of application versions to retain.
    ServiceRole string
    ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
    deleteSourceFromS3 Boolean
    Specifies whether delete a version's source bundle from S3 when the application version is deleted.
    maxAgeInDays Integer
    Number of days to retain an application version.
    maxCount Integer
    Maximum number of application versions to retain.
    serviceRole String
    ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
    deleteSourceFromS3 boolean
    Specifies whether delete a version's source bundle from S3 when the application version is deleted.
    maxAgeInDays number
    Number of days to retain an application version.
    maxCount number
    Maximum number of application versions to retain.
    serviceRole string
    ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
    delete_source_from_s3 bool
    Specifies whether delete a version's source bundle from S3 when the application version is deleted.
    max_age_in_days int
    Number of days to retain an application version.
    max_count int
    Maximum number of application versions to retain.
    service_role str
    ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
    deleteSourceFromS3 Boolean
    Specifies whether delete a version's source bundle from S3 when the application version is deleted.
    maxAgeInDays Number
    Number of days to retain an application version.
    maxCount Number
    Maximum number of application versions to retain.
    serviceRole String
    ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi