/*
* 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
{
///
/// Describes the properties of an environment.
///
public partial class CreateEnvironmentResponse : AmazonWebServiceResponse
{
private bool? _abortableOperationInProgress;
private string _applicationName;
private string _cname;
private DateTime? _dateCreated;
private DateTime? _dateUpdated;
private string _description;
private string _endpointURL;
private string _environmentArn;
private string _environmentId;
private List _environmentLinks = new List();
private string _environmentName;
private EnvironmentHealth _health;
private EnvironmentHealthStatus _healthStatus;
private string _operationsRole;
private string _platformArn;
private EnvironmentResourcesDescription _resources;
private string _solutionStackName;
private EnvironmentStatus _status;
private string _templateName;
private EnvironmentTier _tier;
private string _versionLabel;
///
/// Gets and sets the property AbortableOperationInProgress.
///
/// Indicates if there is an in-progress environment configuration update or application
/// version deployment that you can cancel.
///
///
///
/// true:
There is an update in progress.
///
///
///
/// false:
There are no updates currently in progress.
///
///
public bool AbortableOperationInProgress
{
get { return this._abortableOperationInProgress.GetValueOrDefault(); }
set { this._abortableOperationInProgress = value; }
}
// Check to see if AbortableOperationInProgress property is set
internal bool IsSetAbortableOperationInProgress()
{
return this._abortableOperationInProgress.HasValue;
}
///
/// Gets and sets the property ApplicationName.
///
/// The name of the application associated with this environment.
///
///
[AWSProperty(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 CNAME.
///
/// The URL to the CNAME for this environment.
///
///
[AWSProperty(Min=1, Max=255)]
public string CNAME
{
get { return this._cname; }
set { this._cname = value; }
}
// Check to see if CNAME property is set
internal bool IsSetCNAME()
{
return this._cname != null;
}
///
/// Gets and sets the property DateCreated.
///
/// The creation date for this environment.
///
///
public DateTime DateCreated
{
get { return this._dateCreated.GetValueOrDefault(); }
set { this._dateCreated = value; }
}
// Check to see if DateCreated property is set
internal bool IsSetDateCreated()
{
return this._dateCreated.HasValue;
}
///
/// Gets and sets the property DateUpdated.
///
/// The last modified date for this environment.
///
///
public DateTime DateUpdated
{
get { return this._dateUpdated.GetValueOrDefault(); }
set { this._dateUpdated = value; }
}
// Check to see if DateUpdated property is set
internal bool IsSetDateUpdated()
{
return this._dateUpdated.HasValue;
}
///
/// Gets and sets the property Description.
///
/// Describes this environment.
///
///
[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 EndpointURL.
///
/// For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance
/// environments, the IP address of the instance.
///
///
public string EndpointURL
{
get { return this._endpointURL; }
set { this._endpointURL = value; }
}
// Check to see if EndpointURL property is set
internal bool IsSetEndpointURL()
{
return this._endpointURL != null;
}
///
/// Gets and sets the property EnvironmentArn.
///
/// The environment's Amazon Resource Name (ARN), which can be used in other API requests
/// that require an ARN.
///
///
public string EnvironmentArn
{
get { return this._environmentArn; }
set { this._environmentArn = value; }
}
// Check to see if EnvironmentArn property is set
internal bool IsSetEnvironmentArn()
{
return this._environmentArn != null;
}
///
/// Gets and sets the property EnvironmentId.
///
/// The ID of this environment.
///
///
public string EnvironmentId
{
get { return this._environmentId; }
set { this._environmentId = value; }
}
// Check to see if EnvironmentId property is set
internal bool IsSetEnvironmentId()
{
return this._environmentId != null;
}
///
/// Gets and sets the property EnvironmentLinks.
///
/// A list of links to other environments in the same group.
///
///
public List EnvironmentLinks
{
get { return this._environmentLinks; }
set { this._environmentLinks = value; }
}
// Check to see if EnvironmentLinks property is set
internal bool IsSetEnvironmentLinks()
{
return this._environmentLinks != null && this._environmentLinks.Count > 0;
}
///
/// Gets and sets the property EnvironmentName.
///
/// The name of this environment.
///
///
[AWSProperty(Min=4, Max=40)]
public string EnvironmentName
{
get { return this._environmentName; }
set { this._environmentName = value; }
}
// Check to see if EnvironmentName property is set
internal bool IsSetEnvironmentName()
{
return this._environmentName != null;
}
///
/// Gets and sets the property Health.
///
/// Describes the health status of the environment. AWS Elastic Beanstalk indicates the
/// failure levels for a running environment:
///
/// -
///
///
Red
: Indicates the environment is not responsive. Occurs when three
/// or more consecutive failures occur for an environment.
///
/// -
///
///
Yellow
: Indicates that something is wrong. Occurs when two consecutive
/// failures occur for an environment.
///
/// -
///
///
Green
: Indicates the environment is healthy and fully functional.
///
/// -
///
///
Grey
: Default health for a new environment. The environment is not fully
/// launched and health checks have not started or health checks are suspended during
/// an UpdateEnvironment
or RestartEnvironment
request.
///
///
///
/// Default: Grey
///
///
public EnvironmentHealth Health
{
get { return this._health; }
set { this._health = value; }
}
// Check to see if Health property is set
internal bool IsSetHealth()
{
return this._health != null;
}
///
/// Gets and sets the property HealthStatus.
///
/// Returns the health status of the application running in your environment. For more
/// information, see Health
/// Colors and Statuses.
///
///
public EnvironmentHealthStatus HealthStatus
{
get { return this._healthStatus; }
set { this._healthStatus = value; }
}
// Check to see if HealthStatus property is set
internal bool IsSetHealthStatus()
{
return this._healthStatus != null;
}
///
/// Gets and sets the property OperationsRole.
///
/// The Amazon Resource Name (ARN) of the environment's operations role. For more information,
/// see Operations
/// roles in the AWS Elastic Beanstalk Developer Guide.
///
///
[AWSProperty(Min=1, Max=256)]
public string OperationsRole
{
get { return this._operationsRole; }
set { this._operationsRole = value; }
}
// Check to see if OperationsRole property is set
internal bool IsSetOperationsRole()
{
return this._operationsRole != null;
}
///
/// Gets and sets the property PlatformArn.
///
/// The ARN of the platform version.
///
///
public string PlatformArn
{
get { return this._platformArn; }
set { this._platformArn = value; }
}
// Check to see if PlatformArn property is set
internal bool IsSetPlatformArn()
{
return this._platformArn != null;
}
///
/// Gets and sets the property Resources.
///
/// The description of the AWS resources used by this environment.
///
///
public EnvironmentResourcesDescription Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null;
}
///
/// Gets and sets the property SolutionStackName.
///
/// The name of the SolutionStack
deployed with this environment.
///
///
public string SolutionStackName
{
get { return this._solutionStackName; }
set { this._solutionStackName = value; }
}
// Check to see if SolutionStackName property is set
internal bool IsSetSolutionStackName()
{
return this._solutionStackName != null;
}
///
/// Gets and sets the property Status.
///
/// The current operational status of the environment:
///
/// -
///
///
Launching
: Environment is in the process of initial deployment.
///
/// -
///
///
Updating
: Environment is in the process of updating its configuration
/// settings or application version.
///
/// -
///
///
Ready
: Environment is available to have an action performed on it, such
/// as update or terminate.
///
/// -
///
///
Terminating
: Environment is in the shut-down process.
///
/// -
///
///
Terminated
: Environment is not running.
///
///
///
public EnvironmentStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property TemplateName.
///
/// The name of the configuration template used to originally launch this environment.
///
///
[AWSProperty(Min=1, Max=100)]
public string TemplateName
{
get { return this._templateName; }
set { this._templateName = value; }
}
// Check to see if TemplateName property is set
internal bool IsSetTemplateName()
{
return this._templateName != null;
}
///
/// Gets and sets the property Tier.
///
/// Describes the current tier of this environment.
///
///
public EnvironmentTier Tier
{
get { return this._tier; }
set { this._tier = value; }
}
// Check to see if Tier property is set
internal bool IsSetTier()
{
return this._tier != null;
}
///
/// Gets and sets the property VersionLabel.
///
/// The application version deployed in this environment.
///
///
[AWSProperty(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;
}
}
}