AWS Classic
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/v5/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
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(ElasticbeanstalkFunctions.getApplication(GetApplicationArgs.builder()
.name("example")
.build()));
ctx.export("arn", example.apply(getApplicationResult -> getApplicationResult.arn()));
ctx.export("description", example.apply(getApplicationResult -> getApplicationResult.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)
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);
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
The name of the application
- 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
- name String
The name of the application
getApplication Result
The following output properties are available:
- Appversion
Lifecycle GetApplication Appversion Lifecycle - 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 GetApplication Appversion Lifecycle - 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 GetApplication Appversion Lifecycle - 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 GetApplication Appversion Lifecycle - 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 GetApplication Appversion Lifecycle - 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
- appversion
Lifecycle Property Map - 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
Supporting Types
GetApplicationAppversionLifecycle
- Delete
Source boolFrom S3 Specifies whether delete a version's source bundle from S3 when the application version is deleted.
- Max
Age intIn Days The number of days to retain an application version.
- Max
Count int The maximum number of application versions to retain.
- Service
Role string The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- Delete
Source boolFrom S3 Specifies whether delete a version's source bundle from S3 when the application version is deleted.
- Max
Age intIn Days The number of days to retain an application version.
- Max
Count int The maximum number of application versions to retain.
- Service
Role string The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- delete
Source BooleanFrom S3 Specifies whether delete a version's source bundle from S3 when the application version is deleted.
- max
Age IntegerIn Days The number of days to retain an application version.
- max
Count Integer The maximum number of application versions to retain.
- service
Role String The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- delete
Source booleanFrom S3 Specifies whether delete a version's source bundle from S3 when the application version is deleted.
- max
Age numberIn Days The number of days to retain an application version.
- max
Count number The maximum number of application versions to retain.
- service
Role string The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- delete_
source_ boolfrom_ s3 Specifies whether delete a version's source bundle from S3 when the application version is deleted.
- max_
age_ intin_ days The number of days to retain an application version.
- max_
count int 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.
- delete
Source BooleanFrom S3 Specifies whether delete a version's source bundle from S3 when the application version is deleted.
- max
Age NumberIn Days The number of days to retain an application version.
- max
Count Number The maximum number of application versions to retain.
- service
Role String 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.