title: Generating a signed URL for AWS S3
body: <p>I'm trying to create a signed url for AWS S3, i just want the URL for a file in my bucket, i don't want to use it for upload/download. </p>
  
  <p>I've tried AFNetworking, following the steps on Amazons documentation and am now using the AWS iOS SDK. </p>
  
  <p>So far i have this:</p>
  
  <pre><code>AWSStaticCredentialsProvider *credentialsProvider = [AWSStaticCredentialsProvider        credentialsWithAccessKey:@"Access Key" secretKey:@"secret key"];
  AWSServiceConfiguration *configuration = [AWSServiceConfiguration    configurationWithRegion:AWSRegionUSWest2  credentialsProvider:credentialsProvider];
  
  [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration;
  AWSS3PreSignedURLBuilder * urlBuilder  = [[AWSS3PreSignedURLBuilder alloc]       initWithConfiguration:configuration];
  
  AWSS3GetPreSignedURLRequest *preSignedURLRequest = [AWSS3GetPreSignedURLRequest new];
  preSignedURLRequest.bucket = @"bucket-name";
  preSignedURLRequest.key = @"/filename";
  preSignedURLRequest.HTTPMethod = AWSHTTPMethodGET;
  preSignedURLRequest.expires = [NSDate dateWithTimeIntervalSinceNow:3600];
  
   NSURL *preSignedURL = [urlBuilder getPreSignedURL:preSignedURLRequest];
  
  NSLog(@"%@", preSignedURL);
  </code></pre>
  
  <p>I'm getting a lot of errors about the code being depreciated, but more importantly i Know that the method getPreSignedURL returns a type (AWSTask *), my question is how to turn a AWSTask into the signed url? </p>
  
  <p>Also i don't plan on leaving the keys in my code this is just temporary for testing.</p>
  
  <p>If anyone could help me find how to get the preSignedURL that'd be a great help.
  Thanks</p>