Application class
Provides an Elastic Beanstalk Application Resource. Elastic Beanstalk allows you to deploy and manage applications in the AWS cloud without worrying about the infrastructure that runs those applications.
This resource creates an application that has one configuration template named
default, and no application versions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const tftest = new aws.elasticbeanstalk.Application("tftest", {
appversionLifecycle: {
serviceRole: beanstalkService.arn,
maxCount: 128,
deleteSourceFromS3: true,
},
name: "tf-test-name",
description: "tf-test-desc",
});
import pulumi
import pulumi_aws as aws
tftest = aws.elasticbeanstalk.Application("tftest",
appversion_lifecycle={
"service_role": beanstalk_service["arn"],
"max_count": 128,
"delete_source_from_s3": True,
},
name="tf-test-name",
description="tf-test-desc")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var tftest = new Aws.ElasticBeanstalk.Application("tftest", new()
{
AppversionLifecycle = new Aws.ElasticBeanstalk.Inputs.ApplicationAppversionLifecycleArgs
{
ServiceRole = beanstalkService.Arn,
MaxCount = 128,
DeleteSourceFromS3 = true,
},
Name = "tf-test-name",
Description = "tf-test-desc",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/elasticbeanstalk"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{
AppversionLifecycle: &elasticbeanstalk.ApplicationAppversionLifecycleArgs{
ServiceRole: pulumi.Any(beanstalkService.Arn),
MaxCount: pulumi.Int(128),
DeleteSourceFromS3: pulumi.Bool(true),
},
Name: pulumi.String("tf-test-name"),
Description: pulumi.String("tf-test-desc"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_elasticbeanstalk_application" "tftest" {
appversion_lifecycle = {
service_role = beanstalkService.arn
max_count = 128
delete_source_from_s3 = true
}
name = "tf-test-name"
description = "tf-test-desc"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticbeanstalk.Application;
import com.pulumi.aws.elasticbeanstalk.ApplicationArgs;
import com.pulumi.aws.elasticbeanstalk.inputs.ApplicationAppversionLifecycleArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var tftest = new Application("tftest", ApplicationArgs.builder()
.appversionLifecycle(ApplicationAppversionLifecycleArgs.builder()
.serviceRole(beanstalkService.arn())
.maxCount(128)
.deleteSourceFromS3(true)
.build())
.name("tf-test-name")
.description("tf-test-desc")
.build());
}
}
resources:
tftest:
type: aws:elasticbeanstalk:Application
properties:
appversionLifecycle:
serviceRole: ${beanstalkService.arn}
maxCount: 128
deleteSourceFromS3: true
name: tf-test-name
description: tf-test-desc
Import
Using pulumi import, import Elastic Beanstalk Applications using the name. For example:
$ pulumi import aws:elasticbeanstalk/application:Application tf_test tf-test-name
Constructors
- Application(String name, {ApplicationArgs? args, CustomResourceOptions? options})
-
Creates a new Application.
nameThe Pulumi resource name.argsArguments used to configure this Application. The set of arguments for Application.optionsResource options controlling this resource's behavior. - Application.reference(String urn)
- Creates a typed reference to an existing Application resource.
Properties
-
appversionLifecycle
↔ Output<
ApplicationAppversionLifecycle?> -
latefinal
-
arn
↔ Output<
String> -
The ARN assigned by AWS for this Elastic Beanstalk Application.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
description
↔ Output<
String?> -
Short description of the application
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
name
↔ Output<
String> -
The name of the application, must be unique within your account
latefinal
-
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Key-value map of tags for the Elastic Beanstalk Application. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.latefinal -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.latefinal -
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {ApplicationState? state, CustomResourceOptions? options}) → Application -
Gets an existing Application resource's state with the given
nameandid.