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 DeleteApplicationVersion operation.
Deletes the specified version from the specified application.
You cannot delete an application version that is associated with a running environment.
Namespace: Amazon.ElasticBeanstalk.Model
Assembly: AWSSDK.ElasticBeanstalk.dll
Version: 3.x.y.z
public class DeleteApplicationVersionRequest : AmazonElasticBeanstalkRequest IAmazonWebServiceRequest
The DeleteApplicationVersionRequest type exposes the following members
Name | Description | |
---|---|---|
DeleteApplicationVersionRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
DeleteApplicationVersionRequest(string, string) |
Instantiates DeleteApplicationVersionRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
ApplicationName | System.String |
Gets and sets the property ApplicationName. The name of the application to which the version belongs. |
|
DeleteSourceBundle | System.Boolean |
Gets and sets the property DeleteSourceBundle.
Set to |
|
VersionLabel | System.String |
Gets and sets the property VersionLabel. The label of the version to delete. |
The following operation deletes an application version named 22a0-stage-150819_182129 for an application named my-app:
var client = new AmazonElasticBeanstalkClient(); var response = client.DeleteApplicationVersion(new DeleteApplicationVersionRequest { ApplicationName = "my-app", DeleteSourceBundle = true, VersionLabel = "22a0-stage-150819_182129" });
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5