diff --git a/docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc b/docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc index 024701dc8..e950aeea1 100644 --- a/docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc +++ b/docs/modules/ROOT/pages/aws-cloudwatch-sink.adoc @@ -24,7 +24,7 @@ The following table summarizes the configuration options available for the `aws- |=== | Property| Name| Description| Type| Default| Example | *accessKey {empty}* *| Access Key| The access key obtained from AWS.| string| | -| *cw_namespace {empty}* *| Cloud Watch Namespace| The cloud watch metric namespace.| string| | +| *cwNamespace {empty}* *| Cloud Watch Namespace| The cloud watch metric namespace.| string| | | *region {empty}* *| AWS Region| The AWS region to connect to.| string| | `"eu-west-1"` | *secretKey {empty}* *| Secret Key| The secret key obtained from AWS.| string| | |=== @@ -67,7 +67,7 @@ spec: name: aws-cloudwatch-sink properties: accessKey: "The Access Key" - cw_namespace: "The Cloud Watch Namespace" + cwNamespace: "The Cloud Watch Namespace" region: "eu-west-1" secretKey: "The Secret Key" @@ -94,7 +94,7 @@ Configure and run the sink by using the following command: [source,shell] ---- -kamel bind channel:mychannel aws-cloudwatch-sink -p "sink.accessKey=The Access Key" -p "sink.cw_namespace=The Cloud Watch Namespace" -p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key" +kamel bind channel:mychannel aws-cloudwatch-sink -p "sink.accessKey=The Access Key" -p "sink.cwNamespace=The Cloud Watch Namespace" -p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key" ---- This command creates the KameletBinding in the current namespace on the cluster. @@ -123,7 +123,7 @@ spec: name: aws-cloudwatch-sink properties: accessKey: "The Access Key" - cw_namespace: "The Cloud Watch Namespace" + cwNamespace: "The Cloud Watch Namespace" region: "eu-west-1" secretKey: "The Secret Key" @@ -152,7 +152,7 @@ Configure and run the sink by using the following command: [source,shell] ---- -kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic aws-cloudwatch-sink -p "sink.accessKey=The Access Key" -p "sink.cw_namespace=The Cloud Watch Namespace" -p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key" +kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic aws-cloudwatch-sink -p "sink.accessKey=The Access Key" -p "sink.cwNamespace=The Cloud Watch Namespace" -p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key" ---- This command creates the KameletBinding in the current namespace on the cluster. diff --git a/kamelets/aws-cloudwatch-sink.kamelet.yaml b/kamelets/aws-cloudwatch-sink.kamelet.yaml index b1c20c1c6..5530f7054 100644 --- a/kamelets/aws-cloudwatch-sink.kamelet.yaml +++ b/kamelets/aws-cloudwatch-sink.kamelet.yaml @@ -42,13 +42,13 @@ spec: `metric-dimension-name` / `ce-metricdimensionname` for the dimension name. `metric-dimension-value` / `ce-metricdimensionvalue` for the dimension value. required: - - cw_namespace + - cwNamespace - accessKey - secretKey - region type: object properties: - cw_namespace: + cwNamespace: title: Cloud Watch Namespace description: The cloud watch metric namespace. type: string @@ -153,7 +153,7 @@ spec: name: CamelAwsCwMetricDimensionValue simple: "${header[ce-metricdimensionvalue]}" - to: - uri: "aws2-cw:{{cw_namespace}}" + uri: "aws2-cw:{{cwNamespace}}" parameters: secretKey: "{{secretKey}}" accessKey: "{{accessKey}}" diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml index b1c20c1c6..5530f7054 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/aws-cloudwatch-sink.kamelet.yaml @@ -42,13 +42,13 @@ spec: `metric-dimension-name` / `ce-metricdimensionname` for the dimension name. `metric-dimension-value` / `ce-metricdimensionvalue` for the dimension value. required: - - cw_namespace + - cwNamespace - accessKey - secretKey - region type: object properties: - cw_namespace: + cwNamespace: title: Cloud Watch Namespace description: The cloud watch metric namespace. type: string @@ -153,7 +153,7 @@ spec: name: CamelAwsCwMetricDimensionValue simple: "${header[ce-metricdimensionvalue]}" - to: - uri: "aws2-cw:{{cw_namespace}}" + uri: "aws2-cw:{{cwNamespace}}" parameters: secretKey: "{{secretKey}}" accessKey: "{{accessKey}}" diff --git a/templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml b/templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml index 3506d9c9b..9c4f495b8 100644 --- a/templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml +++ b/templates/bindings/camel-k/aws-cloudwatch-sink-binding.yaml @@ -15,7 +15,7 @@ spec: name: aws-cloudwatch-sink properties: accessKey: "The Access Key" - cw_namespace: "The Cloud Watch Namespace" + cwNamespace: "The Cloud Watch Namespace" region: "eu-west-1" secretKey: "The Secret Key" \ No newline at end of file diff --git a/templates/bindings/core/aws-cloudwatch-sink-binding.yaml b/templates/bindings/core/aws-cloudwatch-sink-binding.yaml index 61182e5c7..7fe900b01 100644 --- a/templates/bindings/core/aws-cloudwatch-sink-binding.yaml +++ b/templates/bindings/core/aws-cloudwatch-sink-binding.yaml @@ -9,7 +9,7 @@ uri: "kamelet:aws-cloudwatch-sink" parameters: accessKey: "The Access Key" - cw_namespace: "The Cloud Watch Namespace" + cwNamespace: "The Cloud Watch Namespace" region: "eu-west-1" secretKey: "The Secret Key" \ No newline at end of file