Class CfnApplicationVersion
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnApplicationVersion
.static interface
Use theSourceBundle
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.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnApplicationVersion
(Construct scope, String id, CfnApplicationVersionProps props) Create a newAWS::ElasticBeanstalk::ApplicationVersion
.protected
CfnApplicationVersion
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnApplicationVersion
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe name of the Elastic Beanstalk application that is associated with this application version.A description of this application version.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.renderProperties
(Map<String, Object> props) void
setApplicationName
(String value) The name of the Elastic Beanstalk application that is associated with this application version.void
setDescription
(String value) A description of this application version.void
setSourceBundle
(IResolvable value) The Amazon S3 bucket and key that identify the location of the source bundle for this version.void
The Amazon S3 bucket and key that identify the location of the source bundle for this version.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 Construct scope, @NotNull String id, @NotNull CfnApplicationVersionProps props) Create a newAWS::ElasticBeanstalk::ApplicationVersion
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in 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.The Amazon S3 bucket must be in the same region as the environment.
-
setSourceBundle
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
A description of this application version. -
setDescription
A description of this application version.
-