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 2019/10/01 14:07:56 UTC

[camel] 01/04: Camel-AWS-IAM: Added sample code for producer on docs

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 f32ec392c271b7a7d3c7ac9dbcd70f01c9015d3b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 1 15:45:32 2019 +0200

    Camel-AWS-IAM: Added sample code for producer on docs
---
 components/camel-aws-iam/src/main/docs/aws-iam-component.adoc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/components/camel-aws-iam/src/main/docs/aws-iam-component.adoc b/components/camel-aws-iam/src/main/docs/aws-iam-component.adoc
index 22b6369..0e0ee59 100644
--- a/components/camel-aws-iam/src/main/docs/aws-iam-component.adoc
+++ b/components/camel-aws-iam/src/main/docs/aws-iam-component.adoc
@@ -167,6 +167,17 @@ Camel-AWS IAM component provides the following operation on the producer side:
 - addUserToGroup
 - removeUserFromGroup
 
+== Producer Examples
+
+- createUser: this operation will create a user in IAM
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:createUser")
+    .setHeader(IAMConstants.GROUP_NAME, constant("camel"))
+    .to("aws-iam://test?iamClient=#amazonIAMClient&operation=createUser")
+--------------------------------------------------------------------------------
+
 == Automatic detection of AmazonIdentityManagement client in registry
 
 The component is capable of detecting the presence of an AmazonIdentityManagement bean into the registry.