From 5882edf8c298fecae34e4d21b30fa37cfda083ad Mon Sep 17 00:00:00 2001 From: Michael Anstis Date: Fri, 3 Mar 2023 16:16:58 +0000 Subject: [PATCH 1/2] Issue-1336: DynamoDB Sink - use enum for available operations --- kamelets/aws-ddb-sink.kamelet.yaml | 1 + .../src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/kamelets/aws-ddb-sink.kamelet.yaml b/kamelets/aws-ddb-sink.kamelet.yaml index 07a7c3cb7..f93d46179 100644 --- a/kamelets/aws-ddb-sink.kamelet.yaml +++ b/kamelets/aws-ddb-sink.kamelet.yaml @@ -73,6 +73,7 @@ spec: title: Operation description: "The operation to perform. The options are PutItem, UpdateItem, or DeleteItem." type: string + enum: ["PutItem", "UpdateItem", "DeleteItem"] default: PutItem example: PutItem writeCapacity: diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml index 07a7c3cb7..f93d46179 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml @@ -73,6 +73,7 @@ spec: title: Operation description: "The operation to perform. The options are PutItem, UpdateItem, or DeleteItem." type: string + enum: ["PutItem", "UpdateItem", "DeleteItem"] default: PutItem example: PutItem writeCapacity: From 1c7b4575ee4d815877f0114f1229e4eff13f8ef6 Mon Sep 17 00:00:00 2001 From: Michael Anstis Date: Fri, 3 Mar 2023 16:54:59 +0000 Subject: [PATCH 2/2] Remove spurious description. --- kamelets/aws-ddb-sink.kamelet.yaml | 2 +- .../src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kamelets/aws-ddb-sink.kamelet.yaml b/kamelets/aws-ddb-sink.kamelet.yaml index f93d46179..639a64372 100644 --- a/kamelets/aws-ddb-sink.kamelet.yaml +++ b/kamelets/aws-ddb-sink.kamelet.yaml @@ -71,7 +71,7 @@ spec: 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", "aws-cn-global", "aws-us-gov-global", "aws-iso-global", "aws-iso-b-global"] operation: title: Operation - description: "The operation to perform. The options are PutItem, UpdateItem, or DeleteItem." + description: "The operation to perform." type: string enum: ["PutItem", "UpdateItem", "DeleteItem"] default: PutItem diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml index f93d46179..639a64372 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-sink.kamelet.yaml @@ -71,7 +71,7 @@ spec: 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", "aws-cn-global", "aws-us-gov-global", "aws-iso-global", "aws-iso-b-global"] operation: title: Operation - description: "The operation to perform. The options are PutItem, UpdateItem, or DeleteItem." + description: "The operation to perform." type: string enum: ["PutItem", "UpdateItem", "DeleteItem"] default: PutItem