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.
Describes the properties of an environment.
Namespace: Amazon.ElasticBeanstalk.Model
Assembly: AWSSDK.ElasticBeanstalk.dll
Version: 3.x.y.z
public class UpdateEnvironmentResponse : AmazonWebServiceResponse
The UpdateEnvironmentResponse type exposes the following members
Name | Description | |
---|---|---|
UpdateEnvironmentResponse() |
Name | Type | Description | |
---|---|---|---|
AbortableOperationInProgress | System.Boolean |
Gets and sets the property AbortableOperationInProgress. Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.
|
|
ApplicationName | System.String |
Gets and sets the property ApplicationName. The name of the application associated with this environment. |
|
CNAME | System.String |
Gets and sets the property CNAME. The URL to the CNAME for this environment. |
|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
DateCreated | System.DateTime |
Gets and sets the property DateCreated. The creation date for this environment. |
|
DateUpdated | System.DateTime |
Gets and sets the property DateUpdated. The last modified date for this environment. |
|
Description | System.String |
Gets and sets the property Description. Describes this environment. |
|
EndpointURL | System.String |
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. |
|
EnvironmentArn | System.String |
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. |
|
EnvironmentId | System.String |
Gets and sets the property EnvironmentId. The ID of this environment. |
|
EnvironmentLinks | System.Collections.Generic.List<Amazon.ElasticBeanstalk.Model.EnvironmentLink> |
Gets and sets the property EnvironmentLinks. A list of links to other environments in the same group. |
|
EnvironmentName | System.String |
Gets and sets the property EnvironmentName. The name of this environment. |
|
Health | Amazon.ElasticBeanstalk.EnvironmentHealth |
Gets and sets the property Health. Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:
Default: |
|
HealthStatus | Amazon.ElasticBeanstalk.EnvironmentHealthStatus |
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. |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
OperationsRole | System.String |
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. |
|
PlatformArn | System.String |
Gets and sets the property PlatformArn. The ARN of the platform version. |
|
Resources | Amazon.ElasticBeanstalk.Model.EnvironmentResourcesDescription |
Gets and sets the property Resources. The description of the AWS resources used by this environment. |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
SolutionStackName | System.String |
Gets and sets the property SolutionStackName.
The name of the |
|
Status | Amazon.ElasticBeanstalk.EnvironmentStatus |
Gets and sets the property Status. The current operational status of the environment:
|
|
TemplateName | System.String |
Gets and sets the property TemplateName. The name of the configuration template used to originally launch this environment. |
|
Tier | Amazon.ElasticBeanstalk.Model.EnvironmentTier |
Gets and sets the property Tier. Describes the current tier of this environment. |
|
VersionLabel | System.String |
Gets and sets the property VersionLabel. The application version deployed in this environment. |
The following operation updates an environment named "my-env" to version "v2" of the application to which it belongs:
var client = new AmazonElasticBeanstalkClient(); var response = client.UpdateEnvironment(new UpdateEnvironmentRequest { EnvironmentName = "my-env", VersionLabel = "v2" }); string applicationName = response.ApplicationName; string cname = response.CNAME; DateTime dateCreated = response.DateCreated; DateTime dateUpdated = response.DateUpdated; string endpointURL = response.EndpointURL; string environmentId = response.EnvironmentId; string environmentName = response.EnvironmentName; string health = response.Health; string solutionStackName = response.SolutionStackName; string status = response.Status; EnvironmentTier tier = response.Tier; string versionLabel = response.VersionLabel;
The following operation configures several options in the aws:elb:loadbalancer namespace:
var client = new AmazonElasticBeanstalkClient(); var response = client.UpdateEnvironment(new UpdateEnvironmentRequest { EnvironmentName = "my-env", OptionSettings = new List<ConfigurationOptionSetting> { new ConfigurationOptionSetting { Namespace = "aws:elb:healthcheck", OptionName = "Interval", Value = "15" }, new ConfigurationOptionSetting { Namespace = "aws:elb:healthcheck", OptionName = "Timeout", Value = "8" }, new ConfigurationOptionSetting { Namespace = "aws:elb:healthcheck", OptionName = "HealthyThreshold", Value = "2" }, new ConfigurationOptionSetting { Namespace = "aws:elb:healthcheck", OptionName = "UnhealthyThreshold", Value = "3" } } }); bool abortableOperationInProgress = response.AbortableOperationInProgress; string applicationName = response.ApplicationName; string cname = response.CNAME; DateTime dateCreated = response.DateCreated; DateTime dateUpdated = response.DateUpdated; string endpointURL = response.EndpointURL; string environmentId = response.EnvironmentId; string environmentName = response.EnvironmentName; string health = response.Health; string solutionStackName = response.SolutionStackName; string status = response.Status; EnvironmentTier tier = response.Tier; string versionLabel = response.VersionLabel;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5