AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateApplicationVersion operation. Creates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in AWS CodeCommit, or the output of an AWS CodeBuild build as follows:

Specify a commit in an AWS CodeCommit repository with SourceBuildInformation.

Specify a build in an AWS CodeBuild with SourceBuildInformation and BuildConfiguration.

Specify a source bundle in S3 with SourceBundle

Omit both SourceBuildInformation and SourceBundle to use the default sample application.

Once you create an application version with a specified Amazon S3 bucket and key location, you cannot change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElasticBeanstalk.AmazonElasticBeanstalkRequest
      Amazon.ElasticBeanstalk.Model.CreateApplicationVersionRequest

Namespace: Amazon.ElasticBeanstalk.Model
Assembly: AWSSDK.ElasticBeanstalk.dll
Version: 3.x.y.z

Syntax

C#
public class CreateApplicationVersionRequest : AmazonElasticBeanstalkRequest
         IAmazonWebServiceRequest

The CreateApplicationVersionRequest type exposes the following members

Constructors

NameDescription
Public Method CreateApplicationVersionRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method CreateApplicationVersionRequest(string, string)

Instantiates CreateApplicationVersionRequest with the parameterized properties

Properties

NameTypeDescription
Public Property ApplicationName System.String

Gets and sets the property ApplicationName.

The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

Public Property AutoCreateApplication System.Boolean

Gets and sets the property AutoCreateApplication.

Set to true to create an application with the specified name if it doesn't already exist.

Public Property BuildConfiguration Amazon.ElasticBeanstalk.Model.BuildConfiguration

Gets and sets the property BuildConfiguration.

Settings for an AWS CodeBuild build.

Public Property Description System.String

Gets and sets the property Description.

Describes this version.

Public Property Process System.Boolean

Gets and sets the property Process.

Preprocesses and validates the environment manifest and configuration files in the source bundle. Validating configuration files can identify issues prior to deploying the application version to an environment.

Public Property SourceBuildInformation Amazon.ElasticBeanstalk.Model.SourceBuildInformation

Gets and sets the property SourceBuildInformation.

Specify a commit in an AWS CodeCommit Git repository to use as the source code for the application version.

Public Property SourceBundle Amazon.ElasticBeanstalk.Model.S3Location

Gets and sets the property SourceBundle.

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.

Specify a source bundle in S3 or a commit in an AWS CodeCommit repository (with SourceBuildInformation), but not both. If neither SourceBundle nor SourceBuildInformation are provided, Elastic Beanstalk uses a sample application.

Public Property VersionLabel System.String

Gets and sets the property VersionLabel.

A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Examples

The following operation creates a new version (v1) of an application named my-app:

To create a new application


var response = client.CreateApplication(new CreateApplicationRequest 
{
    ApplicationName = "my-app",
    Description = "my application"
});

ApplicationDescription application = response.Application;

            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms