Skip to content

Commit de35c09

Browse files
committed
QA: API docs
1 parent 62b878b commit de35c09

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/main/php/com/amazon/aws/lambda/RuntimeApi.class.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,22 @@
1919
class 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 */

0 commit comments

Comments
 (0)