/AWS1/IF_EBN=>DELETEAPPLICATIONVERSION()¶
About DeleteApplicationVersion¶
Deletes the specified version from the specified application.
You cannot delete an application version that is associated with a running environment.
Method Signature¶
METHODS /AWS1/IF_EBN~DELETEAPPLICATIONVERSION
IMPORTING
!IV_APPLICATIONNAME TYPE /AWS1/EBNAPPLICATIONNAME OPTIONAL
!IV_VERSIONLABEL TYPE /AWS1/EBNVERSIONLABEL OPTIONAL
!IV_DELETESOURCEBUNDLE TYPE /AWS1/EBNDELETESOURCEBUNDLE OPTIONAL
RAISING
/AWS1/CX_EBNINSUFFICIENTPRIV00
/AWS1/CX_EBNOPINPROGRESSEX
/AWS1/CX_EBNS3LOCNOTINSVCREG00
/AWS1/CX_EBNSRCBUNDLEDELETIO00
/AWS1/CX_EBNCLIENTEXC
/AWS1/CX_EBNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationname TYPE /AWS1/EBNAPPLICATIONNAME /AWS1/EBNAPPLICATIONNAME¶
The name of the application to which the version belongs.
iv_versionlabel TYPE /AWS1/EBNVERSIONLABEL /AWS1/EBNVERSIONLABEL¶
The label of the version to delete.
Optional arguments:¶
iv_deletesourcebundle TYPE /AWS1/EBNDELETESOURCEBUNDLE /AWS1/EBNDELETESOURCEBUNDLE¶
Set to
trueto delete the source bundle from your storage bucket. Otherwise, the application version is deleted only from Elastic Beanstalk and the source bundle remains in Amazon S3.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->deleteapplicationversion(
iv_applicationname = |string|
iv_deletesourcebundle = ABAP_TRUE
iv_versionlabel = |string|
).
To delete an application version¶
The following operation deletes an application version named 22a0-stage-150819_182129 for an application named my-app:
lo_client->deleteapplicationversion(
iv_applicationname = |my-app|
iv_deletesourcebundle = ABAP_TRUE
iv_versionlabel = |22a0-stage-150819_182129|
).