Class CfnApplicationVersion

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.elasticbeanstalk.CfnApplicationVersion
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.901Z") @Stability(Stable) public class CfnApplicationVersion extends CfnResource implements IInspectable
Specify an AWS Elastic Beanstalk application version by using the AWS::ElasticBeanstalk::ApplicationVersion resource in an AWS CloudFormation template.

The AWS::ElasticBeanstalk::ApplicationVersion resource is an AWS Elastic Beanstalk resource type that specifies an application version, an iteration of deployable code, for an Elastic Beanstalk application.

After you create an application version with a specified Amazon S3 bucket and key location, you can't change that Amazon S3 location. If you change the Amazon S3 location, an attempt to launch an environment from the application version will fail.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.elasticbeanstalk.*;
 CfnApplicationVersion cfnApplicationVersion = CfnApplicationVersion.Builder.create(this, "MyCfnApplicationVersion")
         .applicationName("applicationName")
         .sourceBundle(SourceBundleProperty.builder()
                 .s3Bucket("s3Bucket")
                 .s3Key("s3Key")
                 .build())
         // the properties below are optional
         .description("description")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnApplicationVersion

      protected CfnApplicationVersion(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnApplicationVersion

      protected CfnApplicationVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnApplicationVersion

      @Stability(Stable) public CfnApplicationVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApplicationVersionProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getApplicationName

      @Stability(Stable) @NotNull public String getApplicationName()
      The name of the Elastic Beanstalk application that is associated with this application version.
    • setApplicationName

      @Stability(Stable) public void setApplicationName(@NotNull String value)
      The name of the Elastic Beanstalk application that is associated with this application version.
    • getSourceBundle

      @Stability(Stable) @NotNull public Object getSourceBundle()
      The Amazon S3 bucket and key that identify the location of the source bundle for this version.
    • setSourceBundle

      @Stability(Stable) public void setSourceBundle(@NotNull IResolvable value)
      The Amazon S3 bucket and key that identify the location of the source bundle for this version.
    • setSourceBundle

      @Stability(Stable) public void setSourceBundle(@NotNull CfnApplicationVersion.SourceBundleProperty value)
      The Amazon S3 bucket and key that identify the location of the source bundle for this version.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      A description of this application version.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      A description of this application version.