有一个dynamodb表,它在触发器选项卡中有触发器。如何使用AWS Java SDK为给定表获取这些触发器的列表。 我已经浏览了JAVA SDK,但到目前为止还没有找到任何API来获取列表。
答案 0 :(得分:0)
相信这些操作是DynamoDB Streams的一部分 - 请参阅listStreams
答案 1 :(得分:0)
https://docs.aws.amazon.com/cli/latest/reference/lambda/list-event-source-mappings.html
Java:
AWSLambda client = AWSLambdaClientBuilder.standard().build();
ListEventSourceMappingsRequest request = new ListEventSourceMappingsRequest().withEventSourceArn("your table stream arn");
ListEventSourceMappingsResult result = client.listEventSourceMappings(request);
List<EventSourceMappingConfiguration> eventSourceMappings = result.getEventSourceMappings();