// ListForPolicy lists all the actions that related to a given policy
ListForPolicy lists all the actions that related to a given policy
// ListForPolicy lists all the actions that related to a given policy
func (a *ActionStorage) ListForPolicy(policyID string) []recommendations.AWSAction {
	actions := []recommendations.AWSAction{}
	for _, action := range a.actions {
		if action.PolicyID == policyID {
			actions = append(actions, action)
		}
	}
	return actions
}
func ( a * ActionStorage ) ListForPolicy ( policyID string ) [ ] recommendations . AWSAction { actions := [ ] recommendations . AWSAction { } for _ , action := range a . actions { if action . PolicyID == policyID { actions = append ( actions , action ) } } return actions }
ListForPolicy lists all the actions that related to a given policy
ListForPolicy lists all the actions that related to a given policy