AWS SDK Version 2 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.

.NET Framework 4.5
 
Container for the parameters to the TerminateEnvironment operation. Terminates the specified environment.

Inheritance Hierarchy

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

Namespace: Amazon.ElasticBeanstalk.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class TerminateEnvironmentRequest : AmazonElasticBeanstalkRequest
         IRequestEvents

The TerminateEnvironmentRequest type exposes the following members

Constructors

NameDescription
Public Method TerminateEnvironmentRequest() Empty constructor used to set properties independently even when a simple constructor is available

Properties

NameTypeDescription
Public Property EnvironmentId System.String Gets and sets the property EnvironmentId.

The ID of the environment to terminate.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

Public Property EnvironmentName System.String Gets and sets the property EnvironmentName.

The name of the environment to terminate.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

Public Property ForceTerminate System.Boolean Gets and sets the property ForceTerminate.

Terminates the target environment even if another environment in the same group is dependent on it.

Public Property TerminateResources System.Boolean Gets and sets the property TerminateResources.

Indicates whether the associated AWS resources should shut down when the environment is terminated:

  • true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated.
  • false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.

For more information, see the AWS Elastic Beanstalk User Guide.

Default: true

Valid Values: true | false

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1