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 2022/10/21 09:36:43 UTC

[camel-kamelets] branch aws-cloudtrail created (now be0458b8)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch aws-cloudtrail
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at be0458b8 Add AWS CloudTrail Source Kamelet

This branch includes the following new commits:

     new 3ae90fe9 Add AWS CloudTrail Source Kamelet
     new 9f5e16d4 Add AWS CloudTrail Source Kamelet
     new be0458b8 Add AWS CloudTrail Source Kamelet

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-kamelets] 02/03: Add AWS CloudTrail Source Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-cloudtrail
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 9f5e16d4b319bd15210d62861f18f1dcab35d6f5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 21 11:31:03 2022 +0200

    Add AWS CloudTrail Source Kamelet
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../kamelets/aws-cloudtrail-source.kamelet.yaml    | 84 ++++++++++++++++++++++
 1 file changed, 84 insertions(+)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-cloudtrail-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-cloudtrail-source.kamelet.yaml
new file mode 100644
index 00000000..1d605328
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-cloudtrail-source.kamelet.yaml
@@ -0,0 +1,84 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-cloudtrail-source
+  annotations:
+    camel.apache.org/kamelet.support.level: "Stable"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzQuMzc1IDg1IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIHhsaW5rOmhyZWY9IiNBIiB4PSIyLjE4OCIgeT0iMi41Ii8+PHN5bWJvbCBpZD0iQSIgb3ZlcmZsb3c9InZpc2libGUiPjxnIHN0cm9rZT0ibm9uZSI+PHBhdGggZD0iTTkuOTY2IDM1LjQ5M2wtMi4yODguMT [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "AWS Cloudtrail"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "AWS Cloudtrail Source"
+    description: |-
+      Receive data from an AWS Cloudtrail.
+
+      The basic authentication method for the Cloudtrail service is to specify an access key and a secret key. These parameters are optional because the Kamelet provides a default credentials provider.
+    required:
+      - region
+    type: object
+    properties:
+      accessKey:
+        title: Access Key
+        description: The access key obtained from AWS.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from AWS.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      region:
+        title: AWS Region
+        description: The AWS region to access.
+        type: string
+        enum: ["ap-south-1", "eu-south-1", "us-gov-east-1", "me-central-1", "ca-central-1", "eu-central-1", "us-iso-west-1", "us-west-1", "us-west-2", "af-south-1", "eu-north-1", "eu-west-3", "eu-west-2", "eu-west-1", "ap-northeast-3", "ap-northeast-2", "ap-northeast-1", "me-south-1", "sa-east-1", "ap-east-1", "cn-north-1", "us-gov-west-1", "ap-southeast-1", "ap-southeast-2", "us-iso-east-1", "ap-southeast-3", "us-east-1", "us-east-2", "cn-northwest-1", "us-isob-east-1", "aws-global", "a [...]
+      useDefaultCredentialsProvider:
+        title: Default Credentials Provider
+        description: If true, the Cloudtrail client loads credentials through a default credentials provider. If false, it uses the basic authentication method (access key and secret key).
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+      uriEndpointOverride:
+        title: Overwrite Endpoint URI
+        description: The overriding endpoint URI. To use this option, you must also select the `overrideEndpoint` option.
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: Select this option to override the endpoint URI. To use this option, you must also provide a URI for the `uriEndpointOverride` option.
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+      maxResults:
+        title: Max Results
+        description: Maximum number of records that will be fetched in each poll.
+        type: integer
+        default: 1
+  dependencies:
+    - "camel:core"
+    - "camel:aws-cloudtrail"
+    - "camel:kamelet"
+  template:
+    from:
+      uri: "aws-cloudtrail:cloudtrail"
+      parameters:
+        secretKey: "{{?secretKey}}"
+        accessKey: "{{?accessKey}}"
+        region: "{{region}}"
+        useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+        uriEndpointOverride: "{{?uriEndpointOverride}}"
+        overrideEndpoint: "{{overrideEndpoint}}"
+        maxResults: "{{maxResults}}"
+      steps:
+      - to: "kamelet:sink"


[camel-kamelets] 01/03: Add AWS CloudTrail Source Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-cloudtrail
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 3ae90fe9c53f01d7d41bc83ff7b1221d100bd94f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 21 11:29:39 2022 +0200

    Add AWS CloudTrail Source Kamelet
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/aws-cloudtrail-source.kamelet.yaml | 84 +++++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)

diff --git a/kamelets/aws-cloudtrail-source.kamelet.yaml b/kamelets/aws-cloudtrail-source.kamelet.yaml
new file mode 100644
index 00000000..1d605328
--- /dev/null
+++ b/kamelets/aws-cloudtrail-source.kamelet.yaml
@@ -0,0 +1,84 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-cloudtrail-source
+  annotations:
+    camel.apache.org/kamelet.support.level: "Stable"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzQuMzc1IDg1IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIHhsaW5rOmhyZWY9IiNBIiB4PSIyLjE4OCIgeT0iMi41Ii8+PHN5bWJvbCBpZD0iQSIgb3ZlcmZsb3c9InZpc2libGUiPjxnIHN0cm9rZT0ibm9uZSI+PHBhdGggZD0iTTkuOTY2IDM1LjQ5M2wtMi4yODguMT [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "AWS Cloudtrail"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "AWS Cloudtrail Source"
+    description: |-
+      Receive data from an AWS Cloudtrail.
+
+      The basic authentication method for the Cloudtrail service is to specify an access key and a secret key. These parameters are optional because the Kamelet provides a default credentials provider.
+    required:
+      - region
+    type: object
+    properties:
+      accessKey:
+        title: Access Key
+        description: The access key obtained from AWS.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from AWS.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      region:
+        title: AWS Region
+        description: The AWS region to access.
+        type: string
+        enum: ["ap-south-1", "eu-south-1", "us-gov-east-1", "me-central-1", "ca-central-1", "eu-central-1", "us-iso-west-1", "us-west-1", "us-west-2", "af-south-1", "eu-north-1", "eu-west-3", "eu-west-2", "eu-west-1", "ap-northeast-3", "ap-northeast-2", "ap-northeast-1", "me-south-1", "sa-east-1", "ap-east-1", "cn-north-1", "us-gov-west-1", "ap-southeast-1", "ap-southeast-2", "us-iso-east-1", "ap-southeast-3", "us-east-1", "us-east-2", "cn-northwest-1", "us-isob-east-1", "aws-global", "a [...]
+      useDefaultCredentialsProvider:
+        title: Default Credentials Provider
+        description: If true, the Cloudtrail client loads credentials through a default credentials provider. If false, it uses the basic authentication method (access key and secret key).
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+      uriEndpointOverride:
+        title: Overwrite Endpoint URI
+        description: The overriding endpoint URI. To use this option, you must also select the `overrideEndpoint` option.
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: Select this option to override the endpoint URI. To use this option, you must also provide a URI for the `uriEndpointOverride` option.
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+      maxResults:
+        title: Max Results
+        description: Maximum number of records that will be fetched in each poll.
+        type: integer
+        default: 1
+  dependencies:
+    - "camel:core"
+    - "camel:aws-cloudtrail"
+    - "camel:kamelet"
+  template:
+    from:
+      uri: "aws-cloudtrail:cloudtrail"
+      parameters:
+        secretKey: "{{?secretKey}}"
+        accessKey: "{{?accessKey}}"
+        region: "{{region}}"
+        useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+        uriEndpointOverride: "{{?uriEndpointOverride}}"
+        overrideEndpoint: "{{overrideEndpoint}}"
+        maxResults: "{{maxResults}}"
+      steps:
+      - to: "kamelet:sink"


[camel-kamelets] 03/03: Add AWS CloudTrail Source Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-cloudtrail
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit be0458b8dc19339c2a17b2717a7f16998511de3e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 21 11:34:27 2022 +0200

    Add AWS CloudTrail Source Kamelet
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java    | 1 +
 .../java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java b/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
index ed52ee89..a97cb871 100644
--- a/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
+++ b/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
@@ -17,6 +17,7 @@
 package org.apache.camel.kamelets.catalog.model;
 
 public enum KameletPrefixSchemeEnum {
+    aws_cloudtrail("aws-cloudtrail","aws-cloudtrail"),
     aws_cloudwatch("aws-cloudwatch","aws2-cw"),
     aws_ddb("aws-ddb","aws2-ddb"),
     aws_ddb_streams("aws-ddb","aws2-ddbstream"),
diff --git a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
index 64f3ba9b..1a1ffc2c 100644
--- a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
+++ b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
@@ -132,6 +132,8 @@ public class KameletsCatalogTest {
         assertEquals(18, headersSource.size());
         List<ComponentModel.EndpointHeaderModel> headersSink = catalog.getKameletSupportedHeaders("aws-s3-sink");
         assertEquals(25, headersSink.size());
+        List<ComponentModel.EndpointHeaderModel> headersCloudtrailSource = catalog.getKameletSupportedHeaders("aws-cloudtrail-source");
+        assertEquals(0, headersCloudtrailSource.size());
         List<ComponentModel.EndpointHeaderModel> headersRedshiftSource = catalog.getKameletSupportedHeaders("aws-redshift-source");
         assertEquals(0, headersRedshiftSource.size());
         List<ComponentModel.EndpointHeaderModel> headerNotExistent = catalog.getKameletSupportedHeaders("aws-not-exists");