Skip to content

Instantly share code, notes, and snippets.

@milancermak
Created January 30, 2019 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milancermak/3b5ddb77feaa454a51b3d66dc29793f8 to your computer and use it in GitHub Desktop.
Save milancermak/3b5ddb77feaa454a51b3d66dc29793f8 to your computer and use it in GitHub Desktop.
Set custom request timeout for AWSLambdaInovker
// my swift is a little bit rusty, hope this works
let configuration = AWSServiceManager.defaultServiceManager().defaultServiceConfiguration.copy();
configuration.timeoutIntervalForRequest = 90;
AWSLambdaInvoker.register(with: configuration!, forKey: "USWest2LambdaInvoker")
let lambdaInvoker = AWSLambdaInvoker(forKey: "USWest2LambdaInvoker")
// lambdaInvoker.invokeFunction ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment