Skip to content

Commit

Permalink
Closes #1572
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeansen committed Sep 8, 2020
1 parent f4233ff commit d6d9da7
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 118 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/reference/components.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ Preview | 1.1.0 | Consume and produce records from and to AWS Kinesis Streams us
| xref:reference/extensions/aws2-kinesis.adoc[AWS 2 Kinesis Firehose] | [.camel-element-artifact]##camel-quarkus-aws2-kinesis## | [.camel-element-JVM]##JVM## +
Preview | 1.1.0 | Produce data to AWS Kinesis Firehose streams using AWS SDK version 2.x.

| xref:reference/extensions/aws2-lambda.adoc[AWS 2 Lambda] | [.camel-element-artifact]##camel-quarkus-aws2-lambda## | [.camel-element-JVM]##JVM## +
Preview | 1.1.0 | Manage and invoke AWS Lambda functions using AWS SDK version 2.x.
| xref:reference/extensions/aws2-lambda.adoc[AWS 2 Lambda] | [.camel-element-artifact]##camel-quarkus-aws2-lambda## | [.camel-element-Native]##Native## +
Stable | 1.1.0 | Manage and invoke AWS Lambda functions using AWS SDK version 2.x.

| xref:reference/extensions/aws2-msk.adoc[AWS 2 Managed Streaming for Apache Kafka (MSK)] | [.camel-element-artifact]##camel-quarkus-aws2-msk## | [.camel-element-Native]##Native## +
Stable | 1.0.0 | Manage AWS MSK instances using AWS SDK version 2.x.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:page-aliases: extensions/aws2-lambda.adoc

[.badges]
[.badge-key]##Since Camel Quarkus##[.badge-version]##1.1.0## [.badge-key]##JVM##[.badge-supported]##supported## [.badge-key]##Native##[.badge-unsupported]##unsupported##
[.badge-key]##Since Camel Quarkus##[.badge-version]##1.1.0## [.badge-key]##JVM##[.badge-supported]##supported## [.badge-key]##Native##[.badge-supported]##supported##

Manage and invoke AWS Lambda functions using AWS SDK version 2.x.

Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/reference/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ Stable | 1.0.0 | Manage keys stored in AWS KMS instances using AWS SDK version 2
| xref:reference/extensions/aws2-kinesis.adoc[AWS 2 Kinesis] | camel-quarkus-aws2-kinesis | [.camel-element-JVM]##JVM## +
Preview | 1.1.0 | Consume and produce records from AWS Kinesis Streams using AWS SDK version 2.x.

| xref:reference/extensions/aws2-lambda.adoc[AWS 2 Lambda] | camel-quarkus-aws2-lambda | [.camel-element-JVM]##JVM## +
Preview | 1.1.0 | Manage and invoke AWS Lambda functions using AWS SDK version 2.x.
| xref:reference/extensions/aws2-lambda.adoc[AWS 2 Lambda] | camel-quarkus-aws2-lambda | [.camel-element-Native]##Native## +
Stable | 1.1.0 | Manage and invoke AWS Lambda functions using AWS SDK version 2.x.

| xref:reference/extensions/aws2-msk.adoc[AWS 2 Managed Streaming for Apache Kafka (MSK)] | camel-quarkus-aws2-msk | [.camel-element-Native]##Native## +
Stable | 1.0.0 | Manage AWS MSK instances using AWS SDK version 2.x.
Expand Down
95 changes: 0 additions & 95 deletions extensions-jvm/aws2-lambda/integration-test/pom.xml

This file was deleted.

1 change: 0 additions & 1 deletion extensions-jvm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<module>atomix</module>
<module>avro-rpc</module>
<module>aws2-kinesis</module>
<module>aws2-lambda</module>
<module>azure-storage-blob</module>
<module>azure-storage-queue</module>
<module>beanstalk</module>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
package org.apache.camel.quarkus.component.aws2.lambda.deployment;

import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.pkg.steps.NativeBuild;
import org.apache.camel.quarkus.core.JvmOnlyRecorder;
import org.jboss.logging.Logger;

class Aws2LambdaProcessor {
Expand All @@ -33,14 +29,4 @@ class Aws2LambdaProcessor {
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}

/**
* Remove this once this extension starts supporting the native mode.
*/
@BuildStep(onlyIf = NativeBuild.class)
@Record(value = ExecutionTime.RUNTIME_INIT)
void warnJvmInNative(JvmOnlyRecorder recorder) {
JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time
recorder.warnJvmInNative(FEATURE); // warn at runtime
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@
<modules>
<module>deployment</module>
<module>runtime</module>
<module>integration-test</module>
</modules>
</project>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.aws2.lambda.it;

import io.quarkus.test.junit.NativeImageTest;

@NativeImageTest
class Aws2LambdaIT extends Aws2LambdaTest {

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
name: "Camel AWS 2 Lambda"
description: "Manage and invoke AWS Lambda functions using AWS SDK version 2.x"
metadata:
unlisted: true
guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/aws2-lambda.html"
categories:
- "integration"
status:
- "preview"
- "stable"
1 change: 1 addition & 0 deletions extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<module>aws2-eks</module>
<module>aws2-iam</module>
<module>aws2-kms</module>
<module>aws2-lambda</module>
<module>aws2-mq</module>
<module>aws2-msk</module>
<module>aws2-s3</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ public void configure() {
from("timer:quarkus-athena?repeatCount=1")
.to("aws2-athena://cluster?operation=listQueryExecutions")
.to("log:sf?showAll=true");

from("timer:quarkus-lambda?repeatCount=1")
.to("aws2-lambda://cluster?operation=listFunctions")
.to("log:sf?showAll=true");
}

}
2 changes: 2 additions & 0 deletions integration-tests/dropbox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
<scope>test</scope>
</dependency>

<!-- The following dependencies guarantee that this module is built after them. You can update them by running `mvn process-resources -Pformat -N` from the source tree root directory -->

<!-- The following dependencies guarantee that this module is built after them. You can update them by runing `mvn process-resources -Pformat -N` from the source tree root directory -->
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
Expand Down

0 comments on commit d6d9da7

Please sign in to comment.