Created
December 13, 2018 19:48
-
-
Save aldomatic/d334e47f711ce8287a355a5608690c58 to your computer and use it in GitHub Desktop.
Simple python class to start a job for AWS amplify console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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