File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
src/main/php/com/amazon/aws/lambda Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1919class RuntimeApi {
2020 public $ conn , $ version ;
2121
22+ /**
23+ * Creates a new runtime API instance.
24+ *
25+ * Uses a 15 minute timeout, which is the maximum lambda runtime, see
26+ * https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
27+ *
28+ * @param string|peer.HttpConnection $endpoint
29+ * @param string $version
30+ */
2231 public function __construct ($ endpoint , $ version = '2018-06-01 ' ) {
2332 $ this ->conn = $ endpoint instanceof HttpConnection
2433 ? $ endpoint
2534 : new HttpConnection ("http:// {$ endpoint }" )
2635 ;
27- $ this ->version = $ version ;
28-
29- // Use a 15 minute timeout, this is the maximum lambda runtime, see
30- // https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
3136 $ this ->conn ->setTimeout (900 );
37+ $ this ->version = $ version ;
3238 }
3339
3440 /** Returns the buffered invoke mode */
You can’t perform that action at this time.
0 commit comments