Skip to content

Instantly share code, notes, and snippets.

@aldomatic
Created December 13, 2018 19:48
Show Gist options
  • Save aldomatic/d334e47f711ce8287a355a5608690c58 to your computer and use it in GitHub Desktop.
Save aldomatic/d334e47f711ce8287a355a5608690c58 to your computer and use it in GitHub Desktop.
Simple python class to start a job for AWS amplify console
import boto3
amplify_client = boto3.client('amplify')
class Amplify:
@staticmethod
def start_build(payload):
response = amplify_client.start_job(
appId=payload.get('app_id', None),
branchName=payload.get('branch_name', 'development'),
jobType=payload.get('job_type', 'RELEASE')
)
print(response)
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment