File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1414from wherobots .db .constants import DEFAULT_ENDPOINT , DEFAULT_SESSION_TYPE
1515from wherobots .db .connection import Connection
1616from wherobots .db .region import Region
17+ from wherobots .db .runtime import Runtime
1718from wherobots .db .session_type import SessionType
1819
1920if __name__ == "__main__" :
2021 parser = argparse .ArgumentParser ()
2122 parser .add_argument ("--api-key-file" , help = "File containing the API key" )
2223 parser .add_argument ("--token-file" , help = "File containing the token" )
2324 parser .add_argument ("--region" , help = "Region to connect to (ie. aws-us-west-2)" )
25+ parser .add_argument ("--runtime" , help = "Runtime type (ie. tiny)" )
2426 parser .add_argument ("--version" , help = "Runtime version (ie. latest)" )
2527 parser .add_argument (
2628 "--session-type" ,
8385 api_key = api_key ,
8486 shutdown_after_inactive_seconds = args .shutdown_after_inactive_seconds ,
8587 wait_timeout = 900 ,
88+ runtime = Runtime (args .runtime ) if args .runtime else Runtime .MICRO ,
8689 region = Region (args .region ) if args .region else Region .AWS_US_WEST_2 ,
8790 version = args .version ,
8891 session_type = SessionType (args .session_type ),
You can’t perform that action at this time.
0 commit comments