This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 029d9d4ff407316e64d6cbc77d15222c2ba73700 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Fri Mar 12 15:11:31 2021 +0100 CAMEL-16323 - Create a Camel-AWS-Secret-Manager component --- ...ecs-component.adoc => aws-secrets-manager.adoc} | 75 +++------------------- 1 file changed, 9 insertions(+), 66 deletions(-) diff --git a/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws2-ecs-component.adoc b/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager.adoc similarity index 72% rename from components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws2-ecs-component.adoc rename to components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager.adoc index 158a98e..b2aa384 100644 --- a/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws2-ecs-component.adoc +++ b/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager.adoc @@ -1,5 +1,5 @@ -[[aws2-ecs-component]] -= AWS 2 Elastic Container Service (ECS) Component +[[aws-secrets-manager-component]] += AWS Secrets Manager Component :docTitle: AWS 2 Elastic Container Service (ECS) :artifactId: camel-aws2-ecs :description: Manage AWS ECS cluster instances using AWS SDK version 2.x. @@ -14,25 +14,25 @@ include::{cq-version}@camel-quarkus:ROOT:partial$reference/components/aws2-ecs.a *{component-header}* -The AWS2 ECS component supports create, delete, describe and list clusters -https://aws.amazon.com/ecs/[AWS ECS] clusters instances. +The AWS Secrets Manager component supports list secret +https://aws.amazon.com/secrets-manager/[AWS Secrets Manager] service. Prerequisites You must have a valid Amazon Web Services developer account, and be -signed up to use Amazon ECS. More information is available at -https://aws.amazon.com/ecs/[Amazon ECS]. +signed up to use Amazon Secrets Manager. More information is available at +https://aws.amazon.com/secrets-manager/[AWS Secrets Manager]. [NOTE] ==== -The AWS2 ECS component is not supported in OSGI +The AWS Secrets Manager component is not supported in OSGI ==== == URI Format [source,java] ------------------------- -aws2-ecs://label[?options] +aws-secrets-manager://label[?options] ------------------------- You can append query options to the URI in the following format, @@ -111,61 +111,6 @@ with the following path and query parameters: |=== // endpoint options: END - - -Required ECS component options - -You have to provide the amazonECSClient in the -Registry or your accessKey and secretKey to access -the https://aws.amazon.com/ecs/[Amazon ECS] service. - -== Usage - -=== Message headers evaluated by the ECS producer - -[width="100%",cols="10%,10%,80%",options="header",] -|======================================================================= -|Header |Type |Description - -|`CamelAwsECSMaxResults` |`Integer` |The limit number of results while listing clusters - -|`CamelAwsECSOperation` |`String` |The operation we want to perform - -|`CamelAwsECSClusterName` |`String` |The cluster name -|======================================================================= - -=== ECS Producer operations - -Camel-AWS ECS component provides the following operation on the producer side: - -- listClusters -- createCluster -- describeCluster -- deleteCluster - -== Producer Examples - -- listClusters: this operation will list the available clusters in ECS - -[source,java] --------------------------------------------------------------------------------- -from("direct:listClusters") - .to("aws2-ecs://test?ecsClient=#amazonEcsClient&operation=listClusters") --------------------------------------------------------------------------------- - -== Using a POJO as body - -Sometimes build an AWS Request can be complex, because of multiple options. We introduce the possibility to use a POJO as body. -In AWS ECS there are multiple operations you can submit, as an example for List cluster request, you can do something like: - ------------------------------------------------------------------------------------------------------- -from("direct:start") - .setBody(ListClustersRequest.builder().maxResults(10).build()) - .to("aws2-ecs://test?ecsClient=#amazonEcsClient&operation=listClusters&pojoRequest=true") ------------------------------------------------------------------------------------------------------- - -In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation. - == Dependencies Maven users will need to add the following dependency to their pom.xml. @@ -176,11 +121,9 @@ Maven users will need to add the following dependency to their pom.xml. --------------------------------------- <dependency> <groupId>org.apache.camel</groupId> - <artifactId>camel-aws2-ecs</artifactId> + <artifactId>camel-aws-secrets-manager</artifactId> <version>${camel-version}</version> </dependency> --------------------------------------- where `$\{camel-version}` must be replaced by the actual version of Camel. - -include::camel-spring-boot::page$aws2-ecs-starter.adoc[]