Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove experimental data type Kamelets #1333

Merged
merged 1 commit into from
Mar 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* xref:avro-serialize-action.adoc[]
* xref:aws-cloudtrail-source.adoc[]
* xref:aws-cloudwatch-sink.adoc[]
* xref:aws-ddb-experimental-sink.adoc[]
* xref:aws-ddb-sink.adoc[]
* xref:aws-ddb-streams-source.adoc[]
* xref:aws-ec2-sink.adoc[]
Expand All @@ -15,7 +14,6 @@
* xref:aws-redshift-sink.adoc[]
* xref:aws-redshift-source.adoc[]
* xref:aws-s3-cdc-source.adoc[]
* xref:aws-s3-experimental-source.adoc[]
* xref:aws-s3-sink.adoc[]
* xref:aws-s3-source.adoc[]
* xref:aws-s3-streaming-upload-sink.adoc[]
Expand Down
149 changes: 0 additions & 149 deletions kamelets/aws-ddb-experimental-sink.kamelet.yaml

This file was deleted.

21 changes: 15 additions & 6 deletions kamelets/aws-ddb-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:

If you use the default credentials provider, the DynamoDB client loads the credentials through this provider and doesn't use the basic authentication method.

This Kamelet expects a JSON-formatted body and it must include the primary key values that define the DynamoDB item. The mapping between the JSON fields and table attribute values is done by key. For example, for '{"username":"oscerd", "city":"Rome"}' input, the Kamelet inserts or update an item in the specified AWS DynamoDB table and sets the values for the 'username' and 'city' attributes.
This Kamelet expects a JSON-formatted body and it must include the primary key values that define the DynamoDB item. The mapping between the JSON fields and table attribute values is done by key. For example, for '{"username":"oscerd", "city":"Rome"}' input, the Kamelet inserts or update an item in the specified AWS DynamoDB table and sets the values for the 'username' and 'city' attributes.
required:
- table
- region
Expand Down Expand Up @@ -108,17 +108,26 @@ spec:
- "camel:aws2-ddb"
- "camel:kamelet"
template:
beans:
- name: dataTypeRegistry
type: "#class:org.apache.camel.kamelets.utils.format.DefaultDataTypeRegistry"
- name: dataTypeProcessor
type: "#class:org.apache.camel.kamelets.utils.format.DataTypeProcessor"
property:
- key: scheme
value: 'aws2-ddb'
- key: format
value: 'json'
- key: registry
value: '#bean:{{dataTypeRegistry}}'
from:
uri: "kamelet:source"
steps:
- set-property:
name: operation
constant: "{{operation}}"
- unmarshal:
json:
library: Jackson
unmarshalType: com.fasterxml.jackson.databind.JsonNode
- bean: "org.apache.camel.kamelets.utils.transform.aws.ddb.JsonToDdbModelConverter"
- process:
ref: "{{dataTypeProcessor}}"
- to:
uri: "aws2-ddb:{{table}}"
parameters:
Expand Down
168 changes: 0 additions & 168 deletions kamelets/aws-s3-experimental-source.kamelet.yaml

This file was deleted.

Loading