使用AWS的iOS SDK来从CloudFront的distribuition文件文件、iOS、AWS、SDK

2023-09-11 09:26:10 作者:封笔墨止曲寂时。

我使用的是最新的iOS SDK的AWS,并使用TransferManager类从S3获取文件的正常工作

I am using the latest iOS SDK for AWS, and fetching files from S3 works fine using the TransferManager Class

S3GetObjectRequest *request = [[S3GetObjectRequest alloc] initWithKey:@"test.png" withBucket:@"my_bucket_name"];

S3TransferOperation * op = [self.tm download:request];

然后我想补充的Cloudfront为更好的边缘服务,但设置CloudFront的配送为一体的S3存储不起作用。

then I wanted to add Cloudfront for better edge serving, but setting the cloudfront distribution as the S3 bucket does not work..

S3GetObjectRequest *request = [[S3GetObjectRequest alloc] initWithKey:@"test.png" withBucket:@"dcn1i2k31v14q.cloudfront.net"];

S3TransferOperation * op = [self.tm download:request];

这是在此等问题一个公认的答案

it was an accepted answer in this SO question

iOS的AWS的SDK和CloudFront的 - 访问图像

我知道我可以直接拿到CloudFront的文件,但我想利用AWS的SDK传输管理器类队列的优势和暂停恢复能力。

I know I can get cloudfront files directly but I wanted to take advantage of the AWS SDK Transfer manager class queue and pause resume capabilities.

什么想法?

谢谢

推荐答案

我是AWS SDK为iOS的维护者之一。该S3TransferManager用于与Amazon S3的,而不是亚马逊的CloudFront的使用,因此尚未经过测试或验证的与该服务的使用。

I am one of the maintainers of the AWS SDK for iOS. The S3TransferManager is intended for use with Amazon S3, not Amazon CloudFront and as such has not been tested or validated for use with this service.

我们将研究增加这个功能,以后的版本。对不起,任何不便之处。

We'll investigate adding this functionality to a later release. Sorry for any inconvenience.

 
精彩推荐
图片推荐