22
33from __future__ import annotations
44
5- from typing import Mapping , cast
5+ from typing import Dict , Mapping , cast
66from typing_extensions import Literal
77
88import httpx
@@ -49,6 +49,7 @@ def create(
4949 * ,
5050 entrypoint_rel_path : str ,
5151 file : FileTypes ,
52+ env_vars : Dict [str , str ] | NotGiven = NOT_GIVEN ,
5253 force : bool | NotGiven = NOT_GIVEN ,
5354 region : Literal ["aws.us-east-1a" ] | NotGiven = NOT_GIVEN ,
5455 version : str | NotGiven = NOT_GIVEN ,
@@ -67,6 +68,9 @@ def create(
6768
6869 file: ZIP file containing the application source directory
6970
71+ env_vars: Map of environment variables to set for the deployed application. Each key-value
72+ pair represents an environment variable.
73+
7074 force: Allow overwriting an existing app version
7175
7276 region: Region for deployment. Currently we only support "aws.us-east-1a"
@@ -85,6 +89,7 @@ def create(
8589 {
8690 "entrypoint_rel_path" : entrypoint_rel_path ,
8791 "file" : file ,
92+ "env_vars" : env_vars ,
8893 "force" : force ,
8994 "region" : region ,
9095 "version" : version ,
@@ -131,6 +136,7 @@ async def create(
131136 * ,
132137 entrypoint_rel_path : str ,
133138 file : FileTypes ,
139+ env_vars : Dict [str , str ] | NotGiven = NOT_GIVEN ,
134140 force : bool | NotGiven = NOT_GIVEN ,
135141 region : Literal ["aws.us-east-1a" ] | NotGiven = NOT_GIVEN ,
136142 version : str | NotGiven = NOT_GIVEN ,
@@ -149,6 +155,9 @@ async def create(
149155
150156 file: ZIP file containing the application source directory
151157
158+ env_vars: Map of environment variables to set for the deployed application. Each key-value
159+ pair represents an environment variable.
160+
152161 force: Allow overwriting an existing app version
153162
154163 region: Region for deployment. Currently we only support "aws.us-east-1a"
@@ -167,6 +176,7 @@ async def create(
167176 {
168177 "entrypoint_rel_path" : entrypoint_rel_path ,
169178 "file" : file ,
179+ "env_vars" : env_vars ,
170180 "force" : force ,
171181 "region" : region ,
172182 "version" : version ,
0 commit comments