AWS Kinesis binding spec

Detailed documentation on the AWS Kinesis binding component

配置

To setup AWS Kinesis binding create a component of type bindings.aws.kinesis. 请参阅本指南,了解如何创建和应用绑定配置。

See this for instructions on how to set up an AWS Kinesis data streams See Authenticating to AWS for information about authentication-related attributes

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Component
  3. metadata:
  4. name: <NAME>
  5. namespace: <NAMESPACE>
  6. spec:
  7. type: bindings.aws.kinesis
  8. version: v1
  9. metadata:
  10. - name: streamName
  11. value: KINESIS_STREAM_NAME # Kinesis stream name
  12. - name: consumerName
  13. value: KINESIS_CONSUMER_NAME # Kinesis consumer name
  14. - name: mode
  15. value: shared # shared - Shared throughput or extended - Extended/Enhanced fanout
  16. - name: region
  17. value: AWS_REGION #replace
  18. - name: accessKey
  19. value: AWS_ACCESS_KEY # replace
  20. - name: secretKey
  21. value: AWS_SECRET_KEY #replace
  22. - name: sessionToken
  23. value: *****************

Warning

以上示例将 Secret 明文存储。 更推荐的方式是使用 Secret 组件, 这里

元数据字段规范

字段必填绑定支持详情示例
modeN输入The Kinesis stream mode. shared- Shared throughput, extended - Extended/Enhanced fanout methods. More details are here. Defaults to “shared”“shared”, “extended”
streamNameYInput/OutputThe AWS Kinesis Stream Name“stream”
consumerNameY输入The AWS Kinesis Consumer Name“myconsumer”
regionYOutputThe specific AWS region the AWS Kinesis instance is deployed in“us-east-1”
accessKeyYOutput要访问此资源的 AWS 访问密钥“key”
secretKeyYOutput要访问此资源的 AWS 密钥访问 Key“secretAccessKey”
sessionTokenNOutput要使用的 AWS 会话令牌“sessionToken”

绑定支持

此组件支持 输入和输出 绑定接口。

该组件支持输出绑定,其操作如下:

  • create

相关链接