func (role IAMRole) GetPolicyNames() []string {
	policynames := []string{}
	for policyname := range role.InlinePolicies {
		policy := fmt.Sprintf("%s (inline for %s)", policyname, role.Name)
		policynames = append(policynames, policy)
	}
	for policyname := range role.AttachedPolicies {
		policynames = append(policynames, policyname)
	}
	return policynames
}
// GetPolicyNames returns the names of the policies attached to the role
GetPolicyNames returns the names of the policies attached to the role
// GetPolicyNames returns the names of the policies attached to the role
func (role IAMRole) GetPolicyNames() []string {
	policynames := []string{}
	for policyname := range role.InlinePolicies {
		policy := fmt.Sprintf("%s (inline for %s)", policyname, role.Name)
		policynames = append(policynames, policy)
	}
	for policyname := range role.AttachedPolicies {
		policynames = append(policynames, policyname)
	}
	return policynames
}
func ( role IAMRole ) GetPolicyNames ( ) [ ] string { policynames := [ ] string { } for policyname := range role . InlinePolicies { policy := fmt . Sprintf ( " " , policyname , role . Name ) policynames = append ( policynames , policy ) } for policyname := range role . AttachedPolicies { policynames = append ( policynames , policyname ) } return policynames }
GetPolicyNames returns the names of the policies attached to the role
GetPolicyNames returns the names of the policies attached to the role