You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/01/02 13:42:22 UTC
[camel] branch master updated: CAMEL-14348 - Camel-AWS Lambda: Add
alias operations, createAlias fix implementation
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 62fb825 CAMEL-14348 - Camel-AWS Lambda: Add alias operations, createAlias fix implementation
62fb825 is described below
commit 62fb8256a173509b187c50664c4da65b6edd39fe
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 2 14:41:22 2020 +0100
CAMEL-14348 - Camel-AWS Lambda: Add alias operations, createAlias fix implementation
---
.../main/java/org/apache/camel/component/aws/lambda/LambdaProducer.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/components/camel-aws-lambda/src/main/java/org/apache/camel/component/aws/lambda/LambdaProducer.java b/components/camel-aws-lambda/src/main/java/org/apache/camel/component/aws/lambda/LambdaProducer.java
index ed66712..764fedd 100644
--- a/components/camel-aws-lambda/src/main/java/org/apache/camel/component/aws/lambda/LambdaProducer.java
+++ b/components/camel-aws-lambda/src/main/java/org/apache/camel/component/aws/lambda/LambdaProducer.java
@@ -574,6 +574,8 @@ public class LambdaProducer extends DefaultProducer {
if (ObjectHelper.isEmpty(version) || ObjectHelper.isEmpty(aliasName)) {
throw new IllegalArgumentException("Function Version and alias must be specified to create an alias");
}
+ request.setFunctionVersion(version);
+ request.setName(aliasName);
if (ObjectHelper.isNotEmpty(exchange.getIn().getHeader(LambdaConstants.FUNCTION_ALIAS_DESCRIPTION))) {
String aliasDescription = exchange.getIn().getHeader(LambdaConstants.FUNCTION_ALIAS_DESCRIPTION, String.class);
request.setDescription(aliasDescription);