aws-account-can-leave-org

explicit aws emits HasPermission

match (effective permission)

{ "action": "organizations:LeaveOrganization", "resource_type": "AWS::Organizations::Account" }

emit

source typeIdentity
target type*
source<principal>
target<Account node (member, self)>
permissionsorganizations:LeaveOrganization

Narrative

{principal.name} can make {account.name} leave its organization (organizations:LeaveOrganization).

Raw rule rules/explicit/aws-account.yaml

id: aws-account-can-leave-org
emits: HasPermission
applies_to:
- aws
match_effective_permission:
  action: organizations:LeaveOrganization
  resource_type: AWS::Organizations::Account
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <Account node (member, self)>
  api_source: iam:SimulatePrincipalPolicy | policy evaluation
  permissions:
  - organizations:LeaveOrganization
  narrative: '{principal.name} can make {account.name} leave its organization (organizations:LeaveOrganization).'
move · open · esc close