@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.997Z") 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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnApplicationVersion.Builder
A fluent builder for
CfnApplicationVersion . |
static interface |
CfnApplicationVersion.SourceBundleProperty
Use the `SourceBundle` property 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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnApplicationVersion(Construct scope,
java.lang.String id,
CfnApplicationVersionProps props)
Create a new `AWS::ElasticBeanstalk::ApplicationVersion`.
|
protected |
CfnApplicationVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApplicationVersion(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationName()
The name of the Elastic Beanstalk application that is associated with this application version.
|
java.lang.String |
getAttrId() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
A description of this application version.
|
java.lang.Object |
getSourceBundle()
The Amazon S3 bucket and key that identify the location of the source bundle for this version.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setApplicationName(java.lang.String value)
The name of the Elastic Beanstalk application that is associated with this application version.
|
void |
setDescription(java.lang.String value)
A description of this application version.
|
void |
setSourceBundle(CfnApplicationVersion.SourceBundleProperty value)
The Amazon S3 bucket and key that identify the location of the source bundle for this version.
|
void |
setSourceBundle(IResolvable value)
The Amazon S3 bucket and key that identify the location of the source bundle for this version.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnApplicationVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApplicationVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnApplicationVersion(Construct scope, java.lang.String id, CfnApplicationVersionProps props)
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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getApplicationName()
public void setApplicationName(java.lang.String value)
public java.lang.Object getSourceBundle()
The Amazon S3 bucket must be in the same region as the environment.
public void setSourceBundle(IResolvable value)
The Amazon S3 bucket must be in the same region as the environment.
public void setSourceBundle(CfnApplicationVersion.SourceBundleProperty value)
The Amazon S3 bucket must be in the same region as the environment.
public java.lang.String getDescription()
public void setDescription(java.lang.String value)