start_deployment
async
¶
start_deployment(
app_id: AppId,
branch_name: BranchName,
*,
config_overrides: Optional[AsyncAmplifyClientConfig] = None,
job_id: Optional[JobId] = None,
source_url: Optional[SourceUrl] = None,
source_url_type: Optional[SourceUrlType] = None,
) -> StartDeploymentResult
Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a Git repository.
The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail.
Parameters:
-
app_id(AppId) –The unique ID for an Amplify app.
-
branch_name(BranchName) –The name of the branch to use for the deployment job.
-
job_id(Optional[JobId], default:None) –The job ID for this deployment that is generated by the
CreateDeploymentrequest. -
source_url(Optional[SourceUrl], default:None) –The source URL for the deployment that is used when calling
StartDeploymentwithoutCreateDeployment. The source URL can be either an HTTP GET URL that is publicly accessible and downloads a single .zip file, or an Amazon S3 bucket and prefix. -
source_url_type(Optional[SourceUrlType], default:None) –The type of source specified by the
sourceURL. If the value isZIP, the source is a .zip file. If the value isBUCKET_PREFIX, the source is an Amazon S3 bucket and prefix. If no value is specified, the default isZIP.
Raises:
-
BadRequestException–A request contains unexpected data.
-
InternalFailureException–The service failed to perform an operation due to an internal issue.
-
LimitExceededException–A resource could not be created because service quotas were exceeded.
-
NotFoundException–An entity was not found during an operation.
-
UnauthorizedException–An operation failed due to a lack of access.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amplify/_services/async_amplify.py
2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 | |