/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the elasticbeanstalk-2010-12-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ElasticBeanstalk.Model { /// /// 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. /// /// /// /// 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, /// you receive an exception when you attempt to launch an environment from the application /// version. /// /// /// public partial class CreateApplicationVersionRequest : AmazonElasticBeanstalkRequest { private string _applicationName; private bool? _autoCreateApplication; private BuildConfiguration _buildConfiguration; private string _description; private bool? _process; private SourceBuildInformation _sourceBuildInformation; private S3Location _sourceBundle; private List _tags = new List(); private string _versionLabel; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public CreateApplicationVersionRequest() { } /// /// Instantiates CreateApplicationVersionRequest with the parameterized properties /// /// The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error. /// 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. public CreateApplicationVersionRequest(string applicationName, string versionLabel) { _applicationName = applicationName; _versionLabel = versionLabel; } /// /// 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. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string ApplicationName { get { return this._applicationName; } set { this._applicationName = value; } } // Check to see if ApplicationName property is set internal bool IsSetApplicationName() { return this._applicationName != null; } /// /// Gets and sets the property AutoCreateApplication. /// /// Set to true to create an application with the specified name if it doesn't /// already exist. /// /// public bool AutoCreateApplication { get { return this._autoCreateApplication.GetValueOrDefault(); } set { this._autoCreateApplication = value; } } // Check to see if AutoCreateApplication property is set internal bool IsSetAutoCreateApplication() { return this._autoCreateApplication.HasValue; } /// /// Gets and sets the property BuildConfiguration. /// /// Settings for an AWS CodeBuild build. /// /// public BuildConfiguration BuildConfiguration { get { return this._buildConfiguration; } set { this._buildConfiguration = value; } } // Check to see if BuildConfiguration property is set internal bool IsSetBuildConfiguration() { return this._buildConfiguration != null; } /// /// Gets and sets the property Description. /// /// A description of this application version. /// /// [AWSProperty(Max=200)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property Process. /// /// Pre-processes and validates the environment manifest (env.yaml) and configuration /// files (*.config files in the .ebextensions folder) in the /// source bundle. Validating configuration files can identify issues prior to deploying /// the application version to an environment. /// /// /// /// You must turn processing on for application versions that you create using AWS CodeBuild /// or AWS CodeCommit. For application versions built from a source bundle in Amazon S3, /// processing is optional. /// /// /// /// The Process option validates Elastic Beanstalk configuration files. It /// doesn't validate your application's configuration files, like proxy server or Docker /// configuration. /// /// /// public bool Process { get { return this._process.GetValueOrDefault(); } set { this._process = value; } } // Check to see if Process property is set internal bool IsSetProcess() { return this._process.HasValue; } /// /// 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 SourceBuildInformation SourceBuildInformation { get { return this._sourceBuildInformation; } set { this._sourceBuildInformation = value; } } // Check to see if SourceBuildInformation property is set internal bool IsSetSourceBuildInformation() { return this._sourceBuildInformation != null; } /// /// 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 S3Location SourceBundle { get { return this._sourceBundle; } set { this._sourceBundle = value; } } // Check to see if SourceBundle property is set internal bool IsSetSourceBundle() { return this._sourceBundle != null; } /// /// Gets and sets the property Tags. /// /// Specifies the tags applied to the application version. /// /// /// /// Elastic Beanstalk applies these tags only to the application version. Environments /// that use the application version don't inherit the tags. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// 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. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string VersionLabel { get { return this._versionLabel; } set { this._versionLabel = value; } } // Check to see if VersionLabel property is set internal bool IsSetVersionLabel() { return this._versionLabel != null; } } }