I am using AWS SDK iOS v 2.5.0 to upload/download files to S3. I would like to use acceleration if enabled on the bucket. To test if acceleration is enabled I thought I could do the following, but it fails:
AWSS3GetBucketAccelerateConfigurationRequest *accReq = [AWSS3GetBucketAccelerateConfigurationRequest new];
accReq.bucket=bucket;
return [[[AWSS3 S3ForKey:region] getBucketAccelerateConfiguration:accReq] continueWithBlock:^id(AWSTask *task) {
return task;
}];
The credentialsprovider is properly setup and working for the region. The error message I get is:
PermanentRedirectThe bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.mybucketnamemybucketname.s3-us-west-2.amazonaws.com
I thought from the examples that I did not have to specify endpoint for checking whether the bucket is accelerated or not? Am I doing something wrong in my request? Thanks. T