{"action":"opened","number":20,"pull_request":{"url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls/20","id":240172803,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMTcyODAz","html_url":"https://github.com/aws-samples/amazon-guardduty-multiaccount-scripts/pull/20","diff_url":"https://github.com/aws-samples/amazon-guardduty-multiaccount-scripts/pull/20.diff","patch_url":"https://github.com/aws-samples/amazon-guardduty-multiaccount-scripts/pull/20.patch","issue_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/issues/20","number":20,"state":"open","locked":false,"title":"Update enableguardduty.py","user":{"login":"gabrielsoltz","id":8935378,"node_id":"MDQ6VXNlcjg5MzUzNzg=","avatar_url":"https://avatars1.githubusercontent.com/u/8935378?v=4","gravatar_id":"","url":"https://api.github.com/users/gabrielsoltz","html_url":"https://github.com/gabrielsoltz","followers_url":"https://api.github.com/users/gabrielsoltz/followers","following_url":"https://api.github.com/users/gabrielsoltz/following{/other_user}","gists_url":"https://api.github.com/users/gabrielsoltz/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielsoltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielsoltz/subscriptions","organizations_url":"https://api.github.com/users/gabrielsoltz/orgs","repos_url":"https://api.github.com/users/gabrielsoltz/repos","events_url":"https://api.github.com/users/gabrielsoltz/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielsoltz/received_events","type":"User","site_admin":false},"body":"*Issue #, if available:*\r\nIf account is part of the master account but was disable for some reason, script will stuck there. \r\n\r\n*Description of changes:*\r\nIf account is disabled, re enable. \r\n\r\nBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.\r\n","created_at":"2018-12-20T13:36:05Z","updated_at":"2018-12-20T13:36:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls/20/commits","review_comments_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls/20/comments","review_comment_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/issues/20/comments","statuses_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/statuses/2f1b6fd959762c12d3587293a4299dd678a4e6a0","head":{"label":"gabrielsoltz:master","ref":"master","sha":"2f1b6fd959762c12d3587293a4299dd678a4e6a0","user":{"login":"gabrielsoltz","id":8935378,"node_id":"MDQ6VXNlcjg5MzUzNzg=","avatar_url":"https://avatars1.githubusercontent.com/u/8935378?v=4","gravatar_id":"","url":"https://api.github.com/users/gabrielsoltz","html_url":"https://github.com/gabrielsoltz","followers_url":"https://api.github.com/users/gabrielsoltz/followers","following_url":"https://api.github.com/users/gabrielsoltz/following{/other_user}","gists_url":"https://api.github.com/users/gabrielsoltz/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielsoltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielsoltz/subscriptions","organizations_url":"https://api.github.com/users/gabrielsoltz/orgs","repos_url":"https://api.github.com/users/gabrielsoltz/repos","events_url":"https://api.github.com/users/gabrielsoltz/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielsoltz/received_events","type":"User","site_admin":false},"repo":{"id":162582672,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI1ODI2NzI=","name":"amazon-guardduty-multiaccount-scripts","full_name":"gabrielsoltz/amazon-guardduty-multiaccount-scripts","private":false,"owner":{"login":"gabrielsoltz","id":8935378,"node_id":"MDQ6VXNlcjg5MzUzNzg=","avatar_url":"https://avatars1.githubusercontent.com/u/8935378?v=4","gravatar_id":"","url":"https://api.github.com/users/gabrielsoltz","html_url":"https://github.com/gabrielsoltz","followers_url":"https://api.github.com/users/gabrielsoltz/followers","following_url":"https://api.github.com/users/gabrielsoltz/following{/other_user}","gists_url":"https://api.github.com/users/gabrielsoltz/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielsoltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielsoltz/subscriptions","organizations_url":"https://api.github.com/users/gabrielsoltz/orgs","repos_url":"https://api.github.com/users/gabrielsoltz/repos","events_url":"https://api.github.com/users/gabrielsoltz/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielsoltz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gabrielsoltz/amazon-guardduty-multiaccount-scripts","description":"This script automates the process of running the GuardDuty multi-account workflow across a group of accounts that are in your control","fork":true,"url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts","forks_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/forks","keys_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/teams","hooks_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/hooks","issue_events_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/events","assignees_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/tags","blobs_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/languages","stargazers_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/stargazers","contributors_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/contributors","subscribers_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/subscribers","subscription_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/subscription","commits_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/merges","archive_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/downloads","issues_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/labels{/name}","releases_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/gabrielsoltz/amazon-guardduty-multiaccount-scripts/deployments","created_at":"2018-12-20T13:22:24Z","updated_at":"2018-12-20T13:33:22Z","pushed_at":"2018-12-20T13:33:20Z","git_url":"git://github.com/gabrielsoltz/amazon-guardduty-multiaccount-scripts.git","ssh_url":"git@github.com:gabrielsoltz/amazon-guardduty-multiaccount-scripts.git","clone_url":"https://github.com/gabrielsoltz/amazon-guardduty-multiaccount-scripts.git","svn_url":"https://github.com/gabrielsoltz/amazon-guardduty-multiaccount-scripts","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aws-samples:master","ref":"master","sha":"5940bfc3be822d88eb9f10fe41826ec78e10a1a3","user":{"login":"aws-samples","id":8931462,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg5MzE0NjI=","avatar_url":"https://avatars1.githubusercontent.com/u/8931462?v=4","gravatar_id":"","url":"https://api.github.com/users/aws-samples","html_url":"https://github.com/aws-samples","followers_url":"https://api.github.com/users/aws-samples/followers","following_url":"https://api.github.com/users/aws-samples/following{/other_user}","gists_url":"https://api.github.com/users/aws-samples/gists{/gist_id}","starred_url":"https://api.github.com/users/aws-samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws-samples/subscriptions","organizations_url":"https://api.github.com/users/aws-samples/orgs","repos_url":"https://api.github.com/users/aws-samples/repos","events_url":"https://api.github.com/users/aws-samples/events{/privacy}","received_events_url":"https://api.github.com/users/aws-samples/received_events","type":"Organization","site_admin":false},"repo":{"id":116194608,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYxOTQ2MDg=","name":"amazon-guardduty-multiaccount-scripts","full_name":"aws-samples/amazon-guardduty-multiaccount-scripts","private":false,"owner":{"login":"aws-samples","id":8931462,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg5MzE0NjI=","avatar_url":"https://avatars1.githubusercontent.com/u/8931462?v=4","gravatar_id":"","url":"https://api.github.com/users/aws-samples","html_url":"https://github.com/aws-samples","followers_url":"https://api.github.com/users/aws-samples/followers","following_url":"https://api.github.com/users/aws-samples/following{/other_user}","gists_url":"https://api.github.com/users/aws-samples/gists{/gist_id}","starred_url":"https://api.github.com/users/aws-samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws-samples/subscriptions","organizations_url":"https://api.github.com/users/aws-samples/orgs","repos_url":"https://api.github.com/users/aws-samples/repos","events_url":"https://api.github.com/users/aws-samples/events{/privacy}","received_events_url":"https://api.github.com/users/aws-samples/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/aws-samples/amazon-guardduty-multiaccount-scripts","description":"This script automates the process of running the GuardDuty multi-account workflow across a group of accounts that are in your control","fork":false,"url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts","forks_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/forks","keys_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/teams","hooks_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/hooks","issue_events_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/events","assignees_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/tags","blobs_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/languages","stargazers_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/stargazers","contributors_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/contributors","subscribers_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/subscribers","subscription_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/subscription","commits_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/merges","archive_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/downloads","issues_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/labels{/name}","releases_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/deployments","created_at":"2018-01-04T00:13:36Z","updated_at":"2018-12-13T22:56:52Z","pushed_at":"2018-07-28T16:15:23Z","git_url":"git://github.com/aws-samples/amazon-guardduty-multiaccount-scripts.git","ssh_url":"git@github.com:aws-samples/amazon-guardduty-multiaccount-scripts.git","clone_url":"https://github.com/aws-samples/amazon-guardduty-multiaccount-scripts.git","svn_url":"https://github.com/aws-samples/amazon-guardduty-multiaccount-scripts","homepage":null,"size":39,"stargazers_count":52,"watchers_count":52,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":28,"open_issues":3,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls/20"},"html":{"href":"https://github.com/aws-samples/amazon-guardduty-multiaccount-scripts/pull/20"},"issue":{"href":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/issues/20"},"comments":{"href":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/aws-samples/amazon-guardduty-multiaccount-scripts/statuses/2f1b6fd959762c12d3587293a4299dd678a4e6a0"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":12,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"gabrielsoltz"}}