Amplify / Client / create_deployment
create_deployment#
- Amplify.Client.create_deployment(**kwargs)#
- Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository. - See also: AWS API Documentation - Request Syntax - response = client.create_deployment( appId='string', branchName='string', fileMap={ 'string': 'string' } ) - Parameters:
- appId (string) – - [REQUIRED] - The unique ID for an Amplify app. 
- branchName (string) – - [REQUIRED] - The name for the branch, for the job. 
- fileMap (dict) – - An optional file map that contains the file name as the key and the file content md5 hash as the value. If this argument is provided, the service will generate a unique upload URL per file. Otherwise, the service will only generate a single upload URL for the zipped files. - (string) – - (string) – 
 
 
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'jobId': 'string', 'fileUploadUrls': { 'string': 'string' }, 'zipUploadUrl': 'string' } - Response Structure - (dict) – - The result structure for the create a new deployment request. - jobId (string) – - The job ID for this deployment. will supply to start deployment api. 
- fileUploadUrls (dict) – - When the - fileMapargument is provided in the request,- fileUploadUrlswill contain a map of file names to upload URLs.- (string) – - (string) – 
 
 
- zipUploadUrl (string) – - When the - fileMapargument is not provided in the request, this- zipUploadUrlis returned.
 
 
 - Exceptions - Amplify.Client.exceptions.BadRequestException
- Amplify.Client.exceptions.UnauthorizedException
- Amplify.Client.exceptions.InternalFailureException
- Amplify.Client.exceptions.LimitExceededException