fix(aws/lambda): Add qualifier flag to support deleting specific version of lambda
MODIFY
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/description/DeleteLambdaFunctionDescription.java
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/description/DeleteLambdaFunctionDescription.java
@@ -23,5 +23,6 @@ import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = false)
public class DeleteLambdaFunctionDescription extends AbstractLambdaFunctionDescription {
String functionName;
+ String qualifier;
// TODO : Stub, implement later
}

MODIFY
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/ops/DeleteLambdaAtomicOperation.java
clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/ops/DeleteLambdaAtomicOperation.java
@@ -50,6 +50,8 @@ public class DeleteLambdaAtomicOperation
DeleteFunctionRequest request =
new DeleteFunctionRequest().withFunctionName(cache.getFunctionArn());
+ request.withQualifier(description.getQualifier());
+
DeleteFunctionResult result = client.deleteFunction(request);
updateTaskStatus("Finished deletion of AWS Lambda Function Operation...");

fix(aws/lambda): Add qualifier flag to support deleting specific version of lambda (#4873)

Co-authored-by: smaniyedath <shyam_maniyedath@intuit.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>