title: Get acceleration configuration of S3 bucket
body: <p>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:</p>
  
  <pre><code>    AWSS3GetBucketAccelerateConfigurationRequest *accReq =   [AWSS3GetBucketAccelerateConfigurationRequest new];
      accReq.bucket=bucket;
  
      return [[[AWSS3 S3ForKey:region] getBucketAccelerateConfiguration:accReq] continueWithBlock:^id(AWSTask *task) {
  
          return task;
      }];
  </code></pre>
  
  <p>The credentialsprovider is properly setup and working for the region. The error message I get is: </p>
  
  <blockquote>
    <p><Code>PermanentRedirect</Code>The 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
  </blockquote>
  
  <p>I thought from the <a href="http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETaccelerate.html" rel="nofollow noreferrer">examples</a> 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</p>