10.11. Spring Boot Auto-Configuration
组件支持 25 个选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.component.aws2-sns.access-key | Amazon AWS 访问密钥. | 字符串 | |
camel.component.aws2-sns.amazon-s-n-s-client | 将 AmazonSNS 用作客户端。选项是一个 software.amazon.awssdk.services.sns.SnsClient 类型。 | SnsClient | |
camel.component.aws2-sns.auto-create-topic | 设置主题的自动创建。 | false | 布尔值 |
camel.component.aws2-sns.autowired-enabled | 是否启用自动关闭。这用于自动关闭选项(选项必须标记为 autowired),方法是在 registry 中查找查找是否有单个匹配类型实例,然后在组件上配置。这可以用于自动配置 JDBC 数据源、JMS 连接工厂、AWS 客户端等。 | true | 布尔值 |
camel.component.aws2-sns.configuration | 组件配置.选项是 org.apache.camel.component.aws2.sns.Sns2Configuration 类型。 | Sns2Configuration | |
camel.component.aws2-sns.enabled | 是否启用 aws2-sns 组件的自动配置。这默认是启用的。 | 布尔值 | |
camel.component.aws2-sns.kms-master-key-id | 用于 Amazon SNS 或自定义 CMK 的 AWS 管理的客户主密钥 (CMK) 的 ID。 | 字符串 | |
camel.component.aws2-sns.lazy-start-producer | 生成者是否应懒惰启动 (在第一个消息中)。通过懒惰启动,您可以使用此选项来允许 CamelContext 和路由在生成者启动期间启动,并导致路由启动失败。通过懒惰启动,启动失败可以在路由信息时通过 Camel 的路由错误处理程序进行处理。请注意,在处理第一个消息时,创建并启动生成者可能需要稍等时间,并延长处理的总处理时间。 | false | 布尔值 |
camel.component.aws2-sns.message-deduplication-id-strategy | 仅适用于 FIFO 主题。在消息上设置 messageDeduplicationId 的策略。可以是以下选项之一:useExchangeId, useContentBasedDeduplication.对于 useContentBasedDeduplication 选项,消息中不会设置 messageDeduplicationId。 | useExchangeId | 字符串 |
camel.component.aws2-sns.message-group-id-strategy | 仅适用于 FIFO 主题。在消息上设置 messageGroupId 的策略。可以是以下选项之一:useConstant, useExchangeId, usePropertyValue.对于 usePropertyValue 选项,将使用属性 CamelAwsMessageGroupId 的值。 | 字符串 | |
camel.component.aws2-sns.message-structure | 使用 json 的消息结构。 | 字符串 | |
camel.component.aws2-sns.override-endpoint | 设置覆盖端点的需要。这个选项需要与 uriEndpointOverride 选项结合使用。 | false | 布尔值 |
camel.component.aws2-sns.policy | 本主题的策略。默认情况下从 classpath 加载,但您可以使用 classpath:、file: 或 http: 前缀来加载来自不同系统的资源。 | 字符串 | |
camel.component.aws2-sns.proxy-host | 在实例化 SNS 客户端时定义代理主机。 | 字符串 | |
camel.component.aws2-sns.proxy-port | 在实例化 SNS 客户端时定义代理端口。 | 整数 | |
camel.component.aws2-sns.proxy-protocol | 在实例化 SNS 客户端时定义代理协议。 | 协议 | |
camel.component.aws2-sns.queue-url | 要订阅的 queueUrl。 | 字符串 | |
camel.component.aws2-sns.region | SNS 客户端需要在其中工作的区域。使用此参数时,配置将预期区域(如 ap-east-1)的小写名称,您需要使用名称 Region.EU_WEST_1.id()。 | 字符串 | |
camel.component.aws2-sns.secret-key | Amazon AWS Secret 密钥。 | 字符串 | |
camel.component.aws2-sns.server-side-encryption-enabled | 定义是否在主题中启用 Server Side Encryption。 | false | 布尔值 |
camel.component.aws2-sns.subject | 如果邮件标头 'CamelAwsSnsSubject' 不存在,则使用主题。 | 字符串 | |
camel.component.aws2-sns.subscribe-s-n-sto-s-q-s | 定义 SNS 主题和 SQS 之间的订阅是否必须完成。 | false | 布尔值 |
camel.component.aws2-sns.trust-all-certificates | 如果要在覆盖端点时信任所有证书。 | false | 布尔值 |
camel.component.aws2-sns.uri-endpoint-override | 设置覆盖 uri 端点。这个选项需要与 overrideEndpoint 选项结合使用。 | 字符串 | |
camel.component.aws2-sns.use-default-credentials-provider | 设置 SNS 客户端是否应该预期在 AWS infra 实例上加载凭证,或希望传递静态凭证。 | false | 布尔值 |