Class CfnApplicationVersion

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.521Z") @Stability(Stable) public class CfnApplicationVersion extends CfnResource implements IInspectable
A CloudFormation AWS::ElasticBeanstalk::ApplicationVersion.

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();
 
  • 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 Construct scope, @NotNull String id, @NotNull CfnApplicationVersionProps props)
      Create a new AWS::ElasticBeanstalk::ApplicationVersion.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      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.

      The Amazon S3 bucket must be in the same region as the environment.

    • 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.

      The Amazon S3 bucket must be in the same region as the environment.

    • 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.

      The Amazon S3 bucket must be in the same region as the environment.

    • 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.