Class CfnApplicationVersion
A CloudFormation AWS::ElasticBeanstalk::ApplicationVersion
.
Inherited Members
Namespace: Amazon.CDK.AWS.ElasticBeanstalk
Assembly: Amazon.CDK.AWS.ElasticBeanstalk.dll
Syntax (csharp)
public class CfnApplicationVersion : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnApplicationVersion
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
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.
CloudformationResource: AWS::ElasticBeanstalk::ApplicationVersion
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticBeanstalk;
var cfnApplicationVersion = new CfnApplicationVersion(this, "MyCfnApplicationVersion", new CfnApplicationVersionProps {
ApplicationName = "applicationName",
SourceBundle = new SourceBundleProperty {
S3Bucket = "s3Bucket",
S3Key = "s3Key"
},
// the properties below are optional
Description = "description"
});
Synopsis
Constructors
CfnApplicationVersion(Construct, String, ICfnApplicationVersionProps) | Create a new |
CfnApplicationVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnApplicationVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
ApplicationName | The name of the Elastic Beanstalk application that is associated with this application version. |
AttrId | |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | A description of this application version. |
SourceBundle | The Amazon S3 bucket and key that identify the location of the source bundle for this version. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnApplicationVersion(Construct, String, ICfnApplicationVersionProps)
Create a new AWS::ElasticBeanstalk::ApplicationVersion
.
public CfnApplicationVersion(Construct scope, string id, ICfnApplicationVersionProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnApplicationVersionProps
- resource properties.
CfnApplicationVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnApplicationVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnApplicationVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnApplicationVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ApplicationName
The name of the Elastic Beanstalk application that is associated with this application version.
public virtual string ApplicationName { get; set; }
Property Value
System.String
Remarks
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
A description of this application version.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
SourceBundle
The Amazon S3 bucket and key that identify the location of the source bundle for this version.
public virtual object SourceBundle { get; set; }
Property Value
System.Object
Remarks
The Amazon S3 bucket must be in the same region as the environment.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>