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 dbc7ff3605a3102d192dbc744a006e4d38f2ba40 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Aug 5 11:47:36 2020 +0200 Camel-AWS2-STS: Added an assumeRole example --- .../camel-aws2-sts/src/main/docs/aws2-sts-component.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc b/components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc index 58a2733..3aa5079 100644 --- a/components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc +++ b/components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc @@ -126,6 +126,18 @@ Camel-AWS STS component provides the following operation on the producer side: - assumeRole +== Producer Examples + +- assumeRole: this operation will make an AWS user assume a different role temporary + +[source,java] +-------------------------------------------------------------------------------- +from("direct:createUser") + .setHeader(STS2Constants.ROLE_ARN, constant("arn:123")) + .setHeader(STS2Constants.ROLE_SESSION_NAME, constant("groot")) + .to("aws2-sts://test?stsClient=#amazonSTSClient&operation=assumeRole") +-------------------------------------------------------------------------------- + == Automatic detection of StsClient client in registry The component is capable of detecting the presence of an StsClient bean into the registry.