ApplicationVersionArgs

data class ApplicationVersionArgs(val application: Output<String>? = null, val bucket: Output<String>? = null, val description: Output<String>? = null, val forceDelete: Output<Boolean>? = null, val key: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ApplicationVersionArgs>

Provides an Elastic Beanstalk Application Version 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 a Beanstalk Application Version that can be deployed to a Beanstalk Environment.

NOTE on Application Version Resource: When using the Application Version resource with multiple Elastic Beanstalk Environments it is possible that an error may be returned when attempting to delete an Application Version while it is still in use by a different environment. To work around this you can either create each environment in a separate AWS account or create your aws.elasticbeanstalk.ApplicationVersion resources with a unique names in your Elastic Beanstalk Application. For example -.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.BucketV2;
import com.pulumi.aws.s3.BucketObjectv2;
import com.pulumi.aws.s3.BucketObjectv2Args;
import com.pulumi.aws.elasticbeanstalk.Application;
import com.pulumi.aws.elasticbeanstalk.ApplicationArgs;
import com.pulumi.aws.elasticbeanstalk.ApplicationVersion;
import com.pulumi.aws.elasticbeanstalk.ApplicationVersionArgs;
import com.pulumi.asset.FileAsset;
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) {
var defaultBucketV2 = new BucketV2("defaultBucketV2");
var defaultBucketObjectv2 = new BucketObjectv2("defaultBucketObjectv2", BucketObjectv2Args.builder()
.bucket(defaultBucketV2.id())
.key("beanstalk/go-v1.zip")
.source(new FileAsset("go-v1.zip"))
.build());
var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
.description("tf-test-desc")
.build());
var defaultApplicationVersion = new ApplicationVersion("defaultApplicationVersion", ApplicationVersionArgs.builder()
.application("tf-test-name")
.description("application version")
.bucket(defaultBucketV2.id())
.key(defaultBucketObjectv2.id())
.build());
}
}

Constructors

Link copied to clipboard
constructor(application: Output<String>? = null, bucket: Output<String>? = null, description: Output<String>? = null, forceDelete: Output<Boolean>? = null, key: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val application: Output<String>? = null

Name of the Beanstalk Application the version is associated with.

Link copied to clipboard
val bucket: Output<String>? = null

S3 bucket that contains the Application Version source bundle.

Link copied to clipboard
val description: Output<String>? = null

Short description of the Application Version.

Link copied to clipboard
val forceDelete: Output<Boolean>? = null

On delete, force an Application Version to be deleted when it may be in use by multiple Elastic Beanstalk Environments.

Link copied to clipboard
val key: Output<String>? = null

S3 object that is the Application Version source bundle.

Link copied to clipboard
val name: Output<String>? = null

Unique name for the this Application Version. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of tags for the Elastic Beanstalk Application Version. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): ApplicationVersionArgs