21.3. Spring Boot Auto-Configuration

组件支持 16 个选项,如下所示。

名称描述默认类型

camel.component.aws-cw.access-key

Amazon AWS 访问密钥

 

字符串

camel.component.aws-cw.configuration.access-key

Amazon AWS 访问密钥

 

字符串

camel.component.aws-cw.configuration.amazon-cw-client

使用 AmazonCloudWatch 作为客户端

 

AmazonCloudWatch

camel.component.aws-cw.configuration.name

指标名称

 

字符串

camel.component.aws-cw.configuration.namespace

指标命名空间

 

字符串

camel.component.aws-cw.configuration.proxy-host

在实例化 CW 客户端时定义代理主机

 

字符串

camel.component.aws-cw.configuration.proxy-port

在实例化 CW 客户端时定义代理端口

 

整数

camel.component.aws-cw.configuration.region

CW 客户端需要工作的区域

 

字符串

camel.component.aws-cw.configuration.secret-key

Amazon AWS Secret Key

 

字符串

camel.component.aws-cw.configuration.timestamp

指标时间戳

 

Date

camel.component.aws-cw.configuration.unit

指标单元

 

字符串

camel.component.aws-cw.configuration.value

指标值

 

camel.component.aws-cw.enabled

启用 aws-cw 组件

true

布尔值

camel.component.aws-cw.region

CW 客户端需要工作的区域

 

字符串

camel.component.aws-cw.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

camel.component.aws-cw.secret-key

Amazon AWS Secret Key

 

字符串

所需的 CW 组件选项

您必须提供 Registry 中的 amazonCwClient 或您的 accessKey 和 secretKey 以访问 Amazon 的 CloudWatch