简体   繁体   English

使用AWS Service Proxy从S3获取文件列表

[英]Get file list from S3 using aws service proxy

有没有一种方法可以获取存储桶中的文件列表或使用AWS服务代理从S3中使用一些前缀?

The simple answer is that API Gateway service proxy can make any API call to S3 that you could make directly to S3. 简单的答案是,API网关服务代理可以对S3进行任何API调用,而您可以直接对S3进行调用。 Looks like the S3 ListObjects API does support prefix filter, so you would just have to duplicate the HTTP request structure in the API Gateway service proxy and provide the execution role for credentials (if the bucket is protected). 看起来S3 ListObjects API确实支持前缀过滤器,因此您只需要在API网关服务代理中复制HTTP请求结构,并提供凭据的执行角色(如果存储桶受保护)。

http://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html http://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM