GetApplication

Retrieve information about an Elastic Beanstalk Application.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.ElasticBeanstalk.GetApplication.InvokeAsync(new Aws.ElasticBeanstalk.GetApplicationArgs
        {
            Name = "example",
        }));
        this.Arn = example.Apply(example => example.Arn);
        this.Description = example.Apply(example => example.Description);
    }

    [Output("arn")]
    public Output<string> Arn { get; set; }
    [Output("description")]
    public Output<string> Description { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
import pulumi
import pulumi_aws as aws

example = aws.elasticbeanstalk.get_application(name="example")
pulumi.export("arn", example.arn)
pulumi.export("description", example.description)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.elasticbeanstalk.getApplication({
    name: "example",
}, { async: true }));

export const arn = example.arn;
export const description = example.description;

Using GetApplication

function getApplication(args: GetApplicationArgs, opts?: InvokeOptions): Promise<GetApplicationResult>
function  get_application(name=None, opts=None)
func LookupApplication(ctx *Context, args *LookupApplicationArgs, opts ...InvokeOption) (*LookupApplicationResult, error)

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

public static class GetApplication {
    public static Task<GetApplicationResult> InvokeAsync(GetApplicationArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the application

Name string

The name of the application

name string

The name of the application

name str

The name of the application

GetApplication Result

The following output properties are available:

AppversionLifecycle GetApplicationAppversionLifecycle
Arn string

The Amazon Resource Name (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

The Amazon Resource Name (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

The Amazon Resource Name (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 Dict[GetApplicationAppversionLifecycle]
arn str

The Amazon Resource Name (ARN) of the application.

description str

Short description of the application

id str

The provider-assigned unique ID for this managed resource.

name str

Supporting Types

GetApplicationAppversionLifecycle

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

DeleteSourceFromS3 bool

Specifies whether delete a version’s source bundle from S3 when the application version is deleted.

MaxAgeInDays int

The number of days to retain an application version.

MaxCount int

The maximum number of application versions to retain.

ServiceRole string

The 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

The number of days to retain an application version.

MaxCount int

The maximum number of application versions to retain.

ServiceRole string

The 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

The number of days to retain an application version.

maxCount number

The maximum number of application versions to retain.

serviceRole string

The 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 float

The number of days to retain an application version.

maxCount float

The maximum number of application versions to retain.

service_role str

The 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
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.