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 6eba38d7b97c12a426010cb1a80dd0b08ea12716 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon Nov 9 08:12:40 2020 +0100 CAMEL-15785 - Camel-AWS2: make possibile to use a client based on DefaultCredentialProvider in all the interested components - regen SNS --- .../camel/catalog/docs/aws2-sns-component.adoc | 6 +++-- .../aws2/sns/Sns2ComponentConfigurer.java | 6 +++++ .../component/aws2/sns/Sns2EndpointConfigurer.java | 6 +++++ .../component/aws2/sns/Sns2EndpointUriFactory.java | 3 ++- .../apache/camel/component/aws2/sns/aws2-sns.json | 2 ++ .../src/main/docs/aws2-sns-component.adoc | 6 +++-- .../component/aws2/sns/Sns2Configuration.java | 4 ++-- .../camel/component/aws2/sns/Sns2Endpoint.java | 1 - .../sns/client/impl/Sns2ClientStandardImpl.java | 7 +++--- .../dsl/Aws2SnsComponentBuilderFactory.java | 15 +++++++++++++ .../endpoint/dsl/Sns2EndpointBuilderFactory.java | 26 ++++++++++++++++++++++ .../modules/ROOT/pages/aws2-sns-component.adoc | 6 +++-- 12 files changed, 74 insertions(+), 14 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-sns-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-sns-component.adoc index 168dbff..59f18e2 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-sns-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-sns-component.adoc @@ -45,7 +45,7 @@ The topic will be created if they don't already exists. + // component options: START -The AWS 2 Simple Notification System (SNS) component supports 20 options, which are listed below. +The AWS 2 Simple Notification System (SNS) component supports 21 options, which are listed below. @@ -69,6 +69,7 @@ The AWS 2 Simple Notification System (SNS) component supports 20 options, which | *subject* (producer) | The subject which is used if the message header 'CamelAwsSnsSubject' is not present. | | String | *subscribeSNStoSQS* (producer) | Define if the subscription between SNS Topic and SQS must be done or not | false | boolean | *trustAllCertificates* (producer) | If we want to trust all certificates in case of overriding the endpoint | false | boolean +| *useIAMCredentials* (producer) | Set whether the SQS client should expect to load credentials on an AWS infra instance or to expect static credentials to be passed in. | false | boolean | *basicPropertyBinding* (advanced) | *Deprecated* Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *accessKey* (security) | Amazon AWS Access Key | | String | *secretKey* (security) | Amazon AWS Secret Key | | String @@ -98,7 +99,7 @@ with the following path and query parameters: |=== -=== Query Parameters (21 parameters): +=== Query Parameters (22 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -121,6 +122,7 @@ with the following path and query parameters: | *subject* (producer) | The subject which is used if the message header 'CamelAwsSnsSubject' is not present. | | String | *subscribeSNStoSQS* (producer) | Define if the subscription between SNS Topic and SQS must be done or not | false | boolean | *trustAllCertificates* (producer) | If we want to trust all certificates in case of overriding the endpoint | false | boolean +| *useIAMCredentials* (producer) | Set whether the SQS client should expect to load credentials on an AWS infra instance or to expect static credentials to be passed in. | false | boolean | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean | *accessKey* (security) | Amazon AWS Access Key | | String diff --git a/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2ComponentConfigurer.java b/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2ComponentConfigurer.java index 2b0bac1..6838ad8 100644 --- a/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2ComponentConfigurer.java +++ b/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2ComponentConfigurer.java @@ -64,6 +64,8 @@ public class Sns2ComponentConfigurer extends PropertyConfigurerSupport implement case "subscribeSNStoSQS": getOrCreateConfiguration(target).setSubscribeSNStoSQS(property(camelContext, boolean.class, value)); return true; case "trustallcertificates": case "trustAllCertificates": getOrCreateConfiguration(target).setTrustAllCertificates(property(camelContext, boolean.class, value)); return true; + case "useiamcredentials": + case "useIAMCredentials": getOrCreateConfiguration(target).setUseIAMCredentials(property(camelContext, boolean.class, value)); return true; default: return false; } } @@ -107,6 +109,8 @@ public class Sns2ComponentConfigurer extends PropertyConfigurerSupport implement case "subscribeSNStoSQS": return boolean.class; case "trustallcertificates": case "trustAllCertificates": return boolean.class; + case "useiamcredentials": + case "useIAMCredentials": return boolean.class; default: return null; } } @@ -151,6 +155,8 @@ public class Sns2ComponentConfigurer extends PropertyConfigurerSupport implement case "subscribeSNStoSQS": return getOrCreateConfiguration(target).isSubscribeSNStoSQS(); case "trustallcertificates": case "trustAllCertificates": return getOrCreateConfiguration(target).isTrustAllCertificates(); + case "useiamcredentials": + case "useIAMCredentials": return getOrCreateConfiguration(target).isUseIAMCredentials(); default: return null; } } diff --git a/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2EndpointConfigurer.java b/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2EndpointConfigurer.java index bd7a1d9..0e559d7 100644 --- a/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2EndpointConfigurer.java +++ b/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2EndpointConfigurer.java @@ -59,6 +59,8 @@ public class Sns2EndpointConfigurer extends PropertyConfigurerSupport implements case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true; case "trustallcertificates": case "trustAllCertificates": target.getConfiguration().setTrustAllCertificates(property(camelContext, boolean.class, value)); return true; + case "useiamcredentials": + case "useIAMCredentials": target.getConfiguration().setUseIAMCredentials(property(camelContext, boolean.class, value)); return true; default: return false; } } @@ -104,6 +106,8 @@ public class Sns2EndpointConfigurer extends PropertyConfigurerSupport implements case "synchronous": return boolean.class; case "trustallcertificates": case "trustAllCertificates": return boolean.class; + case "useiamcredentials": + case "useIAMCredentials": return boolean.class; default: return null; } } @@ -150,6 +154,8 @@ public class Sns2EndpointConfigurer extends PropertyConfigurerSupport implements case "synchronous": return target.isSynchronous(); case "trustallcertificates": case "trustAllCertificates": return target.getConfiguration().isTrustAllCertificates(); + case "useiamcredentials": + case "useIAMCredentials": return target.getConfiguration().isUseIAMCredentials(); default: return null; } } diff --git a/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2EndpointUriFactory.java b/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2EndpointUriFactory.java index f830ab7..0b800df 100644 --- a/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2EndpointUriFactory.java +++ b/components/camel-aws2-sns/src/generated/java/org/apache/camel/component/aws2/sns/Sns2EndpointUriFactory.java @@ -20,7 +20,8 @@ public class Sns2EndpointUriFactory extends org.apache.camel.support.component.E private static final Set<String> PROPERTY_NAMES; private static final Set<String> SECRET_PROPERTY_NAMES; static { - Set<String> props = new HashSet<>(22); + Set<String> props = new HashSet<>(23); + props.add("useIAMCredentials"); props.add("basicPropertyBinding"); props.add("autoDiscoverClient"); props.add("serverSideEncryptionEnabled"); diff --git a/components/camel-aws2-sns/src/generated/resources/org/apache/camel/component/aws2/sns/aws2-sns.json b/components/camel-aws2-sns/src/generated/resources/org/apache/camel/component/aws2/sns/aws2-sns.json index 2433361..64d5b91 100644 --- a/components/camel-aws2-sns/src/generated/resources/org/apache/camel/component/aws2/sns/aws2-sns.json +++ b/components/camel-aws2-sns/src/generated/resources/org/apache/camel/component/aws2/sns/aws2-sns.json @@ -39,6 +39,7 @@ "subject": { "kind": "property", "displayName": "Subject", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "The subject which is used if the message header 'CamelAwsSnsSubject' is not present." }, "subscribeSNStoSQS": { "kind": "property", "displayName": "Subscribe SNSto SQS", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Define if the subscription between SNS Topic and SQS must be done or not" }, "trustAllCertificates": { "kind": "property", "displayName": "Trust All Certificates", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overriding the endpoint" }, + "useIAMCredentials": { "kind": "property", "displayName": "Use IAMCredentials", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Set whether the SQS client should expect to load credentials on an AWS infra instance or to expect static credentials [...] "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": true, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, "accessKey": { "kind": "property", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Amazon AWS Access Key" }, "secretKey": { "kind": "property", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" } @@ -62,6 +63,7 @@ "subject": { "kind": "parameter", "displayName": "Subject", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "The subject which is used if the message header 'CamelAwsSnsSubject' is not present." }, "subscribeSNStoSQS": { "kind": "parameter", "displayName": "Subscribe SNSto SQS", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Define if the subscription between SNS Topic and SQS must be done or not" }, "trustAllCertificates": { "kind": "parameter", "displayName": "Trust All Certificates", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overriding the endpoint" }, + "useIAMCredentials": { "kind": "parameter", "displayName": "Use IAMCredentials", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Set whether the SQS client should expect to load credentials on an AWS infra instance or to expect static credentials [...] "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" }, "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." }, "accessKey": { "kind": "parameter", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": "configuration", "description": "Amazon AWS Access Key" }, diff --git a/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc b/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc index 168dbff..59f18e2 100644 --- a/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc +++ b/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc @@ -45,7 +45,7 @@ The topic will be created if they don't already exists. + // component options: START -The AWS 2 Simple Notification System (SNS) component supports 20 options, which are listed below. +The AWS 2 Simple Notification System (SNS) component supports 21 options, which are listed below. @@ -69,6 +69,7 @@ The AWS 2 Simple Notification System (SNS) component supports 20 options, which | *subject* (producer) | The subject which is used if the message header 'CamelAwsSnsSubject' is not present. | | String | *subscribeSNStoSQS* (producer) | Define if the subscription between SNS Topic and SQS must be done or not | false | boolean | *trustAllCertificates* (producer) | If we want to trust all certificates in case of overriding the endpoint | false | boolean +| *useIAMCredentials* (producer) | Set whether the SQS client should expect to load credentials on an AWS infra instance or to expect static credentials to be passed in. | false | boolean | *basicPropertyBinding* (advanced) | *Deprecated* Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *accessKey* (security) | Amazon AWS Access Key | | String | *secretKey* (security) | Amazon AWS Secret Key | | String @@ -98,7 +99,7 @@ with the following path and query parameters: |=== -=== Query Parameters (21 parameters): +=== Query Parameters (22 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -121,6 +122,7 @@ with the following path and query parameters: | *subject* (producer) | The subject which is used if the message header 'CamelAwsSnsSubject' is not present. | | String | *subscribeSNStoSQS* (producer) | Define if the subscription between SNS Topic and SQS must be done or not | false | boolean | *trustAllCertificates* (producer) | If we want to trust all certificates in case of overriding the endpoint | false | boolean +| *useIAMCredentials* (producer) | Set whether the SQS client should expect to load credentials on an AWS infra instance or to expect static credentials to be passed in. | false | boolean | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean | *accessKey* (security) | Amazon AWS Access Key | | String diff --git a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java index 716fe14..b5994e4 100644 --- a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java +++ b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java @@ -66,7 +66,7 @@ public class Sns2Configuration implements Cloneable { @UriParam(label = "common", defaultValue = "true") private boolean autoDiscoverClient = true; @UriParam(defaultValue = "false") - private boolean useIAMCredentials; + private boolean useIAMCredentials; public String getSubject() { return subject; @@ -278,7 +278,7 @@ public class Sns2Configuration implements Cloneable { public void setAutoDiscoverClient(boolean autoDiscoverClient) { this.autoDiscoverClient = autoDiscoverClient; } - + public boolean isUseIAMCredentials() { return useIAMCredentials; } diff --git a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java index aeb11b0..ef5b00c 100644 --- a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java +++ b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java @@ -16,7 +16,6 @@ */ package org.apache.camel.component.aws2.sns; -import java.net.URI; import java.util.HashMap; import java.util.Map; diff --git a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/client/impl/Sns2ClientStandardImpl.java b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/client/impl/Sns2ClientStandardImpl.java index 7b17b9f..cefb059 100644 --- a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/client/impl/Sns2ClientStandardImpl.java +++ b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/client/impl/Sns2ClientStandardImpl.java @@ -20,7 +20,6 @@ import java.net.URI; import org.apache.camel.component.aws2.sns.Sns2Configuration; import org.apache.camel.component.aws2.sns.client.Sns2InternalClient; -import org.apache.camel.util.FileUtil; import org.apache.camel.util.ObjectHelper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -56,8 +55,8 @@ public class Sns2ClientStandardImpl implements Sns2InternalClient { * * @return Amazon SNS Client. */ - @Override - public SnsClient getSNSClient() { + @Override + public SnsClient getSNSClient() { SnsClient client = null; SnsClientBuilder clientBuilder = SnsClient.builder(); ProxyConfiguration.Builder proxyConfig = null; @@ -98,5 +97,5 @@ public class Sns2ClientStandardImpl implements Sns2InternalClient { } client = clientBuilder.build(); return client; - } + } } diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java index 03a840a..bb35af7 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2SnsComponentBuilderFactory.java @@ -273,6 +273,20 @@ public interface Aws2SnsComponentBuilderFactory { return this; } /** + * Set whether the SQS client should expect to load credentials on an + * AWS infra instance or to expect static credentials to be passed in. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: producer + */ + default Aws2SnsComponentBuilder useIAMCredentials( + boolean useIAMCredentials) { + doSetProperty("useIAMCredentials", useIAMCredentials); + return this; + } + /** * Whether the component should use basic property binding (Camel 2.x) * or the newer property binding with additional capabilities. * @@ -350,6 +364,7 @@ public interface Aws2SnsComponentBuilderFactory { case "subject": getOrCreateConfiguration((Sns2Component) component).setSubject((java.lang.String) value); return true; case "subscribeSNStoSQS": getOrCreateConfiguration((Sns2Component) component).setSubscribeSNStoSQS((boolean) value); return true; case "trustAllCertificates": getOrCreateConfiguration((Sns2Component) component).setTrustAllCertificates((boolean) value); return true; + case "useIAMCredentials": getOrCreateConfiguration((Sns2Component) component).setUseIAMCredentials((boolean) value); return true; case "basicPropertyBinding": ((Sns2Component) component).setBasicPropertyBinding((boolean) value); return true; case "accessKey": getOrCreateConfiguration((Sns2Component) component).setAccessKey((java.lang.String) value); return true; case "secretKey": getOrCreateConfiguration((Sns2Component) component).setSecretKey((java.lang.String) value); return true; diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Sns2EndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Sns2EndpointBuilderFactory.java index cccf389..14cecde 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Sns2EndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Sns2EndpointBuilderFactory.java @@ -394,6 +394,32 @@ public interface Sns2EndpointBuilderFactory { return this; } /** + * Set whether the SQS client should expect to load credentials on an + * AWS infra instance or to expect static credentials to be passed in. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: producer + */ + default Sns2EndpointBuilder useIAMCredentials(boolean useIAMCredentials) { + doSetProperty("useIAMCredentials", useIAMCredentials); + return this; + } + /** + * Set whether the SQS client should expect to load credentials on an + * AWS infra instance or to expect static credentials to be passed in. + * + * The option will be converted to a <code>boolean</code> type. + * + * Default: false + * Group: producer + */ + default Sns2EndpointBuilder useIAMCredentials(String useIAMCredentials) { + doSetProperty("useIAMCredentials", useIAMCredentials); + return this; + } + /** * Amazon AWS Access Key. * * The option is a: <code>java.lang.String</code> type. diff --git a/docs/components/modules/ROOT/pages/aws2-sns-component.adoc b/docs/components/modules/ROOT/pages/aws2-sns-component.adoc index c5210ea..c774b77 100644 --- a/docs/components/modules/ROOT/pages/aws2-sns-component.adoc +++ b/docs/components/modules/ROOT/pages/aws2-sns-component.adoc @@ -47,7 +47,7 @@ The topic will be created if they don't already exists. + // component options: START -The AWS 2 Simple Notification System (SNS) component supports 20 options, which are listed below. +The AWS 2 Simple Notification System (SNS) component supports 21 options, which are listed below. @@ -71,6 +71,7 @@ The AWS 2 Simple Notification System (SNS) component supports 20 options, which | *subject* (producer) | The subject which is used if the message header 'CamelAwsSnsSubject' is not present. | | String | *subscribeSNStoSQS* (producer) | Define if the subscription between SNS Topic and SQS must be done or not | false | boolean | *trustAllCertificates* (producer) | If we want to trust all certificates in case of overriding the endpoint | false | boolean +| *useIAMCredentials* (producer) | Set whether the SQS client should expect to load credentials on an AWS infra instance or to expect static credentials to be passed in. | false | boolean | *basicPropertyBinding* (advanced) | *Deprecated* Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *accessKey* (security) | Amazon AWS Access Key | | String | *secretKey* (security) | Amazon AWS Secret Key | | String @@ -100,7 +101,7 @@ with the following path and query parameters: |=== -=== Query Parameters (21 parameters): +=== Query Parameters (22 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -123,6 +124,7 @@ with the following path and query parameters: | *subject* (producer) | The subject which is used if the message header 'CamelAwsSnsSubject' is not present. | | String | *subscribeSNStoSQS* (producer) | Define if the subscription between SNS Topic and SQS must be done or not | false | boolean | *trustAllCertificates* (producer) | If we want to trust all certificates in case of overriding the endpoint | false | boolean +| *useIAMCredentials* (producer) | Set whether the SQS client should expect to load credentials on an AWS infra instance or to expect static credentials to be passed in. | false | boolean | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean | *accessKey* (security) | Amazon AWS Access Key | | String