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,IApplicationVersionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:39.720Z")
@Stability(Stable)
public class CfnApplicationVersion
extends CfnResource
implements IInspectable, IApplicationVersionRef
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnApplicationVersion.static interfaceUse theSourceBundleproperty type to specify the Amazon S3 location of the source bundle for an AWS Elastic Beanstalk application version when defining an AWS::ElasticBeanstalk::ApplicationVersion resource in an AWS CloudFormation template.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticbeanstalk.IApplicationVersionRef
IApplicationVersionRef.Jsii$Default, IApplicationVersionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnApplicationVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplicationVersion(software.amazon.jsii.JsiiObjectRef objRef) CfnApplicationVersion(software.constructs.Construct scope, String id, CfnApplicationVersionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe name of the Elastic Beanstalk application that is associated with this application version.A reference to a ApplicationVersion resource.A description of this application version.The Amazon S3 bucket and key that identify the location of the source bundle for this version.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApplicationName(String value) The name of the Elastic Beanstalk application that is associated with this application version.voidsetDescription(String value) A description of this application version.voidsetSourceBundle(IResolvable value) The Amazon S3 bucket and key that identify the location of the source bundle for this version.voidThe Amazon S3 bucket and key that identify the location of the source bundle for this version.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getApplicationVersionRef
A reference to a ApplicationVersion resource.- Specified by:
getApplicationVersionRefin interfaceIApplicationVersionRef
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getApplicationName
The name of the Elastic Beanstalk application that is associated with this application version. -
setApplicationName
The name of the Elastic Beanstalk application that is associated with this application version. -
getSourceBundle
The Amazon S3 bucket and key that identify the location of the source bundle for this version.Returns union: either
IResolvableorCfnApplicationVersion.SourceBundleProperty -
setSourceBundle
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
A description of this application version. -
setDescription
A description of this application version.
-