33from __future__ import annotations
44
55from typing import Mapping , cast
6+ from typing_extensions import Literal
67
78import httpx
89
@@ -48,10 +49,11 @@ def with_streaming_response(self) -> AppsResourceWithStreamingResponse:
4849 def deploy (
4950 self ,
5051 * ,
51- app_name : str ,
5252 file : FileTypes ,
53- version : str ,
54- region : str | NotGiven = NOT_GIVEN ,
53+ entrypoint_rel_path : str | NotGiven = NOT_GIVEN ,
54+ force : Literal ["true" , "false" ] | NotGiven = NOT_GIVEN ,
55+ region : Literal ["aws.us-east-1a" ] | NotGiven = NOT_GIVEN ,
56+ version : str | NotGiven = NOT_GIVEN ,
5557 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5658 # The extra values given here take precedence over values defined on the client or passed to this method.
5759 extra_headers : Headers | None = None ,
@@ -63,13 +65,15 @@ def deploy(
6365 Deploy a new application
6466
6567 Args:
66- app_name: Name of the application
68+ file: ZIP file containing the application source directory
6769
68- file: ZIP file containing the application
70+ entrypoint_rel_path: Relative path to the entrypoint of the application
6971
70- version: Version of the application
72+ force: Allow overwriting an existing app version
7173
72- region: AWS region for deployment (e.g. "aws.us-east-1a")
74+ region: Region for deployment. Currently we only support "aws.us-east-1a"
75+
76+ version: Version of the application. Can be any string.
7377
7478 extra_headers: Send extra headers
7579
@@ -81,10 +85,11 @@ def deploy(
8185 """
8286 body = deepcopy_minimal (
8387 {
84- "app_name" : app_name ,
8588 "file" : file ,
86- "version" : version ,
89+ "entrypoint_rel_path" : entrypoint_rel_path ,
90+ "force" : force ,
8791 "region" : region ,
92+ "version" : version ,
8893 }
8994 )
9095 files = extract_files (cast (Mapping [str , object ], body ), paths = [["file" ]])
@@ -210,10 +215,11 @@ def with_streaming_response(self) -> AsyncAppsResourceWithStreamingResponse:
210215 async def deploy (
211216 self ,
212217 * ,
213- app_name : str ,
214218 file : FileTypes ,
215- version : str ,
216- region : str | NotGiven = NOT_GIVEN ,
219+ entrypoint_rel_path : str | NotGiven = NOT_GIVEN ,
220+ force : Literal ["true" , "false" ] | NotGiven = NOT_GIVEN ,
221+ region : Literal ["aws.us-east-1a" ] | NotGiven = NOT_GIVEN ,
222+ version : str | NotGiven = NOT_GIVEN ,
217223 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
218224 # The extra values given here take precedence over values defined on the client or passed to this method.
219225 extra_headers : Headers | None = None ,
@@ -225,13 +231,15 @@ async def deploy(
225231 Deploy a new application
226232
227233 Args:
228- app_name: Name of the application
234+ file: ZIP file containing the application source directory
229235
230- file: ZIP file containing the application
236+ entrypoint_rel_path: Relative path to the entrypoint of the application
231237
232- version: Version of the application
238+ force: Allow overwriting an existing app version
233239
234- region: AWS region for deployment (e.g. "aws.us-east-1a")
240+ region: Region for deployment. Currently we only support "aws.us-east-1a"
241+
242+ version: Version of the application. Can be any string.
235243
236244 extra_headers: Send extra headers
237245
@@ -243,10 +251,11 @@ async def deploy(
243251 """
244252 body = deepcopy_minimal (
245253 {
246- "app_name" : app_name ,
247254 "file" : file ,
248- "version" : version ,
255+ "entrypoint_rel_path" : entrypoint_rel_path ,
256+ "force" : force ,
249257 "region" : region ,
258+ "version" : version ,
250259 }
251260 )
252261 files = extract_files (cast (Mapping [str , object ], body ), paths = [["file" ]])
0 commit comments